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

| 1 | import PoincareLib.Geometry.CurveShortening.Comparison.PolygonApproximation.Uniform.CompactApproximation |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.PolygonApproximation.Uniform.RawFamily |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.PolygonApproximation.Static.TheoryAssembly |
| 4 | |
| 5 | /-! |
| 6 | # The closed static approximation theory |
| 7 | |
| 8 | The pointwise polygon construction and the two uniform all-count producers |
| 9 | fill the frozen static record on a compact smooth Riemannian three-manifold. |
| 10 | |
| 11 | Morgan--Tian context: Section 19.4, Definition 19.18 and Claims 19.19-19.22, printed pp. |
| 12 | 450-453. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | /-- Construct the complete static approximation theory on the supplied compact target. |
| 25 | Source: Auxiliary step for MT Definition 19.18 and Claims 19.19/19.22, pp. 450-453; project |
| 26 | construction in `proof-work/tasks/M64/reports/2026-09-23-static-polygon.md`. -/ |
| 27 | theorem m64StaticApproximationTheory_of_compact |
| 28 | {M : Type u} [TopologicalSpace M] [T2Space M] [SecondCountableTopology M] |
| 29 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 30 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g) |
| 31 | (hcompact : IsCompact (univ : Set M)) : |
| 32 | M64StaticApproximationTheory g D := |
| 33 | m64StaticApproximationTheory_of_suppliers hcompact |
| 34 | (fun X hX _zeta hzeta => m64_uniform_compact_approximation g D hcompact X hX hzeta) |
| 35 | (fun Gamma hnull _zeta hzeta => m64_uniform_raw_family g D hcompact Gamma hnull hzeta) |
| 36 | |
| 37 | end PoincareMT |