Create add_left.kind

This commit is contained in:
Ferran Delgà 2021-12-04 18:59:27 +01:00 committed by GitHub
parent 172fb18425
commit 6e8a09cc68
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,18 @@
Nat.Order.add.left(
a: Nat
b: Nat
c: Nat
Hyp: Equal<Bool>(Nat.lte(a, b), true)
): Equal<Bool>(Nat.lte(Nat.add(c, a), Nat.add(c, b)), true)
(case c {
zero:
(Hyp)
Hyp
succ:
(Hyp)
Nat.Order.add.left(a, b, c.pred, Hyp)
}:
(Hyp: Equal<Bool>(Nat.lte(a, b), true)) ->
Equal<Bool>(Nat.lte(Nat.add(c, a), Nat.add(c, b)), true))(
Hyp
)