import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Jacobi.Index.WeightedJacobiIdentities import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Variation.Second.SecondVariationSurface import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Variation.Second.SecondVariationGeometry /-! Adapted from Mapher `PoincareMT/Proofs/M08/SecondVariationCoefficients.lean` at `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false noncomputable section open Set Filter Topology open scoped Manifold ContDiff Bundle universe u namespace PoincareMT.LGeometry variable {n : โ„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] local instance secondVariationCoefficientsDualGroup : NormedAddCommGroup (EuclideanSpace โ„ (Fin n) โ†’L[โ„] โ„) := ContinuousLinearMap.toNormedAddCommGroup local instance secondVariationCoefficientsDualSpace : NormedSpace โ„ (EuclideanSpace โ„ (Fin n) โ†’L[โ„] โ„) := ContinuousLinearMap.toNormedSpace local instance secondVariationCoefficientsBilinGroup : NormedAddCommGroup (EuclideanSpace โ„ (Fin n) โ†’L[โ„] EuclideanSpace โ„ (Fin n) โ†’L[โ„] โ„) := ContinuousLinearMap.toNormedAddCommGroup local instance secondVariationCoefficientsBilinSpace : NormedSpace โ„ (EuclideanSpace โ„ (Fin n) โ†’L[โ„] EuclideanSpace โ„ (Fin n) โ†’L[โ„] โ„) := ContinuousLinearMap.toNormedSpace local instance secondVariationCoefficientsEndGroup : NormedAddCommGroup (EuclideanSpace โ„ (Fin n) โ†’L[โ„] EuclideanSpace โ„ (Fin n)) := ContinuousLinearMap.toNormedAddCommGroup local instance secondVariationCoefficientsEndSpace : NormedSpace โ„ (EuclideanSpace โ„ (Fin n) โ†’L[โ„] EuclideanSpace โ„ (Fin n)) := ContinuousLinearMap.toNormedSpace local instance secondVariationCoefficientsConnectionGroup : NormedAddCommGroup (EuclideanSpace โ„ (Fin n) โ†’L[โ„] EuclideanSpace โ„ (Fin n) โ†’L[โ„] EuclideanSpace โ„ (Fin n)) := ContinuousLinearMap.toNormedAddCommGroup local instance secondVariationCoefficientsConnectionSpace : NormedSpace โ„ (EuclideanSpace โ„ (Fin n) โ†’L[โ„] EuclideanSpace โ„ (Fin n) โ†’L[โ„] EuclideanSpace โ„ (Fin n)) := ContinuousLinearMap.toNormedSpace theorem closedChartConnection_spatial_compatibility {J C : Set โ„} (F : RicciFlow n M J) (T : โ„) (htime : โˆ€ s โˆˆ C, T - s ^ 2 โˆˆ J) {x y : M} (hy : y โˆˆ (chartAt (EuclideanSpace โ„ (Fin n)) x).source) {s : โ„} (hs : s โˆˆ C) (v w z : EuclideanSpace โ„ (Fin n)) : fderiv โ„ (fun q โ†ฆ chartActionMetric F T x (s, q)) (extChartAt (๐“ก n) x y) v w z = chartActionMetric F T x (s, extChartAt (๐“ก n) x y) (closedChartConnection F T x C (s, extChartAt (๐“ก n) x y) v w) z + chartActionMetric F T x (s, extChartAt (๐“ก n) x y) w (closedChartConnection F T x C (s, extChartAt (๐“ก n) x y) v z) := by have hq := (extChartAt (๐“ก n) x).map_source (show y โˆˆ (extChartAt (๐“ก n) x).source by simpa only [extChartAt_source] using hy) rw [(hasFDerivAt_spatialWithin (isOpen_extChartAt_target (I := ๐“ก n) x) _ (chartActionMetric_closed_contDiffOn F T x htime) hs hq).fderiv] exact chartActionMetric_spatial_compatibility F T htime hy hs v w z theorem coordinateCurvature_pair {J C : Set โ„} (F : RicciFlow n M J) (hM04 : RicciFlowCurvatureTheory.{u}) (T : โ„) (hC : UniqueDiffOn โ„ C) (htime : โˆ€ s โˆˆ C, T - s ^ 2 โˆˆ J) {x y : M} (hy : y โˆˆ (chartAt (EuclideanSpace โ„ (Fin n)) x).source) {s : โ„} (hs : s โˆˆ C) (hsN : C โˆˆ ๐“ s) (v a w z : EuclideanSpace โ„ (Fin n)) : chartActionMetric F T x (s, extChartAt (๐“ก n) x y) (coordinateCurvature (closedChartConnection F T x C) (s, extChartAt (๐“ก n) x y) v a w) z = (F.connection (T - s ^ 2)).curvatureTensor y (chartFrame x v y) (chartFrame x a y) (chartFrame x z y) (chartFrame x w y) := by let U := (extChartAt (๐“ก n) x).target have hq : extChartAt (๐“ก n) x y โˆˆ U := (extChartAt (๐“ก n) x).map_source (by simpa only [extChartAt_source] using hy) have hN : C ร—หข U โˆˆ ๐“ (s, extChartAt (๐“ก n) x y) := prod_mem_nhds hsN ((isOpen_extChartAt_target (I := ๐“ก n) x).mem_nhds hq) unfold coordinateCurvature rw [curvatureTensor_chart F hM04 T hC htime hy hs, โ† spatialWithinFDeriv_apply_of_mem_nhds _ hN v, โ† spatialWithinFDeriv_apply_of_mem_nhds _ hN a, closedChartConnection_spatial_apply F T x hC htime hs hq, closedChartConnection_spatial_apply F T x hC htime hs hq] rfl theorem chartActionPotential_hessian {J C : Set โ„} (F : RicciFlow n M J) (hM04 : RicciFlowCurvatureTheory.{u}) (T : โ„) (hC : UniqueDiffOn โ„ C) (htime : โˆ€ s โˆˆ C, T - s ^ 2 โˆˆ J) {x y : M} (hy : y โˆˆ (chartAt (EuclideanSpace โ„ (Fin n)) x).source) {s : โ„} (hs : s โˆˆ C) (v w : EuclideanSpace โ„ (Fin n)) : fderiv โ„ (fderiv โ„ (fun q โ†ฆ chartActionPotential F T x (s, q))) (extChartAt (๐“ก n) x y) v w - fderiv โ„ (fun q โ†ฆ chartActionPotential F T x (s, q)) (extChartAt (๐“ก n) x y) (closedChartConnection F T x C (s, extChartAt (๐“ก n) x y) v w) = 2 * s ^ 2 * (F.connection (T - s ^ 2)).hessian (F.connection (T - s ^ 2)).scalarCurvature y (chartFrame x v y) (chartFrame x w y) := by let U := (extChartAt (๐“ก n) x).target let P := chartActionPotential F T x let DP := spatialWithinFDeriv C U P have hU : IsOpen U := isOpen_extChartAt_target (I := ๐“ก n) x have hq : extChartAt (๐“ก n) x y โˆˆ U := (extChartAt (๐“ก n) x).map_source (by simpa only [extChartAt_source] using hy) have hP : ContDiffOn โ„ โˆž P (C ร—หข U) := chartActionPotential_closed_contDiffOn F hM04 T x htime have hfirst (q : EuclideanSpace โ„ (Fin n)) (hq : q โˆˆ U) : fderiv โ„ (fun r โ†ฆ P (s, r)) q = DP (s, q) := (hasFDerivAt_spatialWithin hU P hP hs hq).fderiv have hnear : fderiv โ„ (fun r โ†ฆ P (s, r)) =แถ [๐“ (extChartAt (๐“ก n) x y)] (fun r โ†ฆ DP (s, r)) := by filter_upwards [hU.mem_nhds hq] with r hr exact hfirst r hr have hsecond := (hasFDerivAt_spatialWithin hU DP (spatialWithinFDeriv_contDiffOn hC hU P hP) hs hq).fderiv change fderiv โ„ (fderiv โ„ (fun q โ†ฆ P (s, q))) (extChartAt (๐“ก n) x y) v w - fderiv โ„ (fun q โ†ฆ P (s, q)) (extChartAt (๐“ก n) x y) (closedChartConnection F T x C (s, extChartAt (๐“ก n) x y) v w) = _ rw [hnear.fderiv_eq, hsecond, hfirst _ hq] exact weighted_chart_hessian F hM04 T hC htime hy hs v w theorem closedChartConnection_time_pair_interior {J C : Set โ„} (F : RicciFlow n M J) (hM04 : RicciFlowCurvatureTheory.{u}) (T : โ„) (hC : UniqueDiffOn โ„ C) (htime : โˆ€ s โˆˆ C, T - s ^ 2 โˆˆ J) {x y : M} (hy : y โˆˆ (chartAt (EuclideanSpace โ„ (Fin n)) x).source) {s : โ„} (hs : s โˆˆ C) (hsN : C โˆˆ ๐“ s) (v w z : EuclideanSpace โ„ (Fin n)) : chartActionMetric F T x (s, extChartAt (๐“ก n) x y) (fderiv โ„ (closedChartConnection F T x C) (s, extChartAt (๐“ก n) x y) (1, 0) v w) z = 2 * s * backwardConnectionVariationPairing (F.connection (T - s ^ 2)) y (chartFrame x v y) (chartFrame x w y) (chartFrame x z y) := by have hq := (extChartAt (๐“ก n) x).map_source (show y โˆˆ (extChartAt (๐“ก n) x).source by simpa only [extChartAt_source] using hy) have hN := prod_mem_nhds hsN ((isOpen_extChartAt_target (I := ๐“ก n) x).mem_nhds hq) rw [โ† timeWithinFDeriv_of_mem_nhds _ hN, closedChartConnection_time_apply F T x hC htime hs hq] exact closedChartChristoffel_time_eq_connectionVariation F hM04 T hC htime hy hs (subset_closure (mem_interior_iff_mem_nhds.mpr hN)) v w z theorem chartActionMetric_time_pair_interior {J C : Set โ„} (F : RicciFlow n M J) (hM04 : RicciFlowCurvatureTheory.{u}) (T : โ„) (hC : UniqueDiffOn โ„ C) (htime : โˆ€ s โˆˆ C, T - s ^ 2 โˆˆ J) {x y : M} (hy : y โˆˆ (chartAt (EuclideanSpace โ„ (Fin n)) x).source) {s : โ„} (hs : s โˆˆ C) (hsN : C โˆˆ ๐“ s) (v w : EuclideanSpace โ„ (Fin n)) : fderiv โ„ (chartActionMetric F T x) (s, extChartAt (๐“ก n) x y) (1, 0) v w = 4 * s * (F.connection (T - s ^ 2)).ricci y (chartFrame x v y) (chartFrame x w y) := by have hq := (extChartAt (๐“ก n) x).map_source (show y โˆˆ (extChartAt (๐“ก n) x).source by simpa only [extChartAt_source] using hy) have hN := prod_mem_nhds hsN ((isOpen_extChartAt_target (I := ๐“ก n) x).mem_nhds hq) rw [โ† timeWithinFDeriv_of_mem_nhds _ hN, chartActionMetric_timeWithin F hM04 T x hC htime hs hq] simp only [smul_apply, smul_eq_mul, chartRicciForm_at hM04 _ hy] end PoincareMT.LGeometry