Kind2/base/Int.kind
2021-04-16 16:14:53 -03:00

9 lines
263 B
Plaintext

// Construct the Int type given the form {x,y}, where
// "x - y" is the Int number.
// - {9, 0} represents the number +9
// - {2, 9} represents the number -7
Int: Type
int<P: Int -> Type> ->
(new: (pos: Nat) -> (neg: Nat) -> P(Int.new(pos, neg))) ->
P(int)