Zulip Chat Archive

Stream: lean4

Topic: extract let in subexpression


James Gallicchio (Jan 23 2024 at 23:26):

I have this hypothesis in context:

h : (let vMap := ls_pre.vMap;  ...) = ls_post_pair

is there a tactic or clean way to extract this let as its own hypothesis?

James Gallicchio (Jan 23 2024 at 23:29):

extract_lets in particular expects hypotheses to have the let on the outside of the proposition/equality

Eric Wieser (Jan 23 2024 at 23:30):

Can you make a #mwe?

Eric Wieser (Jan 23 2024 at 23:31):

(does lift_lets exist?)

Eric Wieser (Jan 23 2024 at 23:31):

docs#Mathlib.Tactic.lift_lets !

James Gallicchio (Jan 23 2024 at 23:34):

that is perfect! thank you eric :)


Last updated: May 02 2025 at 03:31 UTC