import PoincareLib.Geometry.CurveShortening.Comparison.Compatibility.SourceNames import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Annulus.SliceDifferential import PoincareLib.Geometry.CurveShortening.Ramp.LocalFlow.Coordinate.GaugeEquation import PoincareLib.Geometry.RicciFlow.Area.MinimalSphere.EnergyDensityCoordinates /-! # Actual slice acceleration in a local target chart The selected Levi-Civita pullback acceleration of a straight source slice is the chart covariant derivative of the actual map differential. Only a local target chart is used. Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. 447-449. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter open scoped Manifold ContDiff Topology universe u namespace PoincareMT open Proofs.M09 CoordinateExponential ConnectionVariation variable {n : โ„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] {g : RiemannianMetric n M} /-- On a constant-velocity source slice, the actual acceleration is the chart representation of the covariant Hessian in that direction. Source: Morgan--Tian (2007), Lemma 19.15 and Corollary 19.16, pp. 447-449; project derivation `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ theorem m64Annulus_slice_acceleration_in_chart (D : LeviCivitaData g) (b : M) {f : LoopPlane โ†’ M} {O : Set LoopPlane} (hO : IsOpen O) (hf : ContMDiffOn (๐“ก 2) (๐“ก n) โˆž f O) (hchart : MapsTo f O (extChartAt (๐“ก n) b).source) {ell : โ„ โ†’ LoopPlane} {J : Set โ„} (hJ : IsOpen J) (hell : ContDiffOn โ„ โˆž ell J) (hmap : MapsTo ell J O) (d : LoopPlane) (hd : โˆ€ r โˆˆ J, HasDerivAt ell d r) {x : โ„} (hx : x โˆˆ J) : let u := (extChartAt (๐“ก n) b) โˆ˜ f let B := g.pullbackCoefficients (extChartAt (๐“ก n) b).symm rampHorizontalCovariantDerivative D (f โˆ˜ ell) (fun r => curveVelocity (f โˆ˜ ell) r) x = chartVectorField b (covDerivAlong (christoffelBilinear B) u (fun q => fderiv โ„ u q d) d (ell x)) (f (ell x)) := by let c := extChartAt (๐“ก n) b let u := c โˆ˜ f let B := g.pullbackCoefficients c.symm have he : extChartAt (๐“ก n) b = (chartAt (EuclideanSpace โ„ (Fin n)) b).toPartialEquiv := by ext y <;> simp have hu : ContDiffOn โ„ โˆž u O := by intro p hp have hc : ContMDiffAt (๐“ก n) (๐“ก n) โˆž c (f p) := contMDiffAt_extChartAt' (by simpa only [extChartAt_source] using hchart hp) exact (contMDiffAt_iff_contDiffAt.mp (hc.comp p (hf.contMDiffAt (hO.mem_nhds hp)))).contDiffWithinAt have hgamma : ContMDiffOn ๐“˜(โ„, โ„) (๐“ก n) 2 (f โˆ˜ ell) J := (hf.comp hell.contMDiffOn hmap).of_le (WithTop.coe_le_coe.mpr le_top) have hgammaChart : MapsTo (f โˆ˜ ell) J (chartAt (EuclideanSpace โ„ (Fin n)) b).source := by simpa only [he] using hchart.comp hmap have hacc := M63.pullback_velocity_eq_chart_acceleration D b hJ hgamma hgammaChart hx let z := fun r => u (ell r) have hz (r : โ„) (hr : r โˆˆ J) : HasDerivAt z (fderiv โ„ u (ell r) d) r := ((hu.contDiffAt (hO.mem_nhds (hmap hr))).differentiableAt (by simp)).hasFDerivAt |>.comp_hasDerivAt r (hd r hr) have hz' : (deriv z) =แถ [๐“ x] fun r => fderiv โ„ u (ell r) d := by filter_upwards [hJ.mem_nhds hx] with r hr exact (hz r hr).deriv have hdu : ContDiffAt โ„ โˆž (fun p => fderiv โ„ u p d) (ell x) := ((hu.contDiffAt (hO.mem_nhds (hmap hx))).fderiv_right (m := โˆž) (by simp)).clm_apply contDiffAt_const have hsecond : deriv (deriv z) x = fderiv โ„ (fun p => fderiv โ„ u p d) (ell x) d := hz'.deriv_eq.trans (((hdu.differentiableAt (by simp)).hasFDerivAt.comp_hasDerivAt x (hd x hx)).deriv) have hacc' : rampHorizontalCovariantDerivative D (f โˆ˜ ell) (fun r => curveVelocity (f โˆ˜ ell) r) x = chartVectorField b (deriv (deriv z) x + coordinateChristoffel B (u (ell x)) (deriv z x) (deriv z x)) (f (ell x)) := by simpa only [c, u, B, z, he, Function.comp_def] using! hacc rw [hsecond, (hz x hx).deriv] at hacc' exact hacc' end PoincareMT