∴LeanProofs
Evidence-backed answer · Updated 25 November 2026

Can you write and check Lean 4 proofs in a browser without installing Lean locally?

What works today in browser WebAssembly, what was actually verified on LeanProofs, and where you still need a local Lean 4 and Mathlib setup.

Direct answer

Yes—for single-file, core-library Lean 4 proofs and beginner exercises. LeanProofs runs a self-hosted WebAssembly Lean runtime directly in your browser with no account or local elan/lean installation, after an initial ~75 MB download. It returns real compiler diagnostics and checked-snapshot cursor goals, while full Mathlib imports, live LSP autocomplete/hover, and independent exercise certification are not yet available in the browser.

Author: LeanProofs engineering & editorial · First-party verification recorded 25 November 2026 · Bilingual guide (简体中文版)

Verifiable evidence (first-party checks on 25 November 2026)

Browser WASM vs. local Lean 4 installation

CapabilityLeanProofs browser WASMLocal official Lean 4 + Mathlib
Setup & installZero local install; ~75 MB initial download in browserInstall elan, VS Code Lean 4 extension, and project toolchain
Compiler & librariesPinned third-party cauli fork; core library only (no Mathlib)Official Lean 4 releases (e.g. 4.33.1) + full Mathlib cache
Goals & editor feedbackReal diagnostics + cursor goal snapshot after clicking CheckContinuous live LSP, hover types, tactic info view, multi-file
Verification boundaryCompilation feedback only; no visitor exercise certificationSupports local #print axioms and official comparator validation
Verified environmentsDesktop Chromium (mobile compilation & Safari not yet verified)macOS, Linux, and Windows desktops/servers

Who it is for—and who should install Lean locally

Good fit for browser Lean 4

  • Beginners learning core Lean 4 syntax, types, equality rewrites, logic, quantifiers, and basic induction without installing elan.
  • Developers and math readers testing short single-file proofs (≤ 20 KB) on desktop Chromium with real compiler feedback.
  • Learners stepping through Lesson 1 with an optional AI tutor whose edits are always checked by the Lean compiler itself.

Not a fit (use local Lean instead)

  • Anyone needing Mathlib imports, multi-file Lake projects, or real-time LSP hover and completion.
  • Formal verification or graded exercise certification of untrusted submissions (browser compilation does not verify fixed targets or axioms).
  • Slow connections where a ~75 MB cold download times out, low-memory mobile devices, or Safari browser compilation.

Honest limitations

Compilation without errors in the browser does not prove that your statement matches a fixed exercise target, that no sorry or custom axioms were introduced, or that the formal statement matches human mathematical intent. Independent mathematical review of the 10 teaching proofs remains pending, and cold ~75 MB runtime downloads can take several minutes on constrained networks.

Primary sources & next steps