Skip to content
ReviewRamble

The weekly brief

AI, reviewed, in your inbox.

  • New reviews of tools, models, MCP servers and repos, with the verdict up front
  • Re-checked prices and ratings when something changes
  • New analysis pieces as they are published

Models, agents, MCP servers and the tools actually worth your time.

One email a week. Unsubscribe with the link in any brief. How we use your email

TheoremOS

WestlakeNLP's Lean 4 workbench and agent runtime for maths research, which only counts a proof once Lean re-checks the original problem.

Reviewed by ReviewRamble editors · Updated

View on GitHub Open source

Share this page:XLinkedInFacebookRedditWhatsAppEmail

Our rating

3.6/5

TheoremOS gets the one thing that matters in AI maths right, since a proof only counts when Lean re-checks the original statement, but it is a two-month-old, largely one-person research project with almost no outside users yet.

What is TheoremOS?

TheoremOS is an open-source workbench and agent runtime for formal mathematics, built at WestlakeNLP, the natural language processing lab at Westlake University in Hangzhou. You pose a problem in natural language, TeX or a single Lean file; the system drafts a formal Lean 4 statement, shows you a blind back-translation so you can confirm it says what you meant, then runs model-driven proof attempts and keeps the statement, every candidate, the Lean diagnostics and the final check in one record.

The repository holds the web workbench, a CLI (bun run math) and a runtime split into five swappable TypeScript modules, M1 to M5, covering proof construction, evidence checks, search scheduling, context selection and team organisation. A separate acceptance step re-verifies the frozen original statement in a clean Lean environment; a model announcing success, or helper lemmas passing, does not count. The code is AGPL-3.0-only. Version 0.1.0 shipped on 15 October 2026, the repository was created on 8 October, and commits landed as recently as 2 December. It has 3 GitHub stars; the companion archive repository, which holds the website and 29 proof records under a rights-reserved licence, has 51.

A hosted workbench at app.theoremos.top is in an allowlist beta: the platform is free during the beta, and you bring an OpenAI key or a configured gateway, so your provider bills the model calls. A browser practice page replays a small exercise without an account or key.

Is TheoremOS worth it?

Language models are now good at announcing that a proof is complete, and Lean is how mathematicians find out whether it is. TheoremOS is built around that gap. Its acceptance step, S3 in the project's terms, recompiles the frozen original theorem in a clean environment and checks for leftover sorry placeholders; nothing a model says along the way counts. The browser practice replay shows the idea at toy scale: the first candidate proves n + 0 = n by rfl but fails on 0 + n = n, a repair with Nat.zero_add follows, and the final record lists a separate kernel check for each of the 2 goals.

The statement review is the more interesting design choice. Lean can only confirm that a proof matches the formal claim, not that the formal claim matches the question you had in mind, so TheoremOS back-translates the Lean statement without showing the model your original wording and asks you to confirm it before any proving starts. That catches the classic failure of a correct proof of the wrong theorem, at least when the reader of the back-translation is paying attention.

The results are real but need reading closely. The leanprover/lean-eval-submissions issues confirm the lab's passes on Lean-Eval targets, including 4 of 4 problems in submission #2144 (the sunflower lemma bounds, Lorentzian polynomials, the optimal paper Möbius band and an algebraic integers bound). The earliest, the unit conjecture in August 2026, was submitted as DeepScientist plus GPT-5.6, before this repository existed, so credit is shared with its predecessor. The IMO 2026 claim of 6 of 6 problems and 15 of 15 goals in 285.55 minutes with GPT-5.6 is a local check marked official: false, and the project's own notes say the timing excludes failed and abandoned attempts and is not a success rate.

The catch: this is a research codebase, not a product. One contributor accounts for 757 of the commits GitHub counts, against 2 from anyone else, the main repository has 3 stars, and our searches found no discussion on Hacker News, Reddit or the Lean Zulip, only directory listings the team filed itself. Self-hosting the workbench needs Linux, Docker Compose, /dev/fuse and about 30 GiB of disk per concurrent Mathlib run; the browser workbench handles single-file problems only, and multi-file Lake projects need a research collaboration with the lab. Hosted runs need approved beta access and your own key, and the budget defaults are muddled: the homepage quotes 10 minutes and 400,000 tokens for formalisation and 5 minutes and 200,000 tokens for proof, while the terms say new tasks are unlimited until you set caps. Either way, limits stop on reported usage, so in-flight requests can overshoot. The AGPL also matters if you plan to offer a modified version as a service.

Our take: for a Lean user who wants an AI proving loop with an honest audit trail, this is a thoughtful harness worth watching, and the zero-key replay is a cheap way to judge it before asking for beta access. For general AI-assisted research outside formal maths, the broader agent workbenches cover more ground.

Where it earns its place

  • A PhD student formalising lemmas for a thesis in Lean 4

    Get candidate proofs for routine lemmas without trusting the model's word

    Pose the lemma in TeX, confirm the back-translated Lean statement, set a 5-minute proof budget, then read the candidates and Lean diagnostics. Only a clean S3 pass on the original statement is marked accepted; model calls bill to your own key.

  • An AI-for-maths research group benchmarking proof strategies

    Compare search or context policies with everything else held fixed

    Scaffold a module with bun run math component init, swap it in for M3 or M4, and rerun on pinned revisions against the PutnamBench or First Proof adapters. Every attempt is archived for later analysis.

  • A maths lecturer teaching an introduction to Lean

    Show students what a failed proof, a repair and a kernel check look like

    Open the browser practice page, which replays the n + 0 = n and 0 + n = n exercise with separate checks per goal, with no account, key or local Lean install.

Before you commit

Setup
Local replay: clone the repo, bun install, install Lean 4.36.0 with elan, then bun run math example replay; it uses the standard library only and makes no model calls. Self-hosted workbench: Docker Compose on Linux with /dev/fuse. Hosted: request allowlist access, sign in with an email code and connect a key.
Integrations
Lean 4 and a pinned Mathlib; OpenAI or a configured gateway for models; Codex CLI for agent teams; adapters for Lean-Eval, PutnamBench and First Proof; GHCR images for the web, worker and TeX services.
Data and privacy
Hosted runs store your statement, settings, candidate sources, Lean checks and usage under your account, up to 20 run records; deleting the account removes live content at once, and private maintenance backups are kept for at most 7 days. Problems and source go to the model provider you choose. Keys are temporary by default or saved with AES-256-GCM encryption and are redacted from saved output; sign-in emails go through Alibaba Cloud DirectMail and traffic passes through a Cloudflare Tunnel.
Cost at scale
The software and the hosted beta are free; the cost is model usage on your key, billed even when a task fails or is cancelled. The homepage gives default budgets of 10 minutes and 400,000 tokens for formalisation and 5 minutes and 200,000 tokens for proof, the terms say tasks are unlimited until you set caps, and token limits are not a cap on your bill.
Limits
Web workbench takes single-file problems; custom dependencies, multi-file Lake projects or other toolchains need a collaboration with the lab. Archived success chains are not a zero-shot pass rate, and runs can exceed budgets while requests are in flight.

What’s good

  • Acceptance re-checks the frozen original statement in Lean; model claims never count
  • Blind back-translation lets you confirm the formal statement before proving starts
  • Lean-Eval passes verifiable in the public leanprover submissions repository
  • Zero-key local replay and browser practice page show the loop without an account
  • Five swappable M1 to M5 modules for reproducible strategy comparisons

What’s not

  • Almost entirely one developer's work, with 3 stars and no independent discussion found
  • IMO 2026 results are local checks marked official: false, timed on successful chains only
  • Self-hosting needs Linux, Docker, /dev/fuse and about 30 GiB per Mathlib run
  • Hosted workbench is allowlist-only and needs your own OpenAI or gateway key
  • Web workbench handles single-file problems; multi-file Lake projects need the lab

Best for

Lean 4 users and formal-maths researchers who want an AI proving loop where every result is re-verified against the original statement and every attempt is kept.

TheoremOS alternatives

Where it fits in the AI stack

TheoremOS: common questions

Is TheoremOS worth it?
TheoremOS gets the one thing that matters in AI maths right, since a proof only counts when Lean re-checks the original statement, but it is a two-month-old, largely one-person research project with almost no outside users yet. We rate it 3.6 out of 5.
How much does TheoremOS cost?
Free and open source under AGPL-3.0-only. The hosted workbench is free during its allowlist beta; you pay your model provider for API calls on your own key.
What are the downsides of TheoremOS?
Almost entirely one developer's work, with 3 stars and no independent discussion found; iMO 2026 results are local checks marked official: false, timed on successful chains only; self-hosting needs Linux, Docker, /dev/fuse and about 30 GiB per Mathlib run; hosted workbench is allowlist-only and needs your own OpenAI or gateway key; web workbench handles single-file problems; multi-file Lake projects need the lab.
Who is TheoremOS best for?
Lean 4 users and formal-maths researchers who want an AI proving loop where every result is re-verified against the original statement and every attempt is kept.
How much does TheoremOS cost for a team or in production?
The software and the hosted beta are free; the cost is model usage on your key, billed even when a task fails or is cancelled. The homepage gives default budgets of 10 minutes and 400,000 tokens for formalisation and 5 minutes and 200,000 tokens for proof, the terms say tasks are unlimited until you set caps, and token limits are not a cap on your bill.
Is TheoremOS safe for company data?
Hosted runs store your statement, settings, candidate sources, Lean checks and usage under your account, up to 20 run records; deleting the account removes live content at once, and private maintenance backups are kept for at most 7 days. Problems and source go to the model provider you choose. Keys are temporary by default or saved with AES-256-GCM encryption and are redacted from saved output; sign-in emails go through Alibaba Cloud DirectMail and traffic passes through a Cloudflare Tunnel.
What are the best TheoremOS alternatives?
The closest alternatives we have reviewed are The AI Scientist (v1, v2 and v3), Open Science Desktop and OpenResearch.

Answers checked Dec 2, 2026.