more levels.

pull/43/head
Jon Eugster 3 years ago
parent 90540b158f
commit e282396a8e

@ -5,8 +5,7 @@ import TestGame.Levels.Implication
import TestGame.Levels.Predicate import TestGame.Levels.Predicate
import TestGame.Levels.Contradiction import TestGame.Levels.Contradiction
import TestGame.Levels.Prime import TestGame.Levels.Prime
import TestGame.Levels.Induction
import TestGame.Levels.Naturals.L31_Sum
Game "TestGame" Game "TestGame"
@ -65,4 +64,4 @@ Conclusion
Path Proposition → Implication → Predicate → Contradiction Path Proposition → Implication → Predicate → Contradiction
Path Predicate → Prime Path Predicate → Prime
Path Predicate → Nat2 Path Predicate → Induction

@ -47,18 +47,19 @@ Message (A : Prop) (B : Prop) (h : A → ¬ B) (g : A ∧ B) : False =>
" "
Message (A : Prop) (B : Prop) (h : A → ¬ B) (g : A) (f : B) : False => Message (A : Prop) (B : Prop) (h : A → ¬ B) (g : A) (f : B) : False =>
" Auf Deutsch: \"Als Zwischenresultat haben wir `¬ B`.\" "
Auf Deutsch: \"Als Zwischenresultat haben wir `¬ B`.\"
In Lean : In Lean :
``` ```
have k : ¬ B have k : ¬ B
[Beweis von k] [Beweis von k]
``` ```
" "
example (n : ) : n.succ + 2 = n + 3 := by -- example (n : ) : n.succ + 2 = n + 3 := by
ring_nf -- ring_nf
Conclusion "" Conclusion ""

@ -7,7 +7,7 @@ import Mathlib.Tactic.Ring
import TestGame.ToBePorted import TestGame.ToBePorted
Game "TestGame" Game "TestGame"
World "Proving" World "Contradiction"
Level 6 Level 6
Title "Contradiction" Title "Contradiction"

@ -0,0 +1,2 @@
import TestGame.Levels.Induction.L31_Sum
import TestGame.Levels.Induction.L32_Induction

@ -6,7 +6,7 @@ import TestGame.Metadata
set_option tactic.hygienic false set_option tactic.hygienic false
Game "TestGame" Game "TestGame"
World "Nat2" World "Induction"
Level 1 Level 1
Title "Summe" Title "Summe"
@ -16,7 +16,7 @@ Introduction
" "
Statement Statement
"Zeige $\\sum_{i=0}^{n} i = \\frac{n \\cdot {n+1}}{2}$" ""
(n : ) : 2 * (∑ i : Fin (n+1), ↑i) = n * (n + 1) := by (n : ) : 2 * (∑ i : Fin (n+1), ↑i) = n * (n + 1) := by
induction' n with n hn induction' n with n hn
simp simp

@ -0,0 +1,37 @@
import TestGame.Metadata
import Mathlib.Tactic.Ring
import Mathlib
Game "TestGame"
World "Induction"
Level 2
Title "Induktion"
Introduction
"
TODO: Induktion (& induktion vs rcases)
"
theorem nat_succ (n : ) : Nat.succ n = n + 1 := rfl
lemma hh1 (n m : ) (h : 2 * m = n) : m = n / 2 := by
rw [←h]
rw [Nat.mul_div_right]
simp
Statement
"Zeige $\\sum_{i = 0}^n i = \\frac{n ⬝ (n + 1)}{2}$."
(n : ) : (∑ i : Fin (n + 1), ↑i) = n * (n + 1) / 2 := by
apply hh1
induction' n with n hn
simp
sorry
-- rw [Fin.sum_univ_castSucc]
-- simp [nat_succ]
-- rw [mul_add, hn]
-- ring
Tactics ring

@ -1,23 +0,0 @@
import TestGame.Metadata
import Mathlib.Tactic.Ring
Game "TestGame"
World "Nat2"
Level 2
Title "Induktion"
Introduction
"
TODO: Induktion (& induktion vs rcases)
"
Statement "" : True := by
trivial
Conclusion
"
"
Tactics ring
Loading…
Cancel
Save