I'm trying to prove a theorem, and to do so I have to prove a lemma about a function I define during the proof. The issue is that I would like to unfold the definition of the function, but I get an error when I try to use the delta or unfold tactics.
I've reproduced the issue in this snippet:
example : True := by
let F : ℕ→ℕ := λ _ => 0
have F_le_1 : ∀(n:ℕ), F n ≤ 1 := by
intro n
delta F
At this point, I get the error unknown constant '_root_.F'.
What am I missing?
(I should add that I don't get the same error if I define the function outside of the theorem, but I would prefer to know what I'm overlooking, rather than just patching up the problem).
You can use
showstatements instead:In fact, you can prove these propositions without
showstatements.