Zulip Chat Archive

Stream: Is there code for X?

Topic: forgetting hypothesis definition


Timothy Gu (Dec 10 2022 at 06:28):

:wave: Is there an easy tactic to forget the definition of a hypothesis? Suppose I have h : ℕ := 0 in the proof state but I'd like it to become just h : ℕ. I've been using generalize : h = h, which works but seems a little clunky. (This is in Lean 3.)

Reid Barton (Dec 10 2022 at 07:27):

tactic#clear_value

Timothy Gu (Dec 10 2022 at 07:29):

Thanks!


Last updated: Dec 20 2023 at 11:08 UTC