Weekly

News about Lean, the theorem prover and programming language.

Lean core, page 2

Lean releases, the compiler, tactics, Lake, Verso, libraries, kernels, and checkers. 170 items, newest first.

Lean core

Sebastian Ullrich proposes precomputed prefix trees to speed up Lean imports

The open pull request replaces hash maps of imported constants, built eagerly at import time, with per-module prefix trees precomputed when oleans are written and merged lazily on first access. The change cuts import Lean wall-clock time by 28% and Mathlib's import phase by 21%, in exchange for about 6% larger standard library oleans.

Checked against: lean4#14362

Lean core

Lean 4 merges libuv buffer fix and refactor from Sofia Rodrigues

The fix, merged October 14, makes send and recv fail with an invalid-argument error for buffers of 4 GiB or more, instead of letting the length wrap to 32 bits. The refactor, merged October 15, adds owned_ref, a helper that owns Lean objects and helps avoid hundreds of lean_inc and lean_dec in libuv code.

Checked against: lean4#15598lean4#15603

Lean core

Linux 7.3 works around AMD CPU bug behind Lean build segfaults

The FRO noticed probabilistic segfaults while compiling big Lean projects on certain AMD CPUs running Linux 6.15 or later, and reported them to the Linux kernel. Users of AMD Zen 5 CPUs on kernels 6.15 through 7.2 should consider kernel 7.3 and/or the latest AMD microcode, or, failing that, boot with the option tlbi=ipi.

Checked against: leanprover.zulipchat.comlore.kernel.org

Lean core

Lean now ships verified kernels (proof checkers) and a lake check command

Leo de Moura writes that AI agents are effective at finding vulnerabilities in Lean's kernel. Lean v4.35.0's lake check rechecks a project with leanchecker, the official Lean kernel without the baggage around it, and lake check --paranoid runs four additional kernels, including con-leche, the first kernel for Lean written in Lean and proven consistent.

Checked against: leodemoura.github.io

Lean core

Robert Joseph George, Will Adkisson, Anima Anandkumar present FloatLib for Lean 4

FloatLib is a verified arbitrary-precision floating-point arithmetic library in Lean 4 that unifies IEEE binary and decimal arithmetic, arbitrary-width posits, P3109, and user-defined formats and rounding rules. Every certified backend is proved equal to a complete encoded specification, and the library, proofs, and benchmarks are released as open source.

First page of the paper
Image: paperswithlean.com

Checked against: arXiv:2609.19352

Lean core

lazylean, a lazy-evaluation Lean kernel, competes in the Lean Kernel Arena

lazylean, a C++ type checker for Lean 4, hands computing terms to a Krivine machine with call-by-need thunks, after Coq's cClosure. The Lean Kernel Arena, which tests and benchmarks proof checkers for Lean, lists lazylean 0.3.0 alongside checkers such as tenet 0.11.1, lean4cobol and nanoclo-fortran.

Checked against: corun1024/lazyleanarena.lean-lang.org

Lean core

Keith Adler releases Lean Studio, a native desktop IDE for Lean 4

Lean Studio runs on macOS, Windows and Linux and re-checks every declaration from the compiled .olean files with Tenet, a separate implementation of Lean's type checker. Keith Adler's IDE also includes Prove It, which tries 17 tactics on any sorry at once, and an MCP server for AI assistants.

Checked against: keithadler/leanstudio

Lean core

Kim Morrison opens Mathlib PRs for certified root counting and sum-of-squares

Kim Morrison opened a Mathlib pull request adding real_root_count, which checks an untrusted Sturm chain from Hex and shrinks the Abel–Ruffini archive file from 175 to 127 lines. A second pull request adds the leanprover/sos sum-of-squares tactic, where CSDP serves as a search oracle outside the trusted base.

Checked against: mathlib4#43512mathlib4#42336

Lean core

Leo de Moura adds a polynomial arithmetic normalizer to Lean's Sym.simp

A series of merged Lean pull requests adds Sym.Arith.normalize?, which rewrites ring and semiring terms into polynomial normal form with a proof by reflection, and an arith simproc for Sym.simp that uses it. Later changes extend it to relations, ring characteristic, non-commutative rings, and some field rewrites, and grind's ring solver now shares Sym.Arith code.

Checked against: lean4#15292lean4#15279lean4#15293lean4#15295lean4#15297lean4#15298lean4#15190

Lean core

Leo de Moura prototypes on-demand commutation theorems for state operations

Leo de Moura's Commute repository combines a simproc (a metaprogram that simp calls on matching subterms) with realizable constants, so only the pairs proofs use are ever proved, avoiding a quadratic table of lemmas. A related Lean pull request by Sebastian Ullrich adds Environment.realizationEnvContains.

Checked against: leodemoura/Commutelean4#15237

Lean core

Lake gains a samply profiling command, copied path dependencies, and separate codegen

Kim Morrison's lake samply command records a CPU profile of a Lean executable and serves it to Firefox Profiler, and Mac Malone added a copy option for path dependencies and split leanir code generation into a separate Lake job. Mac Malone also published Nerodia, a work-in-progress library for Lean/Python FFI inspired by PyO3.

Checked against: lean4#12545lean4#15142lean4#14906lean4#15231nerodia.lean-lang.org

Lean core

Lean 4.34.0 fixes three kernel soundness issues found with AI testing

Lean 4.34.0, released 2026-09-14, fixes three soundness issues found with AI adversarial testing and adds defensive kernel checks. bv_decide gets integrated with sym and grind interactive modes and is up to six times faster, linters can carry state across commands, and lake lint gains a --code-quality mode emitting machine-readable JSON.

Checked against: v4.34.0 release notes

Lean core

Lean FRO and SAIR Foundation launch Stage 1 of Lean Kernel Challenge

The multi-stage competition seeks faster algorithms for verified computation (using the Lean kernel to check computational results in a proof) across eight problems, including Fibonacci, prime counting, Rule 110, and SHA-256. Entrants prove each algorithm matches its specification; submissions close November 20, 2026.

Lean Kernel Challenge submission verification and instruction count workflow
Image: competition.sair.foundation

Checked against: terrytao.wordpress.comcompetition.sair.foundation

Lean core

Joachim Breitner announces con-leche, a Lean checker proven consistent

con-leche is an external checker for Lean, proven in Lean never to accept a proof of False, implemented and proven by Claude (Fable and Opus) under heavy supervision by Joachim Breitner at the Lean FRO. On the FLT proof by Anthropic, it accepted 1,044,222 declarations in 2 h 22 min wall time.

Checked against: leanprover/con-lecheleanprover.zulipchat.com

Lean core

Arthur Adjedj proposes a renovation of the Lean kernel logic

A meta issue by Arthur Adjedj, worked out with @nomeata, plans kernel changes that move feature selection for inductives to the elaborator and aim for a decidable, transitive definitional equality algorithm. Recursive predicates like Acc would lose large elimination, and the kernel changes would ideally ship in a single release.

Checked against: lean4#14977

Lean core

Sebastian Ullrich logs build optimizations for Anthropic's Lean proof of Fermat's Last Theorem

On a 1,000-module slice, adopting the module system and import minimization cut task-clock to 3,268 s (down 63.1%) and wall-clock to 140 s (down 86.3%). Sebastian Ullrich also released the proof as a single 1.01 GiB .olean download that can be run through lean4export for external checkers.

Optimizing Anthropic's Lean proof of Fermat's Last Theorem - HackMD
Image: hackmd.io

Checked against: hackmd.iofermats-last-theorem export

Lean core

Lean publishes hex, an aggregator for verified computational algebra libraries

The leanprover/hex repository bundles the released hex libraries for verified computational algebra in Lean 4, including LLL lattice reduction, integer polynomial factorization, graph canonical labelling via a formalization of nauty, and algebraic numbers. Each computational library is Mathlib-free, with Mathlib correspondence proofs in separate theory libraries.

Checked against: leanprover/hex

Lean core

Lean FRO publishes con-ron, a Rust port of the con-leche checker

con-ron ports con-leche, an external Lean checker with a formal consistency proof, to Rust. It was written by AI under supervision from Joachim Breitner, and its Rust code is proven (partially) correct via an Aeneas-generated model, so checking a proof with both tools guards against compiler or runtime bugs.

Checked against: leanprover/con-ron

Lean core

Lean runtime now compiles mimalloc in and trims elaboration overhead

Julia Markus Himmel merged a change that compiles mimalloc as part of the Lean runtime, and Sebastian Ullrich moved rarely-updated Core.Context fields into a cold subobject (mathlib4: -0.82% instructions, -2.03% wall-clock). Lean also updated to mimalloc 3.4.5, fixing a Windows memory leak, and CI changes should halve merge queue run times.

Checked against: lean4#15017lean4#14982lean4#15060lean4#15123

Lean core

Wojciech Nawrocki adds an HTML type and HTML-like syntax to Lean

Two merged pull requests add Lean.Data.Html, a type of HTML forests aimed primarily at authoring HTML, with a renderer that produces a String, plus HTML-like syntax with an elaborator into that type. Companion downstream-lean4 pull requests adopt the type and syntax throughout supported packages.

Checked against: lean4#14935lean4#15002

Lean core

Arthur Adjedj opens meta issue planning a renovation of Lean's kernel logic

Arthur Adjedj's plan aims for a kernel that is easier to implement bug-free and to verify, with a decidable, transitive definitional equality algorithm and inductive features declared explicitly by the elaborator. Recursive predicates like Acc would lose large elimination, and kernel changes would ship in a single release.

Checked against: lean4#14977

Lean core

Alex Meiburg adds eink0rn, a Haskell Lean 4 kernel, to the arena

Alex Meiburg's eink0rn, a clean-room Lean 4 kernel in Haskell generated mostly by Claude, was merged into the Lean Kernel Arena, which tests and benchmarks proof checkers for Lean. In the current round it answers all 72 invalid and 136 valid tests correctly and checks the mathlib test in 28.4 minutes.

Checked against: lean-kernel-arena#177arena.lean-lang.org

More news