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.Curvature.Calculus |
| 2 | import PoincareLib.Geometry.RicciFlow.Splitting.PartialTrace |
| 3 | import PoincareLib.Geometry.RicciFlow.Curvature.Theory |
| 4 | import PoincareLib.Geometry.Riemannian.Curvature.Bilinear |
| 5 | import PoincareLib.Geometry.Riemannian.Tensor.MaximumPrinciple.Transport.Isometry |
| 6 | import PoincareLib.Geometry.Riemannian.Tensor.MaximumPrinciple.SupportingLaplacian |
| 7 | import PoincareLib.Geometry.RicciFlow.Splitting.TimeTransport |
| 8 | import PoincareLib.Geometry.RicciFlow.Splitting.MaximumPrinciple.LowerContacts |
| 9 | |
| 10 | /-! |
| 11 | # Ricci partial traces and their lower heat contacts |
| 12 | |
| 13 | The minimizing frame is extended by radial metric isometries for the spatial |
| 14 | contact calculation and by Ricci transport for the time contact calculation. |
| 15 | The moving-frame reaction is nonnegative under nonnegative sectional curvature. |
| 16 | |
| 17 | These are the scalar carriers for Kleiner--Lott, Appendix A, Theorem A.7, |
| 18 | p. 2841, used in the global parallel-field propagation argument. |
| 19 | -/ |
| 20 | |
| 21 | noncomputable section |
| 22 | |
| 23 | set_option autoImplicit false |
| 24 | set_option backward.isDefEq.respectTransparency false |
| 25 | set_option maxHeartbeats 800000 |
| 26 | set_option synthInstance.maxHeartbeats 100000 |
| 27 | |
| 28 | open Set Filter |
| 29 | open scoped Manifold ContDiff Bundle Topology BigOperators |
| 30 | |
| 31 | universe u |
| 32 | |
| 33 | namespace PoincareMT.RicciFlow.Splitting |
| 34 | |
| 35 | open Poincare.RicciFlow.Splitting |
| 36 | |
| 37 | private lemma differentiableAt_clm_of_apply |
| 38 | {E G : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 39 | [NormedAddCommGroup G] [NormedSpace ℝ G] [FiniteDimensional ℝ E] |
| 40 | {f : ℝ → E →L[ℝ] G} {t : ℝ} |
| 41 | (hf : ∀ v, DifferentiableAt ℝ (fun s => f s v) t) : |
| 42 | DifferentiableAt ℝ f t := by |
| 43 | let d := Module.finrank ℝ E |
| 44 | let e₁ : E ≃L[ℝ] (Fin d → ℝ) := |
| 45 | ContinuousLinearEquiv.ofFinrankEq (Module.finrank_fin_fun ℝ).symm |
| 46 | let e₂ := (e₁.arrowCongr (1 : G ≃L[ℝ] G)).trans (ContinuousLinearEquiv.piRing (Fin d)) |
| 47 | rw [← Function.id_comp f, ← e₂.symm_comp_self] |
| 48 | exact e₂.symm.differentiableAt.comp t (differentiableAt_pi.mpr fun i => hf _) |
| 49 | |
| 50 | private lemma hasDerivAt_bilinear_moving |
| 51 | {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] [FiniteDimensional ℝ E] |
| 52 | (L : ℝ → E →L[ℝ] E →L[ℝ] ℝ) (dL : E → E → ℝ) |
| 53 | {t : ℝ} (hL : ∀ v w, HasDerivAt (fun s => L s v w) (dL v w) t) |
| 54 | {V : ℝ → E} {V' : E} (hV : HasDerivAt V V' t) : |
| 55 | HasDerivAt (fun s => L s (V s) (V s)) |
| 56 | (dL (V t) (V t) + L t V' (V t) + L t (V t) V') t := by |
| 57 | let : NormedAddCommGroup (E →L[ℝ] ℝ) := inferInstance |
| 58 | let : NormedSpace ℝ (E →L[ℝ] ℝ) := inferInstance |
| 59 | let : NormedAddCommGroup (E →L[ℝ] E →L[ℝ] ℝ) := inferInstance |
| 60 | let : NormedSpace ℝ (E →L[ℝ] E →L[ℝ] ℝ) := inferInstance |
| 61 | have hdiff : DifferentiableAt ℝ L t := |
| 62 | differentiableAt_clm_of_apply fun v => |
| 63 | differentiableAt_clm_of_apply fun w => (hL v w).differentiableAt |
| 64 | have hd : HasDerivAt L (deriv L t) t := hdiff.hasDerivAt |
| 65 | have hfixed := (hd.clm_apply (hasDerivAt_const t (V t))).clm_apply |
| 66 | (hasDerivAt_const t (V t)) |
| 67 | have hcoeff : deriv L t (V t) (V t) = dL (V t) (V t) := by |
| 68 | simpa only [map_zero, add_zero, zero_apply] using hfixed.unique (hL (V t) (V t)) |
| 69 | have hm := (hd.clm_apply hV).clm_apply hV |
| 70 | simpa only [add_apply, hcoeff, add_comm, add_left_comm, add_assoc] using hm |
| 71 | |
| 72 | private theorem bilinear_product_contraction_eq |
| 73 | {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] |
| 74 | {ι κ : Type*} [Fintype ι] [Fintype κ] |
| 75 | (A B : E →ₗ[ℝ] E →ₗ[ℝ] ℝ) |
| 76 | (b : OrthonormalBasis ι ℝ E) (c : OrthonormalBasis κ ℝ E) : |
| 77 | (∑ i, ∑ j, A (b i) (b j) * B (b i) (b j)) = |
| 78 | ∑ i, ∑ j, A (c i) (c j) * B (c i) (c j) := by |
| 79 | have hright (v : E) : |
| 80 | (∑ j, A v (b j) * B v (b j)) = ∑ j, A v (c j) * B v (c j) := |
| 81 | bilinear_sum_orthonormalBasis_eq ((A v).smulRight (B v)) b c |
| 82 | simp_rw [hright] |
| 83 | rw [Finset.sum_comm, Finset.sum_comm (f := fun i j => A (c i) (c j) * B (c i) (c j))] |
| 84 | apply Finset.sum_congr rfl |
| 85 | intro j _ |
| 86 | exact bilinear_sum_orthonormalBasis_eq |
| 87 | ((A.flip (c j)).smulRight (B.flip (c j))) b c |
| 88 | |
| 89 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 90 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 91 | {g : RiemannianMetric n M} |
| 92 | |
| 93 | /-- The retained Ricci tensor as an algebraic bilinear form. -/ |
| 94 | def ricciBilinear (D : LeviCivitaData g) (x : M) : |
| 95 | TangentSpace (𝓡 n) x →ₗ[ℝ] TangentSpace (𝓡 n) x →ₗ[ℝ] ℝ := |
| 96 | ∑ i, D.curvatureTensor_bilinear_first_third x |
| 97 | (g.orthonormalBasis x i) (g.orthonormalBasis x i) |
| 98 | |
| 99 | @[simp] theorem ricciBilinear_apply (D : LeviCivitaData g) (x : M) |
| 100 | (v w : TangentSpace (𝓡 n) x) : ricciBilinear D x v w = D.ricci x v w := by |
| 101 | simp [ricciBilinear, LeviCivitaData.ricci, LinearMap.sum_apply] |
| 102 | |
| 103 | /-- Ricci with one index raised by its own metric. -/ |
| 104 | def metricRicciOperator (D : LeviCivitaData g) (x : M) : |
| 105 | TangentSpace (𝓡 n) x →L[ℝ] TangentSpace (𝓡 n) x := |
| 106 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 107 | ⟨g.toRiemannianMetric⟩ |
| 108 | letI : FiniteDimensional ℝ (TangentSpace (𝓡 n) x) := |
| 109 | VectorBundle.finiteDimensional ℝ (EuclideanSpace ℝ (Fin n)) |
| 110 | (TangentSpace (𝓡 n) : M → Type _) x |
| 111 | (∑ i, ((ricciBilinear D x).flip (g.orthonormalBasis x i)).smulRight |
| 112 | (g.orthonormalBasis x i)).toContinuousLinearMap |
| 113 | |
| 114 | theorem metricRicciOperator_inner (D : LeviCivitaData g) (x : M) |
| 115 | (v w : TangentSpace (𝓡 n) x) : |
| 116 | g.inner x (metricRicciOperator D x v) w = D.ricci x v w := by |
| 117 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 118 | ⟨g.toRiemannianMetric⟩ |
| 119 | change inner ℝ (metricRicciOperator D x v) w = _ |
| 120 | simp only [metricRicciOperator, LinearMap.coe_toContinuousLinearMap', |
| 121 | LinearMap.sum_apply, LinearMap.smulRight_apply, LinearMap.flip_apply] |
| 122 | rw [sum_inner] |
| 123 | simp only [real_inner_smul_left] |
| 124 | conv_rhs => rw [← ricciBilinear_apply D x v w, ← (g.orthonormalBasis x).sum_repr' w] |
| 125 | simp only [map_sum, map_smul, smul_eq_mul] |
| 126 | apply Finset.sum_congr rfl |
| 127 | intro i _ |
| 128 | ring |
| 129 | |
| 130 | /-- The sum of the `k` smallest Ricci eigenvalues, in variational form. -/ |
| 131 | def ricciPartialTrace (D : LeviCivitaData g) (k : ℕ) (x : M) : ℝ := |
| 132 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 133 | ⟨g.toRiemannianMetric⟩ |
| 134 | partialTrace k (metricRicciOperator D x) |
| 135 | |
| 136 | theorem exists_ricci_minimizing_frame (D : LeviCivitaData g) (x : M) |
| 137 | {k : ℕ} (hk : k ≤ Module.finrank ℝ (TangentSpace (𝓡 n) x)) : |
| 138 | ∃ v : Fin k → TangentSpace (𝓡 n) x, |
| 139 | (∀ i j, g.inner x (v i) (v j) = if i = j then 1 else 0) ∧ |
| 140 | (∑ i, D.ricci x (v i) (v i)) = ricciPartialTrace D k x := by |
| 141 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 142 | ⟨g.toRiemannianMetric⟩ |
| 143 | letI : FiniteDimensional ℝ (TangentSpace (𝓡 n) x) := |
| 144 | VectorBundle.finiteDimensional ℝ (EuclideanSpace ℝ (Fin n)) |
| 145 | (TangentSpace (𝓡 n) : M → Type _) x |
| 146 | obtain ⟨v, hv, hmin⟩ := exists_minimizing_frame hk (metricRicciOperator D x) |
| 147 | refine ⟨v, orthonormal_iff_ite.mp hv, ?_⟩ |
| 148 | change (∑ i, g.inner x (metricRicciOperator D x (v i)) (v i)) = |
| 149 | ricciPartialTrace D k x at hmin |
| 150 | simpa only [metricRicciOperator_inner] using hmin |
| 151 | |
| 152 | theorem ricciPartialTrace_le (D : LeviCivitaData g) (x : M) {k : ℕ} |
| 153 | (v : Fin k → TangentSpace (𝓡 n) x) |
| 154 | (hv : ∀ i j, g.inner x (v i) (v j) = if i = j then 1 else 0) : |
| 155 | ricciPartialTrace D k x ≤ ∑ i, D.ricci x (v i) (v i) := by |
| 156 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 157 | ⟨g.toRiemannianMetric⟩ |
| 158 | letI : FiniteDimensional ℝ (TangentSpace (𝓡 n) x) := |
| 159 | VectorBundle.finiteDimensional ℝ (EuclideanSpace ℝ (Fin n)) |
| 160 | (TangentSpace (𝓡 n) : M → Type _) x |
| 161 | have h := partialTrace_le_frameTrace (metricRicciOperator D x) |
| 162 | (orthonormal_iff_ite.mpr hv) |
| 163 | change ricciPartialTrace D k x ≤ |
| 164 | ∑ i, g.inner x (metricRicciOperator D x (v i)) (v i) at h |
| 165 | simpa only [metricRicciOperator_inner] using h |
| 166 | |
| 167 | theorem metricRicciOperator_isPositive (D : LeviCivitaData g) |
| 168 | (hD : D.CurvatureTensorCalculus) (x : M) |
| 169 | (hRic : ∀ v : TangentSpace (𝓡 n) x, 0 ≤ D.ricci x v v) : |
| 170 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 171 | ⟨g.toRiemannianMetric⟩ |
| 172 | (metricRicciOperator D x).IsPositive := by |
| 173 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 174 | ⟨g.toRiemannianMetric⟩ |
| 175 | constructor |
| 176 | · intro v w |
| 177 | change g.inner x (metricRicciOperator D x v) w = |
| 178 | g.inner x v (metricRicciOperator D x w) |
| 179 | rw [g.symm x v, metricRicciOperator_inner, metricRicciOperator_inner] |
| 180 | exact (hD.2.2.2.1 x v w v w).2.2.2 |
| 181 | · intro v |
| 182 | change 0 ≤ g.inner x (metricRicciOperator D x v) v |
| 183 | rw [metricRicciOperator_inner] |
| 184 | exact hRic v |
| 185 | |
| 186 | theorem ricciPartialTrace_nonneg (D : LeviCivitaData g) |
| 187 | (hD : D.CurvatureTensorCalculus) (x : M) {k : ℕ} (hk : k ≤ n) |
| 188 | (hRic : ∀ v : TangentSpace (𝓡 n) x, 0 ≤ D.ricci x v v) : |
| 189 | 0 ≤ ricciPartialTrace D k x := by |
| 190 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 191 | ⟨g.toRiemannianMetric⟩ |
| 192 | let : FiniteDimensional ℝ (TangentSpace (𝓡 n) x) := |
| 193 | VectorBundle.finiteDimensional ℝ (EuclideanSpace ℝ (Fin n)) |
| 194 | (TangentSpace (𝓡 n) : M → Type _) x |
| 195 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) x) = n := finrank_euclideanSpace_fin |
| 196 | exact partialTrace_nonneg (hk.trans hdim.ge) (metricRicciOperator_isPositive D hD x hRic) |
| 197 | |
| 198 | theorem ricciPartialTrace_eq_zero_iff (D : LeviCivitaData g) |
| 199 | (hD : D.CurvatureTensorCalculus) (x : M) {k : ℕ} (hk : k ≤ n) |
| 200 | (hRic : ∀ v : TangentSpace (𝓡 n) x, 0 ≤ D.ricci x v v) : |
| 201 | ricciPartialTrace D k x = 0 ↔ k ≤ Module.finrank ℝ (metricRicciOperator D x).ker := by |
| 202 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 203 | ⟨g.toRiemannianMetric⟩ |
| 204 | let : FiniteDimensional ℝ (TangentSpace (𝓡 n) x) := |
| 205 | VectorBundle.finiteDimensional ℝ (EuclideanSpace ℝ (Fin n)) |
| 206 | (TangentSpace (𝓡 n) : M → Type _) x |
| 207 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) x) = n := finrank_euclideanSpace_fin |
| 208 | exact partialTrace_eq_zero_iff (hk.trans hdim.ge) (metricRicciOperator_isPositive D hD x hRic) |
| 209 | |
| 210 | /-- Nonnegative sectional numerators make the metric-compatible Ricci reaction |
| 211 | nonnegative on every vector, hence on every minimizing partial frame. -/ |
| 212 | theorem ricci_movingReaction_nonneg (D : LeviCivitaData g) |
| 213 | (hD : D.CurvatureTensorCalculus) (x : M) |
| 214 | (hsec : ∀ v w : TangentSpace (𝓡 n) x, 0 ≤ D.curvatureTensor x v w v w) |
| 215 | (v : TangentSpace (𝓡 n) x) : |
| 216 | 0 ≤ 2 * ∑ i, ∑ j, |
| 217 | D.curvatureTensor x v (g.orthonormalBasis x i) v (g.orthonormalBasis x j) * |
| 218 | D.ricci x (g.orthonormalBasis x i) (g.orthonormalBasis x j) := by |
| 219 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 220 | ⟨g.toRiemannianMetric⟩ |
| 221 | letI : FiniteDimensional ℝ (TangentSpace (𝓡 n) x) := |
| 222 | VectorBundle.finiteDimensional ℝ (EuclideanSpace ℝ (Fin n)) |
| 223 | (TangentSpace (𝓡 n) : M → Type _) x |
| 224 | let A := metricRicciOperator D x |
| 225 | have hA : A.IsPositive := metricRicciOperator_isPositive D hD x |
| 226 | (fun z => Finset.sum_nonneg fun i _ => hsec z (g.orthonormalBasis x i)) |
| 227 | have hlin : A.toLinearMap.IsPositive := hA |
| 228 | let e := hlin.isSymmetric.eigenvectorBasis rfl |
| 229 | let ev := hlin.isSymmetric.eigenvalues rfl |
| 230 | have hdiag (i j) : D.ricci x (e i) (e j) = ev i * (if i = j then 1 else 0) := by |
| 231 | rw [← metricRicciOperator_inner] |
| 232 | change inner ℝ (A.toLinearMap (e i)) (e j) = _ |
| 233 | rw [hlin.isSymmetric.apply_eigenvectorBasis rfl] |
| 234 | rw [real_inner_smul_left] |
| 235 | change ev i * inner ℝ (e i) (e j) = _ |
| 236 | rw [e.inner_eq_ite] |
| 237 | let C := D.curvatureTensor_bilinear_first_third x v v |
| 238 | have hC (y z) : C y z = D.curvatureTensor x v y v z := by |
| 239 | change D.curvatureTensor x y v z v = _ |
| 240 | rw [(hD.2.2.2.1 x y v z v).2.1, (hD.2.2.2.1 x z v y v).1, |
| 241 | (hD.2.2.2.1 x z v v y).2.1, (hD.2.2.2.1 x v y z v).1, neg_neg] |
| 242 | have hchange := bilinear_product_contraction_eq C (ricciBilinear D x) |
| 243 | (g.orthonormalBasis x) e |
| 244 | simp only [hC, ricciBilinear_apply] at hchange |
| 245 | rw [hchange] |
| 246 | apply mul_nonneg (by norm_num) |
| 247 | simp_rw [hdiag] |
| 248 | simp only [mul_ite, mul_one, mul_zero, Finset.sum_ite_eq, Finset.mem_univ, if_true] |
| 249 | exact Finset.sum_nonneg fun i _ => mul_nonneg (hsec v (e i)) |
| 250 | (hlin.nonneg_eigenvalues rfl i) |
| 251 | |
| 252 | /-- A minimizing Ricci frame extends to a smooth local orthonormal frame |
| 253 | whose scalar trace has exactly the contracted rough Laplacian at the center. -/ |
| 254 | theorem exists_ricci_partialTrace_spatial_support (D : LeviCivitaData g) |
| 255 | (hD : D.CurvatureTensorCalculus) (x : M) |
| 256 | {k : ℕ} (hk : k ≤ Module.finrank ℝ (TangentSpace (𝓡 n) x)) : |
| 257 | ∃ (U : Set M) (W : Fin k → (y : M) → TangentSpace (𝓡 n) y), |
| 258 | IsOpen U ∧ x ∈ U ∧ |
| 259 | (∀ i, ContMDiffOn (𝓡 n) ((𝓡 n).prod (𝓡 n)) ∞ (T% (W i)) U) ∧ |
| 260 | (∀ y ∈ U, ∀ i j, g.inner y (W i y) (W j y) = if i = j then 1 else 0) ∧ |
| 261 | (∑ i, D.ricci x (W i x) (W i x)) = ricciPartialTrace D k x ∧ |
| 262 | (∀ y ∈ U, ricciPartialTrace D k y ≤ ∑ i, D.ricci y (W i y) (W i y)) ∧ |
| 263 | (∑ i, D.tensorLaplacian D.ricciEvaluation x ![W i x, W i x]) = |
| 264 | D.laplacian (fun y => ∑ i, D.ricci y (W i y) (W i y)) x := by |
| 265 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 266 | ⟨g.toRiemannianMetric⟩ |
| 267 | obtain ⟨v, hv, hmin⟩ := exists_ricci_minimizing_frame D x hk |
| 268 | obtain ⟨r, Y, hr, hrU, hY, hinit, hpar, hfirst, hsecond, P, hP⟩ := |
| 269 | D.exists_radialParallelIsometries_with_jets x |
| 270 | let U := LeviCivitaData.radialNeighborhood (n := n) x r |
| 271 | let W : Fin k → (y : M) → TangentSpace (𝓡 n) y := |
| 272 | fun i => LeviCivitaData.fieldFromCenteredCoordinates x (Y (v i)) |
| 273 | have hU : IsOpen U := LeviCivitaData.isOpen_radialNeighborhood x r |
| 274 | have hxU : x ∈ U := LeviCivitaData.mem_radialNeighborhood x hr |
| 275 | have hWs (i) : ContMDiffOn (𝓡 n) ((𝓡 n).prod (𝓡 n)) ∞ (T% (W i)) U := by |
| 276 | intro y hy |
| 277 | exact (LeviCivitaData.contMDiffAt_fieldFromCenteredCoordinates x |
| 278 | (hY (v i)).contDiffAt hy.1).contMDiffWithinAt |
| 279 | have hpair (y) (hy : y ∈ U) (i j) : |
| 280 | g.inner y (W i y) (W j y) = if i = j then 1 else 0 := by |
| 281 | have heq := (P ⟨y, hy⟩).inner_map_map (v i) (v j) |
| 282 | rw [hP, hP] at heq |
| 283 | exact heq.trans (hv i j) |
| 284 | refine ⟨U, W, hU, hxU, hWs, hpair, ?_, |
| 285 | fun y hy => ricciPartialTrace_le D y (fun i => W i y) (hpair y hy), ?_⟩ |
| 286 | · simpa only [W, hinit] using hmin |
| 287 | · have h := D.sum_tensorLaplacian_eq_laplacian_of_zero_jets |
| 288 | (J := Fin k) (k := 2) (T := D.ricciEvaluation) hD.2.1 |
| 289 | (fun _ : Fin k => (1 : ℝ)) (fun i => ![W i, W i]) hU |
| 290 | (by intro i j; fin_cases j <;> exact hWs i) hxU |
| 291 | (by intro i j a; fin_cases j <;> exact hfirst (v i) a) |
| 292 | (by intro i j a; fin_cases j <;> exact hsecond (v i) a) |
| 293 | have hvec (i : Fin k) (y : M) : |
| 294 | (fun j => ![W i, W i] j y) = ![W i y, W i y] := by |
| 295 | ext j |
| 296 | fin_cases j <;> rfl |
| 297 | simpa only [one_mul, hvec, LeviCivitaData.ricciEvaluation, |
| 298 | Matrix.cons_val_zero, Matrix.cons_val_one] using h |
| 299 | |
| 300 | theorem ricciSharp_pairing_left (D : LeviCivitaData g) (x : M) |
| 301 | (v w : TangentSpace (𝓡 n) x) : |
| 302 | D.ricci x (ricciSharp D x v) w = |
| 303 | ∑ i, D.ricci x v (g.orthonormalBasis x i) * |
| 304 | D.ricci x (g.orthonormalBasis x i) w := by |
| 305 | rw [← ricciBilinear_apply] |
| 306 | simp only [ricciSharp, map_sum, map_smul, LinearMap.sum_apply, |
| 307 | LinearMap.smul_apply, smul_eq_mul, ricciBilinear_apply] |
| 308 | |
| 309 | theorem ricciSharp_pairing_right (D : LeviCivitaData g) (x : M) |
| 310 | (v w : TangentSpace (𝓡 n) x) : |
| 311 | D.ricci x v (ricciSharp D x w) = |
| 312 | ∑ i, D.ricci x w (g.orthonormalBasis x i) * |
| 313 | D.ricci x v (g.orthonormalBasis x i) := by |
| 314 | rw [← ricciBilinear_apply] |
| 315 | simp only [ricciSharp, map_sum, map_smul, smul_eq_mul, ricciBilinear_apply] |
| 316 | |
| 317 | /-- M04 and the actual Ricci transport equation give the moving-frame Ricci |
| 318 | evolution, with no independent reaction or differentiability assumption. -/ |
| 319 | theorem hasDerivAt_ricci_transport (hC : RicciFlowCurvatureCalculus.{u}) |
| 320 | {a b : ℝ} (F : RicciFlow n M (Icc a b)) {t : ℝ} (ht : t ∈ Ioo a b) |
| 321 | (x : M) : |
| 322 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 323 | ⟨(F.metric b).toRiemannianMetric⟩ |
| 324 | ∀ {V : ℝ → TangentSpace (𝓡 n) x}, |
| 325 | HasDerivAt V (ricciSharp (F.connection t) x (V t)) t → |
| 326 | HasDerivAt (fun s => (F.connection s).ricci x (V s) (V s)) |
| 327 | ((F.connection t).tensorLaplacian (F.connection t).ricciEvaluation x ![V t, V t] + |
| 328 | 2 * ∑ i, ∑ j, |
| 329 | (F.connection t).curvatureTensor x (V t) |
| 330 | ((F.metric t).orthonormalBasis x i) (V t) ((F.metric t).orthonormalBasis x j) * |
| 331 | (F.connection t).ricci x ((F.metric t).orthonormalBasis x i) |
| 332 | ((F.metric t).orthonormalBasis x j)) t := by |
| 333 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 334 | ⟨(F.metric b).toRiemannianMetric⟩ |
| 335 | let : NormedAddCommGroup (TangentSpace (𝓡 n) x) := inferInstance |
| 336 | let : NormedSpace ℝ (TangentSpace (𝓡 n) x) := inferInstance |
| 337 | let : FiniteDimensional ℝ (TangentSpace (𝓡 n) x) := |
| 338 | VectorBundle.finiteDimensional ℝ (EuclideanSpace ℝ (Fin n)) |
| 339 | (TangentSpace (𝓡 n) : M → Type _) x |
| 340 | intro V hV |
| 341 | let L (s : ℝ) : TangentSpace (𝓡 n) x →L[ℝ] TangentSpace (𝓡 n) x →L[ℝ] ℝ := |
| 342 | (LinearMap.toContinuousLinearMap.toLinearMap.comp |
| 343 | (ricciBilinear (F.connection s) x)).toContinuousLinearMap |
| 344 | have hL (s : ℝ) (v w : TangentSpace (𝓡 n) x) : |
| 345 | L s v w = (F.connection s).ricci x v w := ricciBilinear_apply _ _ _ _ |
| 346 | have htime (v w : TangentSpace (𝓡 n) x) := |
| 347 | (hC.ricci_evolution n M (Icc a b) F t ⟨ht.1.le, ht.2.le⟩ x v w).hasDerivAt |
| 348 | (Icc_mem_nhds ht.1 ht.2) |
| 349 | have hd := hasDerivAt_bilinear_moving L |
| 350 | (fun v w => (F.connection t).tensorLaplacian (F.connection t).ricciEvaluation x ![v, w] + |
| 351 | (F.connection t).ricciReaction x v w) |
| 352 | (fun v w => (htime v w).congr_of_eventuallyEq |
| 353 | (Filter.Eventually.of_forall fun s => hL s v w)) hV |
| 354 | simp only [hL, ricciSharp_pairing_left, ricciSharp_pairing_right] at hd |
| 355 | have hsym (v w) := ((hC.tensor_calculus n M (F.metric t) (F.connection t)).2.2.2.1 |
| 356 | x v w v w).2.2.2 |
| 357 | apply hd.congr_deriv |
| 358 | simp only [LeviCivitaData.ricciReaction, hsym (V t)] |
| 359 | ring |
| 360 | |
| 361 | theorem exists_ricci_frame_time_support (hC : RicciFlowCurvatureCalculus.{u}) |
| 362 | {a b : ℝ} (hab : a < b) (F : RicciFlow n M (Icc a b)) |
| 363 | {t : ℝ} (ht : t ∈ Ioo a b) (x : M) {k : ℕ} |
| 364 | (v : Fin k → TangentSpace (𝓡 n) x) |
| 365 | (hv : ∀ i j, (F.metric t).inner x (v i) (v j) = if i = j then 1 else 0) |
| 366 | (hsec : ∀ z w : TangentSpace (𝓡 n) x, |
| 367 | 0 ≤ (F.connection t).curvatureTensor x z w z w) : |
| 368 | ∃ (τ : ℝ → ℝ) (d : ℝ), HasDerivAt τ d t ∧ |
| 369 | τ t = ∑ i, (F.connection t).ricci x (v i) (v i) ∧ |
| 370 | (∀ᶠ s in 𝓝 t, ricciPartialTrace (F.connection s) k x ≤ τ s) ∧ |
| 371 | (∑ i, (F.connection t).tensorLaplacian (F.connection t).ricciEvaluation x |
| 372 | ![v i, v i]) ≤ d := by |
| 373 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 374 | ⟨(F.metric b).toRiemannianMetric⟩ |
| 375 | let : NormedAddCommGroup (TangentSpace (𝓡 n) x) := inferInstance |
| 376 | let : NormedSpace ℝ (TangentSpace (𝓡 n) x) := inferInstance |
| 377 | obtain ⟨U, _, hUd, hpair, hinv⟩ := exists_terminal_ricci_transport hC hab F x |
| 378 | have htJ : t ∈ Icc a b := ⟨ht.1.le, ht.2.le⟩ |
| 379 | let V (i : Fin k) (s : ℝ) := U s ((U t).inverse (v i)) |
| 380 | have hVt (i : Fin k) : V i t = v i := (hinv t htJ).self_apply_inverse _ |
| 381 | have hVpair (s) (hs : s ∈ Icc a b) (i j) : |
| 382 | (F.metric s).inner x (V i s) (V j s) = if i = j then 1 else 0 := by |
| 383 | have h := (hpair s hs ((U t).inverse (v i)) ((U t).inverse (v j))).trans |
| 384 | (hpair t htJ ((U t).inverse (v i)) ((U t).inverse (v j))).symm |
| 385 | change (F.metric s).inner x (V i s) (V j s) = |
| 386 | (F.metric t).inner x (V i t) (V j t) at h |
| 387 | simpa only [hVt, hv] using h |
| 388 | let τ (s : ℝ) := ∑ i, (F.connection s).ricci x (V i s) (V i s) |
| 389 | let d := ∑ i, ((F.connection t).tensorLaplacian (F.connection t).ricciEvaluation x |
| 390 | ![v i, v i] + 2 * ∑ p, ∑ q, |
| 391 | (F.connection t).curvatureTensor x (v i) ((F.metric t).orthonormalBasis x p) |
| 392 | (v i) ((F.metric t).orthonormalBasis x q) * |
| 393 | (F.connection t).ricci x ((F.metric t).orthonormalBasis x p) |
| 394 | ((F.metric t).orthonormalBasis x q)) |
| 395 | refine ⟨τ, d, ?_, ?_, ?_, ?_⟩ |
| 396 | · have hd (i : Fin k) := hasDerivAt_ricci_transport hC F ht x (V := V i) |
| 397 | ((hUd t htJ ((U t).inverse (v i))).hasDerivAt (Icc_mem_nhds ht.1 ht.2)) |
| 398 | have hfun : (∑ i, fun s => (F.connection s).ricci x (V i s) (V i s)) = τ := by |
| 399 | funext s |
| 400 | simp [τ] |
| 401 | have hsum := HasDerivAt.sum (u := Finset.univ) (fun i _ => hd i) |
| 402 | rw [hfun] at hsum |
| 403 | simpa only [d, hVt] using hsum |
| 404 | · simp only [τ, hVt] |
| 405 | · filter_upwards [Icc_mem_nhds ht.1 ht.2] with s hs |
| 406 | exact ricciPartialTrace_le (F.connection s) x (fun i => V i s) (hVpair s hs) |
| 407 | · exact Finset.sum_le_sum fun i _ => le_add_of_nonneg_right |
| 408 | (ricci_movingReaction_nonneg (F.connection t) |
| 409 | (hC.tensor_calculus n M (F.metric t) (F.connection t)) x hsec (v i)) |
| 410 | |
| 411 | /-- Every Ricci partial trace is a lower-contact heat supersolution on the |
| 412 | interior of the slab. All spatial and temporal supports are constructed. -/ |
| 413 | theorem ricciPartialTrace_heatLowerContacts [T2Space M] |
| 414 | (hC : RicciFlowCurvatureCalculus.{u}) {a b : ℝ} (hab : a < b) |
| 415 | (F : RicciFlow n M (Icc a b)) {k : ℕ} (hk : k ≤ n) |
| 416 | (hsec : ∀ t ∈ Ioo a b, ∀ x : M, ∀ v w : TangentSpace (𝓡 n) x, |
| 417 | 0 ≤ (F.connection t).curvatureTensor x v w v w) : |
| 418 | MaximumPrinciple.HeatLowerContacts F.connection univ (Ioo a b) |
| 419 | (fun x t => ricciPartialTrace (F.connection t) k x) := by |
| 420 | intro x _ t ht ψ W hW hxW hψ hψeq hψle |
| 421 | let D := F.connection t |
| 422 | have hD := hC.tensor_calculus n M (F.metric t) D |
| 423 | have hkx : k ≤ Module.finrank ℝ (TangentSpace (𝓡 n) x) := by |
| 424 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) x) = n := finrank_euclideanSpace_fin |
| 425 | omega |
| 426 | obtain ⟨U, Y, hU, hxU, hYs, hYpair, hYeq, hYge, hYlap⟩ := |
| 427 | exists_ricci_partialTrace_spatial_support D hD x hkx |
| 428 | obtain ⟨τ, d, hτd, hτeq, hτge, hdlap⟩ := exists_ricci_frame_time_support hC hab F ht x |
| 429 | (fun i => Y i x) (hYpair x hxU) (hsec t ht x) |
| 430 | refine ⟨τ, d, hτd, hτeq.trans hYeq, hτge, ?_⟩ |
| 431 | let σ (y : M) := ∑ i, D.ricci y (Y i y) (Y i y) |
| 432 | have hσ : ContMDiffOn (𝓡 n) 𝓘(ℝ, ℝ) ∞ σ U := by |
| 433 | intro y hy |
| 434 | exact ContMDiffWithinAt.sum fun i _ => |
| 435 | hD.2.1.2 U hU (fun _ : Fin 2 => Y i) (fun _ => hYs i) y hy |
| 436 | have hmax : IsLocalMax (fun y => ψ y - σ y) x := by |
| 437 | filter_upwards [hU.mem_nhds hxU, hψle] with y hy hyle |
| 438 | change ψ y - σ y ≤ ψ x - σ x |
| 439 | have hx : ψ x = σ x := hψeq.trans hYeq.symm |
| 440 | rw [hx, sub_self] |
| 441 | exact sub_nonpos.mpr (hyle.trans (hYge y hy)) |
| 442 | have hsub := D.laplacian_nonpos_of_isLocalMaxOn_open (hW.inter hU) |
| 443 | ((hψ.mono inter_subset_left).sub (hσ.mono inter_subset_right)) ⟨hxW, hxU⟩ hmax |
| 444 | rw [LeviCivitaData.Dirichlet.laplacian_sub_on D (hW.inter hU) |
| 445 | (hψ.mono inter_subset_left) (hσ.mono inter_subset_right) ⟨hxW, hxU⟩] at hsub |
| 446 | have hσlap : D.laplacian σ x ≤ d := by rw [← hYlap]; exact hdlap |
| 447 | linarith |
| 448 | |
| 449 | end PoincareMT.RicciFlow.Splitting |