by kestert · 12y ago · 0 comments
data Composite : Nat -> Type where
factors : (x : Nat) -> (y : Nat) -> Composite ((S (S x)) * (S (S y)))
but there is no analogous construction of a prime type. Luckily most day to day programming looks more like the composite case than the prime case.http://agda.github.io/agda-stdlib/html/Data.Nat.Primality.ht...