An open-source workbench
for mathematicians and agents
to collaborate.

Glitnir defines a new notebook format for Lean to help mathematicians work better with agents. It comes with an open-source workbench and a harness for swarms of coding agents.

Lean sourceGlitnir notebookYour coding agent
VS Code with Lean source on the left, the rendered Glitnir notebook in the middle, and a coding agent on the right
Lean source, the rendered notebook and a coding agent in VS Code. Review the agent’s changes and inspect the proofs.

Review and develop
proofs together.

Work with your coding agent on the same Lean file. Read its explanations, inspect its changes and check its claims from the rendered notebook.

A notebook extension for Lean

Glitnir’s notebook format lets agents present a clear mathematical narrative alongside Lean definitions and proofs, with embedded visualizations, simulation results and other artifacts.

The extra notebook syntax lives inside Lean comments. Lean compiles and checks the file as usual, while Glitnir renders the narrative, code and embedded content as a notebook from the same .lean file.

Read the specification
Hello.lean Minimal notebook example
/-! # A first notebook

Explain the idea, then give its proof.
-/

theorem hello : True := by
  trivial
Markdown comments and Lean code in one file.

Read notebooks and check proofs

Open a notebook beside its source. Follow live updates from your agents, jump between prose and code, explore proof steps and check saved claims independently with Lean.

Read the extension guide

Give your agent the notebook format

Install the notebook authoring skill for Codex, Claude Code or another coding agent. The skill describes the notebook format, how to explain proofs and how to check claims.

Read the agent skill

View models and simulation results

Display graphical views, simulation outputs and other artifacts in a notebook. The optional Forseti plugin provides visualizations and simulations for supported Lean models.

Read about the Forseti plugin

Inspect claim status and assumptions

See which claims have been checked, which proofs are unfinished and which assumptions they use. Simulation results provide evidence for conjectures; Lean checks whether the proofs establish their claims.

Read about claim checking

Agent swarms
and distributed compute.

Coordinate coding agents on one mathematical problem. Keep their findings in shared memory and write their arguments as Glitnir notebooks.

Agent swarms with shared memory

Assign different approaches to agents, share notes and save findings as they work. Agents can read each other’s results and contribute to the same mathematical problem.

Compute for proofs and simulations

Submit Lean verification and simulation jobs to distributed compute yourself or through an agent. Agents can continue working on proofs while those jobs run.

Public signup for hosted swarms and compute is not open.Glitnir on GitHub

Install Glitnir

Install the extension, open a Lean notebook and set up your coding agent with the authoring skill.

Install Glitnir for VS Code

Setup needs uv and Python; checking needs compatible Lean.
See installation requirements