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.Induction.EpochExtension.Extension.ExtensionCanonical |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Control.Basic |
| 3 | |
| 4 | /-! |
| 5 | # Noncollapse at old times of an extension |
| 6 | |
| 7 | The convention following Morgan--Tian Definition 15.7, p. 360, tests |
| 8 | surviving backward cylinders with a full curvature bound, except on positive |
| 9 | components. Pull the actual tested cylinder back through the extension. |
| 10 | Its whole clock is old because it lies between zero and its old top time. |
| 11 | Unit-scale M13 identities preserve the same ball, volume and kappa. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff ENNReal |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.SurgeryFlowExtension |
| 23 | |
| 24 | variable {F : SurgeryFlowData.{u}} (E : SurgeryFlowExtension F) |
| 25 | |
| 26 | theorem canonical_on (m13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 27 | {J : Set ℝ} {r : ℝ} (hJ : J ⊆ F.time_domain) |
| 28 | (h : SurgeryCanonicalOn F J r) : SurgeryCanonicalOn E.extended J r := by |
| 29 | intro t ht _ x hx |
| 30 | let f := E.identify t (hJ ht) |
| 31 | obtain ⟨y, rfl⟩ := f.surjective x |
| 32 | have H := E.metric_calculus m13 t (hJ ht) |
| 33 | have hy : r⁻¹ ^ 2 ≤ (F.connection t).scalarCurvature y := by |
| 34 | rw [H.m48_scalar_eq (F.connection t) (E.extended.connection t)] |
| 35 | exact hx |
| 36 | change SurgeryCanonicalControl E.extended t (E.identify t (hJ ht) y) |
| 37 | E.extended.parameters.epsilon E.extended.parameters.C |
| 38 | simpa only [E.parameters_eq] using |
| 39 | E.canonical_control m13 t (hJ ht) y _ _ (h t ht (hJ ht) y hy) |
| 40 | |
| 41 | theorem noncollapsed_on (m13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 42 | {J : Set ℝ} {kappa : ℝ} (hJ : J ⊆ F.time_domain) |
| 43 | (h : SurgeryNoncollapsedOn F J kappa) : SurgeryNoncollapsedOn E.extended J kappa := by |
| 44 | intro t ht _ x hpositive r hr hrepsilon d hterminal hcurvature |
| 45 | let f := E.identify t (hJ ht) |
| 46 | obtain ⟨x, rfl⟩ := f.surjective x |
| 47 | have H : MetricHomothetyCalculus (F.metric t) (E.extended.metric t) f 1 := |
| 48 | E.metric_calculus m13 t (hJ ht) |
| 49 | have htime : ∀ s ∈ Icc (-r ^ 2) 0, t + s / 1 ∈ F.time_domain := by |
| 50 | intro s hs |
| 51 | have hn := E.extended.time_domain_nonnegative (d.time_subset ⟨s, hs, rfl⟩) |
| 52 | exact F.time_domain_interval.out F.zero_mem (hJ ht) |
| 53 | ⟨hn, by simpa only [div_one, add_le_iff_nonpos_right] using hs.2⟩ |
| 54 | have hball : (F.metric t).ball x r ⊆ f ⁻¹' (E.extended.metric t).ball (f x) r := |
| 55 | (H.m48_ball_eq x r).subset |
| 56 | let c := ((E.pullCylinder d htime).rebaseSource f).restrictSource hball |
| 57 | have hc : ∀ h y, y ∈ (F.metric t).ball x r → HEq (c.forward 0 h y) y := by |
| 58 | intro h y hy |
| 59 | have hz := E.identify_symm_heq (htime 0 h) (hJ ht) (by simp) |
| 60 | (hterminal h (f y) (hball hy)) |
| 61 | change HEq (c.forward 0 h y) (f.symm (f y)) at hz |
| 62 | simpa only [f.symm_apply_apply] using hz |
| 63 | have hbound : ∀ s hs y, y ∈ (F.metric t).ball x r → |
| 64 | (F.connection (t + s / 1)).curvatureTensorNorm (c.forward s hs y) ≤ r⁻¹ ^ 2 := by |
| 65 | intro s hs y hy |
| 66 | let e := E.identify (t + s / 1) (htime s hs) |
| 67 | have hc := (E.metric_calculus m13 (t + s / 1) (htime s hs)).curvature_norm_eq |
| 68 | (F.connection (t + s / 1)) (E.extended.connection (t + s / 1)) |
| 69 | (e.symm (d.forward s hs (f y))) |
| 70 | have hc' : (E.extended.connection (t + s / 1)).curvatureTensorNorm |
| 71 | (d.forward s hs (f y)) = |
| 72 | (F.connection (t + s / 1)).curvatureTensorNorm (c.forward s hs y) := by |
| 73 | change (E.extended.connection (t + s / 1)).curvatureTensorNorm |
| 74 | (d.forward s hs (f y)) = |
| 75 | (F.connection (t + s / 1)).curvatureTensorNorm (e.symm (d.forward s hs (f y))) |
| 76 | simpa only [e, Diffeomorph.apply_symm_apply, div_one] using hc |
| 77 | rw [← hc'] |
| 78 | exact hcurvature s hs (f y) (hball hy) |
| 79 | have hr' : r ≤ F.parameters.epsilon := by |
| 80 | simpa only [E.parameters_eq] using hrepsilon |
| 81 | have hv := h t ht (hJ ht) x |
| 82 | (fun hp => hpositive (E.positive_component m13 t (hJ ht) x hp)) |
| 83 | r hr hr' c hc hbound |
| 84 | rw [H.m48_ball_eq x r, H.m48_volume_eq] at hv |
| 85 | exact hv |
| 86 | |
| 87 | end PoincareMT.SurgeryFlowExtension |