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

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

axiom MyNat : Type
--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