[Agda] Positive numbers

Gyesik Lee gyesik.lee at aist.go.jp
Tue Mar 3 03:43:38 CET 2009


How about with the following one?

data N+ : N -> Set where
pos : forall {n : N} -> N+ (succ n)

Since Agda provides non-exhaustive pattern-matching, I believe, you
don't need to worry about positiveness.
(Cf. Ulf Norell's "Dependently Typed Programming in Agda")


More information about the Agda mailing list