Zulip Chat Archive
Stream: Berkeley Lean Seminar
Topic: Induction on new variable
Thomas Browning (May 26 2020 at 20:43):
If my goal is x and I have a hypothesis h, is there a way to turn the goal into h -> x ?
Patrick Lutz (May 26 2020 at 20:44):
This doesn't exactly answer your question, but you could first use have h' : h \to x
and then supply a proof and then exact h' h
Patrick Lutz (May 26 2020 at 20:45):
well, more like have h' : A \to B
where A
and B
are the types of h
and x
Patrick Lutz (May 26 2020 at 20:45):
but maybe there's a better way to do it
Pedro Minicz (May 26 2020 at 20:53):
You can use revert h
, this will eliminate the hypothesis from the context and "add" it to the goal.
Last updated: Dec 20 2023 at 11:08 UTC