Documentation

Lean.Server.Snapshots

One can think of this module as being a partial reimplementation of Lean.Elab.Frontend which also stores a snapshot of the world after each command. Importantly, we allow (re)starting compilation from any snapshot/position in the file for interactive editing purposes.

What Lean knows about the world after the header and each command.

Equations
  • s.endPos = s.mpState.pos
Equations
  • s.env = s.cmdState.env
Equations
  • s.msgLog = s.cmdState.messages
Equations
  • One or more equations did not get rendered due to their size.

Use the command state in the given snapshot to run a CommandElabM.

Equations
  • One or more equations did not get rendered due to their size.

Run a CoreM computation using the data in the given snapshot.

Equations

Run a TermElabM computation using the data in the given snapshot.

Equations