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.Surgery.CanonicalInduction.Seed.Normalized.SeedNormalizedRadius |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Seed.Noncollapse.Cylinder |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Seed.Noncollapse.Subtype |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Canonical.Neck.CanonicalNeckTerminalMetric |
| 5 | |
| 6 | /-! |
| 7 | # Normalized young-seed density on the original physical test |
| 8 | |
| 9 | The actual based history and test agree on their common closed interval. |
| 10 | The terminal subtype metric returns the quarter-radius estimate to the |
| 11 | original physical ball. MT pp. 393-394; young-seed G3 derivation. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle ENNReal |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.Proofs.M47 |
| 23 | |
| 24 | open PoincareMT.M47 |
| 25 | |
| 26 | /-- The fixed normalized M15 constant controls an actual physical test |
| 27 | whose age is at least one eighth of its squared radius. -/ |
| 28 | theorem seedM15_normalized_physical_volume |
| 29 | (hM12 : GeneralizedRicciGaugeTheory.{u} 3) |
| 30 | (hM13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 31 | (hM14 : GeneralizedLGeometryTheory.{u} 3) |
| 32 | (hOrdinary : M14OrdinaryProviders.{u} 3) |
| 33 | {l0 V : ℝ} (Q : M15GeneralizedUniformData.{u} 3 1 l0 V) |
| 34 | {F : SurgeryFlowData.{u}} {T a tau r : ℝ} (ha : a < 0) |
| 35 | (U : TopologicalSpace.Opens (F.slice T).carrier) |
| 36 | [CompactSpace U] [ConnectedSpace U] |
| 37 | (e : SurgeryFlowCylinder F (F.slice T) T 1 (Icc a 0) U) |
| 38 | (he : ∀ hs y, y ∈ U → HEq (e.forward 0 hs y) y) |
| 39 | (G : RicciFlow 3 U (Icc (T + a) T)) |
| 40 | (hmetric : ∀ s (hs : s ∈ Icc a 0) (y : U) (v w : TangentSpace (𝓡 3) y), |
| 41 | (F.metric (T + s / 1)).inner (e.forward s hs y.val) |
| 42 | (mfderiv (𝓡 3) (𝓡 3) (fun z : U => e.forward s hs z.val) y v) |
| 43 | (mfderiv (𝓡 3) (𝓡 3) (fun z : U => e.forward s hs z.val) y w) = |
| 44 | (G.metric (T + s / 1)).inner y v w) |
| 45 | (hnorm : ∀ s (hs : s ∈ Icc a 0) (y : U), |
| 46 | (G.connection (T + s / 1)).curvatureTensorNorm y = |
| 47 | (F.connection (T + s / 1)).curvatureTensorNorm (e.forward s hs y.val)) |
| 48 | (x : U) (htauAge : tau < -a) (hlo : 3 * (-a) / 4 ≤ tau) |
| 49 | (E : Set U) (hE : IsOpen E) |
| 50 | (haccess : ∀ y ∈ E, reducedLength G T x y tau ≤ l0) |
| 51 | (hvolume : ENNReal.ofReal (V * Real.sqrt (-a) ^ 3) ≤ |
| 52 | calibratedMetricVolume (G.metric (T - tau)) E) |
| 53 | (hr : 0 < r) (hsize : r ^ 2 ≤ 8 * (-a)) |
| 54 | (test : SurgeryFlowCylinder F (F.slice T) T 1 (Icc (-r ^ 2) 0) |
| 55 | ((F.metric T).ball x.val r)) |
| 56 | (hbased : ∀ hs y, y ∈ (F.metric T).ball x.val r → HEq (test.forward 0 hs y) y) |
| 57 | (hcurv : ∀ s (hs : s ∈ Icc (-r ^ 2) 0), ∀ y ∈ (F.metric T).ball x.val r, |
| 58 | (F.connection (T + s / 1)).curvatureTensorNorm (test.forward s hs y) ≤ r⁻¹ ^ 2) : |
| 59 | ENNReal.ofReal ((Q.kappa / 64) * r ^ 3) ≤ |
| 60 | calibratedMetricVolume (F.metric T) ((F.metric T).ball x.val r) := by |
| 61 | have hterminal := neck_ordinary_terminal_metric U e ⟨ha.le, le_rfl⟩ he G |
| 62 | (hmetric 0 ⟨ha.le, le_rfl⟩) |
| 63 | have hball := seedM15_subtype_ball_image U (G.metric T) (F.metric T) hterminal x r |
| 64 | have hcurvG : ∀ t ∈ Icc (T + a) T, T - r ^ 2 ≤ t → |
| 65 | ∀ y ∈ (G.metric T).ball x r, (G.connection t).curvatureTensorNorm y ≤ r⁻¹ ^ 2 := by |
| 66 | intro t ht htr y hy |
| 67 | have hs : t - T ∈ Icc a 0 := ⟨by linarith [ht.1], by linarith [ht.2]⟩ |
| 68 | have hsTest : t - T ∈ Icc (-r ^ 2) 0 := ⟨by linarith, hs.2⟩ |
| 69 | have hI : Icc (t - T) 0 ⊆ Icc a 0 := Icc_subset_Icc hs.1 le_rfl |
| 70 | have hJ : Icc (t - T) 0 ⊆ Icc (-r ^ 2) 0 := Icc_subset_Icc hsTest.1 le_rfl |
| 71 | have hyPhysical : y.val ∈ (F.metric T).ball x.val r := hball ⟨y, hy, rfl⟩ |
| 72 | have hagree : e.forward (t - T) hs y.val = test.forward (t - T) hsTest y.val := |
| 73 | seedM15_cylinder_eq_of_terminal e test hs.2 hI hJ y.val y.property y.val hyPhysical |
| 74 | (eq_of_heq ((he _ y.val y.property).trans (hbased _ y.val hyPhysical).symm)) |
| 75 | have hc : T + (t - T) / 1 = t := by simp |
| 76 | have hn : (G.connection t).curvatureTensorNorm y = |
| 77 | (F.connection (T + (t - T) / 1)).curvatureTensorNorm (e.forward (t - T) hs y.val) := |
| 78 | (congrArg (fun s => (G.connection s).curvatureTensorNorm y) hc).symm.trans |
| 79 | (hnorm (t - T) hs y) |
| 80 | rw [hn, hagree] |
| 81 | exact hcurv (t - T) hsTest y.val hyPhysical |
| 82 | have hage : T - (T + a) = -a := by ring |
| 83 | have hv := seedM15_normalized_radius_volume hM12 hM13 hM14 hOrdinary Q |
| 84 | (by linarith : T + a < T) G x (by rwa [hage]) (by rwa [hage]) |
| 85 | E hE haccess (by rwa [hage]) hr (by rwa [hage]) hcurvG |
| 86 | exact hv.trans (seedM15_subtype_ball_volume U (G.metric T) (F.metric T) hterminal x r) |
| 87 | |
| 88 | end PoincareMT.Proofs.M47 |