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.FamilyMaximum |
| 2 | |
| 3 | /-! |
| 4 | # The infimum over free representatives |
| 5 | |
| 6 | Morgan--Tian Definition 18.17, printed p. 430, uses all continuous null |
| 7 | sphere families freely homotopic to the anchor. This nonempty range is |
| 8 | bounded below by zero and has epsilon near-minimizers. Homotopic anchors |
| 9 | have identical ranges; no minimizing family or based restriction is added. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | variable {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 22 | |
| 23 | /-- Definition 18.17, p. 430: a free homotopy preserves the full competitor range. -/ |
| 24 | theorem m61FreeClassWidthRange_eq_of_homotopic (g : RiemannianMetric 3 M) |
| 25 | {F G : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M))} |
| 26 | (hFG : F.Homotopic G) : |
| 27 | m61FreeClassWidthRange g F = m61FreeClassWidthRange g G := by |
| 28 | ext w |
| 29 | constructor |
| 30 | · rintro ⟨H, hnull, hFH, hwidth⟩ |
| 31 | exact ⟨H, hnull, hFG.symm.trans hFH, hwidth⟩ |
| 32 | · rintro ⟨H, hnull, hGH, hwidth⟩ |
| 33 | exact ⟨H, hnull, hFG.trans hGH, hwidth⟩ |
| 34 | |
| 35 | /-- M60's filling service gives the free-class infimum properties of |
| 36 | Definition 18.17, p. 430, with epsilon approximants and unchanged raw competitors. -/ |
| 37 | theorem m61FreeClassWidth_from_M60 (g : RiemannianMetric 3 M) |
| 38 | (P60 : M60FillingAreaProperties g) |
| 39 | (F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M))) |
| 40 | (hnull : M61NullFamily F) : M61FreeClassWidthProperties g F := by |
| 41 | have hnonempty : (m61FreeClassWidthRange g F).Nonempty := |
| 42 | ⟨m61FamilyWidth g F, F, hnull, ContinuousMap.Homotopic.refl F, rfl⟩ |
| 43 | have hzero : ∀ w ∈ m61FreeClassWidthRange g F, 0 ≤ w := by |
| 44 | rintro _ ⟨G, hGnull, _, rfl⟩ |
| 45 | exact (m61FamilyWidth_from_M60 g P60 G hGnull).nonnegative |
| 46 | have hbounded : BddBelow (m61FreeClassWidthRange g F) := ⟨0, hzero⟩ |
| 47 | refine |
| 48 | { nonempty := hnonempty |
| 49 | bounded_below := hbounded |
| 50 | nonnegative := le_csInf hnonempty hzero |
| 51 | le_member := ?_ |
| 52 | near_minimizer := ?_ |
| 53 | homotopy_invariant := ?_ } |
| 54 | · intro G hGnull hFG |
| 55 | exact csInf_le hbounded ⟨G, hGnull, hFG, rfl⟩ |
| 56 | · intro epsilon hepsilon |
| 57 | obtain ⟨w, ⟨G, hGnull, hFG, rfl⟩, hw⟩ := |
| 58 | exists_lt_of_csInf_lt hnonempty (lt_add_of_pos_right |
| 59 | (m61FreeClassWidth g F) hepsilon) |
| 60 | exact ⟨G, hGnull, hFG, hw⟩ |
| 61 | · intro G _ hFG |
| 62 | exact congrArg sInf (m61FreeClassWidthRange_eq_of_homotopic g hFG) |
| 63 | |
| 64 | end PoincareMT |