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.Path.Data |
| 2 | import PoincareLib.Geometry.Riemannian.LoopSpace.Area.Disk.Existence |
| 3 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Class.Theory |
| 4 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Infimum.SphereCompactness |
| 5 | |
| 6 | /-! |
| 7 | Width estimates supplied by one surgery transport map. |
| 8 | |
| 9 | The event interface records a filling disk after postcomposition for every |
| 10 | admissible pre-disk. This file turns that pointwise service into the family |
| 11 | width estimate used at a surgery time. The class-label and finite-chronology |
| 12 | steps remain separate from this analytic estimate. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT |
| 22 | |
| 23 | variable {M N : Type u} |
| 24 | [TopologicalSpace M] [ChartedSpace LoopAmbient M] |
| 25 | [IsManifold (𝓡 3) ∞ M] |
| 26 | [T2Space M] [SecondCountableTopology M] |
| 27 | [TopologicalSpace N] [ChartedSpace LoopAmbient N] |
| 28 | [IsManifold (𝓡 3) ∞ N] |
| 29 | [T2Space N] [SecondCountableTopology N] |
| 30 | |
| 31 | theorem m67_family_width_transport |
| 32 | (g₀ : RiemannianMetric 3 M) (g₁ : RiemannianMetric 3 N) |
| 33 | (F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M))) |
| 34 | (f : ContinuousMap M N) (L : M59LoopPostcomposition f) |
| 35 | (hnull : M61NullFamily F) |
| 36 | (eta : ℝ) (heta : 0 < eta) |
| 37 | (htransport : ∀ γ (Dγ : LipschitzSpanningDisk g₀ γ), |
| 38 | ∃ Eγ : LipschitzSpanningDisk g₁ (L.map γ), |
| 39 | Eγ.area ≤ (1 + eta) ^ 2 * Dγ.area) |
| 40 | (hwidth : M61FamilyWidthProperties g₀ F) : |
| 41 | ∀ epsilon : ℝ, 0 < epsilon → |
| 42 | m61FamilyWidth g₁ (L.map.comp F) ≤ |
| 43 | (1 + eta) ^ 2 * (m61FamilyWidth g₀ F + epsilon) := by |
| 44 | letI : Nonempty LoopTwoSphere := PoincareMT.Proofs.M61.loopTwoSphereNonempty |
| 45 | intro epsilon hepsilon |
| 46 | have hfactor : 0 < (1 + eta) ^ 2 := sq_pos_of_pos (by linarith) |
| 47 | have hpoint : ∀ c : LoopTwoSphere, |
| 48 | fillingArea g₁ (L.map (F c)) ≤ |
| 49 | (1 + eta) ^ 2 * (fillingArea g₀ (F c) + epsilon) := by |
| 50 | intro c |
| 51 | obtain ⟨D₀⟩ := m60_exists_lipschitz_disk_of_null g₀ (F c) (hnull c) |
| 52 | obtain ⟨D, hD⟩ := m60FillingArea_near_minimizer_of_disk g₀ (F c) D₀ hepsilon |
| 53 | obtain ⟨E, hE⟩ := htransport (F c) D |
| 54 | have hfill : fillingArea g₁ (L.map (F c)) ≤ E.area := |
| 55 | m60FillingArea_le_disk g₁ (L.map (F c)) E |
| 56 | have hmul : (1 + eta) ^ 2 * D.area < |
| 57 | (1 + eta) ^ 2 * (fillingArea g₀ (F c) + epsilon) := |
| 58 | mul_lt_mul_of_pos_left hD hfactor |
| 59 | exact hfill.trans (hE.trans hmul.le) |
| 60 | unfold m61FamilyWidth |
| 61 | apply csSup_le |
| 62 | · exact Set.range_nonempty _ |
| 63 | · rintro _ ⟨c, rfl⟩ |
| 64 | have hpre : fillingArea g₀ (F c) ≤ m61FamilyWidth g₀ F := by |
| 65 | unfold m61FamilyWidth |
| 66 | exact le_csSup hwidth.bounded_above ⟨c, rfl⟩ |
| 67 | have hpre' : fillingArea g₀ (F c) ≤ |
| 68 | sSup (Set.range (fun c => fillingArea g₀ (F c))) := by |
| 69 | simpa only [m61FamilyWidth] using hpre |
| 70 | exact (hpoint c).trans (mul_le_mul_of_nonneg_left |
| 71 | (add_le_add_left hpre' epsilon) hfactor.le) |
| 72 | |
| 73 | theorem m67_family_width_transport_exact |
| 74 | (g₀ : RiemannianMetric 3 M) (g₁ : RiemannianMetric 3 N) |
| 75 | (F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M))) |
| 76 | (f : ContinuousMap M N) (L : M59LoopPostcomposition f) |
| 77 | (hnull : M61NullFamily F) |
| 78 | (eta : ℝ) (heta : 0 < eta) |
| 79 | (htransport : ∀ γ (Dγ : LipschitzSpanningDisk g₀ γ), |
| 80 | ∃ Eγ : LipschitzSpanningDisk g₁ (L.map γ), |
| 81 | Eγ.area ≤ (1 + eta) ^ 2 * Dγ.area) |
| 82 | (hwidth : M61FamilyWidthProperties g₀ F) : |
| 83 | m61FamilyWidth g₁ (L.map.comp F) ≤ |
| 84 | (1 + eta) ^ 2 * m61FamilyWidth g₀ F := by |
| 85 | have hfactor : 0 < (1 + eta) ^ 2 := sq_pos_of_pos (by linarith) |
| 86 | apply le_of_forall_pos_le_add |
| 87 | intro epsilon hepsilon |
| 88 | have hε : 0 < epsilon / (1 + eta) ^ 2 := div_pos hepsilon hfactor |
| 89 | have h := m67_family_width_transport g₀ g₁ F f L hnull eta heta |
| 90 | htransport hwidth (epsilon / (1 + eta) ^ 2) hε |
| 91 | have hfactor_ne : (1 + eta) ^ 2 ≠ 0 := ne_of_gt hfactor |
| 92 | calc |
| 93 | m61FamilyWidth g₁ (L.map.comp F) ≤ |
| 94 | (1 + eta) ^ 2 * |
| 95 | (m61FamilyWidth g₀ F + epsilon / (1 + eta) ^ 2) := h |
| 96 | _ = (1 + eta) ^ 2 * m61FamilyWidth g₀ F + epsilon := by |
| 97 | rw [mul_add, mul_div_cancel₀ _ hfactor_ne] |
| 98 | |
| 99 | end PoincareMT |