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.RicciFlow.Extinction.Width.Infimum.SphereCompactness |
| 2 | import PoincareLib.Geometry.Riemannian.LoopSpace.Area.Theory |
| 3 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Class.Theory |
| 4 | import Mathlib.Topology.Order.Compact |
| 5 | |
| 6 | /-! |
| 7 | # The maximum filling area of a sphere family |
| 8 | |
| 9 | Morgan--Tian Definition 18.17, printed p. 430: M60 filling continuity on |
| 10 | null loops and compactness of the parameter sphere identify the actual |
| 11 | real supremum with an attained nonnegative maximum. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | /-- M60's filling service gives the family maximum of Definition 18.17, p. 430. -/ |
| 23 | theorem m61FamilyWidth_from_M60 |
| 24 | {M : Type u} [TopologicalSpace M] |
| 25 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 26 | (g : RiemannianMetric 3 M) (P60 : M60FillingAreaProperties g) |
| 27 | (F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M))) |
| 28 | (hnull : M61NullFamily F) : M61FamilyWidthProperties g F := by |
| 29 | have hcontinuous : Continuous (fun c => fillingArea g (F c)) := |
| 30 | P60.continuous_on_null_loops.comp_continuous F.continuous hnull |
| 31 | obtain ⟨c, _, hc⟩ := isCompact_univ.exists_isMaxOn |
| 32 | (Set.univ_nonempty : (Set.univ : Set LoopTwoSphere).Nonempty) |
| 33 | hcontinuous.continuousOn |
| 34 | have hgreatest : IsGreatest (Set.range (fun c => fillingArea g (F c))) |
| 35 | (fillingArea g (F c)) := by |
| 36 | refine ⟨⟨c, rfl⟩, ?_⟩ |
| 37 | rintro _ ⟨d, rfl⟩ |
| 38 | exact hc (Set.mem_univ d) |
| 39 | have hwidth : m61FamilyWidth g F = fillingArea g (F c) := hgreatest.csSup_eq |
| 40 | exact |
| 41 | { area_continuous := hcontinuous |
| 42 | bounded_above := ⟨fillingArea g (F c), hgreatest.2⟩ |
| 43 | attained := ⟨c, hwidth.symm⟩ |
| 44 | nonnegative := hwidth.symm ▸ P60.nonnegative (F c) (hnull c) } |
| 45 | |
| 46 | end PoincareMT |