Skip to content

Commit 4283469

Browse files
committed
more docstrings
1 parent 2bf25b8 commit 4283469

File tree

4 files changed

+91
-4
lines changed

4 files changed

+91
-4
lines changed

.i18n/en/Game.pot

Lines changed: 81 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
msgid ""
22
msgstr "Project-Id-Version: Game v4.7.0\n"
33
"Report-Msgid-Bugs-To: \n"
4-
"POT-Creation-Date: Wed Jun 18 11:43:39 2025\n"
4+
"POT-Creation-Date: Wed Jun 18 12:03:04 2025\n"
55
"Last-Translator: \n"
66
"Language-Team: none\n"
77
"Language: en\n"
@@ -62,6 +62,86 @@ msgstr ""
6262
msgid "This last message appears if the level is solved."
6363
msgstr ""
6464

65+
#: Game.Levels.AxiomWorld.L03_Together
66+
msgid "Together"
67+
msgstr ""
68+
69+
#: Game.Levels.AxiomWorld.L03_Together
70+
msgid "Let's invoke multiple axioms to prove something."
71+
msgstr ""
72+
73+
#: Game.Levels.AxiomWorld.L03_Together
74+
msgid "Next we'll combine multiplication and addition via distributivity."
75+
msgstr ""
76+
77+
#: Game.Levels.AxiomWorld.L04_Distributivity
78+
msgid "Distributivity"
79+
msgstr ""
80+
81+
#: Game.Levels.AxiomWorld.L04_Distributivity
82+
msgid "Addition and multiplication are related via distributivity."
83+
msgstr ""
84+
85+
#: Game.Levels.AxiomWorld.L04_Distributivity
86+
msgid "Multiplication distributes over addition on the left"
87+
msgstr ""
88+
89+
#: Game.Levels.AxiomWorld.L04_Distributivity
90+
msgid "Multiplication distributes over addition on the right"
91+
msgstr ""
92+
93+
#: Game.Levels.AxiomWorld.L04_Distributivity
94+
msgid "We still need to think about 0 and 1 in rings."
95+
msgstr ""
96+
97+
#: Game.Levels.AxiomWorld.L05_Identities
98+
msgid "Identities"
99+
msgstr ""
100+
101+
#: Game.Levels.AxiomWorld.L05_Identities
102+
msgid "Rings include a 0 and a 1 which are additive and multiplicative identities."
103+
msgstr ""
104+
105+
#: Game.Levels.AxiomWorld.L05_Identities
106+
msgid "0 is an additive identity on the right"
107+
msgstr ""
108+
109+
#: Game.Levels.AxiomWorld.L05_Identities
110+
msgid "0 is an additive identity on the left"
111+
msgstr ""
112+
113+
#: Game.Levels.AxiomWorld.L05_Identities
114+
msgid "1 is an multiplicative identity on the right"
115+
msgstr ""
116+
117+
#: Game.Levels.AxiomWorld.L05_Identities
118+
msgid "1 is an multiplicative identity on the left"
119+
msgstr ""
120+
121+
#: Game.Levels.AxiomWorld.L05_Identities
122+
msgid "We will have to learn how to combine more axioms to prove more interesting statements."
123+
msgstr ""
124+
125+
#: Game.Levels.AxiomWorld.L06_Inverses
126+
msgid "Inverses"
127+
msgstr ""
128+
129+
#: Game.Levels.AxiomWorld.L06_Inverses
130+
msgid "Every element of a ring has an additive inverse."
131+
msgstr ""
132+
133+
#: Game.Levels.AxiomWorld.L06_Inverses
134+
msgid "exact provides a term that completes the goal"
135+
msgstr ""
136+
137+
#: Game.Levels.AxiomWorld.L06_Inverses
138+
msgid "Every element has an additive inverse"
139+
msgstr ""
140+
141+
#: Game.Levels.AxiomWorld.L06_Inverses
142+
msgid "We will have to learn how to combine more axioms to prove more interesting statements."
143+
msgstr ""
144+
65145
#: Game.Levels.AxiomWorld
66146
msgid "Axiom World"
67147
msgstr ""

Game/Levels/AxiomWorld/L04_Distributivity.lean

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
import Game.Metadata
2-
import Mathlib.Algebra.Ring.Defs
3-
import Mathlib.Tactic.Use
42

53
World "AxiomWorld"
64
Level 4
@@ -17,6 +15,8 @@ TheoremDoc left_distrib as "left_distrib" in "Ring"
1715
/-- Multiplication distributes over addition on the right -/
1816
TheoremDoc right_distrib as "right_distrib" in "Ring"
1917

18+
NewTheorem left_distrib right_distrib
19+
2020
Statement ( a b : R ) : (a + b) * (a + b) = a * a + b * a + (a * b + b * b) := by
2121
rw [left_distrib]
2222
rw [right_distrib]

Game/Levels/AxiomWorld/L05_Identities.lean

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ TheoremDoc mul_one as "mul_one" in "Ring"
1919
/-- 1 is an multiplicative identity on the left -/
2020
TheoremDoc one_mul as "one_mul" in "Ring"
2121

22+
NewTheorem add_zero zero_add mul_one one_mul
23+
2224
Statement (a : R) : (1 + 1) * a = a + a := by
2325
rw [right_distrib]
2426
rw [one_mul]

Game/Levels/AxiomWorld/L06_Inverses.lean

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ theorem exist_add_inv (a : R) : (∃ (b : R), a + b = 0) := by
1414
use -a
1515
exact add_right_neg a
1616

17-
NewTactic rw
17+
/-- exact provides a term that completes the goal -/
18+
TacticDoc exact
19+
20+
NewTactic exact
1821

1922
/-- Every element has an additive inverse -/
2023
TheoremDoc exist_add_inv as "exist_add_inv" in "Ring"
2124

25+
NewTheorem exist_add_inv
26+
2227
Statement (a : R) : ∃ b, (a + a) + b = 0 := by
2328
exact exist_add_inv (a+a)
2429

0 commit comments

Comments
 (0)