Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

build #660
Log
Raw
$ lake build Note: This linter can be disabled with `set_option linter.unusedVariables false` warning: PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/OriginalBridgeReversal.lean:152:5: Variable name `hbound` is not explicitly referenced. Hint: The binding can be removed (if unused) or named `_` (if used implicitly). Alternatively, prefix the name with `_` to silence this warning: [apply] _hbound Note: This linter can be disabled with `set_option linter.unusedVariables false` ⚠ [31993/32092] Replayed PoincareLib.Topology.Manifold.Smoothing.Rigidity.Surfaces.Cuts.OriginalBridgeScalarCharts warning: PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/OriginalBridgeScalarCharts.lean:33:28: Variable name `hαβ` is not explicitly referenced. Hint: The binding can be removed (if unused) or named `_` (if used implicitly). Alternatively, prefix the name with `_` to silence this warning: [apply] _hαβ Note: This linter can be disabled with `set_option linter.unusedVariables false` ⚠ [32002/32092] Replayed PoincareLib.Topology.Manifold.Smoothing.Rigidity.Surfaces.Cuts.OriginalPeriodicSquareMap warning: PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/OriginalPeriodicSquareMap.lean:55:2: Try this: letI̵ The goal is a proposition, so `let` is preferred over `letI`. The difference between `let` and `letI` is that `letI` inlines the value. But this is not relevant for proofs because of proof irrelevance. Note: This linter can be disabled with `set_option linter.style.haveILetI false` Build completed successfully (32265 jobs). -- 7 s $ lake build PoincareConjecture PoincareLib Challenge Solution Hint: The binding can be removed (if unused) or named `_` (if used implicitly). Alternatively, prefix the name with `_` to silence this warning: [apply] _hbound Note: This linter can be disabled with `set_option linter.unusedVariables false` ⚠ [31993/32263] Replayed PoincareLib.Topology.Manifold.Smoothing.Rigidity.Surfaces.Cuts.OriginalBridgeScalarCharts warning: PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/OriginalBridgeScalarCharts.lean:33:28: Variable name `hαβ` is not explicitly referenced. Hint: The binding can be removed (if unused) or named `_` (if used implicitly). Alternatively, prefix the name with `_` to silence this warning: [apply] _hαβ Note: This linter can be disabled with `set_option linter.unusedVariables false` ⚠ [32002/32263] Replayed PoincareLib.Topology.Manifold.Smoothing.Rigidity.Surfaces.Cuts.OriginalPeriodicSquareMap warning: PoincareLib/Topology/Manifold/Smoothing/Rigidity/Surfaces/Cuts/OriginalPeriodicSquareMap.lean:55:2: Try this: letI̵ The goal is a proposition, so `let` is preferred over `letI`. The difference between `let` and `letI` is that `letI` inlines the value. But this is not relevant for proofs because of proof irrelevance. Note: This linter can be disabled with `set_option linter.style.haveILetI false` ⚠ [32266/32269] Replayed Challenge warning: Comparator/Challenge.lean:26:8: declaration uses `sorry` warning: Comparator/Challenge.lean:29:8: declaration uses `sorry` Build completed successfully (32269 jobs). -- 7 s $ lake env lean /tmp/build-2ro2___r/solve/ShoalAxioms.lean 'PoincareConjecture.ComparatorTargets.smoothPoincareSkeleton' depends on axioms: [propext, Classical.choice, Quot.sound] 'PoincareConjecture.ComparatorTargets.topologicalPoincareSkeleton' depends on axioms: [propext, Classical.choice, Quot.sound] -- 9 s ok: lake build passes with no sorry; 2 theorem(s) report propext, Classical.choice, Quot.sound only; not replayed: Comparator judges this project once per maintainer round
Resources--partition=lean --time=12:00:00 --cpus-per-task=4 --mem=24576M
Submit directory(the project root)
Approved versionc87b4a2
Resultok: lake build passes with no sorry; 2 theorem(s) report propext, Classical.choice, Quot.sound only; not replayed: Comparator judges this project once per maintainer round
Batch script
#!/bin/bash
#SBATCH --job-name=lake-build
#SBATCH --partition=lean
#SBATCH --time=12:00:00
#SBATCH --cpus-per-task=4
#SBATCH --mem=24G
# lake build (upstream's build.yml), the sorry gate and the axioms the commit's own Lean reports, on the pushed commit
# ($SS_INPUT), in the project's Lean image (docker/) with no network. The approved checks/build.py and checks/build.json
# say what is run; the image holds the toolchain, the dependencies and a build of the approved main, and the commit is
# compiled on top of it in place, so only what the commit changed is rebuilt. Comparator does not run here ("replay":
# "round" in build.json): its replay of the whole proof is hours, and the maintainers run it once a round and file it
# as the `replay` report. Logs go beside the job's output.
#
# Measured on production, 12-02 (reports: lean-poincare.md), at 4 CPUs: main 147 s, 2 GB; a comment, a proof or a new
# lemma in one file, 1 to 4 minutes, 4 GB at most. A change Lake must carry through many modules costs about 12
# CPU-seconds each: 1,587 modules about 80 minutes here (41 at 8 CPUs, 30 at 16, 21 GB); the file most imported
# (15,578 modules) would not finish in the time limit at 4 CPUs.
set -euo pipefail
BUILD_LOGS="$PWD/logs" python3 -I checks/build.py "$SS_INPUT" checks/build.json