Weekly

News about Lean, the theorem prover and programming language.

Lean core, page 3

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

Lean core

Lean FRO publishes six-month roadmap for September 2026 to February 2027

The roadmap covers lake check commands for external kernel checking, a code formatter, Nerodia (a Lean/Python FFI inspired by PyO3), and faster typeclass inference. It also covers the FRO's AI projects Tau Ceti, Hex, and Palomar, and defers investment in debugger infrastructure.

Checked against: lean-lang.org

Lean core

Sebastian Ullrich fixes reference count overflow that could enable a proof of False

A merged Lean 4 pull request freezes objects whose 32-bit reference count overflows, preventing a use-after-free in the official kernel. The new logic is validated with a transliteration of its core to Lean followed by correctness proofs in a test file. Daniel Selsam (OpenAI) reported the issue using internal models.

Checked against: lean4#14838

Lean core

SAIR Foundation and Lean FRO announce the Lean Kernel Challenge competition

The competition asks participants to improve the performance of verified computation in the Lean 4 kernel (the trusted component that checks every proof accepted by Lean) with optimized implementations and machine-checked proofs of correctness. Stage 1 pre-registration is open, with the official launch on September 15, 2026.

Checked against: @Leonard41111588 on XLinkedIn post

Lean core

Lean 4 redefines Decidable as a Bool paired with a proof

A pull request by Robin Arnez, merged on 2026-08-20, changes Decidable p to a structure containing a Bool and a proof of either p or ¬p, giving more definitional equalities and letting the decide tactic stop carrying proofs. The breaking change was possible now that the new compiler is enabled.

Checked against: lean4#8309

Lean core

Lean adds leanchecker-paranoid and lake challenge; Joachim Breitner releases inductive models

Sebastian Ullrich merged leanchecker-paranoid, a variant of leanchecker built with allocator hardening, and lake challenge, a frontend to comparator that simplifies its setup. Joachim Breitner's lean-inductive-models performs translation validation of user-defined Lean inductives into an extensional type system with a small hard-coded inductive basis.

Checked against: lean4#14885lean4#14884nomeata/lean-inductive-modelsarena.lean-lang.org

Lean core

Renaissance Philanthropy runs the CSLib Initiative to support CSLib's growth

The CSLib Initiative, a program of Renaissance Philanthropy, supports the growth of the CSLib open-source project (a focused effort on formalizing computer science in Lean) in the same way that the Mathlib Initiative supports Mathlib. Its site lists a team, a Strategic Advisory Board, and a roadmap of operational goals guiding its funding.

CSLib
Image: cslib.io

Checked against: cslib.io

Lean core

Sebastian Graf moves VERINA contracts onto programs and names verification-condition variables

Two merged Lean pull requests by Sebastian Graf state each VERINA program's requires, ensures and loop invariants on the definition itself, for all 27 programs. A second pull request names a verification condition's variables after the program (acc, x instead of b✝), so proofs no longer need rename_i.

Checked against: lean4#14759lean4#14590

Lean core

Lake now fetches dependencies as treeless partial Git clones

A merged pull request by Mac Malone makes Lake fetch dependencies as treeless partial Git clones of a single revision, minimizing the amount of data downloaded. One caveat: Git operations inside a dependency, such as a git blame triggered by a VSCode extension, can cause lazy fetches.

Checked against: lean4#14782

Lean core

Lean adds strong coinduction principles and a monotonicity_by clause for predicates

Wojciech Różowski merged a Lean pull request that generates strong_coinduct for coinductive_fixpoint predicates, strengthening coinduct, plus strong_induct for inductive_fixpoint ones. A second merged pull request adds a monotonicity_by clause so users can prove monotonicity of the underlying fixpoint functor with an explicit tactic block when automatic proof search fails.

Checked against: lean4#14855lean4#14861

Lean core

Lean 4.33.0 released with editor, tactic, Float, and kernel changes

Lean 4.33.0, published 2026-08-10, makes the editor more responsive, lets try? propose proofs on its own, improves the lia and grind tactics, and stops Float from being an opaque type. It also fixes kernel soundness bugs and enables backward.isDefEq.respectTransparency.types by default, the change most likely to need attention when porting.

Checked against: v4.33.0 release noteslean4 v4.33.0

Lean core

Kim Morrison releases an integer polynomial factorization library for Lean

The library, part of Hex, the computer algebra library for Lean, includes tactics for factorizing and irreducibility and implements van Hoeij's knapsack method, which according to Kim Morrison has never previously been formally verified. It builds on hex-lll, whose theory package proves that both lattice reducers satisfy their reducedness and lattice-preservation contracts.

Image: linkedin.com

Checked against: LinkedIn postleanprover/hex-lll

Lean core

Guide explains how to validate and report Lean kernel soundness bugs

A "Kernel bug hunt" document explains what counts as a Lean kernel soundness bug and how to validate a candidate before reporting it, using lake check, comparator (the validation tool) or its web interface. Starting with Lean v4.35.0, the distribution bundles four additional kernels, two of them formally verified.

Kernel bug hunt - HackMD
Image: hackmd.io

Checked against: hackmd.io

Lean core

Sebastian Graf extends Lean's def contracts and vcgen loop verification

Merged pull requests let repeat and while loops state the invariant and termination measure that vcgen needs, so a loop inside a def with a contract verifies without manual proof steps. Other changes allow match alternatives in ensures clauses, invariants on destructuring for loops, and type ascriptions on contract binders.

Checked against: lean4#14703lean4#14701lean4#14682lean4#14686lean4#14669lean4#14685

Lean core

Paul Reichert fixes instance search seeing through type synonyms in Lean

Paul Reichert's merged PR ensures that, during instance search, metavariables for instance-implicit arguments are only assigned values of the expected type, fixing an issue Sebastien Gouezel hit while formalizing Riemannian metrics in Mathlib. A preparatory PR brought a clear performance improvement with no Mathlib breakage observed. Affected Mathlib declarations were fixed with a backward compatibility option.

Checked against: lean4#14624lean4#14583lean4#9077

Lean core

Lean releases Nerodia, a library for writing Python modules in Lean

Nerodia, a Lean/Python FFI library inspired by PyO3, uses Lake, Lean's build system, to build native Python modules in pure Lean and generates type stubs automatically. It is a work-in-progress with a very limited API, released primarily as a proof-of-concept and to obtain feedback on its design and build process.

Checked against: leanprover/nerodia

Lean core

Leo de Moura adds a lift_lets tactic for Lean's sym => mode

The merged pull request moves let/have declarations of the goal toward the root as far as dependencies allow. The new Sym.liftLets implementation is near-linear in the DAG size of the input term, running 680x faster than Meta.liftLets on a chain of 4000 lets and taking 85 ms for 32000.

Checked against: lean4#14768

Lean core

bv_decide solves 2401 of 2540 benchmarks at SMT-COMP 2026

In the QF_Bitvec division of the SMT-COMP 2026 Single Query Track, bv_decide reached a correct score of 2401 with zero errors, ahead of cvc5 at 2375 and Z3-GEX at 2229. Bitwuzla-MachBV led the division with 2495.

Checked against: smt-comp.github.io

Lean core

Sebastian Graf extends Lean's def contracts with requires and assert

Merged Lean pull requests by Sebastian Graf name the precondition clause of a def contract requires, pairing with ensures, let requires and invariant bind assertion arguments such as a state monad's state, and add an assert element to do notation that vcgen proves as a verification condition while doing nothing at runtime.

Checked against: lean4#14602lean4#14589lean4#14603lean4#14614

Lean core

Lean speed site charts Mathlib build instructions across 25,000 commits

A graph on speed.lean-lang.org tracks mathlib4 build instructions over 25,000 commits, scaling older values to line up with newer ones across the move from the old speedcenter to radar and the switch to measuring only userspace instructions. Dashed lines mark the 90 toolchain bumps.

Checked against: speed.lean-lang.org

Lean core

Patrick Hulin reports a kernel check gap allowing a proof of False

In leanprover/lean4#14484, Patrick Hulin reports that the kernel does not reject free variables in opaque declaration bodies, letting an adversarial metaprogram prove False with no axiom dependencies. The report, largely generated with AI, suggests applying the closure check used for definitions and theorems, and the issue is now closed.

Checked against: lean4#14484

Lean core

Sebastian Ullrich proposes prefix trees in oleans to speed up Lean imports

An open pull request by Sebastian Ullrich replaces hash maps built at import time with per-module prefix trees precomputed when oleans are written, cutting import Lean wall clock by 28% and mathlib's import phase by 21%, for about 6% larger stdlib oleans. A separate pull request by Sebastian Ullrich upgrading Lean to mimalloc 3 was merged.

Checked against: lean4#14362lean4#7786

More news