Zulip Chat Archive

Stream: lean4

Topic: Can a generalize equality hypothesis be converted into a let


Malcolm Langfield (Dec 26 2023 at 14:01):

When you generalize h : _ = x, you get an equality h, which can then be inlined into your proof whenever you like, with subst h. Is it possible to convert h into a let binding? If x occurs in many places in the target, and the LHS of h is quite large, this crowds up the infoview a lot and I'd like to avoid that if possible.

Yaël Dillies (Dec 26 2023 at 14:03):

Do you know about tactic#set ?

Malcolm Langfield (Dec 26 2023 at 14:07):

Oh I think maybe that's exactly what I want, thanks!


Last updated: May 02 2025 at 03:31 UTC