Lean Workspace Quickstart
How to start the Lean workspace template, when to run make build and make tui, and when to use Reset workspace to template.
Lean Workspace Quickstart
Where you see this in the app
This guide applies when you choose the Lean + Lean-TUI Starter template for a post workspace.
The main surfaces are:
- the post
Workspacetab - the
Terminaltool - the
Helixtool
Recommended startup sequence
For the smoothest first run, use this order:
- Open
Terminal - Run
make build - Open
ProofWorkspace.leaninHelix - Make a small edit or trigger Lean info once if needed
- Return to
Terminaland runmake tui
This sequence ensures the Lean project dependencies are built first and the Lean editor state is active before Lean-TUI tries to follow it.
What each command does
| Command | What it does |
|---|---|
make build | Builds the sample Lean project and fetches Lean dependencies the first time |
make tui | Starts Lean-TUI and reuses the existing Lean package cache when it is already present |
You do not need a separate make setup step.
What to expect in Helix and Lean-TUI
Helix handles Lean editing and typechecking feedback.
Lean-TUI follows the active Lean editor state and shows proof or program state in the terminal. If it stays on Connecting to 127.0.0.1:9742..., go back to Helix, make an edit, and trigger Lean info once if needed.
Persistence between sessions
The workspace project stays mounted between sessions.
That means:
- your project files stay in the workspace
- the
.lakedependency cache stays in the workspace - later
make tuiruns should reuse the existing Lean dependencies instead of recloning them
When to use Reset workspace to template
Use Reset workspace to template only if you want to replace the current workspace project files with a fresh copy of the Lean starter.
Important details:
- it rewrites the workspace
/projectfiles - it keeps runtime data in
/data - it does not automatically close other users' sessions
If you only want future fresh sessions to use the Lean template, use Browse templates instead of reset.
Related docs
Related docs
See it in action
Previous
Workspace Templates, Pools, and Reset Behavior
How choosing a default template differs from resetting the current workspace project, and how pool changes affect the reset flow.
Next
Workspace Template Archive ZIP and Export Fidelity
How template ZIP archives are produced, what they preserve, and why advanced users should not assume the archive contains every ignored or controller-only file from a running workspace.