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.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.CompactCurvatureDerivative |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.CurvatureRadius |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Transport.TransportedCapBall |
| 5 | |
| 6 | /-! |
| 7 | # First curvature-derivative control on an actual normalized ambient ball |
| 8 | |
| 9 | A compact chart around the extracted basepoint retains its curvature jets. |
| 10 | The actual cylinder inverse prevents a short source-metric path from leaving |
| 11 | that chart image. Thus one fixed normalized ambient ball has the derivative |
| 12 | bound required by the outward radial slope-drop argument. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 20 | |
| 21 | namespace PoincareMT.M35.OrdinaryRealization |
| 22 | |
| 23 | local notation "V" => EuclideanSpace ℝ (Fin 3) |
| 24 | |
| 25 | /-- A compact retained chart surrounding a limit ball gives a first |
| 26 | curvature-derivative bound on the actual normalized source ball of half its radius. -/ |
| 27 | theorem blowupSequence_curvature_derivative_bounded_ball_of_chart |
| 28 | (P : M35StandardCapPredecessors) |
| 29 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 30 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 31 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 32 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 33 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 34 | (blowupBackwardInterval ⊤)) |
| 35 | (q : L.limit.sliceCarrier.carrier) (j : ℕ) |
| 36 | (K : Set V) (hK : IsCompact K) |
| 37 | (hKU : K ⊆ {p | p ∈ (extChartAt (𝓡 3) q).target ∧ |
| 38 | (extChartAt (𝓡 3) q).symm p ∈ L.exhaustion.space j}) |
| 39 | (r : ℝ) (hr : 0 < r) : |
| 40 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 41 | letI : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 42 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 43 | closure ((L.limit.flow.metric 0).ball L.limit.base r) ⊆ |
| 44 | interior ((extChartAt (𝓡 3) q).symm '' K) → |
| 45 | ∃ B : ℝ, 0 < B ∧ ∀ᶠ k in atTop, |
| 46 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 47 | let hQ := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 48 | ∀ y ∈ RiemannianMetric.ball |
| 49 | (M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence k))) Q hQ) |
| 50 | (x (L.subsequence k)) (r / 2), |
| 51 | (M13.scaleLeviCivitaData (E.flow.connection (t (L.subsequence k))) |
| 52 | Q hQ).curvatureDerivativeNorm 1 y ≤ B := by |
| 53 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 54 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 55 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 56 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 57 | intro hball |
| 58 | let c := extChartAt (𝓡 3) (show L.limit.carrier.carrier from q) |
| 59 | let C : Set L.limit.sliceCarrier.carrier := c.symm '' K |
| 60 | have hC : IsCompact C := hK.image_of_continuousOn |
| 61 | ((continuousOn_extChartAt_symm (show L.limit.carrier.carrier from q)).mono |
| 62 | (fun _ hz => (hKU hz).1)) |
| 63 | have hCU : C ⊆ L.exhaustion.space j := by |
| 64 | rintro _ ⟨p, hp, rfl⟩ |
| 65 | exact (hKU hp).2 |
| 66 | obtain ⟨B, hB, N, _hjN, hbound⟩ := |
| 67 | blowupSequence_terminal_curvature_derivative_bounded_chart P E t x ht hR L q j K hK hKU |
| 68 | obtain ⟨N', _hjN', hretain⟩ := blowupSequence_ball_retention |
| 69 | P E t x ht hR L j C hC hCU (by norm_num : (0 : ℝ) < 1 / 2) (by norm_num) |
| 70 | refine ⟨B, hB, ?_⟩ |
| 71 | filter_upwards [eventually_ge_atTop (max N N')] with k hk |
| 72 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 73 | have hQ : 0 < Q := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 74 | let g := E.flow.metric (t (L.subsequence k)) |
| 75 | let G : RiemannianMetric 3 StandardCapSpace := M13.scaleSmoothMetric g Q hQ |
| 76 | let phi (z : L.limit.sliceCarrier.carrier) := ((L.embedding k).forward 0 |
| 77 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 78 | have hbase : phi L.limit.base = x (L.subsequence k) := by |
| 79 | exact congrArg (fun p : (generalizedFlow E.flow.base.flow).point => p.2.val) |
| 80 | (L.base_preserving k _) |
| 81 | have hscaled := M13.homothety_ball_image g G |
| 82 | (Diffeomorph.refl (𝓡 3) StandardCapSpace ∞) Q hQ |
| 83 | (M13.identity_metricHomothety g Q hQ) (x (L.subsequence k)) ((r / 2) / Real.sqrt Q) |
| 84 | have hroot : Real.sqrt Q ≠ 0 := (Real.sqrt_pos.mpr hQ).ne' |
| 85 | have hradius : Real.sqrt Q * ((r / 2) / Real.sqrt Q) = r / 2 := by |
| 86 | field_simp |
| 87 | change id '' g.ball (x (L.subsequence k)) ((r / 2) / Real.sqrt Q) = |
| 88 | G.ball (x (L.subsequence k)) (Real.sqrt Q * ((r / 2) / Real.sqrt Q)) at hscaled |
| 89 | rw [image_id, hradius] at hscaled |
| 90 | have hsmall : (r / 2) / Real.sqrt Q ≤ r / Real.sqrt (Q / (1 - 1 / 2)) := by |
| 91 | have hden : Q / (1 - 1 / 2) = 2 * Q := by ring |
| 92 | rw [hden, Real.sqrt_mul (by norm_num : (0 : ℝ) ≤ 2), div_div] |
| 93 | apply div_le_div_of_nonneg_left hr.le |
| 94 | (mul_pos (Real.sqrt_pos.mpr (by norm_num : (0 : ℝ) < 2)) (Real.sqrt_pos.mpr hQ)) |
| 95 | apply mul_le_mul_of_nonneg_right _ (Real.sqrt_nonneg Q) |
| 96 | nlinarith [Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 2), Real.sqrt_nonneg 2] |
| 97 | change ∀ y ∈ G.ball (x (L.subsequence k)) (r / 2), |
| 98 | (M13.scaleLeviCivitaData (E.flow.connection (t (L.subsequence k))) |
| 99 | Q hQ).curvatureDerivativeNorm 1 y ≤ B |
| 100 | intro y hy |
| 101 | have hy' : y ∈ g.ball (phi L.limit.base) (r / Real.sqrt (Q / (1 - 1 / 2))) := by |
| 102 | rw [hbase] |
| 103 | have hysmall : y ∈ g.ball (x (L.subsequence k)) ((r / 2) / Real.sqrt Q) := by |
| 104 | rw [hscaled] |
| 105 | exact hy |
| 106 | exact hysmall.trans_le (ENNReal.ofReal_le_ofReal hsmall) |
| 107 | obtain ⟨z, hz, hzy⟩ := hretain k ((le_max_right N N').trans hk) L.limit.base r hr hball hy' |
| 108 | have hzC : z ∈ C := interior_subset (hball (subset_closure hz)) |
| 109 | obtain ⟨p, hp, hpz⟩ := hzC |
| 110 | have h := hbound k ((le_max_left N N').trans hk) p hp |
| 111 | change (M13.scaleLeviCivitaData (E.flow.connection (t (L.subsequence k))) |
| 112 | Q hQ).curvatureDerivativeNorm 1 (phi (c.symm p)) ≤ B at h |
| 113 | change phi z = y at hzy |
| 114 | rwa [hpz, hzy] at h |
| 115 | |
| 116 | /-- Every actual extracted sequence has a fixed positive normalized ambient |
| 117 | radius on which its first covariant curvature derivatives are eventually bounded. -/ |
| 118 | theorem blowupSequence_exists_curvature_derivative_ball_bound |
| 119 | (P : M35StandardCapPredecessors) |
| 120 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 121 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 122 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 123 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 124 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 125 | (blowupBackwardInterval ⊤)) : |
| 126 | ∃ d B : ℝ, 0 < d ∧ 0 < B ∧ ∀ᶠ k in atTop, |
| 127 | let Q := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 128 | let hQ := (blowupSequence P E t x ht hR).base_scalar_pos (L.subsequence k) |
| 129 | ∀ y ∈ RiemannianMetric.ball |
| 130 | (M13.scaleSmoothMetric (E.flow.metric (t (L.subsequence k))) Q hQ) |
| 131 | (x (L.subsequence k)) d, |
| 132 | (M13.scaleLeviCivitaData (E.flow.connection (t (L.subsequence k))) |
| 133 | Q hQ).curvatureDerivativeNorm 1 y ≤ B := by |
| 134 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 135 | let : ChartedSpace V L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 136 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 137 | have : T3Space L.limit.carrier.carrier := L.limit.carrier.t3Space |
| 138 | have : ConnectedSpace L.limit.carrier.carrier := L.limit.connectedSpace |
| 139 | let q := L.limit.base |
| 140 | let c := extChartAt (𝓡 3) (show L.limit.carrier.carrier from q) |
| 141 | let U := c.target ∩ c.symm ⁻¹' L.exhaustion.space 0 |
| 142 | have hU : IsOpen U := (continuousOn_extChartAt_symm |
| 143 | (show L.limit.carrier.carrier from q)).isOpen_inter_preimage |
| 144 | (isOpen_extChartAt_target (show L.limit.carrier.carrier from q)) |
| 145 | (L.exhaustion.space_open 0) |
| 146 | have hqU : c q ∈ U := by |
| 147 | refine ⟨mem_extChartAt_target (show L.limit.carrier.carrier from q), ?_⟩ |
| 148 | change c.symm (c q) ∈ L.exhaustion.space 0 |
| 149 | rw [c.left_inv (mem_extChartAt_source (show L.limit.carrier.carrier from q))] |
| 150 | exact L.exhaustion.base_mem 0 |
| 151 | obtain ⟨K, hK, hqK, hKU⟩ := exists_compact_between isCompact_singleton hU |
| 152 | (singleton_subset_iff.mpr hqU) |
| 153 | let W := c.source ∩ c ⁻¹' interior K |
| 154 | have hccont : ContinuousOn c c.source := by |
| 155 | have hsource := extChartAt_source (𝓡 3) (show L.limit.carrier.carrier from q) |
| 156 | rw [hsource] |
| 157 | exact (contMDiffOn_extChartAt (I := 𝓡 3) (n := ∞) |
| 158 | (x := (show L.limit.carrier.carrier from q))).continuousOn |
| 159 | have hW : IsOpen W := hccont.isOpen_inter_preimage |
| 160 | (isOpen_extChartAt_source (show L.limit.carrier.carrier from q)) isOpen_interior |
| 161 | have hqW : q ∈ W := |
| 162 | ⟨mem_extChartAt_source (show L.limit.carrier.carrier from q), hqK (mem_singleton _)⟩ |
| 163 | have hWK : W ⊆ c.symm '' K := by |
| 164 | intro z hz |
| 165 | exact ⟨c z, interior_subset hz.2, c.left_inv hz.1⟩ |
| 166 | have hqint : q ∈ interior (c.symm '' K) := (hW.subset_interior_iff.mpr hWK) hqW |
| 167 | let g := L.limit.flow.metric 0 |
| 168 | let : MetricSpace L.limit.carrier.carrier := Proofs.M09.selectedMetricSpace g |
| 169 | obtain ⟨a, ha, hball⟩ := Metric.mem_nhds_iff.mp (isOpen_interior.mem_nhds hqint) |
| 170 | have hclosure : closure (g.ball q (a / 2)) ⊆ interior (c.symm '' K) := by |
| 171 | rw [riemannian_closure_ball g q (half_pos ha)] |
| 172 | intro z hz |
| 173 | apply hball |
| 174 | exact (Metric.mem_closedBall.mp hz).trans_lt (half_lt_self ha) |
| 175 | obtain ⟨B, hB, hbound⟩ := blowupSequence_curvature_derivative_bounded_ball_of_chart |
| 176 | P E t x ht hR L q 0 K hK hKU (a / 2) (half_pos ha) hclosure |
| 177 | exact ⟨(a / 2) / 2, B, half_pos (half_pos ha), hB, hbound⟩ |
| 178 | |
| 179 | end PoincareMT.M35.OrdinaryRealization |