Zulip Chat Archive

Stream: lean4

Topic: Run the `CoreM` monad from frontend


Hanting Zhang (Dec 04 2022 at 17:44):

I know that Lean.Elab.runFrontend can run the entire frontend on a file and give you back the environment after processing it. Is there anything that runs the frontend and gives you the CoreM state after processing the file?

I'm asking because I want to run Lean.Compiler.compile from a main function to give me the results of compiling another file. But I can't actually create a CoreM environment to do so...


Last updated: Dec 20 2023 at 11:08 UTC