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/Levels/Proving/L01_Contra.lean

38 lines
1.0 KiB
Plaintext

2 years ago
import TestGame.Metadata
import Std.Tactic.RCases
import Mathlib.Tactic.LeftRight
import Mathlib.Tactic.Contrapose
import Mathlib.Tactic.Use
import Mathlib.Tactic.Ring
import TestGame.ToBePorted
2 years ago
Game "TestGame"
World "Proving"
Level 1
2 years ago
Title "Ad absurdum"
2 years ago
Introduction
2 years ago
"Aber, die Aussagen müssen wirklich exakte Gegenteile sein.
2 years ago
Hier musst du zuerst eines der Lemmas `(not_odd : ¬ odd n ↔ even n)` oder
`(not_even : ¬ even n ↔ odd n)` benützen, um einer der Terme umzuschreiben."
2 years ago
Statement
2 years ago
"Sei $n$ eine natürliche Zahl die sowohl gerade wie auch ungerade ist.
Zeige, dass daraus $n = 42$ folgt. (oder, tatsächlich $n = x$ für jedes beliebige $x$)."
(n : ) (h_even : even n) (h_odd : odd n) : n = 42 := by
rw [← not_even] at h_odd
2 years ago
contradiction
2 years ago
Message (n : ) (h_even : even n) (h_odd : odd n) : n = 42 =>
"Schreibe zuerst eine der Aussagen mit `rw [←not_even] at h_odd` um, damit diese genaue
Gegenteile werden."
2 years ago
2 years ago
Conclusion ""
2 years ago
2 years ago
Tactics contradiction rw
Lemmas even odd not_even not_odd