2013-12-30 19:46:03 +00:00
|
|
|
|
Import kernel.
|
2013-12-30 11:29:20 +00:00
|
|
|
|
|
|
|
|
|
Variable Nat : Type.
|
|
|
|
|
Alias ℕ : Nat.
|
|
|
|
|
|
2014-01-01 20:40:54 +00:00
|
|
|
|
Namespace Nat.
|
2013-12-30 11:29:20 +00:00
|
|
|
|
|
2014-01-01 20:40:54 +00:00
|
|
|
|
Builtin numeral.
|
2013-12-30 11:29:20 +00:00
|
|
|
|
|
2014-01-01 20:40:54 +00:00
|
|
|
|
Builtin add : Nat → Nat → Nat.
|
|
|
|
|
Infixl 65 + : add.
|
2013-12-30 11:29:20 +00:00
|
|
|
|
|
2014-01-01 20:40:54 +00:00
|
|
|
|
Builtin mul : Nat → Nat → Nat.
|
|
|
|
|
Infixl 70 * : mul.
|
2013-12-30 11:29:20 +00:00
|
|
|
|
|
2014-01-01 20:40:54 +00:00
|
|
|
|
Builtin le : Nat → Nat → Bool.
|
|
|
|
|
Infix 50 <= : le.
|
|
|
|
|
Infix 50 ≤ : le.
|
2013-12-30 11:29:20 +00:00
|
|
|
|
|
2014-01-01 20:40:54 +00:00
|
|
|
|
Definition ge (a b : Nat) := b ≤ a.
|
|
|
|
|
Infix 50 >= : ge.
|
|
|
|
|
Infix 50 ≥ : ge.
|
2013-12-30 11:29:20 +00:00
|
|
|
|
|
2014-01-01 20:40:54 +00:00
|
|
|
|
Definition lt (a b : Nat) := ¬ (a ≥ b).
|
|
|
|
|
Infix 50 < : lt.
|
2013-12-30 11:29:20 +00:00
|
|
|
|
|
2014-01-01 20:40:54 +00:00
|
|
|
|
Definition gt (a b : Nat) := ¬ (a ≤ b).
|
|
|
|
|
Infix 50 > : gt.
|
2013-12-30 11:29:20 +00:00
|
|
|
|
|
2014-01-01 20:40:54 +00:00
|
|
|
|
Definition id (a : Nat) := a.
|
|
|
|
|
Notation 55 | _ | : id.
|
|
|
|
|
|
|
|
|
|
SetOpaque ge true.
|
|
|
|
|
SetOpaque lt true.
|
|
|
|
|
SetOpaque gt true.
|
|
|
|
|
SetOpaque id true.
|
|
|
|
|
|
|
|
|
|
EndNamespace.
|