You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lean4game/server/testgame/TestGame/MyNat.lean

20 lines
462 B
Plaintext

axiom MyNat : Type
2 years ago
--notation "" => MyNat
--axiom zero :
axiom succ :
@[instance] axiom MyOfNat (n : Nat) : OfNat n
@[instance] axiom myAddition : HAdd
@[instance] axiom myMultiplication : HMul
axiom add_zero : ∀ a : , a + 0 = a
axiom add_succ : ∀ a b : , a + succ b = succ (a + b)
@[elab_as_elim] axiom myInduction {P : → Prop} (n : ) (h₀ : P 0) (h : ∀ n, P n → P (succ n)) : P n