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.Pinching.CurvatureTensor |
| 2 | import PoincareLib.Geometry.RicciFlow.Pinching.GeometricPreservation.Transport |
| 3 | |
| 4 | /-! |
| 5 | # Hamilton--Ivey carrier in the initial metric |
| 6 | |
| 7 | Canonical Ricci transport pulls the intrinsic Ricci complement back to the |
| 8 | fixed initial tensor bundle. Membership there is equivalent to the original |
| 9 | scalar carrier at the evolving metric, including the absolute-time scaling. |
| 10 | |
| 11 | Reference: Morgan--Tian, Claim 3.16, p. 42; Theorem 4.8, p. 66; |
| 12 | Claims 4.28--4.31, pp. 77--79; Theorem 4.32, pp. 79--80. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set |
| 21 | open scoped Manifold ContDiff Bundle InnerProductSpace |
| 22 | open Poincare.HamiltonIvey |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.LeviCivitaData |
| 27 | |
| 28 | variable {M : Type u} [TopologicalSpace M] [T2Space M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 30 | {g : RiemannianMetric 3 M} |
| 31 | |
| 32 | /-- Isometric pullback expresses the retained geometric carrier in any fixed |
| 33 | three-dimensional inner-product space. -/ |
| 34 | theorem ricciComplementTensor_pullback_mem_tensorRegion_iff |
| 35 | {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 36 | [FiniteDimensional ℝ E] (hn : Module.finrank ℝ E = 3) |
| 37 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) (x : M) |
| 38 | (e : E ≃ₗ[ℝ] TangentSpace (𝓡 3) x) |
| 39 | (he : ∀ v w, g.inner x (e v) (e w) = inner ℝ v w) |
| 40 | {t : ℝ} (ht : 0 ≤ t) : |
| 41 | TensorFiber.toMultilinear.symm |
| 42 | ((TensorFiber.toMultilinear (D.ricciComplementTensor hD x)).compLinearMap |
| 43 | (fun _ => e.toLinearMap)) ∈ tensorRegion hn t ↔ |
| 44 | (D.scalarCurvature x / 2, D.negativeCurvaturePart x) ∈ scalarRegion t := by |
| 45 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 46 | ⟨g.toRiemannianMetric⟩ |
| 47 | let : FiniteDimensional ℝ (TangentSpace (𝓡 3) x) := by |
| 48 | unfold TangentSpace |
| 49 | infer_instance |
| 50 | have hm : Module.finrank ℝ (TangentSpace (𝓡 3) x) = 3 := by |
| 51 | change Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)) = 3 |
| 52 | simp |
| 53 | let L : E ≃ₗᵢ[ℝ] TangentSpace (𝓡 3) x := e.isometryOfInner he |
| 54 | have h := tensorRegion_transport_equiv_iff hm hn L.symm ht |
| 55 | (D.ricciComplementTensor hD x) |
| 56 | exact h.trans (D.ricciComplementTensor_mem_tensorRegion_iff hD x hm ht) |
| 57 | |
| 58 | end PoincareMT.LeviCivitaData |
| 59 | |
| 60 | namespace PoincareMT.RicciFlow.Frame |
| 61 | |
| 62 | variable {M : Type u} [TopologicalSpace M] |
| 63 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 64 | {a b : ℝ} |
| 65 | |
| 66 | local instance (x : M) : FiniteDimensional ℝ (TangentSpace (𝓡 3) x) := by |
| 67 | unfold TangentSpace |
| 68 | infer_instance |
| 69 | |
| 70 | /-- The intrinsic Ricci complement pulled back along the constructed Ricci |
| 71 | transport, as a covariant tensor on the initial tangent fiber. -/ |
| 72 | def transportedRicciComplementTensor (F : RicciFlow 3 M (Ico a b)) |
| 73 | (hC : RicciFlowCurvatureTheory.{u}) (t : ℝ) (x : M) : |
| 74 | TensorFiber (TangentSpace (𝓡 3) x) 2 := |
| 75 | TensorFiber.toMultilinear.symm |
| 76 | ((TensorFiber.toMultilinear ((F.connection t).ricciComplementTensor |
| 77 | (hC.tensor_calculus 3 M (F.metric t) (F.connection t)) x)).compLinearMap |
| 78 | (fun _ => (canonicalTransport F t x).toLinearMap)) |
| 79 | |
| 80 | @[simp] theorem transportedRicciComplementTensor_apply |
| 81 | (F : RicciFlow 3 M (Ico a b)) (hC : RicciFlowCurvatureTheory.{u}) |
| 82 | (t : ℝ) (x : M) (v : Fin 2 → TangentSpace (𝓡 3) x) : |
| 83 | transportedRicciComplementTensor F hC t x v = |
| 84 | (F.connection t).ricciComplementEvaluation x |
| 85 | (fun i => canonicalTransport F t x (v i)) := by |
| 86 | exact (F.connection t).ricciComplementTensor_apply _ x _ |
| 87 | |
| 88 | @[simp] theorem transportedRicciComplementTensor_initial |
| 89 | (F : RicciFlow 3 M (Ico a b)) (hC : RicciFlowCurvatureTheory.{u}) |
| 90 | (hab : a < b) (x : M) : |
| 91 | transportedRicciComplementTensor F hC a x = |
| 92 | (F.connection a).ricciComplementTensor |
| 93 | (hC.tensor_calculus 3 M (F.metric a) (F.connection a)) x := by |
| 94 | apply TensorFiber.ext |
| 95 | intro v |
| 96 | simp only [transportedRicciComplementTensor_apply, canonicalTransport_initial F hab, |
| 97 | ContinuousLinearMap.id_apply, LeviCivitaData.ricciComplementTensor_apply] |
| 98 | |
| 99 | /-- The pulled-back section is spatially smooth at each included time. -/ |
| 100 | theorem transportedRicciComplementTensor_isSmooth |
| 101 | (F : RicciFlow 3 M (Ico a b)) (hC : RicciFlowCurvatureTheory.{u}) |
| 102 | {t : ℝ} (ht : t ∈ Ico a b) : |
| 103 | IsSmoothCovariantTensor (fun x v => transportedRicciComplementTensor F hC t x v) := by |
| 104 | have hT := (F.connection t).isSmoothCovariantTensor_ricciComplementEvaluation |
| 105 | (hC.tensor_calculus 3 M (F.metric t) (F.connection t)) |
| 106 | constructor |
| 107 | · intro x |
| 108 | exact ⟨TensorFiber.toMultilinear (transportedRicciComplementTensor F hC t x), |
| 109 | fun _ => rfl⟩ |
| 110 | · intro O hO Y hY |
| 111 | simpa only [transportedRicciComplementTensor_apply] using |
| 112 | hT.2 O hO (fun i y => canonicalTransport F t y (Y i y)) |
| 113 | (fun i => (canonicalTransport_contMDiff_space F ht).contMDiffOn.clm_bundle_apply (hY i)) |
| 114 | |
| 115 | /-- Membership of the actual transported tensor recovers precisely the |
| 116 | retained scalar carrier, with the metric fixed at the initial time. -/ |
| 117 | theorem transportedRicciComplementTensor_mem_tensorRegion_iff [T2Space M] |
| 118 | (F : RicciFlow 3 M (Ico a b)) (hC : RicciFlowCurvatureTheory.{u}) |
| 119 | (hab : a < b) (x : M) (hn : Module.finrank ℝ (TangentSpace (𝓡 3) x) = 3) |
| 120 | {t : ℝ} (ht : t ∈ Ico a b) {s : ℝ} (hs : 0 ≤ s) : |
| 121 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 122 | ⟨(F.metric a).toRiemannianMetric⟩ |
| 123 | transportedRicciComplementTensor F hC t x ∈ tensorRegion hn s ↔ |
| 124 | ((F.connection t).scalarCurvature x / 2, |
| 125 | (F.connection t).negativeCurvaturePart x) ∈ scalarRegion s := by |
| 126 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 127 | ⟨(F.metric a).toRiemannianMetric⟩ |
| 128 | exact (F.connection t).ricciComplementTensor_pullback_mem_tensorRegion_iff hn |
| 129 | (hC.tensor_calculus 3 M (F.metric t) (F.connection t)) x |
| 130 | (orthonormalTransport F t x).toLinearEquiv |
| 131 | (canonicalTransport_pairing F hab ht x) hs |
| 132 | |
| 133 | /-- Absolute-time scaling identifies the fixed initial-metric carrier with |
| 134 | the evolving geometric scalar carrier. -/ |
| 135 | theorem scaled_transportedRicciComplementTensor_mem_iff [T2Space M] |
| 136 | (F : RicciFlow 3 M (Ico a b)) (hC : RicciFlowCurvatureTheory.{u}) |
| 137 | (ha : 0 ≤ a) (hab : a < b) (x : M) |
| 138 | (hn : Module.finrank ℝ (TangentSpace (𝓡 3) x) = 3) |
| 139 | {t : ℝ} (ht : t ∈ Ico a b) : |
| 140 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 141 | ⟨(F.metric a).toRiemannianMetric⟩ |
| 142 | (1 + t) • transportedRicciComplementTensor F hC t x ∈ tensorRegion hn 0 ↔ |
| 143 | ((F.connection t).scalarCurvature x / 2, |
| 144 | (F.connection t).negativeCurvaturePart x) ∈ scalarRegion t := by |
| 145 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 146 | ⟨(F.metric a).toRiemannianMetric⟩ |
| 147 | rw [← tensorRegion_scale_iff hn (ha.trans ht.1)] |
| 148 | exact transportedRicciComplementTensor_mem_tensorRegion_iff F hC hab x hn ht |
| 149 | (ha.trans ht.1) |
| 150 | |
| 151 | /-- The frozen initial scalar and logarithmic inequalities place the actual |
| 152 | transported, scaled section in the fixed carrier. -/ |
| 153 | theorem scaled_transportedRicciComplementTensor_initial_mem [T2Space M] |
| 154 | (F : RicciFlow 3 M (Ico a b)) (hC : RicciFlowCurvatureTheory.{u}) |
| 155 | (ha : 0 ≤ a) (hab : a < b) (x : M) |
| 156 | (hn : Module.finrank ℝ (TangentSpace (𝓡 3) x) = 3) |
| 157 | (htrace : -6 / (1 + 4 * a) ≤ (F.connection a).scalarCurvature x) |
| 158 | (hlog : 0 < (F.connection a).negativeCurvaturePart x → |
| 159 | 2 * (F.connection a).negativeCurvaturePart x * |
| 160 | (Real.log ((F.connection a).negativeCurvaturePart x) + Real.log (1 + a) - 3) ≤ |
| 161 | (F.connection a).scalarCurvature x) : |
| 162 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 163 | ⟨(F.metric a).toRiemannianMetric⟩ |
| 164 | (1 + a) • transportedRicciComplementTensor F hC a x ∈ tensorRegion hn 0 := by |
| 165 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 166 | ⟨(F.metric a).toRiemannianMetric⟩ |
| 167 | rw [transportedRicciComplementTensor_initial F hC hab] |
| 168 | exact (F.connection a).scaled_ricciComplementTensor_mem_tensorRegion_of_pinching |
| 169 | (hC.tensor_calculus 3 M (F.metric a) (F.connection a)) x hn ha htrace hlog |
| 170 | |
| 171 | /-- A preserved scaled tensor yields the original logarithmic inequality, |
| 172 | with no choice of frame in its statement. -/ |
| 173 | theorem logarithmic_pinching_of_scaled_transportedRicciComplementTensor_mem [T2Space M] |
| 174 | (F : RicciFlow 3 M (Ico a b)) (hC : RicciFlowCurvatureTheory.{u}) |
| 175 | (ha : 0 ≤ a) (hab : a < b) (x : M) |
| 176 | (hn : Module.finrank ℝ (TangentSpace (𝓡 3) x) = 3) |
| 177 | {t : ℝ} (ht : t ∈ Ico a b) : |
| 178 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 179 | ⟨(F.metric a).toRiemannianMetric⟩ |
| 180 | (1 + t) • transportedRicciComplementTensor F hC t x ∈ tensorRegion hn 0 → |
| 181 | 0 < (F.connection t).negativeCurvaturePart x → |
| 182 | 2 * (F.connection t).negativeCurvaturePart x * |
| 183 | (Real.log ((F.connection t).negativeCurvaturePart x) + Real.log (1 + t) - 3) ≤ |
| 184 | (F.connection t).scalarCurvature x := by |
| 185 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 186 | ⟨(F.metric a).toRiemannianMetric⟩ |
| 187 | intro hmem |
| 188 | have hscalar := (scaled_transportedRicciComplementTensor_mem_iff F hC ha hab x hn ht).mp |
| 189 | hmem |
| 190 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 191 | ⟨(F.metric t).toRiemannianMetric⟩ |
| 192 | have hD := hC.tensor_calculus 3 M (F.metric t) (F.connection t) |
| 193 | apply (F.connection t).logarithmic_pinching_of_scaled_ricciComplementTensor_mem |
| 194 | hD x hn (ha.trans ht.1) |
| 195 | apply (tensorRegion_scale_iff hn (ha.trans ht.1) _).mp |
| 196 | exact ((F.connection t).ricciComplementTensor_mem_tensorRegion_iff hD x hn |
| 197 | (ha.trans ht.1)).mpr hscalar |
| 198 | |
| 199 | end PoincareMT.RicciFlow.Frame |