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.
32 lines
750 B
Plaintext
32 lines
750 B
Plaintext
import TestGame.Metadata
|
|
|
|
Game "TestGame"
|
|
World "Proposition"
|
|
Level 2
|
|
|
|
Title "Aller Anfang ist... ein Einzeiler?"
|
|
|
|
Introduction
|
|
"
|
|
Jetzt gehen wir aber einen Schritt zurück und lernen, wie man konkret mit Lean arbeitet,
|
|
damit du verstehst, was `tauto` hinter der Kulisse macht.
|
|
|
|
Deine erste Taktik ist `rfl` (für \"reflexivity\"), welche dazu da ist,
|
|
ein Goal der Form $X = X$ zu schließen.
|
|
"
|
|
|
|
Statement
|
|
"Zeige $ 42 = 42 $." : 42 = 42 := by
|
|
rfl
|
|
|
|
-- Hint : 42 = 42 =>
|
|
-- "Die Taktik `rfl` beweist ein Goal der Form `X = X`."
|
|
|
|
HiddenHint : 42 = 42 =>
|
|
"Man schreibt eine Taktik pro Zeile, also gib `rfl` ein und geh mit Enter ⏎ auf eine neue Zeile."
|
|
|
|
Conclusion "Bravo! PS: `rfl` steht für \"reflexivity\"."
|
|
|
|
NewTactics rfl
|
|
DisabledTactics tauto
|