Zulip Chat Archive

Stream: lean4

Topic: Apply an assumption which doesn't match the goal exactly


Son Ho (Nov 03 2023 at 14:15):

I have a goal which looks like this:

h : P x
--------
P y

I can prove that x = y with a single tactic call, but the terms are a bit big so it is annoying to write an have : x = y ... by hand. Instead, I would like to do something like apply h and get as a subgoal x = y. Is there a tactic which does something like this?

Yaël Dillies (Nov 03 2023 at 14:15):

convert h using some_small_number

Son Ho (Nov 03 2023 at 14:18):

Perfect, thanks!


Last updated: Dec 20 2023 at 11:08 UTC