diff --git a/CREATE_GAME.md b/CREATE_GAME.md index b233595..87b7f2d 100644 --- a/CREATE_GAME.md +++ b/CREATE_GAME.md @@ -12,7 +12,7 @@ Title "add_zero" Introduction "" -- optional. Is displayed throughout the level. -Statement MyNat.zero_add -- optional. if name is specified, the lemma will be added to the inventory +Statement MyNat.zero_add -- optional. if name is specified, the lemma will be added to the inventory in future levels. "description in mathematical term" -- optional. mathematical description (n : ℕ) : n + 0 = n := by -- statement: exactly how it would be in a `theorem`. (bug: forgets about implicit arguments) intro k @@ -29,8 +29,8 @@ Statement MyNat.zero_add -- optional. if name is specified, the lem LemmaTab "Nat" -- optional. specify the tab that's open in the lemma inventory NewLemma add_zero -- optional. add lemma to inventory -NewTactic rw -- optional. add lemma to inventory -NewDefinition Nat -- optional. add lemma to inventory +NewTactic rw -- optional. add tactic to inventory +NewDefinition Nat -- optional. add definition to inventory DisabledLemma add_zero -- optional. disable specific lemmas DisabledTactic tauto simp -- optional. disable tactics OnlyLemma add_zero -- optional. disable all lemmas but these @@ -92,6 +92,6 @@ Notes: * The lemma name must be **fully qualified**. The string display name can be arbitrary. * Tactics must have their proper name. use `TacticDoc «have» ""` if it does not work without french quotes. -* Definition names can be arbitrary. E.g. I used `DefinitionDoc Symbol.Fun as "fun x ↦ x"` once. +* Definition names can be arbitrary. E.g. I used `DefinitionDoc Symbol.Fun as "fun x ↦ x" "(missing)"` once. There will be features added to get automatic information from mathlib! diff --git a/server/nng/NNG/MyNat/AddCommMonoid.lean b/server/nng/NNG/MyNat/AddCommMonoid.lean index b2d08f7..c296225 100644 --- a/server/nng/NNG/MyNat/AddCommMonoid.lean +++ b/server/nng/NNG/MyNat/AddCommMonoid.lean @@ -12,7 +12,6 @@ namespace MyNat -- precisely the oddball (to my eyes) classes which nat was an instance of, -- but I think they would make great collectibles. - -- instance addSemigroup : AddSemigroup ℕ := -- { -- zero := 0 @@ -20,4 +19,4 @@ namespace MyNat -- } -- MyNat.addMonoid -- (after level 2) -- MyNat.addCommSemigroup -- (after level 4) --- MyNat.addCommMonoid -- (after level 4) \ No newline at end of file +-- MyNat.addCommMonoid -- (after level 4) diff --git a/server/nng/NNG/MyNat/LE.lean b/server/nng/NNG/MyNat/LE.lean index c96d79d..26fca08 100644 --- a/server/nng/NNG/MyNat/LE.lean +++ b/server/nng/NNG/MyNat/LE.lean @@ -10,7 +10,7 @@ def le (a b : ℕ) := ∃ (c : ℕ), b = a + c -- the existence definition. -- | le 0 _ --- | le (succ a) (succ b) = le ab +-- | le (succ a) (succ b) = le ab -- notation instance : LE MyNat := ⟨MyNat.le⟩ @@ -19,4 +19,4 @@ instance : LE MyNat := ⟨MyNat.le⟩ theorem le_iff_exists_add (a b : ℕ) : a ≤ b ↔ ∃ (c : ℕ), b = a + c := Iff.rfl -end MyNat \ No newline at end of file +end MyNat