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.Transport.EventWidthTransport |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Class.Theory |
| 3 | |
| 4 | set_option autoImplicit false |
| 5 | |
| 6 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 7 | |
| 8 | universe u |
| 9 | |
| 10 | namespace PoincareMT |
| 11 | |
| 12 | /-! A checked event lemma isolating the only family-level input needed by M67. |
| 13 | |
| 14 | The rebasing hypothesis is deliberately explicit: it supplies a normalized |
| 15 | post-family for every near-minimizing pre-family, together with the homotopy |
| 16 | to its loop postcomposition. The remaining width estimate is then an |
| 17 | ordinary infimum argument plus the filling transport service. |
| 18 | -/ |
| 19 | theorem m67_based_width_transport_of_rebased_family |
| 20 | {M N : Type u} |
| 21 | [TopologicalSpace M] [ChartedSpace LoopAmbient M] |
| 22 | [IsManifold (𝓡 3) ∞ M] |
| 23 | [T2Space M] [SecondCountableTopology M] |
| 24 | [TopologicalSpace N] [ChartedSpace LoopAmbient N] |
| 25 | [IsManifold (𝓡 3) ∞ N] |
| 26 | [T2Space N] [SecondCountableTopology N] |
| 27 | (q : M59SphereQuotient) |
| 28 | (g₀ : RiemannianMetric 3 M) (g₁ : RiemannianMetric 3 N) |
| 29 | (x : M) (y : N) |
| 30 | (alpha : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := M)) |
| 31 | (constantC1Loop x)) |
| 32 | (beta : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := N)) |
| 33 | (constantC1Loop y)) |
| 34 | (f : ContinuousMap M N) (L : M59LoopPostcomposition f) |
| 35 | (hpre : M61BasedClassWidthProperties q g₀ x alpha) |
| 36 | (hpost : M61BasedClassWidthProperties q g₁ y beta) |
| 37 | (hfamily : ∀ F : ContinuousMap LoopTwoSphere |
| 38 | (C1FreeLoopSpace (M := M)), |
| 39 | M61NullFamily F → M61FamilyWidthProperties g₀ F) |
| 40 | (hpostfree : ∀ F : ContinuousMap LoopTwoSphere |
| 41 | (C1FreeLoopSpace (M := M)), M61NullFamily F → |
| 42 | M61FreeClassWidthProperties g₁ (L.map.comp F)) |
| 43 | (hnull_transport : ∀ F : ContinuousMap LoopTwoSphere |
| 44 | (C1FreeLoopSpace (M := M)), M61NullFamily F → |
| 45 | M61NullFamily (L.map.comp F)) |
| 46 | (hrebased : ∀ (F : ContinuousMap LoopTwoSphere |
| 47 | (C1FreeLoopSpace (M := M))), M61NullFamily F → |
| 48 | M61Represents q x alpha F → |
| 49 | ∃ G : ContinuousMap LoopTwoSphere |
| 50 | (C1FreeLoopSpace (M := N)), |
| 51 | M61NullFamily G ∧ M61Represents q y beta G ∧ |
| 52 | G.Homotopic (L.map.comp F)) |
| 53 | (eta : ℝ) (heta : 0 < eta) |
| 54 | (htransport : ∀ (F : ContinuousMap LoopTwoSphere |
| 55 | (C1FreeLoopSpace (M := M))), M61NullFamily F → |
| 56 | ∀ γ (Dγ : LipschitzSpanningDisk g₀ γ), |
| 57 | ∃ Eγ : LipschitzSpanningDisk g₁ (L.map γ), |
| 58 | Eγ.area ≤ (1 + eta) ^ 2 * Dγ.area) : |
| 59 | m61BasedClassWidth q g₁ y beta ≤ |
| 60 | (1 + eta) ^ 2 * m61BasedClassWidth q g₀ x alpha := by |
| 61 | have hfactor : 0 < (1 + eta) ^ 2 := sq_pos_of_pos (by linarith) |
| 62 | apply le_of_forall_pos_le_add |
| 63 | intro epsilon hepsilon |
| 64 | let delta : ℝ := epsilon / (1 + eta) ^ 2 |
| 65 | have hdelta : 0 < delta := div_pos hepsilon hfactor |
| 66 | obtain ⟨F, hFnull, hFrep, hFwidth⟩ := hpre.near_minimizer delta hdelta |
| 67 | obtain ⟨G, hGnull, hGrep, hGhom⟩ := hrebased F hFnull hFrep |
| 68 | have hLnull : M61NullFamily (L.map.comp F) := hnull_transport F hFnull |
| 69 | have hfree := hpostfree F hFnull |
| 70 | have hfamily_transport := m67_family_width_transport_exact g₀ g₁ F f L |
| 71 | hFnull eta heta (htransport F hFnull) (hfamily F hFnull) |
| 72 | have hfree_hom : m61FreeClassWidth g₁ G = |
| 73 | m61FreeClassWidth g₁ (L.map.comp F) := by |
| 74 | exact (hfree.homotopy_invariant G hGnull hGhom.symm).symm |
| 75 | have hfree_le_family : m61FreeClassWidth g₁ (L.map.comp F) ≤ |
| 76 | m61FamilyWidth g₁ (L.map.comp F) := by |
| 77 | exact hfree.le_member (L.map.comp F) hLnull |
| 78 | (ContinuousMap.Homotopic.refl (L.map.comp F)) |
| 79 | have hpost_le : m61BasedClassWidth q g₁ y beta ≤ |
| 80 | m61FamilyWidth g₁ (L.map.comp F) := by |
| 81 | rw [hpost.eq_free G hGnull hGrep, hfree_hom] |
| 82 | exact hfree_le_family |
| 83 | have hpre_eq : m61FamilyWidth g₀ F ≤ |
| 84 | m61BasedClassWidth q g₀ x alpha + delta := hFwidth.le |
| 85 | have hbound : m61BasedClassWidth q g₁ y beta ≤ |
| 86 | (1 + eta) ^ 2 * |
| 87 | (m61BasedClassWidth q g₀ x alpha + delta) := by |
| 88 | calc |
| 89 | m61BasedClassWidth q g₁ y beta ≤ |
| 90 | m61FamilyWidth g₁ (L.map.comp F) := hpost_le |
| 91 | _ ≤ (1 + eta) ^ 2 * m61FamilyWidth g₀ F := |
| 92 | hfamily_transport |
| 93 | _ ≤ (1 + eta) ^ 2 * |
| 94 | (m61BasedClassWidth q g₀ x alpha + delta) := by |
| 95 | exact mul_le_mul_of_nonneg_left hpre_eq hfactor.le |
| 96 | calc |
| 97 | m61BasedClassWidth q g₁ y beta ≤ |
| 98 | (1 + eta) ^ 2 * |
| 99 | (m61BasedClassWidth q g₀ x alpha + delta) := hbound |
| 100 | _ = (1 + eta) ^ 2 * m61BasedClassWidth q g₀ x alpha + epsilon := by |
| 101 | dsimp [delta] |
| 102 | rw [mul_add] |
| 103 | field_simp |
| 104 | |
| 105 | end PoincareMT |