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.Riemannian.LoopSpace.Area.Theory |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Class.Theory |
| 3 | |
| 4 | /-! |
| 5 | # M61 checked sphere and short-family consequences |
| 6 | |
| 7 | Morgan--Tian Lemma 18.10, pp. 424-426, supplies the sphere minimum through |
| 8 | M60. Definition 18.17, p. 430, and corrected Corollary 18.28, p. 434, give |
| 9 | the short-family bound at its actual maximizing parameter. These adapters |
| 10 | retain the same metric, area functional and M60 short-loop threshold. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | /-- M60's positive threshold and branched minimizer identify the actual |
| 22 | infimum over all C1 non-null sphere maps. -/ |
| 23 | theorem m61SphereWidth_from_M60 |
| 24 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 26 | (g : RiemannianMetric n M) (P60 : M60LeastSphereAreaConclusion g) : |
| 27 | M61SphereWidthProperties g := by |
| 28 | obtain ⟨e₀, he₀, hsmall, f, hminimal, hnonnull, harea⟩ := P60 |
| 29 | have hleast : IsLeast (m61SphereAreaRange g) e₀ := by |
| 30 | refine ⟨?_, ?_⟩ |
| 31 | · exact ⟨f, hminimal.smooth.of_le (by simp), hnonnull, harea⟩ |
| 32 | · rintro a ⟨h, hregular, hnontrivial, rfl⟩ |
| 33 | exact le_of_not_gt (fun hlt => hnontrivial (hsmall h hregular hlt)) |
| 34 | have hwidth : m61SphereWidth g = e₀ := hleast.csInf_eq |
| 35 | refine ⟨?_, ?_, f, hminimal, hnonnull, harea.trans hwidth.symm⟩ |
| 36 | · simpa only [hwidth] using he₀ |
| 37 | · simpa only [hwidth] using hleast |
| 38 | |
| 39 | /-- Apply M60's unchanged short-loop threshold to the maximizing member of |
| 40 | the displayed raw null family. -/ |
| 41 | theorem m61ShortFamilyWidth_from_M60 |
| 42 | (core : M61RawWidthCore.{u}) (shortLoop : M60ShortLoopAreaClaim.{u}) : |
| 43 | M61ShortFamilyWidthClaim.{u} := by |
| 44 | intro M _ _ _ _ _ g hcompact eta heta |
| 45 | obtain ⟨zeta, hzeta, hzetabound, hsmall⟩ := shortLoop g hcompact eta heta |
| 46 | refine ⟨zeta, hzeta, hzetabound, ?_⟩ |
| 47 | intro F hnull hlength |
| 48 | obtain ⟨c, hc⟩ := (core.family g hcompact F hnull).attained |
| 49 | obtain ⟨_, _, _, harea⟩ := hsmall (F c) (hlength c) |
| 50 | rw [← hc] |
| 51 | exact harea |
| 52 | |
| 53 | end PoincareMT |