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.StandardCap.Persistence.Collar.Bounds.SampleRestart |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Collar.Initial.InitialScalarBound |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Collar.Initial.InitialTwoJet |
| 4 | |
| 5 | /-! |
| 6 | # A fixed initial interval for every supplied cylinder sample |
| 7 | |
| 8 | The global M36 initial scalar bound and actual pinching control the |
| 9 | whole sample at birth. Initial two-jet comparison activates the fixed |
| 10 | collar restart at time zero. Its interval and curvature ceiling are |
| 11 | chosen before the outer sample radius. Morgan--Tian, Claim 16.6 and |
| 12 | Lemma 16.8, pp. 371-373; M44 derivation 103. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Topology ENNReal |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M44 |
| 24 | |
| 25 | open SpacetimeBounds |
| 26 | |
| 27 | local notation "E" => StandardCapSpace |
| 28 | |
| 29 | noncomputable local instance initialSampleCoefficientNorm : |
| 30 | NormedAddCommGroup (MetricCoefficient 3) := ContinuousLinearMap.toNormedAddCommGroup |
| 31 | |
| 32 | noncomputable local instance initialSampleCoefficientSpace : |
| 33 | NormedSpace ℝ (MetricCoefficient 3) := ContinuousLinearMap.toNormedSpace |
| 34 | |
| 35 | noncomputable local instance initialSampleTwoJetNorm : |
| 36 | NormedAddCommGroup (MetricTwoJet 3) := Prod.normedAddCommGroup |
| 37 | |
| 38 | noncomputable local instance initialSampleTwoJetSpace : |
| 39 | NormedSpace ℝ (MetricTwoJet 3) := Prod.normedSpace |
| 40 | |
| 41 | /-- Actual birth coefficients equal the comparison coefficients |
| 42 | with the fixed initial-metric label. Source: Corollary 16.7, |
| 43 | p. 372; M44 derivation 103. -/ |
| 44 | theorem CylinderCompactnessSample.initial_fixed_coefficients |
| 45 | {g0 : StandardInitialMetric} {F : SurgeryFlowData.{u}} {a : ℝ} |
| 46 | {ha : a ∈ F.surgery_times} [Nonempty (F.slice a).carrier] |
| 47 | {i : Fin (F.event a ha).cap_count} (D : CylinderCompactnessSample g0 F a ha i) |
| 48 | {x : E} (hx : x ∈ D.chart.source) : |
| 49 | D.coefficients (0, x) = D.fixedComparison.normalizedCoefficients x := by |
| 50 | dsimp only [CylinderCompactnessSample.fixedComparison] |
| 51 | rw [normalizedCoefficients_cast_initial D.standard_initial_eq D.comparison] |
| 52 | exact D.initial_coefficients hx |
| 53 | |
| 54 | /-- One scalar ceiling works for all supplied actual birth charts, |
| 55 | independently of their outer radii. Source: Claim 16.6 and |
| 56 | Lemma 16.8; M44 derivation 103. -/ |
| 57 | theorem exists_global_initial_sample_scalar_bound |
| 58 | {g0 : StandardInitialMetric} (estimate : StandardCapEstimate g0) : |
| 59 | ∃ M : ℝ, 1 ≤ M ∧ ∀ (F : SurgeryFlowData.{u}) (a : ℝ) |
| 60 | (ha : a ∈ F.surgery_times) [Nonempty (F.slice a).carrier] |
| 61 | (i : Fin (F.event a ha).cap_count) (D : CylinderCompactnessSample g0 F a ha i), |
| 62 | D.eta ≤ 1 / 4 → ∀ y, (D.ordinary.flow.connection 0).scalarCurvature y ≤ M := by |
| 63 | obtain ⟨M, hM, hscalar⟩ := exists_global_initial_chart_scalar_bound.{u, u} estimate |
| 64 | refine ⟨M, hM, ?_⟩ |
| 65 | intro F a ha _ i D heta |
| 66 | have hsub : D.chart.source ⊆ g0.metric.ball 0 D.eta⁻¹ := by |
| 67 | rw [D.source_eq] |
| 68 | exact fun _ hx => hx.trans_le (ENNReal.ofReal_le_ofReal D.radius_lt.le) |
| 69 | have hlink : EqOn ((D.ordinary.flow.metric 0).pullbackCoefficients |
| 70 | (targetPartialDiffeomorph D.chart D.target_point)) |
| 71 | D.fixedComparison.normalizedCoefficients D.chart.source := |
| 72 | fun _ hx => D.initial_fixed_coefficients hx |
| 73 | exact fun y => hscalar _ _ _ _ _ D.fixedComparison heta |
| 74 | (D.ordinary.flow.metric 0) (D.ordinary.flow.connection 0) |
| 75 | (targetPartialDiffeomorph D.chart D.target_point) hsub hlink y (mem_univ y) |
| 76 | |
| 77 | /-- Pinching converts the actual normalized initial scalar bound |
| 78 | into the whole-target curvature bound required by a restart at zero. |
| 79 | Source: Lemma 16.8; M44 derivation 103. -/ |
| 80 | theorem initial_sample_curvature_bound (P : M44CapPersistencePredecessors.{u}) |
| 81 | {g0 : StandardInitialMetric} {F : SurgeryFlowData.{u}} {a : ℝ} |
| 82 | {ha : a ∈ F.surgery_times} [Nonempty (F.slice a).carrier] |
| 83 | {i : Fin (F.event a ha).cap_count} (D : CylinderCompactnessSample g0 F a ha i) |
| 84 | (hU : IsOpen D.region) (hsmall : F.parameters.h a ^ 2 ≤ 1) |
| 85 | (hpinch : SurgeryFlowPinched F) {M : ℝ} |
| 86 | (hscalar : ∀ y, (D.ordinary.flow.connection 0).scalarCurvature y ≤ M) : |
| 87 | ∀ y, (D.ordinary.flow.connection 0).curvatureTensorNorm y ≤ |
| 88 | 13 * max M (Real.exp 4) := by |
| 89 | intro y |
| 90 | have hzero : (0 : ℝ) ∈ Ico 0 D.lifetime := ⟨le_rfl, D.lifetime_pos⟩ |
| 91 | have htime := D.cylinder.time_subset (mem_image_of_mem _ hzero) |
| 92 | have hR : (((F.parameters.h a)⁻¹ ^ 2) : ℝ)⁻¹ * |
| 93 | (F.connection (a + 0 / ((F.parameters.h a)⁻¹ ^ 2))).scalarCurvature |
| 94 | (cylinderTargetTransport D.cylinder D.chart 0 hzero y) ≤ M := by |
| 95 | simpa only [D.ordinary.scalar_eq hU D.chart_target_subset 0 hzero y, |
| 96 | div_eq_mul_inv, mul_comm] using hscalar y |
| 97 | have hnormalized : (((F.parameters.h a)⁻¹ ^ 2) : ℝ)⁻¹ ≤ 1 := by |
| 98 | simpa only [inv_pow, inv_inv] using hsmall |
| 99 | have h := (hpinch _ htime).scaled_curvature_norm_le P |
| 100 | (mem_univ (cylinderTargetTransport D.cylinder D.chart 0 hzero y)) |
| 101 | (inv_pos.mpr D.cylinder.scale_pos).le hnormalized hR |
| 102 | simpa only [D.ordinary.curvatureTensorNorm_eq hU D.chart_target_subset 0 hzero y, |
| 103 | div_eq_mul_inv, mul_comm] using h |
| 104 | |
| 105 | /-- Fixed birth collar data give one positive initial interval and |
| 106 | one curvature ceiling for every supplied larger surviving sample. |
| 107 | All constants precede its radius. Source: Lemma 16.8, pp. 372-373; |
| 108 | M44 derivation 103. -/ |
| 109 | theorem exists_initial_sample_bound (P : M44CapPersistencePredecessors.{u}) |
| 110 | (g0 : StandardInitialMetric) (estimate : StandardCapEstimate g0) |
| 111 | (C0 : ℝ) (x u v : E) |
| 112 | (hcollar : metricTwoJet g0.metric.euclideanCoefficients x ∈ collarJetRegion C0 u v) |
| 113 | {R0 : ℝ} (hR0 : 2 < R0) (hx : x ∈ g0.metric.ball 0 (R0 - 2)) : |
| 114 | ∃ delta tau K : ℝ, 0 < delta ∧ 0 < tau ∧ 0 < K ∧ |
| 115 | ∀ (F : SurgeryFlowData.{u}) (birth : ℝ) (hbirth : birth ∈ F.surgery_times) |
| 116 | [Nonempty (F.slice birth).carrier] (i : Fin (F.event birth hbirth).cap_count), |
| 117 | ∀ D : CylinderCompactnessSample g0 F birth hbirth i, |
| 118 | R0 ≤ D.radius → D.eta ≤ delta → IsOpen D.region → |
| 119 | F.parameters.h birth ^ 2 ≤ 1 → |
| 120 | ∀ q : ℝ, F.parameters.h birth ^ 2 * q ≤ 1 → |
| 121 | (∀ s (_hs : s ∈ Ico (0 : ℝ) D.lifetime), |
| 122 | ∀ y : (F.slice (birth + s / ((F.parameters.h birth)⁻¹ ^ 2))).carrier, |
| 123 | q ≤ (F.connection (birth + s / ((F.parameters.h birth)⁻¹ ^ 2))).scalarCurvature y → |
| 124 | SurgeryCanonicalControl F (birth + s / ((F.parameters.h birth)⁻¹ ^ 2)) y |
| 125 | F.parameters.epsilon C0) → SurgeryFlowPinched F → |
| 126 | ∀ s ∈ Ico (0 : ℝ) (min D.lifetime tau), ∀ y, |
| 127 | (D.ordinary.flow.connection s).curvatureTensorNorm y ≤ K := by |
| 128 | obtain ⟨M, hM, hscalar⟩ := exists_global_initial_sample_scalar_bound.{u} estimate |
| 129 | let J := metricTwoJet g0.metric.euclideanCoefficients x |
| 130 | obtain ⟨d0, tau, hd0, htau, hrestart⟩ := exists_sample_restart_cutoff P g0 C0 x u v |
| 131 | (model := {J}) isCompact_singleton |
| 132 | (by intro z hz; obtain rfl : z = J := hz; exact hcollar) |
| 133 | hR0 hx (zero_lt_one.trans_le hM) (Kpast := 13 * max M (Real.exp 4)) |
| 134 | (H := 1) zero_lt_one |
| 135 | obtain ⟨d1, hd1, hnear⟩ := |
| 136 | exists_initial_twoJet_cutoff.{u} g0 (isCompact_singleton (x := x)) hd0 |
| 137 | refine ⟨min d0 (min d1 (1 / 4)), min 1 tau, 13 * max (2 * M) (Real.exp 4), |
| 138 | lt_min hd0 (lt_min hd1 (by norm_num)), lt_min zero_lt_one htau, by positivity, ?_⟩ |
| 139 | intro F birth hbirth _ i D hR heta hU hsmall q hq hcanonical hpinch |
| 140 | have hscalar0 := hscalar F birth hbirth i D |
| 141 | (heta.trans ((min_le_right _ _).trans (min_le_right _ _))) |
| 142 | have hpast : ∀ s ∈ Icc (0 : ℝ) 0, ∀ y, |
| 143 | (D.ordinary.flow.connection s).curvatureTensorNorm y ≤ 13 * max M (Real.exp 4) := by |
| 144 | intro s hs |
| 145 | obtain rfl : s = 0 := le_antisymm hs.2 hs.1 |
| 146 | exact initial_sample_curvature_bound P D hU hsmall hpinch hscalar0 |
| 147 | have hxsource : x ∈ D.chart.source := by |
| 148 | rw [D.source_eq] |
| 149 | exact hx.trans_le (ENNReal.ofReal_le_ofReal (by linarith)) |
| 150 | have heq : (fun y => D.coefficients (0, y)) =ᶠ[𝓝 x] |
| 151 | D.fixedComparison.normalizedCoefficients := |
| 152 | eventually_of_mem (D.chart.open_source.mem_nhds hxsource) |
| 153 | (fun _ hy => D.initial_fixed_coefficients hy) |
| 154 | have htwo : metricTwoJet (fun y => D.coefficients (0, y)) x = |
| 155 | metricTwoJet D.fixedComparison.normalizedCoefficients x := by |
| 156 | simp only [metricTwoJet, heq.eq_of_nhds, heq.fderiv_eq, |
| 157 | (heq.fderiv (𝕜 := ℝ)).fderiv_eq] |
| 158 | have hnear0 : ‖metricTwoJet (fun y => D.coefficients (0, y)) x - J‖ ≤ d0 := by |
| 159 | rw [htwo] |
| 160 | exact (hnear _ _ _ _ _ D.fixedComparison |
| 161 | (heta.trans ((min_le_right _ _).trans (min_le_left _ _)))).2 x (mem_singleton x) |
| 162 | intro s hs y |
| 163 | obtain ⟨T, hsT, hTmin⟩ := exists_between hs.2 |
| 164 | have hT : 0 < T := hs.1.trans_lt hsT |
| 165 | have hTB : T < D.lifetime := hTmin.trans_le (min_le_left _ _) |
| 166 | have hTtau : T ≤ min 1 tau := hTmin.le.trans (min_le_right _ _) |
| 167 | have hshort : T - 0 ≤ tau := by |
| 168 | simpa only [sub_zero] using hTtau.trans (min_le_right 1 tau) |
| 169 | have h := hrestart F birth hbirth i D hR (heta.trans (min_le_left _ _)) hU hsmall |
| 170 | q (hq.trans hM) hcanonical hpinch 0 T le_rfl hT hTB |
| 171 | (hTtau.trans (min_le_left _ _)) hshort hscalar0 hpast J (mem_singleton J) hnear0 |
| 172 | exact (h.2 s ⟨hs.1, hsT.le⟩ y).2 |
| 173 | |
| 174 | end PoincareMT.M44 |