Files
NNG/test/induction.lean
2024-02-29 17:19:01 +01:00

34 lines
636 B
Lean4
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import Game.Tactic.Induction
import Game.MyNat.Addition
import Mathlib.Tactic.Have
import Mathlib.Tactic
example (a b : ) : a + b = a b = 0 := by
induction b with d hd
· /-
a :
⊢ a + 0 = a → 0 = 0
-/
sorry
· sorry
example (a b c : ) (g : c = 0) : a + b = a b = 0 := by
intro h -- h : a + b = a
induction b with d hd generalizing g
· /-
a b:
h✝ : a + b = a
h : a + 0 = a
⊢ 0 = 0
-/
sorry
· /-
case succ
a c d :
hd : c = 0 → a + d = a → d = 0
g : c = 0
h : a + MyNat.succ d = a
⊢ MyNat.succ d = 0
-/
sorry