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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Spheres.RoundModelChristoffel |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Tube.Spheres.RoundSecondJetConversion |
| 4 | import PoincareLib.Geometry.Riemannian.Tensor.MaximumPrinciple.TensorLaplacianCoordinates |
| 5 | |
| 6 | /-! |
| 7 | # Tensor-valued model connection for the second-jet conversion |
| 8 | |
| 9 | The raw Christoffel field has two tangent inputs, while the second-jet |
| 10 | conversion acts on a tensor-valued section. M07's negative slot action is the |
| 11 | canonical lift to a covariant two-tensor. This file keeps that lift explicit |
| 12 | and obtains its centre vanishing from the actual round-model Gauss identity. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option maxSynthPendingDepth 12 |
| 19 | |
| 20 | open Set Filter Metric |
| 21 | open scoped Manifold ContDiff Bundle BigOperators Topology |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT.M28.tube |
| 26 | |
| 27 | open PoincareMT.SpacetimeBounds |
| 28 | open PoincareMT.CoordinateExponential |
| 29 | |
| 30 | variable {M : Type u} [TopologicalSpace M] |
| 31 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 32 | [IsManifold (𝓡 3) ∞ M] |
| 33 | |
| 34 | abbrev ModelE := EuclideanSpace ℝ (Fin 3) |
| 35 | abbrev ModelTensor2 := PoincareMT.TensorFiber ModelE 2 |
| 36 | |
| 37 | /-- The continuous linear lift of a tangent endomorphism to covariant |
| 38 | two-tensors. It is the negative sum of the two slot actions. -/ |
| 39 | noncomputable def modelTensorSlotActionLift (L : ModelE →L[ℝ] ModelE) : |
| 40 | ModelTensor2 →L[ℝ] ModelTensor2 := |
| 41 | PoincareMT.TensorFiber.negativeSlotAction L |
| 42 | |
| 43 | /-- The lifted model connection used by the second-jet conversion. -/ |
| 44 | noncomputable def modelTensorConnectionLift |
| 45 | (Γ : ModelE →L[ℝ] ModelE →L[ℝ] ModelE) : |
| 46 | ModelE →L[ℝ] ModelTensor2 →L[ℝ] ModelTensor2 := |
| 47 | (show ModelE →ₗ[ℝ] ModelTensor2 →L[ℝ] ModelTensor2 from |
| 48 | { toFun := fun u => modelTensorSlotActionLift (Γ u) |
| 49 | map_add' := by |
| 50 | intro u v |
| 51 | apply ContinuousLinearMap.ext |
| 52 | intro T |
| 53 | apply PoincareMT.TensorFiber.ext |
| 54 | intro a |
| 55 | simp [modelTensorSlotActionLift, |
| 56 | PoincareMT.TensorFiber.negativeSlotAction_apply] |
| 57 | ring |
| 58 | map_smul' := by |
| 59 | intro c u |
| 60 | apply ContinuousLinearMap.ext |
| 61 | intro T |
| 62 | apply PoincareMT.TensorFiber.ext |
| 63 | intro a |
| 64 | simp [modelTensorSlotActionLift, |
| 65 | PoincareMT.TensorFiber.negativeSlotAction_apply] |
| 66 | ring }).toContinuousLinearMap |
| 67 | |
| 68 | noncomputable def modelTensorConnectionLiftMap : |
| 69 | (ModelE →L[ℝ] ModelE →L[ℝ] ModelE) →L[ℝ] |
| 70 | (ModelE →L[ℝ] ModelTensor2 →L[ℝ] ModelTensor2) := |
| 71 | (show (ModelE →L[ℝ] ModelE →L[ℝ] ModelE) →ₗ[ℝ] |
| 72 | (ModelE →L[ℝ] ModelTensor2 →L[ℝ] ModelTensor2) from |
| 73 | { toFun := modelTensorConnectionLift |
| 74 | map_add' := by |
| 75 | intro Γ Δ |
| 76 | apply ContinuousLinearMap.ext |
| 77 | intro u |
| 78 | apply ContinuousLinearMap.ext |
| 79 | intro T |
| 80 | apply PoincareMT.TensorFiber.ext |
| 81 | intro a |
| 82 | simp [modelTensorConnectionLift, modelTensorSlotActionLift, |
| 83 | PoincareMT.TensorFiber.negativeSlotAction_apply] |
| 84 | ring |
| 85 | map_smul' := by |
| 86 | intro c Γ |
| 87 | apply ContinuousLinearMap.ext |
| 88 | intro u |
| 89 | apply ContinuousLinearMap.ext |
| 90 | intro T |
| 91 | apply PoincareMT.TensorFiber.ext |
| 92 | intro a |
| 93 | simp [modelTensorConnectionLift, modelTensorSlotActionLift, |
| 94 | PoincareMT.TensorFiber.negativeSlotAction_apply] |
| 95 | ring }).toContinuousLinearMap |
| 96 | |
| 97 | noncomputable def roundModelTensorConnection |
| 98 | (B : ModelE → ModelE →L[ℝ] ModelE →L[ℝ] ℝ) : |
| 99 | ModelE → ModelE →L[ℝ] ModelTensor2 →L[ℝ] ModelTensor2 := |
| 100 | fun x => modelTensorConnectionLift (christoffelBilinear B x) |
| 101 | |
| 102 | @[simp] theorem roundModelTensorConnection_apply |
| 103 | (B : ModelE → ModelE →L[ℝ] ModelE →L[ℝ] ℝ) |
| 104 | (x u : ModelE) (T : ModelTensor2) : |
| 105 | roundModelTensorConnection B x u T = |
| 106 | modelTensorSlotActionLift (christoffelBilinear B x u) T := by |
| 107 | rfl |
| 108 | |
| 109 | theorem contDiffAt_roundModelTensorConnection |
| 110 | {B : ModelE → ModelE →L[ℝ] ModelE →L[ℝ] ℝ} {x : ModelE} |
| 111 | (hB : ContDiffAt ℝ ∞ B x) (hBinv : (B x).IsInvertible) : |
| 112 | ContDiffAt ℝ ∞ (roundModelTensorConnection B) x := by |
| 113 | have hΓ := contDiffAt_christoffelBilinear hB hBinv |
| 114 | change ContDiffAt ℝ ∞ |
| 115 | (fun y => modelTensorConnectionLiftMap (christoffelBilinear B y)) x |
| 116 | exact modelTensorConnectionLiftMap.contDiff.contDiffAt.comp x hΓ |
| 117 | |
| 118 | theorem norm_fderiv_roundModelTensorConnection_le |
| 119 | {B : ModelE → ModelE →L[ℝ] ModelE →L[ℝ] ℝ} {C : ℝ} |
| 120 | (hB : ContDiffAt ℝ ∞ B 0) (hBinv : (B 0).IsInvertible) |
| 121 | (_hC : 0 ≤ C) |
| 122 | (hΓ : ∀ u : ModelE, |
| 123 | ‖fderiv ℝ (christoffelBilinear B) 0 u‖ ≤ C * ‖u‖) (u : ModelE) : |
| 124 | ‖fderiv ℝ (roundModelTensorConnection B) 0 u‖ ≤ |
| 125 | ‖modelTensorConnectionLiftMap‖ * C * ‖u‖ := by |
| 126 | have hΓd : DifferentiableAt ℝ (christoffelBilinear B) 0 := |
| 127 | (contDiffAt_christoffelBilinear hB hBinv).differentiableAt (by simp) |
| 128 | have hcomp := (modelTensorConnectionLiftMap.hasFDerivAt.comp 0 |
| 129 | hΓd.hasFDerivAt).fderiv |
| 130 | have heq : fderiv ℝ (roundModelTensorConnection B) 0 u = |
| 131 | modelTensorConnectionLiftMap |
| 132 | ((fderiv ℝ (christoffelBilinear B) 0) u) := by |
| 133 | have hcomp' : fderiv ℝ (fun y => |
| 134 | modelTensorConnectionLiftMap (christoffelBilinear B y)) 0 = |
| 135 | modelTensorConnectionLiftMap.comp |
| 136 | (fderiv ℝ (christoffelBilinear B) 0) := hcomp |
| 137 | rw [show roundModelTensorConnection B = fun y => |
| 138 | modelTensorConnectionLiftMap (christoffelBilinear B y) by rfl, hcomp'] |
| 139 | rfl |
| 140 | rw [heq] |
| 141 | calc |
| 142 | ‖modelTensorConnectionLiftMap |
| 143 | ((fderiv ℝ (christoffelBilinear B) 0) u)‖ ≤ |
| 144 | ‖modelTensorConnectionLiftMap‖ * |
| 145 | ‖(fderiv ℝ (christoffelBilinear B) 0) u‖ := by |
| 146 | exact ContinuousLinearMap.le_opNorm modelTensorConnectionLiftMap |
| 147 | ((fderiv ℝ (christoffelBilinear B) 0) u) |
| 148 | _ ≤ ‖modelTensorConnectionLiftMap‖ * (C * ‖u‖) := by |
| 149 | exact mul_le_mul_of_nonneg_left (hΓ u) |
| 150 | (norm_nonneg modelTensorConnectionLiftMap) |
| 151 | _ = ‖modelTensorConnectionLiftMap‖ * C * ‖u‖ := by ring |
| 152 | |
| 153 | theorem exists_round_model_tensor_connection_fderiv_bound |
| 154 | {g : RiemannianMetric 3 M} {epsilon : ℝ} |
| 155 | (N : SingularRoundComponent g epsilon) |
| 156 | {ρ R : ℝ} (hρ : 0 < ρ) (hρR : ρ < R) |
| 157 | (e : ModelE → N.model.carrier) |
| 158 | (he : ContMDiffOn (𝓡 3) (𝓡 3) ∞ e (ball 0 R)) |
| 159 | (hi : ∀ x ∈ ball 0 R, |
| 160 | (mfderiv (𝓡 3) (𝓡 3) e x).IsInvertible) |
| 161 | (hcenter : ∀ v w, |
| 162 | N.model_metric.pullbackCoefficients e 0 v w = inner ℝ v w) |
| 163 | (hgauss : ∀ x ∈ ball 0 R, ∀ w, |
| 164 | N.model_metric.pullbackCoefficients e x x w = inner ℝ x w) : |
| 165 | ∃ C : ℝ, 0 ≤ C ∧ |
| 166 | ∀ u : ModelE, |
| 167 | ‖fderiv ℝ (roundModelTensorConnection |
| 168 | (N.model_metric.pullbackCoefficients e)) 0 u‖ ≤ C * ‖u‖ := by |
| 169 | obtain ⟨C, hC, _hrawPoint, hrawOp, _hrawNorm⟩ := |
| 170 | exists_round_model_christoffel_operator_jet_bound |
| 171 | N hρ hρR e he hi hcenter hgauss |
| 172 | let C' := ‖modelTensorConnectionLiftMap‖ * C |
| 173 | have hC' : 0 ≤ C' := mul_nonneg (norm_nonneg _) hC |
| 174 | refine ⟨C', hC', ?_⟩ |
| 175 | intro u |
| 176 | have hB : ContDiffAt ℝ ∞ |
| 177 | (N.model_metric.pullbackCoefficients e) 0 := by |
| 178 | exact N.model_metric.contDiffAt_pullbackCoefficients |
| 179 | (he.contMDiffAt (isOpen_ball.mem_nhds (mem_ball_self |
| 180 | (hρ.trans hρR)))) |
| 181 | have hBinv : |
| 182 | (N.model_metric.pullbackCoefficients e 0).IsInvertible := by |
| 183 | exact N.model_metric.isInvertible_pullbackCoefficients |
| 184 | (hi 0 (mem_ball.mpr (by simpa using hρ.trans hρR))).injective |
| 185 | simpa [C'] using norm_fderiv_roundModelTensorConnection_le |
| 186 | hB hBinv hC (fun v => hrawOp v) u |
| 187 | |
| 188 | theorem round_model_tensor_connection_zero |
| 189 | {g : RiemannianMetric 3 M} {epsilon : ℝ} |
| 190 | (N : SingularRoundComponent g epsilon) |
| 191 | {ρ R : ℝ} (hρ : 0 < ρ) (hρR : ρ < R) |
| 192 | (e : ModelE → N.model.carrier) |
| 193 | (he : ContMDiffOn (𝓡 3) (𝓡 3) ∞ e (ball 0 R)) |
| 194 | (hi : ∀ x ∈ ball 0 R, |
| 195 | (mfderiv (𝓡 3) (𝓡 3) e x).IsInvertible) |
| 196 | (hcenter : ∀ v w, |
| 197 | N.model_metric.pullbackCoefficients e 0 v w = inner ℝ v w) |
| 198 | (hgauss : ∀ x ∈ ball 0 R, ∀ w, |
| 199 | N.model_metric.pullbackCoefficients e x x w = inner ℝ x w) : |
| 200 | roundModelTensorConnection (N.model_metric.pullbackCoefficients e) 0 = 0 := by |
| 201 | have hzero := round_model_christoffel_zero N hρ hρR e he hi hcenter hgauss |
| 202 | apply ContinuousLinearMap.ext |
| 203 | intro u |
| 204 | apply ContinuousLinearMap.ext |
| 205 | intro T |
| 206 | rw [roundModelTensorConnection_apply, hzero] |
| 207 | apply PoincareMT.TensorFiber.ext |
| 208 | intro a |
| 209 | simp [modelTensorSlotActionLift, |
| 210 | PoincareMT.TensorFiber.negativeSlotAction_apply] |
| 211 | |
| 212 | /- The exact second-jet estimate is now instantiated with the model-derived |
| 213 | connection. The covariant bound remains an explicit geometric input; this |
| 214 | is the quantity supplied by the frozen tensor comparison, while the |
| 215 | Christoffel centre and target fibre are produced here. -/ |
| 216 | theorem norm_round_model_second_fderiv_le |
| 217 | {g : RiemannianMetric 3 M} {epsilon : ℝ} |
| 218 | (N : SingularRoundComponent g epsilon) |
| 219 | {ρ R : ℝ} (hρ : 0 < ρ) (hρR : ρ < R) |
| 220 | (e : ModelE → N.model.carrier) |
| 221 | (he : ContMDiffOn (𝓡 3) (𝓡 3) ∞ e (ball 0 R)) |
| 222 | (hi : ∀ x ∈ ball 0 R, |
| 223 | (mfderiv (𝓡 3) (𝓡 3) e x).IsInvertible) |
| 224 | (hcenter : ∀ v w, |
| 225 | N.model_metric.pullbackCoefficients e 0 v w = inner ℝ v w) |
| 226 | (hgauss : ∀ x ∈ ball 0 R, ∀ w, |
| 227 | N.model_metric.pullbackCoefficients e x x w = inner ℝ x w) |
| 228 | {S : ModelE → ModelTensor2} (hS : ContDiffAt ℝ ∞ S 0) |
| 229 | (u v : ModelE) {A G V W : ℝ} |
| 230 | (hA : ‖Poincare.Riemannian.RadialTransport.covariantDerivative |
| 231 | (roundModelTensorConnection (N.model_metric.pullbackCoefficients e)) |
| 232 | (fun y => Poincare.Riemannian.RadialTransport.covariantDerivative |
| 233 | (roundModelTensorConnection (N.model_metric.pullbackCoefficients e)) S y v) |
| 234 | 0 u‖ ≤ A) |
| 235 | (hG : ‖fderiv ℝ (roundModelTensorConnection |
| 236 | (N.model_metric.pullbackCoefficients e)) 0 u‖ ≤ G) |
| 237 | (hV : ‖v‖ ≤ V) (hW : ‖S 0‖ ≤ W) |
| 238 | (hA0 : 0 ≤ A) (hG0 : 0 ≤ G) (hV0 : 0 ≤ V) (hW0 : 0 ≤ W) : |
| 239 | ‖fderiv ℝ (fun y => fderiv ℝ S y v) 0 u‖ ≤ A + G * V * W := by |
| 240 | apply norm_second_fderiv_le_of_zero_connection |
| 241 | · exact contDiffAt_roundModelTensorConnection (by |
| 242 | exact (N.model_metric.contDiffAt_pullbackCoefficients |
| 243 | (he.contMDiffAt (isOpen_ball.mem_nhds (mem_ball_self (hρ.trans hρR)))))) |
| 244 | (N.model_metric.isInvertible_pullbackCoefficients |
| 245 | (hi 0 (mem_ball.mpr (by simpa using hρ.trans hρR))).injective) |
| 246 | · exact hS |
| 247 | · exact round_model_tensor_connection_zero N hρ hρR e he hi hcenter hgauss |
| 248 | · exact hA |
| 249 | · exact hG |
| 250 | · exact hV |
| 251 | · exact hW |
| 252 | · exact hA0 |
| 253 | · exact hG0 |
| 254 | · exact hV0 |
| 255 | · exact hW0 |
| 256 | |
| 257 | theorem norm_round_model_second_fderiv_le_of_covariant_bound |
| 258 | {g : RiemannianMetric 3 M} {epsilon : ℝ} |
| 259 | (N : SingularRoundComponent g epsilon) |
| 260 | {ρ R : ℝ} (hρ : 0 < ρ) (hρR : ρ < R) |
| 261 | (e : ModelE → N.model.carrier) |
| 262 | (he : ContMDiffOn (𝓡 3) (𝓡 3) ∞ e (ball 0 R)) |
| 263 | (hi : ∀ x ∈ ball 0 R, |
| 264 | (mfderiv (𝓡 3) (𝓡 3) e x).IsInvertible) |
| 265 | (hcenter : ∀ v w, |
| 266 | N.model_metric.pullbackCoefficients e 0 v w = inner ℝ v w) |
| 267 | (hgauss : ∀ x ∈ ball 0 R, ∀ w, |
| 268 | N.model_metric.pullbackCoefficients e x x w = inner ℝ x w) |
| 269 | {S : ModelE → ModelTensor2} (hS : ContDiffAt ℝ ∞ S 0) |
| 270 | (u v : ModelE) {A V W : ℝ} |
| 271 | (hA : ‖Poincare.Riemannian.RadialTransport.covariantDerivative |
| 272 | (roundModelTensorConnection (N.model_metric.pullbackCoefficients e)) |
| 273 | (fun y => Poincare.Riemannian.RadialTransport.covariantDerivative |
| 274 | (roundModelTensorConnection (N.model_metric.pullbackCoefficients e)) S y v) |
| 275 | 0 u‖ ≤ A) |
| 276 | (hV : ‖v‖ ≤ V) (hW : ‖S 0‖ ≤ W) |
| 277 | (hA0 : 0 ≤ A) (hV0 : 0 ≤ V) (hW0 : 0 ≤ W) : |
| 278 | ∃ C : ℝ, 0 ≤ C ∧ |
| 279 | ‖fderiv ℝ (fun y => fderiv ℝ S y v) 0 u‖ ≤ |
| 280 | A + (C * ‖u‖) * V * W := by |
| 281 | obtain ⟨C, hC, hconn⟩ := |
| 282 | exists_round_model_tensor_connection_fderiv_bound |
| 283 | N hρ hρR e he hi hcenter hgauss |
| 284 | have hG : ‖fderiv ℝ (roundModelTensorConnection |
| 285 | (N.model_metric.pullbackCoefficients e)) 0 u‖ ≤ |
| 286 | C * ‖u‖ := hconn u |
| 287 | have hG0 : 0 ≤ C * ‖u‖ := |
| 288 | mul_nonneg hC (norm_nonneg _) |
| 289 | refine ⟨C, hC, ?_⟩ |
| 290 | exact norm_round_model_second_fderiv_le N hρ hρR e he hi hcenter hgauss |
| 291 | hS u v hA hG hV hW hA0 hG0 hV0 hW0 |
| 292 | |
| 293 | end PoincareMT.M28.tube |