import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Coordinates.ChartConnectionLocal import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Tensor.SquareChartCurvature import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Tensor.CoordinateBianchi /-! # Curvature throughout one fixed coordinate chart The actual iterated connection and M04's regular-extension identity give the curvature germ needed for covariant differentiation. -/ set_option autoImplicit false set_option maxSynthPendingDepth 3 open scoped Manifold ContDiff Bundle Topology open Filter universe u namespace PoincareMT.ReducedLength variable {n : โ„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] local notation "E" => EuclideanSpace โ„ (Fin n) set_option maxHeartbeats 800000 in set_option backward.isDefEq.respectTransparency false in theorem squareChartConnection_iterated_on_target {J : Set โ„} (F : RicciFlow n M J) (T b : โ„) (hb : 0 < b) (hwindow : Set.Icc (T - b) T โІ J) (p : M) (s : โ„) (hs : s โˆˆ Set.Ioo (-Real.sqrt b) (Real.sqrt b)) (y : E) (hy : y โˆˆ (chartAt E p).target) (u v w : E) : let q := (chartAt E p).symm y let D := F.connection (T - s ^ 2) let C : E โ†’ E โ†’L[โ„] E โ†’L[โ„] E := fun z โ†ฆ coordinateConnectionBilinear (squareChartMetric F T p) (s, z) D.connection (fun x โ†ฆ D.connection (chartVectorField p w) x (chartVectorField p v x)) q (chartVectorField p u q) = chartVectorField p (C y u (C y v w) + fderiv โ„ C y u v w) q := by dsimp only let q := (chartAt E p).symm y let D := F.connection (T - s ^ 2) let C : E โ†’ E โ†’L[โ„] E โ†’L[โ„] E := fun z โ†ฆ coordinateConnectionBilinear (squareChartMetric F T p) (s, z) let ฯ† : E โ†’ E := fun z โ†ฆ C z v w let c : M โ†’ E := fun x โ†ฆ ฯ† ((chartAt E p) x) have hq : q โˆˆ (chartAt E p).source := (chartAt E p).map_target hy have hC : ContDiffAt โ„ โˆž C y := by have h := coordinateConnectionBilinear_contDiffOn (squareChartMetric F T p) (Set.Ioo (-Real.sqrt b) (Real.sqrt b) ร—หข (chartAt E p).target) (isOpen_Ioo.prod (chartAt E p).open_target) (squareChartMetric_smooth F T b hb hwindow p) (fun z hz a ha โ†ฆ squareChartMetric_pos F T p z hz.2 a ha) exact (h.contDiffAt ((isOpen_Ioo.prod (chartAt E p).open_target).mem_nhds โŸจhs, hyโŸฉ)).comp y (contDiffAt_const.prodMk contDiffAt_id) have hฯ† : DifferentiableAt โ„ ฯ† y := ((hC.clm_apply contDiffAt_const).clm_apply contDiffAt_const).differentiableAt (by simp) have hc : MDifferentiableAt (๐“ก n) (๐“ก n) c q := by have hฯ†' : MDifferentiableAt (๐“ก n) (๐“ก n) ฯ† ((chartAt E p) q) := by simpa only [q, (chartAt E p).right_inv hy] using hฯ†.mdifferentiableAt exact hฯ†'.comp q ((mdifferentiable_chart (I := ๐“ก n) p).mdifferentiableAt hq) have heq : (fun x โ†ฆ D.connection (chartVectorField p w) x (chartVectorField p v x)) =แถ [๐“ q] (fun x โ†ฆ chartVectorField p (c x) x) := by filter_upwards [(chartAt E p).open_source.mem_nhds hq] with x hx have h := squareChartConnection_eq F T b hb hwindow p s hs ((chartAt E p) x) ((chartAt E p).map_source hx) v w rw [(chartAt E p).left_inv hx] at h exact h.symm have hA (a : E) : D.connection (chartVectorField p a) q (chartVectorField p u q) = chartVectorField p (C y u a) q := (squareChartConnection_eq F T b hb hwindow p s hs y hy u a).symm have hconn := connection_of_eventuallyEq_chartVectorField_on_source D p q hq c hc _ heq (chartVectorField p u q) (C y u) hA have hcฯ† : (fun z โ†ฆ c ((chartAt E p).symm z)) =แถ [๐“ y] ฯ† := by filter_upwards [(chartAt E p).open_target.mem_nhds hy] with z hz exact congrArg ฯ† ((chartAt E p).right_inv hz) have hder : mvfderiv (๐“ก n) c q (chartVectorField p u q) = fderiv โ„ C y u v w := by rw [mvfderiv_vector_chartVectorField p c y u hy hc, hcฯ†.fderiv_eq] have h := ((hC.differentiableAt (by simp)).hasFDerivAt.clm_apply (hasFDerivAt_const v y)).clm_apply (hasFDerivAt_const w y) simpa using congrArg (fun L : E โ†’L[โ„] E โ†ฆ L u) h.fderiv have hcy : c q = C y v w := congrArg ฯ† ((chartAt E p).right_inv hy) rw [hder, hcy] at hconn exact hconn set_option maxHeartbeats 800000 in set_option backward.isDefEq.respectTransparency false in theorem squareChartCurvature_on_target {J : Set โ„} (F : RicciFlow n M J) (hM04 : RicciFlowCurvatureTheory.{u}) (T b : โ„) (hb : 0 < b) (hwindow : Set.Icc (T - b) T โІ J) (p : M) (s : โ„) (hs : s โˆˆ Set.Ioo (-Real.sqrt b) (Real.sqrt b)) (y : E) (hy : y โˆˆ (chartAt E p).target) (u v w : E) : let q := (chartAt E p).symm y let C : E โ†’ E โ†’L[โ„] E โ†’L[โ„] E := fun z โ†ฆ coordinateConnectionBilinear (squareChartMetric F T p) (s, z) (F.connection (T - s ^ 2)).curvature q (chartVectorField p u q) (chartVectorField p v q) (chartVectorField p w q) = chartVectorField p (coefficientCurvature C y u v w) q := by dsimp only let q := (chartAt E p).symm y let D := F.connection (T - s ^ 2) have hq : q โˆˆ (chartAt E p).source := (chartAt E p).map_target hy have h := (hM04.tensor_calculus n M (F.metric (T - s ^ 2)) D).2.2.2.2 (chartAt E p).source (chartAt E p).open_source (chartVectorField p u) (chartVectorField p v) (chartVectorField p w) (chartVectorField_smooth p u) (chartVectorField_smooth p v) (chartVectorField_smooth p w) q hq rw [โ† h, LeviCivitaData.curvatureOnFields, chartVectorField_bracket p u v q hq, map_zero, sub_zero] rw [squareChartConnection_iterated_on_target F T b hb hwindow p s hs y hy u v w, squareChartConnection_iterated_on_target F T b hb hwindow p s hs y hy v u w] let L : E โ†’L[โ„] TangentSpace (๐“ก n) q := (mfderiv (๐“ก n) (๐“ก n) (chartAt E p) q).inverse change L _ - L _ = L _ rw [โ† map_sub] congr 1 dsimp only [coefficientCurvature] abel end PoincareMT.ReducedLength