make statement description optional

This commit is contained in:
Jon Eugster
2023-03-10 17:10:05 +01:00
parent 481f2b5cbb
commit 6d93aa4752
3 changed files with 20 additions and 26 deletions
@@ -14,8 +14,15 @@ Introduction
**Operationsleiter**: Sagt mal, könnt ihr mir hier weiterhelfen?
"
Statement "" (A B : Prop) (hb : B) : A → (A ∧ B) := by
Statement (A B : Prop) (hb : B) : A → (A ∧ B) := by
Hint "**Du**: Einen Moment, das ist eine Implikation (`\\to`),
also `A` impliziert `A und B`, soweit so gut, also eine Tautologie.
**Robo**: Die scheinen hier `tauto` auch nicht zu verstehen.
Implikationen kannst du aber mit `intro h` angehen."
intro hA
Hint "**Du**: Jetzt habe ich also angenommen, dass `A` wahr ist und muss `A ∧ B` zeigen,
das kennen wir ja schon."
constructor
assumption
assumption
@@ -23,15 +30,4 @@ Statement "" (A B : Prop) (hb : B) : A → (A ∧ B) := by
NewTactic intro
DisabledTactic tauto
Hint (A : Prop) (B : Prop) (hb : B) : A → (A ∧ B) =>
"**Du**: Einen Moment, das ist eine Implikation (`\\to`),
also `A` impliziert `A und B`, soweit so gut, also eine Tautologie.
**Robo**: Die scheinen hier `tauto` auch nicht zu verstehen.
Implikationen kannst du aber mit `intro h` angehen."
Hint (A : Prop) (B : Prop) (ha : A) (hb : B) : (A ∧ B) =>
"**Du**: Jetzt habe ich also angenommen, dass `A` wahr ist und muss `A ∧ B` zeigen,
das kennen wir ja schon."
Conclusion "Der Operationsleiter nickt bedacht."
@@ -11,23 +11,19 @@ Title "Revert"
Introduction
"Jemand aus der Gruppe gibt dir ein Blatt Papier mit einer Zeile Text:"
Statement
""
(A B : Prop) (ha : A) (h : A → B) : B := by
Statement "" (A B : Prop) (ha : A) (h : A → B) : B := by
Hint "**Robo**: Mit `revert {ha}` kann man die Annahme `ha` als
Implikationsprämisse vorne ans Goal anhängen, dann ist das Goal `{A} → {B}`.
**Du**: Das wirkt etwas unnatürlich.
**Robo**: Schon, ja. Aber als Tool kann das manchmal nützlich sein."
revert ha
assumption
NewTactic revert
DisabledTactic tauto
Hint (A : Prop) (B : Prop) (ha : A) (h : A → B) : B =>
"**Robo**: Mit `revert {ha}` kann man die Annahme `ha` als
Implikationsprämisse vorne ans Goal anhängen, dann ist das Goal `{A} → {B}`.
**Du**: Das wirkt etwas unnatürlich.
**Robo**: Schon, ja. Aber als Tool kann das manchmal nützlich sein."
Conclusion "**Du**: Aber das müsste doch auch anders gehen, ich hätte jetzt intuitiv
die Implikation $A \\Rightarrow B$ angewendet und behauptet, dass es genügt $A$ zu zeigen…