General Idris novelty question, sorry.
I was taught at school, there are natural numbers (N) and natural numbers with zero (N0).
In Idris, there is a data type Nat, which by definition corresponds to N0.
What will change if Nat is defined as follows:
data Nat = One | S Nat
data Nat0 = Zero | Nat
I think now it’s easier, but basically it is a problem with the implementation of the compiler or formal?
There should be cases where 0 does not make sense, and I think it is more difficult to determine correctly now. Or not?
source
share