Zulip Chat Archive

Stream: lean4

Topic: printing the prover state after every tactic


Sid (Nov 18 2024 at 06:23):

Hi,

Is it possible to print the prover state after every tactic? I tried setting

set_option trace.compiler.ir.init true
set_option pp.all true

and running with

lean filename.lean

but that doesn't work and it doesn't print anything.

Yury G. Kudryashov (Nov 18 2024 at 07:06):

Why do you want this? If you want to talk to Lean from another program, then have a look at https://github.com/leanprover-community/REPL

Sid (Nov 18 2024 at 07:45):

Yury G. Kudryashov said:

Why do you want this? If you want to talk to Lean from another program, then have a look at https://github.com/leanprover-community/REPL

For some data generation but actually I realized that LeanDojo outputs goal information which might work.


Last updated: May 02 2025 at 03:31 UTC