Closed cangiuli closed 5 years ago
I'm moving this out of #422. The representation is wrong, because nil and cons0 nil are both zero. Anyone (@ecavallo ?) is welcome to hack on this, but if nobody else does I'll eventually get back to it.
nil
cons0 nil
In Coq and https://github.com/sbp/idris-bi they use 1 as a base constructor, and then construct nats and ints separately on top of that.
OMG!! I should open PRs with broken code more often! Thank you @favonia!
I'm moving this out of #422. The representation is wrong, because
nil
andcons0 nil
are both zero. Anyone (@ecavallo ?) is welcome to hack on this, but if nobody else does I'll eventually get back to it.