mirror of
https://github.com/HigherOrderCO/Kind.git
synced 2024-09-11 20:47:25 +03:00
19 lines
463 B
Plaintext
19 lines
463 B
Plaintext
Kind.equal.minor
|
|
: ∀(e: Bool)
|
|
∀(a: Kind.Term)
|
|
∀(b: Kind.Term)
|
|
∀(dep: Nat)
|
|
Bool
|
|
= λe λa λb λdep
|
|
let P = λx ∀(a: Kind.Term) ∀(b: Kind.Term) ∀(dep: Nat) Bool
|
|
let true = λa λb λdep Bool.true
|
|
let false = λa λb λdep
|
|
let a_wnf = (Kind.reduce Bool.false a)
|
|
let b_wnf = (Kind.reduce Bool.false b)
|
|
(Kind.equal.major
|
|
(Kind.identical a_wnf b_wnf dep)
|
|
a_wnf
|
|
b_wnf
|
|
dep
|
|
)
|
|
(~e P true false a b dep) |