mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 20:47:25 +03:00
15 lines
407 B
Plaintext
15 lines
407 B
Plaintext
Nat.equal
|
|
: ∀(a: Nat) ∀(b: Nat) Bool
|
|
= λa λb
|
|
let P = λx ∀(b: Nat) Bool
|
|
let succ = λa.pred λb
|
|
let P = λx ∀(a.pred: Nat) Bool
|
|
let succ = λb.pred λa.pred (Nat.equal a.pred b.pred)
|
|
let zero = λa.pred Bool.false
|
|
(~b P succ zero a.pred)
|
|
let zero = λb
|
|
let P = λx Bool
|
|
let succ = λb.pred Bool.false
|
|
let zero = Bool.true
|
|
(~b P succ zero)
|
|
(~a P succ zero b) |