compute which tactics are available in which level
This commit is contained in:
@@ -39,6 +39,6 @@ Ring zu lösen, funktioniert aber auch auf `ℕ`, auch wenn dieses kein Ring ist
|
||||
(erst `ℤ` ist ein Ring).
|
||||
"
|
||||
|
||||
Tactics ring
|
||||
NewTactics ring
|
||||
|
||||
#eval 4 / 6
|
||||
|
||||
@@ -67,4 +67,4 @@ Hint (a : ℕ) (b : ℕ) (c : ℕ) (d : ℕ) (h₁ : c = d) (h₂ : d = b) (h₃
|
||||
|
||||
Conclusion "Übrigens, mit `rw [h₁, ←h₂]` könnte man mehrere `rw` zusammenfassen."
|
||||
|
||||
Tactics assumption rw
|
||||
NewTactics assumption rw
|
||||
|
||||
@@ -37,4 +37,4 @@ Hint (a : ℕ) (b : ℕ) (h : a = b) (g : a + a ^ 2 = b + 1) : a + a ^ 2 = a + 1
|
||||
Conclusion "Übrigens, mit `rw [h] at *` kann man im weiteren `h` in **allen** Annahmen und
|
||||
dem Goal umschreiben."
|
||||
|
||||
Tactics assumption rw
|
||||
NewTactics assumption rw
|
||||
|
||||
@@ -30,4 +30,4 @@ Hint (y : ℕ) : (2 * y + 1) ^ 2 = 4 * y ^ 2 + 3 * y + 1 + y =>
|
||||
|
||||
Conclusion ""
|
||||
|
||||
Tactics ring rw
|
||||
NewTactics ring rw
|
||||
|
||||
@@ -28,4 +28,4 @@ Conclusion
|
||||
aufzurufen, deshalb brauchst du das nur noch selten.
|
||||
"
|
||||
|
||||
Tactics rfl
|
||||
NewTactics rfl
|
||||
|
||||
@@ -67,5 +67,5 @@ Hint (n : ℕ) (x : ℕ) (hx : n = x + x) : n ^ 2 = 2 * x ^ 2 + 2 * x ^ 2 =>
|
||||
Hint (n : ℕ) (x : ℕ) (hx : n = x + x) : (x + x) ^ 2 = 2 * x ^ 2 + 2 * x ^ 2 =>
|
||||
"Die Taktik `ring` löst solche Gleichungen."
|
||||
|
||||
Tactics unfold rcases use rw ring
|
||||
Lemmas Even Odd
|
||||
NewTactics unfold rcases use rw ring
|
||||
NewLemmas Even Odd
|
||||
|
||||
@@ -50,4 +50,4 @@ Hint (n : ℕ) (hn : Odd n) (h : ∀ (x : ℕ), (Odd x) → Even (x + 1)) : Even
|
||||
Conclusion "Für-alle-Statements, Implikationen und Lemmas/Theoreme verhalten sich alle
|
||||
praktisch gleich. Mehr dazu später."
|
||||
|
||||
Tactics ring intro unfold
|
||||
NewTactics ring intro unfold
|
||||
|
||||
@@ -62,6 +62,6 @@ Hint (n : ℕ) : n + n = 2 * n => "Recap: `ring` löst Gleichungen in `ℕ`."
|
||||
|
||||
Conclusion ""
|
||||
|
||||
Tactics push_neg intro use rw unfold ring
|
||||
NewTactics push_neg intro use rw unfold ring
|
||||
|
||||
Lemmas Even Odd not_even not_odd not_exists not_forall
|
||||
NewLemmas Even Odd not_even not_odd not_exists not_forall
|
||||
|
||||
@@ -50,6 +50,6 @@ Statement
|
||||
|
||||
Conclusion ""
|
||||
|
||||
Tactics push_neg intro use rw unfold ring
|
||||
NewTactics push_neg intro use rw unfold ring
|
||||
|
||||
Lemmas Even Odd not_even not_odd not_exists not_forall
|
||||
NewLemmas Even Odd not_even not_odd not_exists not_forall
|
||||
|
||||
Reference in New Issue
Block a user