Zulip Chat Archive

Stream: lean4

Topic: Extract proof script with metaprogramming


Adam Topaz (Mar 25 2023 at 12:06):

I would like to have some method of extracting the proof script used to prove a lemma (assuming it was proved using tactics), say with a given name `name, in some way. Unfortunately, I don't even know where to start. Is this possible to do with metaprogramming somehow? I thought that this was discussed at some point recently, but I can't seem to find this discussion.

Sebastian Ullrich (Mar 25 2023 at 12:52):

The input syntax is discarded after elaboration, you would have to drive processing of the file yourself like how LeanInk does it

Adam Topaz (Mar 25 2023 at 12:52):

Ah! Good point! I didn't think about looking at leanink. I will do that, thanks!


Last updated: Dec 20 2023 at 11:08 UTC