Zulip Chat Archive

Stream: general

Topic: tactic for extracting the current tactic state into theorem


Frederick Pu (Feb 18 2025 at 23:46):

is there a tactic for automatically extracting the current tactic state into a theorem declaration?

Damiano Testa (Feb 18 2025 at 23:47):

There is extract_goal, but a code-action for creating a stand-alone declaration has not yet been written.

Frederick Pu (Feb 19 2025 at 03:33):

on similar note is there good way making lean metaprogram that takes a lean file and inlines all the theorems except the last theorem as a have statements in the last theorem

Matt Diamond (Feb 19 2025 at 04:26):

I don't have the answer but that sounds like a metaprogram that does the exact opposite of what people normally advise... what's the use case?


Last updated: May 02 2025 at 03:31 UTC