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 | /- Adapted from Mapher `PoincareMT/Proofs/M03/CurvatureTimeHessian.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Geometry.RicciFlow.Local.Connection.Variation |
| 6 | import PoincareLib.Geometry.RicciFlow.Local.Curvature.Evolution.CurvatureTimeVariation |
| 7 | import PoincareLib.Geometry.RicciFlow.Local.Curvature.Calculus.CurvatureRicciDerivative |
| 8 | import PoincareLib.Geometry.RicciFlow.Local.Connection.RateRicciSmoothness |
| 9 | |
| 10 | /-! |
| 11 | # Curvature time derivative and full Ricci Hessians |
| 12 | |
| 13 | Convert connection variation to an intrinsic neighborhood identity. |
| 14 | Metric compatibility supplies the pairing correction, and Ricci symmetry |
| 15 | preserves the full Hessian slots. Conventions follow Kotschwar (6) and (9). |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option maxHeartbeats 2400000 |
| 20 | |
| 21 | open scoped Manifold ContDiff Bundle Topology BigOperators |
| 22 | open Set |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.RicciFlow.Local |
| 27 | |
| 28 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 30 | |
| 31 | theorem ricciFlow_curvature_time_derivative_pairing |
| 32 | {J : Set ℝ} (F : RicciFlow n M J) {t : ℝ} (ht : t ∈ interior J) |
| 33 | {U : Set M} (hU : IsOpen U) |
| 34 | (X Y Z W : (x : M) → TangentSpace (𝓡 n) x) |
| 35 | (hX : ContMDiffOn (𝓡 n) |
| 36 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% X) U) |
| 37 | (hY : ContMDiffOn (𝓡 n) |
| 38 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% Y) U) |
| 39 | (hZ : ContMDiffOn (𝓡 n) |
| 40 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% Z) U) |
| 41 | (hW : ContMDiffOn (𝓡 n) |
| 42 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% W) U) |
| 43 | {x : M} (hx : x ∈ U) : |
| 44 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 45 | ⟨(F.metric 0).toRiemannianMetric⟩ |
| 46 | let D := F.connection t |
| 47 | let dRic := fun |
| 48 | (A B C : (y : M) → TangentSpace (𝓡 n) y) (y : M) => |
| 49 | mvfderiv (𝓡 n) (fun z => D.ricci z (B z) (C z)) y (A y) - |
| 50 | D.ricci y (D.connection B y (A y)) (C y) - |
| 51 | D.ricci y (B y) (D.connection C y (A y)) |
| 52 | let ddRic := fun |
| 53 | (A B C E : (y : M) → TangentSpace (𝓡 n) y) (y : M) => |
| 54 | mvfderiv (𝓡 n) (dRic B C E) y (A y) - |
| 55 | dRic (fun z => D.connection B z (A z)) C E y - |
| 56 | dRic B (fun z => D.connection C z (A z)) E y - |
| 57 | dRic B C (fun z => D.connection E z (A z)) y |
| 58 | let V := fun s => (F.connection s).curvature x (X x) (Y x) (Z x) |
| 59 | HasDerivAt V (deriv V t) t ∧ |
| 60 | (F.metric t).inner x (deriv V t) (W x) = |
| 61 | -ddRic X Y Z W x - ddRic X Z Y W x + ddRic X W Y Z x + |
| 62 | ddRic Y X Z W x + ddRic Y Z X W x - ddRic Y W X Z x := by |
| 63 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 64 | ⟨(F.metric 0).toRiemannianMetric⟩ |
| 65 | let D := F.connection t |
| 66 | let g := F.metric t |
| 67 | let dRic := fun (A B C : (y : M) → TangentSpace (𝓡 n) y) (y : M) => |
| 68 | mvfderiv (𝓡 n) (fun z => D.ricci z (B z) (C z)) y (A y) - |
| 69 | D.ricci y (D.connection B y (A y)) (C y) - |
| 70 | D.ricci y (B y) (D.connection C y (A y)) |
| 71 | classical |
| 72 | let : IsManifold (𝓡 n) (∞ + 1) M := by |
| 73 | simpa using (inferInstance : IsManifold (𝓡 n) ∞ M) |
| 74 | let : IsManifold (𝓡 n) (minSmoothness ℝ 2) M := |
| 75 | IsManifold.of_le (n := ∞) (by |
| 76 | simpa only [minSmoothness_of_isRCLikeNormedField] using |
| 77 | (ENat.LEInfty.out (m := (2 : ℕ∞ω)))) |
| 78 | let S := fun (V : Set M) |
| 79 | (A : (y : M) → TangentSpace (𝓡 n) y) => |
| 80 | ContMDiffOn (𝓡 n) |
| 81 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% A) V |
| 82 | let N := fun (A B : (y : M) → TangentSpace (𝓡 n) y) (y : M) => |
| 83 | D.connection B y (A y) |
| 84 | let Br := VectorField.mlieBracket (𝓡 n) (M := M) |
| 85 | let Rf := fun (A B C : (y : M) → TangentSpace (𝓡 n) y) (y : M) => |
| 86 | D.curvatureOnFields A B C y |
| 87 | have hN {V : Set M} (hV : IsOpen V) |
| 88 | (A B : (y : M) → TangentSpace (𝓡 n) y) |
| 89 | (hA : S V A) (hB : S V B) : S V (N A B) := |
| 90 | D.contMDiffOn_connection_apply hV A B hA hB |
| 91 | have hBr {V : Set M} (hV : IsOpen V) |
| 92 | (A B : (y : M) → TangentSpace (𝓡 n) y) |
| 93 | (hA : S V A) (hB : S V B) : S V (Br A B) := by |
| 94 | intro y hy |
| 95 | exact ((hA.contMDiffAt (hV.mem_nhds hy)).mlieBracket_vectorField |
| 96 | (hB.contMDiffAt (hV.mem_nhds hy)) |
| 97 | (m := ⊤) (n := ⊤) (by simp)).contMDiffWithinAt |
| 98 | have hRf {V : Set M} (hV : IsOpen V) |
| 99 | (A B C : (y : M) → TangentSpace (𝓡 n) y) |
| 100 | (hA : S V A) (hB : S V B) (hC : S V C) : S V (Rf A B C) := |
| 101 | ((hN hV A _ hA (hN hV B C hB hC)).sub_section |
| 102 | (hN hV B _ hB (hN hV A C hA hC))).sub_section |
| 103 | (hN hV _ C (hBr hV A B hA hB) hC) |
| 104 | have hRic {V : Set M} (hV : IsOpen V) |
| 105 | (B C : (y : M) → TangentSpace (𝓡 n) y) |
| 106 | (hB : S V B) (hC : S V C) : |
| 107 | ContMDiffOn (𝓡 n) 𝓘(ℝ, ℝ) ∞ |
| 108 | (fun z => D.ricci z (B z) (C z)) V := by |
| 109 | intro y hy |
| 110 | let e := trivializationAt (EuclideanSpace ℝ (Fin n)) (TangentSpace (𝓡 n)) y |
| 111 | have he : y ∈ e.baseSet := FiberBundle.mem_baseSet_trivializationAt' y |
| 112 | let b0 := (EuclideanSpace.basisFun (Fin n) ℝ).toBasis |
| 113 | let W := V ∩ e.baseSet |
| 114 | have hW : IsOpen W := hV.inter e.open_baseSet |
| 115 | have hyW : y ∈ W := ⟨hy, he⟩ |
| 116 | let E := e.localFrame b0 |
| 117 | let q := fun (i : Fin n) (z : M) => |
| 118 | e.localFrameCoeff (𝓡 n) b0 i z (Rf (E i) B C z) |
| 119 | have hBW : S W B := hB.mono inter_subset_left |
| 120 | have hCW : S W C := hC.mono inter_subset_left |
| 121 | have hE (i : Fin n) : S W (E i) := |
| 122 | (e.contMDiffOn_localFrame_baseSet (I := 𝓡 n) ∞ b0 i).mono |
| 123 | (inter_subset_right : W ⊆ e.baseSet) |
| 124 | have hq (i : Fin n) : ContMDiffOn (𝓡 n) 𝓘(ℝ, ℝ) ∞ (q i) W := |
| 125 | contMDiffOn_localFrameCoeff b0 hW |
| 126 | (inter_subset_right : W ⊆ e.baseSet) |
| 127 | (hRf hW (E i) B C (hE i) hBW hCW) i |
| 128 | have hsum : ContMDiffOn (𝓡 n) 𝓘(ℝ, ℝ) ∞ |
| 129 | (fun z => ∑ i, q i z) W := |
| 130 | contMDiffOn_finsetSum (fun i _hi => hq i) |
| 131 | have htrace {z : M} (hz : z ∈ W) : |
| 132 | D.ricci z (B z) (C z) = ∑ i, q i z := by |
| 133 | rw [ricci_eq_sum_basis_of_curvature_pairing D z (B z) (C z) |
| 134 | (e.basisAt b0 hz.2)] |
| 135 | apply Finset.sum_congr rfl |
| 136 | intro i _hi |
| 137 | change _ = e.localFrameCoeff (𝓡 n) b0 i z (Rf (E i) B C z) |
| 138 | rw [e.localFrameCoeff_apply_of_mem_baseSet b0 hz.2 (Rf (E i) B C) i] |
| 139 | apply congrArg (fun v => (e.basisAt b0 hz.2).repr v i) |
| 140 | have hEi : E i z = e.basisAt b0 hz.2 i := |
| 141 | e.localFrame_apply_of_mem_baseSet b0 hz.2 |
| 142 | rw [← hEi] |
| 143 | exact curvature_eq_curvatureOnFields D hW (E i) B C |
| 144 | (hE i) hBW hCW hz |
| 145 | have hEq : (fun z => D.ricci z (B z) (C z)) =ᶠ[𝓝 y] |
| 146 | (fun z => ∑ i, q i z) := |
| 147 | Filter.eventuallyEq_of_mem (hW.mem_nhds hyW) (fun z hz => htrace hz) |
| 148 | exact ((hsum.contMDiffAt (hW.mem_nhds hyW)).congr_of_eventuallyEq |
| 149 | hEq).contMDiffWithinAt |
| 150 | have hScalarDeriv {V : Set M} (hV : IsOpen V) (f : M → ℝ) |
| 151 | (hf : ContMDiffOn (𝓡 n) 𝓘(ℝ, ℝ) ∞ f V) |
| 152 | (A : (y : M) → TangentSpace (𝓡 n) y) (hA : S V A) : |
| 153 | ContMDiffOn (𝓡 n) 𝓘(ℝ, ℝ) ∞ |
| 154 | (fun y => mvfderiv (𝓡 n) f y (A y)) V := by |
| 155 | have hf' : ContMDiffOn (𝓘(ℝ, ℝ).prod (𝓡 n)) 𝓘(ℝ, ℝ) ∞ |
| 156 | (Function.uncurry (fun (_s : ℝ) (y : M) => f y)) (univ ×ˢ V) := |
| 157 | hf.comp (I := 𝓘(ℝ, ℝ).prod (𝓡 n)) contMDiffOn_snd |
| 158 | (fun _ hp => hp.2) |
| 159 | have hs := contMDiffOn_family_spatial_mvfderiv |
| 160 | (f := fun (_s : ℝ) (y : M) => f y) (J := univ) hV hf' A hA |
| 161 | have hi : ContMDiffOn (𝓡 n) (𝓘(ℝ, ℝ).prod (𝓡 n)) ∞ |
| 162 | (fun y : M => ((0 : ℝ), y)) V := |
| 163 | contMDiffOn_const.prodMk contMDiffOn_id |
| 164 | simpa only [Function.comp_def] using |
| 165 | hs.comp hi (fun _ hy => ⟨mem_univ (0 : ℝ), hy⟩) |
| 166 | have hDric {V : Set M} (hV : IsOpen V) |
| 167 | (A B C : (y : M) → TangentSpace (𝓡 n) y) |
| 168 | (hA : S V A) (hB : S V B) (hC : S V C) : |
| 169 | ContMDiffOn (𝓡 n) 𝓘(ℝ, ℝ) ∞ (dRic A B C) V := by |
| 170 | have hd := hScalarDeriv hV |
| 171 | (fun y => D.ricci y (B y) (C y)) (hRic hV B C hB hC) A hA |
| 172 | have hAB := hN hV A B hA hB |
| 173 | have hAC := hN hV A C hA hC |
| 174 | simpa only [dRic, N, Pi.sub_apply] using |
| 175 | (hd.sub (hRic hV (N A B) C hAB hC)).sub |
| 176 | (hRic hV B (N A C) hB hAC) |
| 177 | let ddRic := fun (A B C E : (y : M) → TangentSpace (𝓡 n) y) (y : M) => |
| 178 | mvfderiv (𝓡 n) (dRic B C E) y (A y) - |
| 179 | dRic (N A B) C E y - dRic B (N A C) E y - dRic B C (N A E) y |
| 180 | let B0 := fun (A B : (y : M) → TangentSpace (𝓡 n) y) (y : M) => |
| 181 | deriv (fun s => (F.connection s).connection B y (A y)) t |
| 182 | let P0 := fun (A B C : (y : M) → TangentSpace (𝓡 n) y) (y : M) => |
| 183 | g.inner y (B0 A B y) (C y) |
| 184 | let nablaB := fun (A B C : (y : M) → TangentSpace (𝓡 n) y) (y : M) => |
| 185 | N A (B0 B C) y - B0 (N A B) C y - B0 B (N A C) y |
| 186 | let Vtime := fun s => (F.connection s).curvature x (X x) (Y x) (Z x) |
| 187 | change HasDerivAt Vtime (deriv Vtime t) t ∧ |
| 188 | g.inner x (deriv Vtime t) (W x) = |
| 189 | -ddRic X Y Z W x - ddRic X Z Y W x + ddRic X W Y Z x + |
| 190 | ddRic Y X Z W x + ddRic Y Z X W x - ddRic Y W X Z x |
| 191 | have hmd (A : (y : M) → TangentSpace (𝓡 n) y) (hA : S U A) |
| 192 | {y : M} (hy : y ∈ U) : |
| 193 | MDifferentiableAt (𝓡 n) |
| 194 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) (T% A) y := |
| 195 | (hA.contMDiffAt (hU.mem_nhds hy)).mdifferentiableAt (by simp) |
| 196 | have hDricmd (A B C : (y : M) → TangentSpace (𝓡 n) y) |
| 197 | (hA : S U A) (hB : S U B) (hC : S U C) : |
| 198 | MDifferentiableAt (𝓡 n) 𝓘(ℝ, ℝ) (dRic A B C) x := |
| 199 | ((hDric hU A B C hA hB hC).contMDiffAt |
| 200 | (hU.mem_nhds hx)).mdifferentiableAt (by simp) |
| 201 | have hB0 (A B : (y : M) → TangentSpace (𝓡 n) y) |
| 202 | (hA : S U A) (hB : S U B) : S U (B0 A B) := by |
| 203 | simpa only [B0] using |
| 204 | (family_tangent_time_derivative (F.metric 0) hU |
| 205 | (fun s y => (F.connection s).connection B y (A y)) |
| 206 | (contMDiffOn_connection_family_apply F.smooth F.connection hU B A hB hA) ht).2 |
| 207 | have hchart (f : M → ℝ) (hf : ContMDiffOn (𝓡 n) 𝓘(ℝ, ℝ) ∞ f U) |
| 208 | {y : M} (hy : y ∈ U) (a : TangentSpace (𝓡 n) y) : |
| 209 | fderiv ℝ (fun z => f ((extChartAt (𝓡 n) y).symm z)) |
| 210 | ((extChartAt (𝓡 n) y) y) a = mvfderiv (𝓡 n) f y a := by |
| 211 | let ch := extChartAt (𝓡 n) y |
| 212 | have hcy : ch y ∈ ch.target := mem_extChartAt_target y |
| 213 | have hcsymm : ch.symm (ch y) = y := ch.left_inv (mem_extChartAt_source y) |
| 214 | have hfAt := hf.contMDiffAt (hU.mem_nhds hy) |
| 215 | have hch : ContMDiffAt 𝓘(ℝ, EuclideanSpace ℝ (Fin n)) (𝓡 n) ∞ |
| 216 | ch.symm (ch y) := |
| 217 | (contMDiffOn_extChartAt_symm (I := 𝓡 n) y).contMDiffAt |
| 218 | (extChartAt_target_mem_nhds' hcy) |
| 219 | have heid : mfderiv 𝓘(ℝ, EuclideanSpace ℝ (Fin n)) (𝓡 n) |
| 220 | ch.symm (ch y) = ContinuousLinearMap.id ℝ |
| 221 | (TangentSpace (𝓡 n) (ch y)) := by |
| 222 | simpa only [(𝓡 n).range_eq_univ, mfderivWithin_univ] using |
| 223 | (mfderivWithin_range_extChartAt_symm (I := 𝓡 n) (x := y)) |
| 224 | have hdf : fderiv ℝ (fun z => f (ch.symm z)) (ch y) = |
| 225 | mvfderiv (𝓡 n) f y := by |
| 226 | rw [← mfderiv_eq_fderiv] |
| 227 | change mvfderiv 𝓘(ℝ, EuclideanSpace ℝ (Fin n)) |
| 228 | (f ∘ ch.symm) (ch y) = _ |
| 229 | have hf' : MDifferentiableAt (𝓡 n) 𝓘(ℝ, ℝ) f (ch.symm (ch y)) := by |
| 230 | simpa only [hcsymm] using hfAt.mdifferentiableAt (by simp) |
| 231 | rw [mvfderiv_comp (ch y) hf' (hch.mdifferentiableAt (by simp)), heid] |
| 232 | change mvfderiv (𝓡 n) f (ch.symm (ch y)) = mvfderiv (𝓡 n) f y |
| 233 | rw [hcsymm] |
| 234 | exact congrArg (fun L => L a) hdf |
| 235 | have hIntrinsic (A B C : (y : M) → TangentSpace (𝓡 n) y) |
| 236 | (hA : S U A) (hB : S U B) (hC : S U C) |
| 237 | {y : M} (hy : y ∈ U) : |
| 238 | P0 A B C y = -dRic A B C y - dRic B C A y + dRic C A B y := by |
| 239 | let ch := extChartAt (𝓡 n) y |
| 240 | let cr := fun (P Q R : (z : M) → TangentSpace (𝓡 n) z) => |
| 241 | fderiv ℝ (fun z => D.ricci (ch.symm z) (Q (ch.symm z)) (R (ch.symm z))) |
| 242 | (ch y) (P y) - |
| 243 | D.ricci y (N P Q y) (R y) - D.ricci y (Q y) (N P R y) |
| 244 | have hh := (ricciFlow_connection_variation_pairing F ht hU A B C hA hB hC hy).2 |
| 245 | change P0 A B C y = -cr A B C - cr B C A + cr C A B at hh |
| 246 | have hcr (P Q R : (z : M) → TangentSpace (𝓡 n) z) |
| 247 | (hQ : S U Q) (hR : S U R) : cr P Q R = dRic P Q R y := by |
| 248 | dsimp only [cr, dRic, N] |
| 249 | rw [hchart (fun z => D.ricci z (Q z) (R z)) (hRic hU Q R hQ hR) hy (P y)] |
| 250 | rw [hcr A B C hB hC, hcr B C A hC hA, hcr C A B hA hB] at hh |
| 251 | exact hh |
| 252 | have hRicSymm (y : M) (a b : TangentSpace (𝓡 n) y) : |
| 253 | D.ricci y a b = D.ricci y b a := by |
| 254 | have he (a b : TangentSpace (𝓡 n) y) : |
| 255 | HasDerivAt (fun s => (F.metric s).inner y a b) (-2 * D.ricci y a b) t := |
| 256 | (F.equation t (interior_subset ht) y a b).hasDerivAt |
| 257 | (mem_interior_iff_mem_nhds.mp ht) |
| 258 | have hb := (he b a).congr_of_eventuallyEq |
| 259 | (Filter.Eventually.of_forall (fun s => (F.metric s).symm y a b)) |
| 260 | have hh := (he a b).unique hb |
| 261 | linarith only [hh] |
| 262 | have hDSym (A B C : (y : M) → TangentSpace (𝓡 n) y) : |
| 263 | dRic A B C = dRic A C B := by |
| 264 | have hf : (fun y => D.ricci y (B y) (C y)) = |
| 265 | (fun y => D.ricci y (C y) (B y)) := |
| 266 | funext fun y => hRicSymm y (B y) (C y) |
| 267 | funext y |
| 268 | dsimp only [dRic] |
| 269 | rw [hf, hRicSymm y (D.connection B y (A y)) (C y), |
| 270 | hRicSymm y (B y) (D.connection C y (A y))] |
| 271 | ring |
| 272 | have hHSym (A B C E : (y : M) → TangentSpace (𝓡 n) y) (y : M) : |
| 273 | ddRic A B C E y = ddRic A B E C y := by |
| 274 | dsimp only [ddRic] |
| 275 | rw [hDSym B C E, hDSym (N A B) C E, |
| 276 | hDSym B (N A C) E, hDSym B C (N A E)] |
| 277 | ring |
| 278 | have hPderiv (A B C E : (y : M) → TangentSpace (𝓡 n) y) |
| 279 | (hB : S U B) (hC : S U C) (hE : S U E) : |
| 280 | mvfderiv (𝓡 n) (P0 B C E) x (A x) = |
| 281 | -mvfderiv (𝓡 n) (dRic B C E) x (A x) - |
| 282 | mvfderiv (𝓡 n) (dRic C E B) x (A x) + |
| 283 | mvfderiv (𝓡 n) (dRic E B C) x (A x) := by |
| 284 | have heq : P0 B C E =ᶠ[𝓝 x] |
| 285 | (fun y => -dRic B C E y - dRic C E B y + dRic E B C y) := |
| 286 | Filter.eventuallyEq_of_mem (hU.mem_nhds hx) |
| 287 | (fun y hy => hIntrinsic B C E hB hC hE hy) |
| 288 | have h₁ := hDricmd B C E hB hC hE |
| 289 | have h₂ := hDricmd C E B hC hE hB |
| 290 | have h₃ := hDricmd E B C hE hB hC |
| 291 | calc |
| 292 | _ = mvfderiv (𝓡 n) |
| 293 | (fun y => -dRic B C E y - dRic C E B y + dRic E B C y) x (A x) := by |
| 294 | dsimp only [mvfderiv] |
| 295 | rw [heq.mfderiv_eq (I := 𝓡 n) (I' := 𝓘(ℝ, ℝ)), heq.eq_of_nhds] |
| 296 | _ = _ := by |
| 297 | rw [mvfderiv_fun_add (g := fun y => -dRic B C E y - dRic C E B y) |
| 298 | (g' := dRic E B C) (h₁.neg.sub h₂) h₃, add_apply, |
| 299 | mvfderiv_fun_sub (g := fun y => -dRic B C E y) (g' := dRic C E B) |
| 300 | h₁.neg h₂, sub_apply, mvfderiv_fun_neg, neg_apply] |
| 301 | have hPair (A B C E : (y : M) → TangentSpace (𝓡 n) y) |
| 302 | (hB : S U B) (hC : S U C) (hE : S U E) : |
| 303 | g.inner x (nablaB A B C x) (E x) = |
| 304 | mvfderiv (𝓡 n) (P0 B C E) x (A x) - |
| 305 | P0 (N A B) C E x - P0 B (N A C) E x - P0 B C (N A E) x := by |
| 306 | dsimp only [nablaB, P0] |
| 307 | rw [D.localTheory_mvfderiv_inner A (B0 B C) E |
| 308 | (hmd _ (hB0 B C hB hC) hx) (hmd E hE hx)] |
| 309 | simp only [map_sub, sub_apply] |
| 310 | dsimp only [N] |
| 311 | ring |
| 312 | have hHess (A B C E : (y : M) → TangentSpace (𝓡 n) y) |
| 313 | (hA : S U A) (hB : S U B) (hC : S U C) (hE : S U E) : |
| 314 | g.inner x (nablaB A B C x) (E x) = |
| 315 | -ddRic A B C E x - ddRic A C B E x + ddRic A E B C x := by |
| 316 | have hh : g.inner x (nablaB A B C x) (E x) = |
| 317 | -ddRic A B C E x - ddRic A C E B x + ddRic A E B C x := by |
| 318 | rw [hPair A B C E hB hC hE, hPderiv A B C E hB hC hE, |
| 319 | hIntrinsic (N A B) C E (hN hU A B hA hB) hC hE hx, |
| 320 | hIntrinsic B (N A C) E hB (hN hU A C hA hC) hE hx, |
| 321 | hIntrinsic B C (N A E) hB hC (hN hU A E hA hE) hx] |
| 322 | dsimp only [ddRic] |
| 323 | ring |
| 324 | rw [hHSym A C E B x] at hh |
| 325 | exact hh |
| 326 | have hd := hasDerivAt_ricciFlow_curvature F ht hU X Y Z hX hY hZ hx |
| 327 | change HasDerivAt Vtime (nablaB X Y Z x - nablaB Y X Z x) t at hd |
| 328 | refine ⟨hd.differentiableAt.hasDerivAt, ?_⟩ |
| 329 | rw [hd.deriv, map_sub, sub_apply, |
| 330 | hHess X Y Z W hX hY hZ hW, hHess Y X Z W hY hX hZ hW] |
| 331 | ring |
| 332 | |
| 333 | /-- The actual connection rate is the signed sum of three curvature-gradient traces. -/ |
| 334 | theorem ricciFlow_connection_variation_pairing_eq_curvature_derivative_trace |
| 335 | {J : Set ℝ} (F : RicciFlow n M J) {t : ℝ} (ht : t ∈ interior J) |
| 336 | {U : Set M} (hU : IsOpen U) |
| 337 | (X Y Z : (x : M) → TangentSpace (𝓡 n) x) |
| 338 | (hX : ContMDiffOn (𝓡 n) |
| 339 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% X) U) |
| 340 | (hY : ContMDiffOn (𝓡 n) |
| 341 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% Y) U) |
| 342 | (hZ : ContMDiffOn (𝓡 n) |
| 343 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% Z) U) |
| 344 | {x : M} (hx : x ∈ U) : |
| 345 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 346 | ⟨(F.metric 0).toRiemannianMetric⟩ |
| 347 | let D := F.connection t |
| 348 | let b := (F.metric t).orthonormalBasis x |
| 349 | let E := fun i => FiberBundle.extend (EuclideanSpace ℝ (Fin n)) (b i) |
| 350 | let N := fun (A B : (y : M) → TangentSpace (𝓡 n) y) y => |
| 351 | D.connection B y (A y) |
| 352 | let R := fun (A B C : (y : M) → TangentSpace (𝓡 n) y) y => |
| 353 | D.curvatureOnFields A B C y |
| 354 | let K := fun (A B C W : (y : M) → TangentSpace (𝓡 n) y) y => |
| 355 | N A (R B C W) y - R (N A B) C W y - |
| 356 | R B (N A C) W y - R B C (N A W) y |
| 357 | (F.metric t).inner x |
| 358 | (deriv (fun s => (F.connection s).connection Y x (X x)) t) (Z x) = |
| 359 | -(∑ i, (F.metric t).inner x (K X (E i) Y Z x) (b i)) - |
| 360 | (∑ i, (F.metric t).inner x (K Y (E i) Z X x) (b i)) + |
| 361 | ∑ i, (F.metric t).inner x (K Z (E i) X Y x) (b i) := by |
| 362 | classical |
| 363 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 364 | ⟨(F.metric 0).toRiemannianMetric⟩ |
| 365 | let D := F.connection t |
| 366 | let g := F.metric t |
| 367 | let ι := Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)) |
| 368 | let b := g.orthonormalBasis x |
| 369 | let b0 : Module.Basis ι ℝ (TangentSpace (𝓡 n) x) := |
| 370 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 371 | ⟨g.toRiemannianMetric⟩ |
| 372 | b.toBasis |
| 373 | let E := fun i : ι => FiberBundle.extend (EuclideanSpace ℝ (Fin n)) (b i) |
| 374 | let N := fun (A B : (y : M) → TangentSpace (𝓡 n) y) y => |
| 375 | D.connection B y (A y) |
| 376 | let R := fun (A B C : (y : M) → TangentSpace (𝓡 n) y) y => |
| 377 | D.curvatureOnFields A B C y |
| 378 | let K := fun (A B C W : (y : M) → TangentSpace (𝓡 n) y) y => |
| 379 | N A (R B C W) y - R (N A B) C W y - |
| 380 | R B (N A C) W y - R B C (N A W) y |
| 381 | let dRic := fun (A B C : (y : M) → TangentSpace (𝓡 n) y) => |
| 382 | mvfderiv (𝓡 n) (fun y => D.ricci y (B y) (C y)) x (A x) - |
| 383 | D.ricci x (N A B x) (C x) - D.ricci x (B x) (N A C x) |
| 384 | let ch := extChartAt (𝓡 n) x |
| 385 | let cr := fun (A B C : (y : M) → TangentSpace (𝓡 n) y) => |
| 386 | fderiv ℝ (fun z => D.ricci (ch.symm z) (B (ch.symm z)) (C (ch.symm z))) |
| 387 | (ch x) (A x) - D.ricci x (N A B x) (C x) - |
| 388 | D.ricci x (B x) (N A C x) |
| 389 | have hchart (f : M → ℝ) (hf : MDifferentiableAt (𝓡 n) 𝓘(ℝ, ℝ) f x) |
| 390 | (a : TangentSpace (𝓡 n) x) : |
| 391 | fderiv ℝ (fun z => f (ch.symm z)) (ch x) a = mvfderiv (𝓡 n) f x a := by |
| 392 | have hcx : ch x ∈ ch.target := mem_extChartAt_target x |
| 393 | have hcsymm : ch.symm (ch x) = x := ch.left_inv (mem_extChartAt_source x) |
| 394 | have hch : ContMDiffAt 𝓘(ℝ, EuclideanSpace ℝ (Fin n)) (𝓡 n) ∞ |
| 395 | ch.symm (ch x) := |
| 396 | (contMDiffOn_extChartAt_symm (I := 𝓡 n) x).contMDiffAt |
| 397 | (extChartAt_target_mem_nhds' hcx) |
| 398 | have heid : mfderiv 𝓘(ℝ, EuclideanSpace ℝ (Fin n)) (𝓡 n) |
| 399 | ch.symm (ch x) = ContinuousLinearMap.id ℝ |
| 400 | (TangentSpace (𝓡 n) (ch x)) := by |
| 401 | simpa only [(𝓡 n).range_eq_univ, mfderivWithin_univ] using |
| 402 | (mfderivWithin_range_extChartAt_symm (I := 𝓡 n) (x := x)) |
| 403 | have hdf : fderiv ℝ (fun z => f (ch.symm z)) (ch x) = mvfderiv (𝓡 n) f x := by |
| 404 | rw [← mfderiv_eq_fderiv] |
| 405 | change mvfderiv 𝓘(ℝ, EuclideanSpace ℝ (Fin n)) (f ∘ ch.symm) (ch x) = _ |
| 406 | have hf' : MDifferentiableAt (𝓡 n) 𝓘(ℝ, ℝ) f (ch.symm (ch x)) := by |
| 407 | simpa only [hcsymm] using hf |
| 408 | rw [mvfderiv_comp (ch x) hf' (hch.mdifferentiableAt (by simp)), heid] |
| 409 | change mvfderiv (𝓡 n) f (ch.symm (ch x)) = mvfderiv (𝓡 n) f x |
| 410 | rw [hcsymm] |
| 411 | exact congrArg (fun L => L a) hdf |
| 412 | have hcr (A B C : (y : M) → TangentSpace (𝓡 n) y) |
| 413 | (hB : ContMDiffOn (𝓡 n) |
| 414 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% B) U) |
| 415 | (hC : ContMDiffOn (𝓡 n) |
| 416 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% C) U) : |
| 417 | cr A B C = dRic A B C := by |
| 418 | have hf : MDifferentiableAt (𝓡 n) 𝓘(ℝ, ℝ) |
| 419 | (fun y => D.ricci y (B y) (C y)) x := |
| 420 | (connection_rate_ricci_pair_smooth F ht hU B C hB hC hx).mdifferentiableAt (by simp) |
| 421 | dsimp only [cr, dRic] |
| 422 | rw [hchart (fun y => D.ricci y (B y) (C y)) hf (A x)] |
| 423 | have hb0 (i : ι) : b0 i = b i := by |
| 424 | simp only [b0, OrthonormalBasis.coe_toBasis] |
| 425 | have hrepr (v : TangentSpace (𝓡 n) x) (i : ι) : |
| 426 | b0.repr v i = g.inner x v (b i) := by |
| 427 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 428 | ⟨g.toRiemannianMetric⟩ |
| 429 | change (g.orthonormalBasis x).toBasis.repr v i = |
| 430 | g.inner x v ((g.orthonormalBasis x) i) |
| 431 | rw [OrthonormalBasis.coe_toBasis_repr_apply, OrthonormalBasis.repr_apply_apply] |
| 432 | exact g.symm x _ _ |
| 433 | have htrace (A B C : (y : M) → TangentSpace (𝓡 n) y) |
| 434 | (hA : ContMDiffOn (𝓡 n) |
| 435 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% A) U) |
| 436 | (hB : ContMDiffOn (𝓡 n) |
| 437 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% B) U) |
| 438 | (hC : ContMDiffOn (𝓡 n) |
| 439 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% C) U) : |
| 440 | dRic A B C = ∑ i, g.inner x (K A (E i) B C x) (b i) := by |
| 441 | have hh := ricci_covariant_derivative_eq_sum_basis D hU A B C hA hB hC hx b0 |
| 442 | change dRic A B C = ∑ i, b0.repr |
| 443 | (K A (FiberBundle.extend (EuclideanSpace ℝ (Fin n)) (b0 i)) B C x) i at hh |
| 444 | simpa only [hrepr, hb0, E] using hh |
| 445 | have hh := (ricciFlow_connection_variation_pairing F ht hU X Y Z hX hY hZ hx).2 |
| 446 | change g.inner x (deriv (fun s => (F.connection s).connection Y x (X x)) t) (Z x) = |
| 447 | -cr X Y Z - cr Y Z X + cr Z X Y at hh |
| 448 | rw [hcr X Y Z hY hZ, hcr Y Z X hZ hX, hcr Z X Y hX hY, |
| 449 | htrace X Y Z hX hY hZ, htrace Y Z X hY hZ hX, htrace Z X Y hZ hX hY] at hh |
| 450 | exact hh |
| 451 | |
| 452 | set_option maxHeartbeats 2400000 in |
| 453 | set_option synthInstance.maxHeartbeats 200000 in |
| 454 | /-- Subtract the full Bochner trace from the actual gradient energy rate. -/ |
| 455 | theorem ricciFlow_curvature_derivative_scalar_heat_identity |
| 456 | {I : Set ℝ} (F : RicciFlow n M I) {t : ℝ} (ht : t ∈ interior I) |
| 457 | (x0 : M) {x : M} |
| 458 | (hx : x ∈ (trivializationAt (EuclideanSpace ℝ (Fin n)) |
| 459 | (TangentSpace (𝓡 n)) x0).baseSet) : |
| 460 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 461 | ⟨(F.metric 0).toRiemannianMetric⟩ |
| 462 | let V := EuclideanSpace ℝ (Fin n) |
| 463 | let e := trivializationAt V (TangentSpace (𝓡 n)) x0 |
| 464 | let E := e.localFrame (EuclideanSpace.basisFun (Fin n) ℝ).toBasis |
| 465 | let G := fun (s : ℝ) (y : M) => ContinuousLinearMap.inCoordinates V |
| 466 | (TangentSpace (𝓡 n)) (V →L[ℝ] ℝ) |
| 467 | (fun z => TangentSpace (𝓡 n) z →L[ℝ] ℝ) x0 y x0 y ((F.metric s).inner y) |
| 468 | let a := fun (s : ℝ) (y : M) (i j : Fin n) => |
| 469 | ((G s y).inverse (EuclideanSpace.proj j)) i |
| 470 | let N := fun s (P Q : (y : M) → TangentSpace (𝓡 n) y) y => |
| 471 | (F.connection s).connection Q y (P y) |
| 472 | let R := fun s (A B C : (y : M) → TangentSpace (𝓡 n) y) y => |
| 473 | (F.connection s).curvatureOnFields A B C y |
| 474 | let K := fun s (P A B C : (y : M) → TangentSpace (𝓡 n) y) y => |
| 475 | N s P (R s A B C) y - R s (N s P A) B C y - |
| 476 | R s A (N s P B) C y - R s A B (N s P C) y |
| 477 | let H := fun (P Q A B C : (y : M) → TangentSpace (𝓡 n) y) y => |
| 478 | N t P (K t Q A B C) y - K t (N t P Q) A B C y - |
| 479 | K t Q (N t P A) B C y - K t Q A (N t P B) C y - K t Q A B (N t P C) y |
| 480 | let J := fun (P Q A B C W : (y : M) → TangentSpace (𝓡 n) y) y => |
| 481 | N t P (H Q A B C W) y - H (N t P Q) A B C W y - |
| 482 | H Q (N t P A) B C W y - H Q A (N t P B) C W y - |
| 483 | H Q A B (N t P C) W y - H Q A B C (N t P W) y |
| 484 | let W := fun s y (α β : Fin 4 → Fin n) => ∏ r, a s y (α r) (β r) |
| 485 | let pair := fun s (y : M) |
| 486 | (v w : (Fin 4 → Fin n) → TangentSpace (𝓡 n) y) => |
| 487 | ∑ α, ∑ β, W s y α β * (F.metric s).inner y (v α) (w β) |
| 488 | let k := fun s (α : Fin 4 → Fin n) => |
| 489 | K s (E (α 0)) (E (α 1)) (E (α 2)) (E (α 3)) |
| 490 | let k1 := fun i (α : Fin 4 → Fin n) => |
| 491 | H (E i) (E (α 0)) (E (α 1)) (E (α 2)) (E (α 3)) |
| 492 | let k2 := fun i j (α : Fin 4 → Fin n) => |
| 493 | J (E i) (E j) (E (α 0)) (E (α 1)) (E (α 2)) (E (α 3)) |
| 494 | let q := fun s y => pair s y (fun α => k s α y) (fun α => k s α y) |
| 495 | let d := fun (P : (y : M) → TangentSpace (𝓡 n) y) (f : M → ℝ) y => |
| 496 | mvfderiv (𝓡 n) f y (P y) |
| 497 | let raised := fun i => e.symmL ℝ x ((G t x).inverse (EuclideanSpace.proj i)) |
| 498 | deriv (fun s => q s x) t - |
| 499 | (∑ i, ∑ j, a t x i j * |
| 500 | (d (E i) (d (E j) (q t)) x - d (N t (E i) (E j)) (q t) x)) = |
| 501 | -2 * (∑ i, ∑ j, a t x i j * |
| 502 | pair t x (fun α => k1 i α x) (fun α => k1 j α x)) + |
| 503 | 2 * pair t x |
| 504 | (fun α => deriv (fun s => k s α x) t - ∑ i, ∑ j, a t x i j • k2 i j α x) |
| 505 | (fun α => k t α x) - |
| 506 | 2 * (∑ α, ∑ β, W t x α β * (F.connection t).ricci x (k t α x) (k t β x)) + |
| 507 | ∑ α, ∑ β, ∑ r : Fin 4, |
| 508 | 2 * (F.connection t).ricci x (raised (β r)) (raised (α r)) * |
| 509 | (∏ s ∈ Finset.univ.erase r, a t x (α s) (β s)) * |
| 510 | (F.metric t).inner x (k t α x) (k t β x) := by |
| 511 | classical |
| 512 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 513 | ⟨(F.metric 0).toRiemannianMetric⟩ |
| 514 | let V := EuclideanSpace ℝ (Fin n) |
| 515 | let e := trivializationAt V (TangentSpace (𝓡 n)) x0 |
| 516 | let E := e.localFrame (EuclideanSpace.basisFun (Fin n) ℝ).toBasis |
| 517 | let G := fun (s : ℝ) (y : M) => ContinuousLinearMap.inCoordinates V |
| 518 | (TangentSpace (𝓡 n)) (V →L[ℝ] ℝ) |
| 519 | (fun z => TangentSpace (𝓡 n) z →L[ℝ] ℝ) x0 y x0 y ((F.metric s).inner y) |
| 520 | let a := fun (s : ℝ) (y : M) (i j : Fin n) => |
| 521 | ((G s y).inverse (EuclideanSpace.proj j)) i |
| 522 | let N := fun s (P Q : (y : M) → TangentSpace (𝓡 n) y) y => |
| 523 | (F.connection s).connection Q y (P y) |
| 524 | let R := fun s (A B C : (y : M) → TangentSpace (𝓡 n) y) y => |
| 525 | (F.connection s).curvatureOnFields A B C y |
| 526 | let K := fun s (P A B C : (y : M) → TangentSpace (𝓡 n) y) y => |
| 527 | N s P (R s A B C) y - R s (N s P A) B C y - |
| 528 | R s A (N s P B) C y - R s A B (N s P C) y |
| 529 | let H := fun (P Q A B C : (y : M) → TangentSpace (𝓡 n) y) y => |
| 530 | N t P (K t Q A B C) y - K t (N t P Q) A B C y - |
| 531 | K t Q (N t P A) B C y - K t Q A (N t P B) C y - K t Q A B (N t P C) y |
| 532 | let J := fun (P Q A B C W : (y : M) → TangentSpace (𝓡 n) y) y => |
| 533 | N t P (H Q A B C W) y - H (N t P Q) A B C W y - |
| 534 | H Q (N t P A) B C W y - H Q A (N t P B) C W y - |
| 535 | H Q A B (N t P C) W y - H Q A B C (N t P W) y |
| 536 | let W := fun s y (α β : Fin 4 → Fin n) => ∏ r, a s y (α r) (β r) |
| 537 | let pair := fun s (y : M) |
| 538 | (v w : (Fin 4 → Fin n) → TangentSpace (𝓡 n) y) => |
| 539 | ∑ α, ∑ β, W s y α β * (F.metric s).inner y (v α) (w β) |
| 540 | let k := fun s (α : Fin 4 → Fin n) => |
| 541 | K s (E (α 0)) (E (α 1)) (E (α 2)) (E (α 3)) |
| 542 | let k1 := fun i (α : Fin 4 → Fin n) => |
| 543 | H (E i) (E (α 0)) (E (α 1)) (E (α 2)) (E (α 3)) |
| 544 | let k2 := fun i j (α : Fin 4 → Fin n) => |
| 545 | J (E i) (E j) (E (α 0)) (E (α 1)) (E (α 2)) (E (α 3)) |
| 546 | let q := fun s y => pair s y (fun α => k s α y) (fun α => k s α y) |
| 547 | let d := fun (P : (y : M) → TangentSpace (𝓡 n) y) (f : M → ℝ) y => |
| 548 | mvfderiv (𝓡 n) f y (P y) |
| 549 | let raised := fun i => e.symmL ℝ x ((G t x).inverse (EuclideanSpace.proj i)) |
| 550 | let dotk := fun α => deriv (fun s => k s α x) t |
| 551 | let diff := fun α => ∑ i, ∑ j, a t x i j • k2 i j α x |
| 552 | let G2 := ∑ i, ∑ j, a t x i j * |
| 553 | pair t x (fun α => k1 i α x) (fun α => k1 j α x) |
| 554 | let C2 := ∑ i, ∑ j, a t x i j * |
| 555 | pair t x (fun α => k2 i j α x) (fun α => k t α x) |
| 556 | let outputRate := ∑ α, ∑ β, |
| 557 | W t x α β * (F.connection t).ricci x (k t α x) (k t β x) |
| 558 | let inputRate := ∑ α, ∑ β, ∑ r : Fin 4, |
| 559 | 2 * (F.connection t).ricci x (raised (β r)) (raised (α r)) * |
| 560 | (∏ s ∈ Finset.univ.erase r, a t x (α s) (β s)) * |
| 561 | (F.metric t).inner x (k t α x) (k t β x) |
| 562 | have htime := (hasDerivAt_ricciFlow_curvature_derivative_squared_norm_frame |
| 563 | F ht x0 hx).deriv |
| 564 | change deriv (fun s => q s x) t = |
| 565 | 2 * pair t x dotk (fun α => k t α x) - 2 * outputRate + inputRate at htime |
| 566 | have hspace := curvature_derivative_bochner_local_frame (F.connection t) x0 hx |
| 567 | change (∑ i, ∑ j, a t x i j * |
| 568 | (d (E i) (d (E j) (q t)) x - d (N t (E i) (E j)) (q t) x)) = |
| 569 | 2 * G2 + 2 * C2 at hspace |
| 570 | have hlinear {A B Z : Type} [Fintype A] [Fintype B] |
| 571 | [NormedAddCommGroup Z] [NormedSpace ℝ Z] |
| 572 | (L : Z →L[ℝ] Z →L[ℝ] ℝ) (w : A → A → ℝ) (c : B → B → ℝ) |
| 573 | (v z : A → Z) (h : B → B → A → Z) : |
| 574 | (∑ α, ∑ β, w α β * L (v α - ∑ i, ∑ j, c i j • h i j α) (z β)) = |
| 575 | (∑ α, ∑ β, w α β * L (v α) (z β)) - |
| 576 | ∑ i, ∑ j, c i j * (∑ α, ∑ β, w α β * L (h i j α) (z β)) := by |
| 577 | simp only [map_sub, map_sum, map_smul, sub_apply, sum_apply, smul_apply, |
| 578 | smul_eq_mul, mul_sub, Finset.mul_sum, Finset.sum_sub_distrib] |
| 579 | congr 1 |
| 580 | calc |
| 581 | _ = ∑ α, ∑ i, ∑ β, ∑ j, w α β * (c i j * L (h i j α) (z β)) := by |
| 582 | apply Finset.sum_congr rfl |
| 583 | intro α _ |
| 584 | exact Finset.sum_comm |
| 585 | _ = ∑ i, ∑ α, ∑ β, ∑ j, w α β * (c i j * L (h i j α) (z β)) := |
| 586 | Finset.sum_comm |
| 587 | _ = ∑ i, ∑ α, ∑ j, ∑ β, w α β * (c i j * L (h i j α) (z β)) := by |
| 588 | apply Finset.sum_congr rfl |
| 589 | intro i _ |
| 590 | apply Finset.sum_congr rfl |
| 591 | intro α _ |
| 592 | exact Finset.sum_comm |
| 593 | _ = ∑ i, ∑ j, ∑ α, ∑ β, w α β * (c i j * L (h i j α) (z β)) := by |
| 594 | apply Finset.sum_congr rfl |
| 595 | intro i _ |
| 596 | exact Finset.sum_comm |
| 597 | _ = _ := by |
| 598 | apply Finset.sum_congr rfl |
| 599 | intro i _ |
| 600 | apply Finset.sum_congr rfl |
| 601 | intro j _ |
| 602 | apply Finset.sum_congr rfl |
| 603 | intro α _ |
| 604 | apply Finset.sum_congr rfl |
| 605 | intro β _ |
| 606 | ring |
| 607 | have hdiff : pair t x (fun α => dotk α - diff α) (fun α => k t α x) = |
| 608 | pair t x dotk (fun α => k t α x) - C2 := |
| 609 | hlinear (A := Fin 4 → Fin n) (B := Fin n) (Z := TangentSpace (𝓡 n) x) |
| 610 | ((F.metric t).inner x) (W t x) (a t x) dotk |
| 611 | (fun α => k t α x) (fun i j α => k2 i j α x) |
| 612 | change deriv (fun s => q s x) t - |
| 613 | (∑ i, ∑ j, a t x i j * |
| 614 | (d (E i) (d (E j) (q t)) x - d (N t (E i) (E j)) (q t) x)) = |
| 615 | -2 * G2 + 2 * pair t x (fun α => dotk α - diff α) (fun α => k t α x) - |
| 616 | 2 * outputRate + inputRate |
| 617 | rw [htime, hspace, hdiff] |
| 618 | ring |
| 619 | |
| 620 | set_option synthInstance.maxHeartbeats 200000 in |
| 621 | /-- The actual connection time derivative is controlled by the full curvature-gradient energy. -/ |
| 622 | theorem ricciFlow_connection_variation_tangentNorm_le_curvature_derivative_energy |
| 623 | {J : Set ℝ} (F : RicciFlow n M J) {t : ℝ} (ht : t ∈ interior J) |
| 624 | {U : Set M} (hU : IsOpen U) |
| 625 | (X Y : (x : M) → TangentSpace (𝓡 n) x) |
| 626 | (hX : ContMDiffOn (𝓡 n) |
| 627 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% X) U) |
| 628 | (hY : ContMDiffOn (𝓡 n) |
| 629 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% Y) U) |
| 630 | {x : M} (hx : x ∈ U) : |
| 631 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 632 | ⟨(F.metric 0).toRiemannianMetric⟩ |
| 633 | let g := F.metric t |
| 634 | let D := F.connection t |
| 635 | let b := g.orthonormalBasis x |
| 636 | let E := fun i => FiberBundle.extend (EuclideanSpace ℝ (Fin n)) (b i) |
| 637 | let N := fun (P Q : (y : M) → TangentSpace (𝓡 n) y) y => |
| 638 | D.connection Q y (P y) |
| 639 | let R := fun (A B C : (y : M) → TangentSpace (𝓡 n) y) y => |
| 640 | D.curvatureOnFields A B C y |
| 641 | let K := fun (P A B C : (y : M) → TangentSpace (𝓡 n) y) y => |
| 642 | N P (R A B C) y - R (N P A) B C y - |
| 643 | R A (N P B) C y - R A B (N P C) y |
| 644 | let kb := fun (γ : Fin 4 → Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x))) => |
| 645 | K (E (γ 0)) (E (γ 1)) (E (γ 2)) (E (γ 3)) x |
| 646 | g.tangentNorm x (deriv (fun s => (F.connection s).connection Y x (X x)) t) ≤ |
| 647 | 3 * (n : ℝ) * Real.sqrt (∑ γ, g.inner x (kb γ) (kb γ)) * |
| 648 | g.tangentNorm x (X x) * g.tangentNorm x (Y x) := by |
| 649 | classical |
| 650 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 651 | ⟨(F.metric 0).toRiemannianMetric⟩ |
| 652 | let g := F.metric t |
| 653 | let D := F.connection t |
| 654 | let V := EuclideanSpace ℝ (Fin n) |
| 655 | let Btime := deriv (fun s => (F.connection s).connection Y x (X x)) t |
| 656 | let ι := Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)) |
| 657 | let b := g.orthonormalBasis x |
| 658 | let E := fun i : ι => FiberBundle.extend V (b i) |
| 659 | let N := fun (P Q : (y : M) → TangentSpace (𝓡 n) y) y => |
| 660 | D.connection Q y (P y) |
| 661 | let R := fun (A B C : (y : M) → TangentSpace (𝓡 n) y) y => |
| 662 | D.curvatureOnFields A B C y |
| 663 | let K := fun (P A B C : (y : M) → TangentSpace (𝓡 n) y) y => |
| 664 | N P (R A B C) y - R (N P A) B C y - |
| 665 | R A (N P B) C y - R A B (N P C) y |
| 666 | let kb := fun γ : Fin 4 → ι => K (E (γ 0)) (E (γ 1)) (E (γ 2)) (E (γ 3)) x |
| 667 | let q := ∑ γ : Fin 4 → ι, g.inner x (kb γ) (kb γ) |
| 668 | let C := 3 * (n : ℝ) * Real.sqrt q * g.tangentNorm x (X x) * g.tangentNorm x (Y x) |
| 669 | change g.tangentNorm x Btime ≤ C |
| 670 | let e := trivializationAt V (TangentSpace (𝓡 n)) x |
| 671 | let W := U ∩ e.baseSet |
| 672 | have hW : IsOpen W := hU.inter e.open_baseSet |
| 673 | have hxW : x ∈ W := ⟨hx, FiberBundle.mem_baseSet_trivializationAt' x⟩ |
| 674 | let S := fun P : (y : M) → TangentSpace (𝓡 n) y => |
| 675 | ContMDiffOn (𝓡 n) ((𝓡 n).prod 𝓘(ℝ, V)) ∞ (T% P) W |
| 676 | have hXs : S X := hX.mono inter_subset_left |
| 677 | have hYs : S Y := hY.mono inter_subset_left |
| 678 | have hExt (v : TangentSpace (𝓡 n) x) : S (FiberBundle.extend V v) := by |
| 679 | have hc : ContMDiffOn (𝓡 n) 𝓘(ℝ, V) ∞ |
| 680 | (fun _y : M => (e ⟨x, v⟩).2) e.baseSet := contMDiffOn_const |
| 681 | have hec : ContMDiffOn (𝓡 n) 𝓘(ℝ, V) ∞ |
| 682 | (fun y => (e ⟨y, FiberBundle.extend V v y⟩).2) e.baseSet := by |
| 683 | apply hc.congr |
| 684 | intro y hy |
| 685 | change (e ⟨y, e.symm y (e ⟨x, v⟩).2⟩).2 = (e ⟨x, v⟩).2 |
| 686 | simpa only using congrArg Prod.snd (e.apply_mk_symm hy (e ⟨x, v⟩).2) |
| 687 | have hext : ContMDiffOn (𝓡 n) ((𝓡 n).prod 𝓘(ℝ, V)) ∞ |
| 688 | (T% (FiberBundle.extend V v)) e.baseSet := by |
| 689 | intro y hy |
| 690 | rw [e.contMDiffWithinAt_section _ hy] |
| 691 | exact hec y hy |
| 692 | exact hext.mono inter_subset_right |
| 693 | let Z := FiberBundle.extend V Btime |
| 694 | have hZ : S Z := hExt Btime |
| 695 | have hZx : Z x = Btime := FiberBundle.extend_apply_self V Btime |
| 696 | have hE (i : ι) : S (E i) := hExt (b i) |
| 697 | have hEx (i : ι) : E i x = b i := FiberBundle.extend_apply_self V (b i) |
| 698 | have hb (i : ι) : g.tangentNorm x (b i) = 1 := by |
| 699 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 700 | ⟨g.toRiemannianMetric⟩ |
| 701 | change Real.sqrt (inner ℝ (b i) (b i)) = 1 |
| 702 | rw [real_inner_self_eq_norm_sq, b.norm_eq_one] |
| 703 | norm_num |
| 704 | have hself (v : TangentSpace (𝓡 n) x) : |
| 705 | g.inner x v v = g.tangentNorm x v ^ 2 := by |
| 706 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 707 | ⟨g.toRiemannianMetric⟩ |
| 708 | have hv : 0 ≤ g.inner x v v := by |
| 709 | change 0 ≤ inner ℝ v v |
| 710 | exact real_inner_self_nonneg |
| 711 | exact (Real.sq_sqrt hv).symm |
| 712 | have hdim : Fintype.card ι = n := by |
| 713 | simp only [ι, Fintype.card_fin] |
| 714 | rw [VectorBundle.finrank_eq ℝ V (TangentSpace (𝓡 n)) x, |
| 715 | finrank_euclideanSpace_fin] |
| 716 | have hpair (P A B C : (y : M) → TangentSpace (𝓡 n) y) |
| 717 | (hP : S P) (hA : S A) (hB : S B) (hC : S C) (i : ι) : |
| 718 | |g.inner x (K P A B C x) (b i)| ≤ Real.sqrt q * |
| 719 | g.tangentNorm x (P x) * g.tangentNorm x (A x) * |
| 720 | g.tangentNorm x (B x) * g.tangentNorm x (C x) := by |
| 721 | have hh := abs_curvature_derivative_pairing_le_orthonormal_energy |
| 722 | D hW P A B C hP hA hB hC hxW (b i) |
| 723 | change |g.inner x (K P A B C x) (b i)| ≤ Real.sqrt q * |
| 724 | g.tangentNorm x (P x) * g.tangentNorm x (A x) * |
| 725 | g.tangentNorm x (B x) * g.tangentNorm x (C x) * g.tangentNorm x (b i) at hh |
| 726 | simpa only [hb, mul_one] using hh |
| 727 | let c := Real.sqrt q * g.tangentNorm x (X x) * |
| 728 | g.tangentNorm x (Y x) * g.tangentNorm x Btime |
| 729 | have hfirst (i : ι) : |g.inner x (K X (E i) Y Z x) (b i)| ≤ c := by |
| 730 | calc |
| 731 | _ ≤ Real.sqrt q * g.tangentNorm x (X x) * g.tangentNorm x (E i x) * |
| 732 | g.tangentNorm x (Y x) * g.tangentNorm x (Z x) := |
| 733 | hpair X (E i) Y Z hXs (hE i) hYs hZ i |
| 734 | _ = c := by rw [hEx, hb, hZx, mul_one] |
| 735 | have hsecond (i : ι) : |g.inner x (K Y (E i) Z X x) (b i)| ≤ c := by |
| 736 | calc |
| 737 | _ ≤ Real.sqrt q * g.tangentNorm x (Y x) * g.tangentNorm x (E i x) * |
| 738 | g.tangentNorm x (Z x) * g.tangentNorm x (X x) := |
| 739 | hpair Y (E i) Z X hYs (hE i) hZ hXs i |
| 740 | _ = c := by rw [hEx, hb, hZx, mul_one]; dsimp only [c]; ring |
| 741 | have hthird (i : ι) : |g.inner x (K Z (E i) X Y x) (b i)| ≤ c := by |
| 742 | calc |
| 743 | _ ≤ Real.sqrt q * g.tangentNorm x (Z x) * g.tangentNorm x (E i x) * |
| 744 | g.tangentNorm x (X x) * g.tangentNorm x (Y x) := |
| 745 | hpair Z (E i) X Y hZ (hE i) hXs hYs i |
| 746 | _ = c := by rw [hEx, hb, hZx, mul_one]; dsimp only [c]; ring |
| 747 | have hsum (f : ι → ℝ) (hf : ∀ i, |f i| ≤ c) : |
| 748 | |∑ i, f i| ≤ (n : ℝ) * c := by |
| 749 | calc |
| 750 | _ ≤ ∑ i, |f i| := Finset.abs_sum_le_sum_abs _ _ |
| 751 | _ ≤ ∑ _i : ι, c := Finset.sum_le_sum (fun i _ => hf i) |
| 752 | _ = _ := by simp only [Finset.sum_const, Finset.card_univ, hdim, nsmul_eq_mul] |
| 753 | let a1 := ∑ i : ι, g.inner x (K X (E i) Y Z x) (b i) |
| 754 | let a2 := ∑ i : ι, g.inner x (K Y (E i) Z X x) (b i) |
| 755 | let a3 := ∑ i : ι, g.inner x (K Z (E i) X Y x) (b i) |
| 756 | have h1 : |a1| ≤ (n : ℝ) * c := hsum _ hfirst |
| 757 | have h2 : |a2| ≤ (n : ℝ) * c := hsum _ hsecond |
| 758 | have h3 : |a3| ≤ (n : ℝ) * c := hsum _ hthird |
| 759 | have hrate := ricciFlow_connection_variation_pairing_eq_curvature_derivative_trace |
| 760 | F ht hW X Y Z hXs hYs hZ hxW |
| 761 | change g.inner x Btime (Z x) = -a1 - a2 + a3 at hrate |
| 762 | rw [hZx] at hrate |
| 763 | have htriangle (p q r : ℝ) : -p - q + r ≤ |p| + |q| + |r| := by |
| 764 | linarith only [neg_le_abs p, neg_le_abs q, le_abs_self r] |
| 765 | have hsq : g.tangentNorm x Btime ^ 2 ≤ C * g.tangentNorm x Btime := by |
| 766 | calc |
| 767 | _ = g.inner x Btime Btime := (hself Btime).symm |
| 768 | _ = -a1 - a2 + a3 := hrate |
| 769 | _ ≤ |a1| + |a2| + |a3| := htriangle a1 a2 a3 |
| 770 | _ ≤ (n : ℝ) * c + (n : ℝ) * c + (n : ℝ) * c := |
| 771 | add_le_add (add_le_add h1 h2) h3 |
| 772 | _ = _ := by dsimp only [c, C]; ring |
| 773 | have hC : 0 ≤ C := by dsimp only [C, RiemannianMetric.tangentNorm]; positivity |
| 774 | by_cases hzero : g.tangentNorm x Btime = 0 |
| 775 | · rw [hzero] |
| 776 | exact hC |
| 777 | · have hpos : 0 < g.tangentNorm x Btime := |
| 778 | lt_of_le_of_ne (Real.sqrt_nonneg _) (Ne.symm hzero) |
| 779 | exact (mul_le_mul_iff_right₀ hpos).mp |
| 780 | (by simpa only [pow_two, mul_comm C] using hsq) |
| 781 | |
| 782 | set_option synthInstance.maxHeartbeats 200000 in |
| 783 | /-- The actual connection time derivative has a pointwise bilinear realization. -/ |
| 784 | theorem exists_ricciFlow_connection_variation_bilinearMap |
| 785 | {J : Set ℝ} (F : RicciFlow n M J) {t : ℝ} (ht : t ∈ interior J) (x : M) : |
| 786 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 787 | ⟨(F.metric 0).toRiemannianMetric⟩ |
| 788 | ∃ B : TangentSpace (𝓡 n) x →ₗ[ℝ] |
| 789 | TangentSpace (𝓡 n) x →ₗ[ℝ] TangentSpace (𝓡 n) x, |
| 790 | ∀ {U : Set M}, IsOpen U → |
| 791 | ∀ (X Y : (y : M) → TangentSpace (𝓡 n) y), |
| 792 | ContMDiffOn (𝓡 n) |
| 793 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% X) U → |
| 794 | ContMDiffOn (𝓡 n) |
| 795 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) ∞ (T% Y) U → |
| 796 | x ∈ U → B (X x) (Y x) = |
| 797 | deriv (fun s => (F.connection s).connection Y x (X x)) t := by |
| 798 | classical |
| 799 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 800 | ⟨(F.metric 0).toRiemannianMetric⟩ |
| 801 | let Rate := fun (X Y : (y : M) → TangentSpace (𝓡 n) y) => |
| 802 | deriv (fun s => (F.connection s).connection Y x (X x)) t |
| 803 | let g := F.metric t |
| 804 | let D := F.connection t |
| 805 | let V := EuclideanSpace ℝ (Fin n) |
| 806 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 807 | ⟨g.toRiemannianMetric⟩ |
| 808 | let ι := Fin (Module.finrank ℝ (TangentSpace (𝓡 n) x)) |
| 809 | let b := g.orthonormalBasis x |
| 810 | obtain ⟨T, hT⟩ := exists_curvatureOnFields_derivative_quadrilinearMap D x |
| 811 | let sigma := fun (u v w : TangentSpace (𝓡 n) x) => |
| 812 | -(∑ i : ι, g.inner x (T u (b i) v w) (b i)) - |
| 813 | (∑ i : ι, g.inner x (T v (b i) w u) (b i)) + |
| 814 | ∑ i : ι, g.inner x (T w (b i) u v) (b i) |
| 815 | let B0 := fun (u v : TangentSpace (𝓡 n) x) => |
| 816 | ∑ o : ι, sigma u v (b o) • b o |
| 817 | have hsadd1 (u u' v w : TangentSpace (𝓡 n) x) : |
| 818 | sigma (u + u') v w = sigma u v w + sigma u' v w := by |
| 819 | simp only [sigma, map_add, LinearMap.add_apply, add_apply, |
| 820 | Finset.sum_add_distrib] |
| 821 | ring |
| 822 | have hssmul1 (c : ℝ) (u v w : TangentSpace (𝓡 n) x) : |
| 823 | sigma (c • u) v w = c * sigma u v w := by |
| 824 | simp only [sigma, map_smul, LinearMap.smul_apply, smul_apply, |
| 825 | smul_eq_mul, ← Finset.mul_sum] |
| 826 | ring |
| 827 | have hsadd2 (u v v' w : TangentSpace (𝓡 n) x) : |
| 828 | sigma u (v + v') w = sigma u v w + sigma u v' w := by |
| 829 | simp only [sigma, map_add, LinearMap.add_apply, add_apply, |
| 830 | Finset.sum_add_distrib] |
| 831 | ring |
| 832 | have hssmul2 (c : ℝ) (u v w : TangentSpace (𝓡 n) x) : |
| 833 | sigma u (c • v) w = c * sigma u v w := by |
| 834 | simp only [sigma, map_smul, LinearMap.smul_apply, smul_apply, |
| 835 | smul_eq_mul, ← Finset.mul_sum] |
| 836 | ring |
| 837 | let B := LinearMap.mk₂ ℝ B0 |
| 838 | (by |
| 839 | intro u u' v |
| 840 | simp only [B0, hsadd1, add_smul, Finset.sum_add_distrib]) |
| 841 | (by |
| 842 | intro c u v |
| 843 | simp only [B0, hssmul1, mul_smul, Finset.smul_sum]) |
| 844 | (by |
| 845 | intro u v v' |
| 846 | simp only [B0, hsadd2, add_smul, Finset.sum_add_distrib]) |
| 847 | (by |
| 848 | intro c u v |
| 849 | simp only [B0, hssmul2, mul_smul, Finset.smul_sum]) |
| 850 | refine ⟨B, ?_⟩ |
| 851 | intro U hU X Y hX hY hx |
| 852 | change B0 (X x) (Y x) = Rate X Y |
| 853 | let e := trivializationAt V (TangentSpace (𝓡 n)) x |
| 854 | let E := fun i : ι => FiberBundle.extend V (b i) |
| 855 | let W := U ∩ e.baseSet |
| 856 | have hW : IsOpen W := hU.inter e.open_baseSet |
| 857 | have hxW : x ∈ W := ⟨hx, FiberBundle.mem_baseSet_trivializationAt' x⟩ |
| 858 | let S := fun P : (y : M) → TangentSpace (𝓡 n) y => |
| 859 | ContMDiffOn (𝓡 n) ((𝓡 n).prod 𝓘(ℝ, V)) ∞ (T% P) W |
| 860 | have hXs : S X := hX.mono inter_subset_left |
| 861 | have hYs : S Y := hY.mono inter_subset_left |
| 862 | have hE (i : ι) : S (E i) := by |
| 863 | have hc : ContMDiffOn (𝓡 n) 𝓘(ℝ, V) ∞ |
| 864 | (fun _y : M => (e ⟨x, b i⟩).2) e.baseSet := contMDiffOn_const |
| 865 | have hec : ContMDiffOn (𝓡 n) 𝓘(ℝ, V) ∞ |
| 866 | (fun y => (e ⟨y, E i y⟩).2) e.baseSet := by |
| 867 | apply hc.congr |
| 868 | intro y hy |
| 869 | change (e ⟨y, e.symm y (e ⟨x, b i⟩).2⟩).2 = (e ⟨x, b i⟩).2 |
| 870 | simpa only using congrArg Prod.snd (e.apply_mk_symm hy (e ⟨x, b i⟩).2) |
| 871 | have hext : ContMDiffOn (𝓡 n) ((𝓡 n).prod 𝓘(ℝ, V)) ∞ |
| 872 | (T% (E i)) e.baseSet := by |
| 873 | intro y hy |
| 874 | rw [e.contMDiffWithinAt_section _ hy] |
| 875 | exact hec y hy |
| 876 | exact hext.mono inter_subset_right |
| 877 | have hEx (i : ι) : E i x = b i := FiberBundle.extend_apply_self V (b i) |
| 878 | let N := fun (P Q : (y : M) → TangentSpace (𝓡 n) y) y => |
| 879 | D.connection Q y (P y) |
| 880 | let R := fun (A B C : (y : M) → TangentSpace (𝓡 n) y) y => |
| 881 | D.curvatureOnFields A B C y |
| 882 | let K := fun (P A B C : (y : M) → TangentSpace (𝓡 n) y) y => |
| 883 | N P (R A B C) y - R (N P A) B C y - |
| 884 | R A (N P B) C y - R A B (N P C) y |
| 885 | have hK (P A B C : (y : M) → TangentSpace (𝓡 n) y) |
| 886 | (hP : S P) (hA : S A) (hB : S B) (hC : S C) : |
| 887 | K P A B C x = T (P x) (A x) (B x) (C x) := |
| 888 | (hT hW P A B C hP hA hB hC hxW).symm |
| 889 | have hpair (o : ι) : |
| 890 | g.inner x (Rate X Y) (b o) = sigma (X x) (Y x) (b o) := by |
| 891 | have hh := ricciFlow_connection_variation_pairing_eq_curvature_derivative_trace |
| 892 | F ht hW X Y (E o) hXs hYs (hE o) hxW |
| 893 | change g.inner x (Rate X Y) (E o x) = |
| 894 | -(∑ i : ι, g.inner x (K X (E i) Y (E o) x) (b i)) - |
| 895 | (∑ i : ι, g.inner x (K Y (E i) (E o) X x) (b i)) + |
| 896 | ∑ i : ι, g.inner x (K (E o) (E i) X Y x) (b i) at hh |
| 897 | simp_rw [hK X (E _) Y (E o) hXs (hE _) hYs (hE o), |
| 898 | hK Y (E _) (E o) X hYs (hE _) (hE o) hXs, |
| 899 | hK (E o) (E _) X Y (hE o) (hE _) hXs hYs, hEx] at hh |
| 900 | exact hh |
| 901 | have hrepr (o : ι) : |
| 902 | b.repr (Rate X Y) o = sigma (X x) (Y x) (b o) := by |
| 903 | rw [OrthonormalBasis.repr_apply_apply] |
| 904 | change g.inner x (b o) (Rate X Y) = sigma (X x) (Y x) (b o) |
| 905 | rw [g.symm, hpair] |
| 906 | calc |
| 907 | B0 (X x) (Y x) = ∑ o : ι, b.repr (Rate X Y) o • b o := by |
| 908 | simp only [B0, hrepr] |
| 909 | _ = Rate X Y := b.sum_repr (Rate X Y) |
| 910 | |
| 911 | end PoincareMT.RicciFlow.Local |