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.AreaComparison.Finite.LoopValueNet |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AreaComparison.Uniform.CloseLoopAnnuli |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.Theory |
| 4 | |
| 5 | /-! |
| 6 | # Finite small-annulus nets for every raw compact family |
| 7 | |
| 8 | The chosen parameter node works for every positive circumference below one |
| 9 | common cutoff. All annuli lie in the geometry's actual chosen product. |
| 10 | |
| 11 | Morgan--Tian context: Section 19.6, Lemmas 19.30-19.31, printed pp. 461-466. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT |
| 22 | |
| 23 | /-- Construct finite small-annulus nets with nodes chosen before every sufficiently small |
| 24 | circle circumference. Source: Auxiliary step for MT Section 19.6, pp. 461-462; project |
| 25 | construction in `proof-work/tasks/M64/reports/2026-09-24-finite-nets-closed.md`. -/ |
| 26 | theorem m64FamilyAnnulusNets_of_compact |
| 27 | {M : Type u} [TopologicalSpace M] [T2Space M] |
| 28 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 29 | {a b : ℝ} {F : RicciFlow 3 M (Icc a b)} |
| 30 | (G : M63AmbientGeometry F) (hcompact : IsCompact (univ : Set M)) : |
| 31 | M64FamilyAnnulusNets G := by |
| 32 | intro Gamma mu hmu |
| 33 | let e : Metric.sphere (0 : LoopAmbient) 1 ≃ₜ LoopTwoSphere := |
| 34 | Homeomorph.setCongr (by ext z; exact mem_sphere_zero_iff_norm) |
| 35 | let : CompactSpace LoopTwoSphere := e.compactSpace |
| 36 | obtain ⟨epsilon, hepsilon, hannuli⟩ := |
| 37 | m64_uniform_close_loop_canonical_annuli F a hcompact Gamma Gamma.continuous hmu |
| 38 | obtain ⟨k, nodes, hnodes⟩ := |
| 39 | m64_finite_loop_value_net (F.metric a) Gamma Gamma.continuous hepsilon |
| 40 | refine ⟨{ |
| 41 | node_count := k |
| 42 | nodes := nodes |
| 43 | circumference_cutoff := curvePeriod |
| 44 | cutoff_positive := Real.two_pi_pos |
| 45 | covers := ?_ }⟩ |
| 46 | intro z |
| 47 | obtain ⟨i, hi⟩ := hnodes z |
| 48 | exact ⟨i, fun circumference h hc => |
| 49 | hannuli z (nodes i) hi circumference (G.product circumference h) hc.le⟩ |
| 50 | |
| 51 | end PoincareMT |