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/adam/Adam/Levels/Implication/L11_ByCases.lean

39 lines
805 B
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import Adam.Metadata
import Adam.Options.MathlibPart
Game "Adam"
World "Implication"
Level 11
Title "by_cases"
Introduction
"
**Du**: Sag mal, hätten wir nicht auch einfach zwei Fälle anschauen können?
Wenn `A` wahr ist, beweisen wir die rechte Seite, sonst die Linke.
**Robo**: Tatsächlich, `by_cases h : A` würde genau das machen!
**Du** (zum Operationsleiter): Können wir das Blatt bitte noch einmal haben?
"
Statement (A : Prop) : ¬A A := by
Hint (hidden := true) "**Du**: Wie noch einmal?
**Robo**: Also `by_cases h : A` erstellt zwei Goals. Im ersten hast du `(h : A)` zur
Verfügung, im zweiten `(h : ¬ A)`."
by_cases h : A
right
assumption
left
assumption
Conclusion
"
**Du**: So gefällt mir der Beweis viel besser!
"
NewTactic by_cases
DisabledTactic tauto