mirror of
https://github.com/Kindelia/Kind2.git
synced 2024-10-26 16:20:40 +03:00
9 lines
263 B
Plaintext
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)
|