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.GeometricPreservation.TensorConnection |
| 2 | import PoincareLib.Geometry.RicciFlow.Pinching.CurvatureReaction |
| 3 | import PoincareLib.Geometry.Riemannian.Tensor.Laplacian.Product |
| 4 | import PoincareLib.Geometry.Riemannian.Tensor.LaplacianTrace.Four |
| 5 | import PoincareLib.Geometry.Riemannian.Tensor.MaximumPrinciple.LaplacianRegularity |
| 6 | import PoincareLib.Geometry.Riemannian.ScalarOperators.Scaling |
| 7 | |
| 8 | /-! |
| 9 | # Evolution of the intrinsic Ricci complement in Ricci transport |
| 10 | |
| 11 | The moving orthonormal components of the Ricci complement are the cyclic |
| 12 | components of the curvature tensor. Their time derivative is therefore the |
| 13 | retained geometric curvature evolution, with its intrinsic tensor reaction. |
| 14 | |
| 15 | Reference: Morgan--Tian, Proposition 3.19, pp. 44--45; Theorem 4.8, p. 66. |
| 16 | -/ |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | open Set Bundle |
| 24 | open scoped Manifold ContDiff Topology BigOperators |
| 25 | open Poincare.Geometry.Curvature.Operator Poincare.HamiltonIvey |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace PoincareMT.LeviCivitaData |
| 30 | |
| 31 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 32 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 33 | {g : RiemannianMetric n M} |
| 34 | |
| 35 | private theorem smooth_metricTensor : |
| 36 | IsSmoothCovariantTensor (fun (x : M) (v : Fin 2 → TangentSpace (𝓡 n) x) => |
| 37 | g.inner x (v 0) (v 1)) := by |
| 38 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 39 | ⟨g.toRiemannianMetric⟩ |
| 40 | let : IsContMDiffRiemannianBundle (𝓡 n) ∞ (EuclideanSpace ℝ (Fin n)) |
| 41 | (TangentSpace (𝓡 n) : M → Type _) := ⟨g.inner, g.contMDiff, fun _ _ _ => rfl⟩ |
| 42 | constructor |
| 43 | · intro x |
| 44 | refine ⟨TensorFiber.toMultilinear (TensorFiber.operatorTensor |
| 45 | (LinearMap.id : TangentSpace (𝓡 n) x →ₗ[ℝ] TangentSpace (𝓡 n) x)), ?_⟩ |
| 46 | intro v |
| 47 | rfl |
| 48 | · intro U hU X hX |
| 49 | exact (hX 0).inner_bundle (hX 1) |
| 50 | |
| 51 | private theorem covariantTensorDerivative_product_metric (D : LeviCivitaData g) |
| 52 | {k : ℕ} {S : CovariantTensorEvaluation n M k} (hS : IsSmoothCovariantTensor S) : |
| 53 | D.covariantTensorDerivative |
| 54 | (tensorProduct S (fun x (v : Fin 2 → TangentSpace (𝓡 n) x) => |
| 55 | g.inner x (v 0) (v 1))) = |
| 56 | tensorProduct (D.covariantTensorDerivative S) |
| 57 | (fun x (v : Fin 2 → TangentSpace (𝓡 n) x) => g.inner x (v 0) (v 1)) := by |
| 58 | funext x v |
| 59 | have hv : v = Fin.cons (v 0) (fun i => v i.succ) := by |
| 60 | ext i |
| 61 | cases i using Fin.cases <;> rfl |
| 62 | rw [hv, D.covariantTensorDerivative_tensorProduct hS (smooth_metricTensor (g := g))] |
| 63 | have hz := D.covariantTensorDerivative_metric_eq_zero x (v 0) |
| 64 | (v (Fin.natAdd k 0).succ) (v (Fin.natAdd k 1).succ) |
| 65 | have htuple : Fin.cons (v 0) (fun j : Fin 2 => v (Fin.natAdd k j).succ) = |
| 66 | ![v 0, v (Fin.natAdd k 0).succ, v (Fin.natAdd k 1).succ] := by |
| 67 | ext j |
| 68 | fin_cases j <;> rfl |
| 69 | simp only [htuple, hz, mul_zero, add_zero, tensorProduct] |
| 70 | congr 1 |
| 71 | |
| 72 | private theorem tensorLaplacian_scalar_metric (D : LeviCivitaData g) |
| 73 | {f : M → ℝ} (hf : ContMDiff (𝓡 n) (𝓘(ℝ, ℝ)) ∞ f) |
| 74 | (x : M) (u v : TangentSpace (𝓡 n) x) : |
| 75 | D.tensorLaplacian (fun y w => f y * g.inner y (w 0) (w 1)) x ![u, v] = |
| 76 | D.laplacian f x * g.inner x u v := by |
| 77 | let S : CovariantTensorEvaluation n M 0 := fun y _ => f y |
| 78 | have hS : IsSmoothCovariantTensor S := by |
| 79 | constructor |
| 80 | · intro y |
| 81 | exact ⟨MultilinearMap.constOfIsEmpty ℝ _ (f y), fun _ => rfl⟩ |
| 82 | · intro U hU X hX |
| 83 | exact hf.contMDiffOn |
| 84 | have hfirst := covariantTensorDerivative_product_metric D hS |
| 85 | have hsecond := covariantTensorDerivative_product_metric D |
| 86 | (D.covariantTensorDerivative_isSmooth hS) |
| 87 | have heq : (fun y (w : Fin 2 → TangentSpace (𝓡 n) y) => |
| 88 | f y * g.inner y (w 0) (w 1)) = |
| 89 | tensorProduct S (fun y (w : Fin 2 → TangentSpace (𝓡 n) y) => |
| 90 | g.inner y (w 0) (w 1)) := by |
| 91 | funext y w |
| 92 | rfl |
| 93 | rw [heq] |
| 94 | simp only [tensorLaplacian, iteratedCovariantTensorDerivative, hfirst, hsecond] |
| 95 | change (∑ i, D.covariantTensorDerivative (D.covariantTensorDerivative S) x |
| 96 | ![g.orthonormalBasis x i, g.orthonormalBasis x i] * g.inner x u v) = _ |
| 97 | rw [← Finset.sum_mul] |
| 98 | congr 1 |
| 99 | apply Finset.sum_congr rfl |
| 100 | intro i _ |
| 101 | simp [covariantTensorDerivative, hessian, hessianOnFields, S] |
| 102 | |
| 103 | private theorem tensorLaplacian_ricciComplement_split (D : LeviCivitaData g) |
| 104 | (hD : D.CurvatureTensorCalculus) (x : M) (u v : TangentSpace (𝓡 n) x) : |
| 105 | D.tensorLaplacian D.ricciComplementEvaluation x ![u, v] = |
| 106 | (D.laplacian D.scalarCurvature x / 2) * g.inner x u v - |
| 107 | D.tensorLaplacian D.ricciEvaluation x ![u, v] := by |
| 108 | have hscalar : ContMDiff (𝓡 n) (𝓘(ℝ, ℝ)) ∞ D.scalarCurvature := by |
| 109 | change ContMDiff (𝓡 n) (𝓘(ℝ, ℝ)) ∞ |
| 110 | (fun y => ∑ i, D.ricci y (g.orthonormalBasis y i) (g.orthonormalBasis y i)) |
| 111 | have hs := (hD.2.1.tensorTrace (g := g)).2 Set.univ isOpen_univ |
| 112 | (fun i => Fin.elim0 i) (fun i => Fin.elim0 i) |
| 113 | simpa [contMDiffOn_univ, RiemannianMetric.tensorTrace, scalarCurvature, |
| 114 | ricciEvaluation] using hs |
| 115 | let S : CovariantTensorEvaluation n M 2 := fun y w => |
| 116 | (D.scalarCurvature y / 2) * g.inner y (w 0) (w 1) |
| 117 | have hS : IsSmoothCovariantTensor S := by |
| 118 | have hh := (D.isSmoothCovariantTensor_ricciComplementEvaluation hD).add hD.2.1 |
| 119 | convert hh using 1 |
| 120 | funext y w |
| 121 | simp only [S, ricciComplementEvaluation, ricciEvaluation, sub_add_cancel] |
| 122 | change D.tensorLaplacian (fun y w => S y w - D.ricciEvaluation y w) x ![u, v] = _ |
| 123 | rw [D.tensorLaplacian_sub hS hD.2.1 (D.covariantTensorDerivative_isSmooth hS) |
| 124 | (D.covariantTensorDerivative_isSmooth hD.2.1)] |
| 125 | change D.tensorLaplacian S x ![u, v] - _ = _ |
| 126 | rw [tensorLaplacian_scalar_metric D (hscalar.div_const 2)] |
| 127 | have hf : (fun y => D.scalarCurvature y / 2) = |
| 128 | fun y => (1 / 2 : ℝ) * D.scalarCurvature y := by |
| 129 | funext y |
| 130 | ring |
| 131 | rw [hf, D.laplacian_const_mul] |
| 132 | ring |
| 133 | |
| 134 | private theorem tensorLaplacian_ricci_eq_sum_orthonormalBasis |
| 135 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) (x : M) : |
| 136 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 137 | ⟨g.toRiemannianMetric⟩ |
| 138 | ∀ (e : OrthonormalBasis (Fin n) ℝ (TangentSpace (𝓡 n) x)) |
| 139 | (u v : TangentSpace (𝓡 n) x), |
| 140 | D.tensorLaplacian D.ricciEvaluation x ![u, v] = |
| 141 | ∑ i, D.tensorLaplacian D.riemannEvaluation x ![u, e i, v, e i] := by |
| 142 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 143 | ⟨g.toRiemannianMetric⟩ |
| 144 | intro e u v |
| 145 | let σ : Equiv.Perm (Fin 4) := Equiv.ofBijective ![2, 0, 3, 1] (by decide) |
| 146 | let T : CovariantTensorEvaluation n M 4 := fun y w => D.riemannEvaluation y (w ∘ σ) |
| 147 | have hT : IsSmoothCovariantTensor T := hD.1.perm σ |
| 148 | have htrace : D.ricciEvaluation = g.tensorTrace T := by |
| 149 | funext y w |
| 150 | rfl |
| 151 | rw [htrace, D.tensorLaplacian_tensorTrace_four hT (D.covariantTensorDerivative_isSmooth hT)] |
| 152 | have hperm (p q : TangentSpace (𝓡 n) x) : |
| 153 | ![p, q, u, v] ∘ σ = ![u, p, v, q] := by |
| 154 | ext i |
| 155 | fin_cases i <;> rfl |
| 156 | change (∑ i, D.tensorLaplacian T x |
| 157 | ![g.orthonormalBasis x i, g.orthonormalBasis x i, u, v]) = _ |
| 158 | simp only [T, D.tensorLaplacian_reindex, hperm] |
| 159 | obtain ⟨A, hA⟩ := D.tensorLaplacian_multilinear hD.1 x |
| 160 | let C := ((A.domDomCongr (Equiv.swap (1 : Fin 4) 2)).curryLeft u).curryLeft v |
| 161 | have hC (p q : TangentSpace (𝓡 n) x) : C ![p, q] = |
| 162 | D.tensorLaplacian D.riemannEvaluation x ![u, p, v, q] := by |
| 163 | rw [hA] |
| 164 | change A ((Fin.cons u (Fin.cons v ![p, q])) ∘ Equiv.swap 1 2) = _ |
| 165 | congr 1 |
| 166 | ext i |
| 167 | fin_cases i <;> rfl |
| 168 | simp_rw [← hC] |
| 169 | exact bilinear_sum_orthonormalBasis_eq (bilinearOfTwoTensor C) (g.orthonormalBasis x) e |
| 170 | |
| 171 | private theorem tensorLaplacian_riemann_skew_last |
| 172 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) (x : M) |
| 173 | (u v w z : TangentSpace (𝓡 n) x) : |
| 174 | D.tensorLaplacian D.riemannEvaluation x ![u, v, w, z] = |
| 175 | -D.tensorLaplacian D.riemannEvaluation x ![u, v, z, w] := by |
| 176 | let σ : Equiv.Perm (Fin 4) := Equiv.swap 2 3 |
| 177 | have heq : (fun y r => D.riemannEvaluation y (r ∘ σ)) = |
| 178 | (fun y r => (-1 : ℝ) * D.riemannEvaluation y r) := by |
| 179 | funext y r |
| 180 | simpa [riemannEvaluation, σ, Equiv.swap_apply_def] using |
| 181 | (hD.2.2.2.1 y (r 0) (r 1) (r 3) (r 2)).1 |
| 182 | have h := congrArg (fun T => D.tensorLaplacian T x ![u, v, z, w]) heq |
| 183 | rw [D.tensorLaplacian_reindex, D.tensorLaplacian_const_mul hD.1 |
| 184 | (D.covariantTensorDerivative_isSmooth hD.1)] at h |
| 185 | have hv : ![u, v, z, w] ∘ σ = ![u, v, w, z] := by |
| 186 | ext i |
| 187 | fin_cases i <;> rfl |
| 188 | simpa only [hv, neg_one_mul] using h |
| 189 | |
| 190 | private theorem tensorLaplacian_riemann_pair |
| 191 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) (x : M) |
| 192 | (u v w z : TangentSpace (𝓡 n) x) : |
| 193 | D.tensorLaplacian D.riemannEvaluation x ![u, v, w, z] = |
| 194 | D.tensorLaplacian D.riemannEvaluation x ![w, z, u, v] := by |
| 195 | let σ : Equiv.Perm (Fin 4) := Equiv.ofBijective ![2, 3, 0, 1] (by decide) |
| 196 | have heq : (fun y r => D.riemannEvaluation y (r ∘ σ)) = D.riemannEvaluation := by |
| 197 | funext y r |
| 198 | exact (hD.2.2.2.1 y (r 2) (r 3) (r 0) (r 1)).2.1 |
| 199 | have h := congrArg (fun T => D.tensorLaplacian T x ![w, z, u, v]) heq |
| 200 | rw [D.tensorLaplacian_reindex] at h |
| 201 | have hv : ![w, z, u, v] ∘ σ = ![u, v, w, z] := by |
| 202 | ext i |
| 203 | fin_cases i <;> rfl |
| 204 | exact hv ▸ h |
| 205 | |
| 206 | private theorem cyclic_eq_half_double_trace_sub_ricci |
| 207 | (R : Fin 3 → Fin 3 → Fin 3 → Fin 3 → ℝ) |
| 208 | (hfirst : ∀ i j k l, R i j k l = -R j i k l) |
| 209 | (hlast : ∀ i j k l, R i j k l = -R i j l k) |
| 210 | (hpair : ∀ i j k l, R i j k l = R k l i j) (i j : Fin 3) : |
| 211 | ((∑ p, ∑ q, R p q p q) / 2) * (if i = j then 1 else 0) - |
| 212 | ∑ p, R i p j p = |
| 213 | R (pairFirst i) (pairSecond i) (pairFirst j) (pairSecond j) := by |
| 214 | have hdiagFirst (i k l) : R i i k l = 0 := by linarith [hfirst i i k l] |
| 215 | have hdiagLast (i j k) : R i j k k = 0 := by linarith [hlast i j k k] |
| 216 | have hswap (i j) : R i j i j = R j i j i := by |
| 217 | rw [hfirst, hlast j i i j, neg_neg] |
| 218 | fin_cases i <;> fin_cases j <;> |
| 219 | simp [Fin.sum_univ_succ, pairFirst, pairSecond, hdiagFirst, hdiagLast] |
| 220 | · linarith [hswap 0 1, hswap 0 2, hswap 1 2] |
| 221 | · linarith [hfirst 0 2 1 2, hpair 2 0 1 2] |
| 222 | · linarith [hlast 0 1 2 1, hpair 0 1 1 2] |
| 223 | · linarith [hlast 1 2 0 2, hpair 1 2 2 0] |
| 224 | · linarith [hswap 0 1, hswap 0 2, hswap 1 2] |
| 225 | · linarith [hfirst 1 0 2 0, hpair 0 1 2 0] |
| 226 | · linarith [hfirst 2 1 0 1, hpair 1 2 0 1] |
| 227 | · linarith [hlast 2 0 1 0, hpair 2 0 0 1] |
| 228 | · linarith [hswap 0 1, hswap 0 2, hswap 1 2] |
| 229 | |
| 230 | /-- The rough Laplacian of the Ricci complement has the cyclic components |
| 231 | of the rough curvature Laplacian in every orthonormal three-frame. -/ |
| 232 | theorem tensorLaplacian_ricciComplement_apply_orthonormalBasis |
| 233 | {M : Type u} [TopologicalSpace M] |
| 234 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 235 | {g : RiemannianMetric 3 M} |
| 236 | (D : LeviCivitaData g) (hD : D.CurvatureTensorCalculus) (x : M) : |
| 237 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 238 | ⟨g.toRiemannianMetric⟩ |
| 239 | ∀ (e : OrthonormalBasis (Fin 3) ℝ (TangentSpace (𝓡 3) x)) (i j : Fin 3), |
| 240 | D.tensorLaplacian D.ricciComplementEvaluation x ![e i, e j] = |
| 241 | D.tensorLaplacian D.riemannEvaluation x |
| 242 | ![e (pairFirst i), e (pairSecond i), e (pairFirst j), e (pairSecond j)] := by |
| 243 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 244 | ⟨g.toRiemannianMetric⟩ |
| 245 | intro e i j |
| 246 | let R : Fin 3 → Fin 3 → Fin 3 → Fin 3 → ℝ := fun p q r s => |
| 247 | D.tensorLaplacian D.riemannEvaluation x ![e p, e q, e r, e s] |
| 248 | have hscalar : D.laplacian D.scalarCurvature x = ∑ p, ∑ q, R p q p q := by |
| 249 | rw [← D.sum_tensorLaplacian_ricci_eq_laplacian_scalar hD x] |
| 250 | obtain ⟨A, hA⟩ := D.tensorLaplacian_multilinear hD.2.1 x |
| 251 | have h := bilinear_sum_orthonormalBasis_eq (bilinearOfTwoTensor A) |
| 252 | (g.orthonormalBasis x) e |
| 253 | simp only [bilinearOfTwoTensor_apply, ← hA] at h |
| 254 | rw [h] |
| 255 | apply Finset.sum_congr rfl |
| 256 | intro p _ |
| 257 | exact tensorLaplacian_ricci_eq_sum_orthonormalBasis D hD x e (e p) (e p) |
| 258 | rw [tensorLaplacian_ricciComplement_split D hD] |
| 259 | change (_ / 2) * inner ℝ (e i) (e j) - _ = _ |
| 260 | rw [e.inner_eq_ite, hscalar, |
| 261 | tensorLaplacian_ricci_eq_sum_orthonormalBasis D hD x e] |
| 262 | apply cyclic_eq_half_double_trace_sub_ricci R _ _ _ i j |
| 263 | · intro p q r s |
| 264 | change D.tensorLaplacian D.riemannEvaluation x ![e p, e q, e r, e s] = _ |
| 265 | rw [tensorLaplacian_riemann_pair D hD, |
| 266 | tensorLaplacian_riemann_skew_last D hD, |
| 267 | tensorLaplacian_riemann_pair D hD x (e r) (e s) (e q) (e p)] |
| 268 | · intro p q r s |
| 269 | exact tensorLaplacian_riemann_skew_last D hD x (e p) (e q) (e r) (e s) |
| 270 | · intro p q r s |
| 271 | exact tensorLaplacian_riemann_pair D hD x (e p) (e q) (e r) (e s) |
| 272 | |
| 273 | end PoincareMT.LeviCivitaData |
| 274 | |
| 275 | namespace PoincareMT.RicciFlow.Frame |
| 276 | |
| 277 | variable {M : Type u} [TopologicalSpace M] |
| 278 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 279 | {a b : ℝ} |
| 280 | |
| 281 | private theorem exists_canonicalTransport_orthonormalBasis |
| 282 | (F : RicciFlow 3 M (Ico a b)) (hab : a < b) |
| 283 | {t : ℝ} (ht : t ∈ Ico a b) (x : M) |
| 284 | (e : Module.Basis (Fin 3) ℝ (TangentSpace (𝓡 3) x)) |
| 285 | (he : ∀ i j, (F.metric a).inner x (e i) (e j) = if i = j then 1 else 0) : |
| 286 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 287 | ⟨(F.metric t).toRiemannianMetric⟩ |
| 288 | ∃ q : OrthonormalBasis (Fin 3) ℝ (TangentSpace (𝓡 3) x), |
| 289 | ∀ i, q i = canonicalTransport F t x (e i) := by |
| 290 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 291 | ⟨(F.metric t).toRiemannianMetric⟩ |
| 292 | let c := e.map (orthonormalTransport F t x).toLinearEquiv |
| 293 | have hc : Orthonormal ℝ c := by |
| 294 | rw [orthonormal_iff_ite] |
| 295 | intro i j |
| 296 | change (F.metric t).inner x (canonicalTransport F t x (e i)) |
| 297 | (canonicalTransport F t x (e j)) = _ |
| 298 | rw [canonicalTransport_pairing F hab ht, he] |
| 299 | exact ⟨c.toOrthonormalBasis hc, fun i => by |
| 300 | rw [Module.Basis.coe_toOrthonormalBasis] |
| 301 | rfl⟩ |
| 302 | |
| 303 | /-- Canonical transport converts the Ricci complement into the cyclic |
| 304 | curvature components of the initial orthonormal frame. -/ |
| 305 | theorem transportPullback_ricciComplement_eq_cyclic [T2Space M] |
| 306 | (hC : RicciFlowCurvatureTheory.{u}) (F : RicciFlow 3 M (Ico a b)) |
| 307 | (hab : a < b) {t : ℝ} (ht : t ∈ Ico a b) (x : M) |
| 308 | (e : Module.Basis (Fin 3) ℝ (TangentSpace (𝓡 3) x)) |
| 309 | (he : ∀ i j, (F.metric a).inner x (e i) (e j) = if i = j then 1 else 0) |
| 310 | (i j : Fin 3) : |
| 311 | transportPullbackTensor F t (F.connection t).ricciComplementEvaluation x ![e i, e j] = |
| 312 | (F.connection t).curvatureTensor x |
| 313 | (canonicalTransport F t x (e (pairFirst i))) |
| 314 | (canonicalTransport F t x (e (pairSecond i))) |
| 315 | (canonicalTransport F t x (e (pairFirst j))) |
| 316 | (canonicalTransport F t x (e (pairSecond j))) := by |
| 317 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 318 | ⟨(F.metric t).toRiemannianMetric⟩ |
| 319 | obtain ⟨q, hq⟩ := exists_canonicalTransport_orthonormalBasis F hab ht x e he |
| 320 | have h := (F.connection t).ricciComplementTensor_apply_orthonormalBasis |
| 321 | (hC.tensor_calculus 3 M (F.metric t) (F.connection t)) x q i j |
| 322 | simp only [LeviCivitaData.ricciComplementTensor_apply, curvatureMatrix, hq] at h |
| 323 | convert h using 1 |
| 324 | rfl |
| 325 | |
| 326 | /-- The moving-input curvature PDE gives the actual time derivative of the |
| 327 | Ricci complement, with the geometric diffusion retained in cyclic components. |
| 328 | -/ |
| 329 | theorem canonicalTransport_hasDerivAt_ricciComplement_cyclic [T2Space M] |
| 330 | (hC : RicciFlowCurvatureTheory.{u}) (F : RicciFlow 3 M (Ico a b)) |
| 331 | {t : ℝ} (ht : t ∈ Ioo a b) (x : M) |
| 332 | (e : Module.Basis (Fin 3) ℝ (TangentSpace (𝓡 3) x)) |
| 333 | (he : ∀ i j, (F.metric a).inner x (e i) (e j) = if i = j then 1 else 0) |
| 334 | (i j : Fin 3) : |
| 335 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 336 | ⟨(F.metric t).toRiemannianMetric⟩ |
| 337 | HasDerivAt |
| 338 | (fun s => transportPullbackTensor F s (F.connection s).ricciComplementEvaluation x |
| 339 | ![e i, e j]) |
| 340 | (transportedTensorLaplacian F ⟨ht.1.le, ht.2⟩ |
| 341 | (transportPullbackTensor F t (F.connection t).riemannEvaluation) x |
| 342 | ![e (pairFirst i), e (pairSecond i), e (pairFirst j), e (pairSecond j)] + |
| 343 | tensorReaction ((F.connection t).ricciComplementTensor |
| 344 | (hC.tensor_calculus 3 M (F.metric t) (F.connection t)) x) |
| 345 | ![canonicalTransport F t x (e i), canonicalTransport F t x (e j)]) t := by |
| 346 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 347 | ⟨(F.metric t).toRiemannianMetric⟩ |
| 348 | have hab : a < b := ht.1.trans ht.2 |
| 349 | obtain ⟨q, hq⟩ := exists_canonicalTransport_orthonormalBasis |
| 350 | F hab ⟨ht.1.le, ht.2⟩ x e he |
| 351 | have hr := (F.connection t).tensorReaction_ricciComplementTensor_eq_curvatureB |
| 352 | (hC.tensor_calculus 3 M (F.metric t) (F.connection t)) x q i j |
| 353 | simp only [hq] at hr |
| 354 | rw [hr] |
| 355 | apply (canonicalTransport_curvature_pde_on_initial_tensor hC F ht x |
| 356 | (e (pairFirst i)) (e (pairSecond i)) (e (pairFirst j)) |
| 357 | (e (pairSecond j))).congr_of_eventuallyEq |
| 358 | filter_upwards [Ioo_mem_nhds ht.1 ht.2] with s hs |
| 359 | exact transportPullback_ricciComplement_eq_cyclic hC F hab ⟨hs.1.le, hs.2⟩ x e he i j |
| 360 | |
| 361 | /-- The transported intrinsic Ricci complement satisfies its two-tensor |
| 362 | reaction-diffusion equation on the initial tangent bundle. -/ |
| 363 | theorem canonicalTransport_hasDerivAt_ricciComplement [T2Space M] |
| 364 | (hC : RicciFlowCurvatureTheory.{u}) (F : RicciFlow 3 M (Ico a b)) |
| 365 | {t : ℝ} (ht : t ∈ Ioo a b) (x : M) |
| 366 | (e : Module.Basis (Fin 3) ℝ (TangentSpace (𝓡 3) x)) |
| 367 | (he : ∀ i j, (F.metric a).inner x (e i) (e j) = if i = j then 1 else 0) |
| 368 | (i j : Fin 3) : |
| 369 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 370 | ⟨(F.metric t).toRiemannianMetric⟩ |
| 371 | HasDerivAt |
| 372 | (fun s => transportPullbackTensor F s (F.connection s).ricciComplementEvaluation x |
| 373 | ![e i, e j]) |
| 374 | (transportedTensorLaplacian F ⟨ht.1.le, ht.2⟩ |
| 375 | (transportPullbackTensor F t (F.connection t).ricciComplementEvaluation) x ![e i, e j] + |
| 376 | tensorReaction ((F.connection t).ricciComplementTensor |
| 377 | (hC.tensor_calculus 3 M (F.metric t) (F.connection t)) x) |
| 378 | ![canonicalTransport F t x (e i), canonicalTransport F t x (e j)]) t := by |
| 379 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 380 | ⟨(F.metric t).toRiemannianMetric⟩ |
| 381 | have hab : a < b := ht.1.trans ht.2 |
| 382 | have hD := hC.tensor_calculus 3 M (F.metric t) (F.connection t) |
| 383 | obtain ⟨q, hq⟩ := exists_canonicalTransport_orthonormalBasis |
| 384 | F hab ⟨ht.1.le, ht.2⟩ x e he |
| 385 | have hl := (F.connection t).tensorLaplacian_ricciComplement_apply_orthonormalBasis |
| 386 | hD x q i j |
| 387 | simp only [hq] at hl |
| 388 | have h := canonicalTransport_hasDerivAt_ricciComplement_cyclic hC F ht x e he i j |
| 389 | rw [transportedTensorLaplacian_pullback F ⟨ht.1.le, ht.2⟩ hD.1] at h |
| 390 | rw [transportedTensorLaplacian_pullback F ⟨ht.1.le, ht.2⟩ |
| 391 | ((F.connection t).isSmoothCovariantTensor_ricciComplementEvaluation hD)] |
| 392 | have hv2 : (fun l => canonicalTransport F t x (![e i, e j] l)) = |
| 393 | ![canonicalTransport F t x (e i), canonicalTransport F t x (e j)] := by |
| 394 | ext l |
| 395 | fin_cases l <;> rfl |
| 396 | have hv4 : (fun l => canonicalTransport F t x |
| 397 | (![e (pairFirst i), e (pairSecond i), e (pairFirst j), e (pairSecond j)] l)) = |
| 398 | ![canonicalTransport F t x (e (pairFirst i)), |
| 399 | canonicalTransport F t x (e (pairSecond i)), |
| 400 | canonicalTransport F t x (e (pairFirst j)), |
| 401 | canonicalTransport F t x (e (pairSecond j))] := by |
| 402 | ext l |
| 403 | fin_cases l <;> rfl |
| 404 | simp only [transportPullbackTensor, hv2, hv4] at h ⊢ |
| 405 | rw [hl] |
| 406 | exact h |
| 407 | |
| 408 | end PoincareMT.RicciFlow.Frame |