I know that I need to import Mathlib
to make rewrite [x] at h
work. But induction a with d hd
still doesn't work with just import Mathlib
. This syntax does work in the natural number game, so I know it's possible to make it work.
What do I need to import to make this example work?
import Mathlib
theorem zero_add (n : ℕ) : 0 + n = n := by
induction n with d hd -- ERROR: unknown tactic
rw [add_zero]
rfl
rw [add_succ]
rw [hd]
rfl
In fact, what are all the imports used by the natural number game?
(Note: this is a follow-up to Why is lean 4 behaving differently on my machine vs in the natural number game?). It would also be acceptable to edit the answer there to include all the imports needed.