324 B
324 B
Dependent Types
In a 'place to do maths' we would like to be able to express and 'prove' the statement
There exists a natural that is even. This requires the notion of a _predicate. In general a predicate on a type
A
is a term of typeA → Type u
, for example
isEven : ℕ → Type u
isEven n = ?