import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Exponential.Action.SquareAction import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Minimum.Compactness.ScalarBound import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Exponential.InitialTime.InitialActionContinuity import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Metric.Trace.MetricTrace import Mathlib.Analysis.Calculus.LHopital import Mathlib.Analysis.Asymptotics.Lemmas /-! # The initial limit of the actual normalized action Morgan-Tian Proposition 6.78. The action vanishes initially; its square-time derivative retains a uniformly controlled curvature term and the actual kinetic energy. L'Hopital's rule gives the terminal squared norm, including the zero source vector without a multiplicative action estimate. -/ set_option autoImplicit false open Set Filter open scoped Manifold ContDiff Bundle Topology universe u namespace PoincareMT.ReducedVolume variable {n : โ„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] [T3Space M] {J : Set โ„} {F : RicciFlow n M J} {T ฯ„max : โ„} {p : M} set_option backward.isDefEq.respectTransparency false in /-- The actual action divided by twice square time tends to the terminal squared norm. -/ theorem squareAction_quotient_tendsto (G : LExponentialGeometry F T ฯ„max p) (hmax : 0 < ฯ„max) (hT : T โˆˆ J) (hwindow : Icc (T - ฯ„max) T โІ J) (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - ฯ„max) T)) (Z : TangentSpace (๐“ก n) p) : Tendsto (fun s : โ„ โ†ฆ G.toLExponentialFamily.action Z (s ^ 2) / (2 * s)) (๐“[>] (0 : โ„)) (๐“ ((F.metric T).inner p Z Z)) := by let R := fun s : โ„ โ†ฆ (F.connection (T - s ^ 2)).scalarCurvature (G.gamma Z (s ^ 2)) let H' := fun s : โ„ โ†ฆ 2 * s ^ 2 * R s + squareKineticEnergy G Z s / 2 have hsq : Tendsto (fun s : โ„ โ†ฆ s ^ 2) (๐“[>] (0 : โ„)) (๐“ 0) := by simpa using ((tendsto_id : Tendsto (id : โ„ โ†’ โ„) (๐“ 0) (๐“ 0)).mono_left nhdsWithin_le_nhds).pow 2 have hsqpos : Tendsto (fun s : โ„ โ†ฆ s ^ 2) (๐“[>] (0 : โ„)) (๐“[>] (0 : โ„)) := by apply tendsto_nhdsWithin_iff.mpr โŸจhsq, ?_โŸฉ filter_upwards [self_mem_nhdsWithin] with s hs exact sq_pos_of_pos (show (0 : โ„) < s from hs) have hsmall : โˆ€แถ  s in ๐“[>] (0 : โ„), s โˆˆ Ioo 0 (Real.sqrt ฯ„max) := Ioo_mem_nhdsGT (Real.sqrt_pos.2 hmax) obtain โŸจC, _, hCโŸฉ := exists_uniform_scalarCurvature_bound F hcurvature have hbound : IsBoundedUnder (ยท โ‰ค ยท) (๐“[>] (0 : โ„)) (norm โˆ˜ R) := by apply isBoundedUnder_of_eventually_le (a := C) filter_upwards [hsmall] with s hs have hsmax : s ^ 2 < ฯ„max := by nlinarith [Real.sq_sqrt hmax.le, hs.1, hs.2] have ht : T - s ^ 2 โˆˆ Icc (T - ฯ„max) T := by constructor <;> nlinarith [sq_nonneg s] simpa only [Function.comp_def, Real.norm_eq_abs, R] using hC (T - s ^ 2) ht _ have hR : Tendsto (fun s : โ„ โ†ฆ s ^ 2 * R s) (๐“[>] (0 : โ„)) (๐“ 0) := by simpa only [Pi.smul_apply, smul_eq_mul, Pi.mul_apply] using! NormedField.tendsto_zero_smul_of_tendsto_zero_of_bounded hsq hbound have hK := squareKineticEnergy_tendsto_zero G hmax hT hwindow Z have hratio : Tendsto (fun s : โ„ โ†ฆ H' s / 2) (๐“[>] (0 : โ„)) (๐“ ((F.metric T).inner p Z Z)) := by convert hR.add (hK.div_const 4) using 1 ยท funext s dsimp only [H'] ring ยท congr 1 ring have hchart : โˆ€แถ  s in ๐“[>] (0 : โ„), G.squareFamily Z s โˆˆ (chartAt (EuclideanSpace โ„ (Fin n)) p).source := ((squareFamily_tendsto_zero G hmax Z).mono_left nhdsWithin_le_nhds) ((chartAt (EuclideanSpace โ„ (Fin n)) p).open_source.mem_nhds (mem_chart_source _ _)) have hH : โˆ€แถ  s in ๐“[>] (0 : โ„), HasDerivAt (fun r : โ„ โ†ฆ G.toLExponentialFamily.action Z (r ^ 2)) (H' s) s := by filter_upwards [hsmall, hchart] with s hs hq rw [G.square_agrees Z s โŸจhs.1.le, hs.2โŸฉ] at hq exact squareAction_hasDerivAt G hmax Z hs hq have hg : โˆ€แถ  s in ๐“[>] (0 : โ„), HasDerivAt (fun r : โ„ โ†ฆ 2 * r) 2 s := Filter.Eventually.of_forall (fun s โ†ฆ by simpa using (hasDerivAt_id s).const_mul 2) have hgzero : Tendsto (fun s : โ„ โ†ฆ 2 * s) (๐“[>] (0 : โ„)) (๐“ 0) := by simpa using ((tendsto_id : Tendsto (id : โ„ โ†’ โ„) (๐“ 0) (๐“ 0)).mono_left nhdsWithin_le_nhds).const_mul 2 exact HasDerivAt.lhopital_zero_nhdsGT hH hg (Filter.Eventually.of_forall (by norm_num)) ((action_tendsto_zero G hmax Z).comp hsqpos) hgzero hratio /-- In the fixed terminal metric coordinates, the actual normalized action tends to norm squared. -/ theorem normalized_action_tendsto_initial (G : LExponentialGeometry F T ฯ„max p) (hmax : 0 < ฯ„max) (hT : T โˆˆ J) (hwindow : Icc (T - ฯ„max) T โІ J) (hcurvature : CompleteBoundedCurvatureOn F (Icc (T - ฯ„max) T)) (x : EuclideanSpace โ„ (Fin n)) : Tendsto (fun ฯ„ : โ„ โ†ฆ G.toLExponentialFamily.action (metricCoordinates (F.metric T) p x) ฯ„ / (2 * Real.sqrt ฯ„)) (๐“[>] (0 : โ„)) (๐“ (โ€–xโ€– ^ 2)) := by have hsqrt : Tendsto Real.sqrt (๐“[>] (0 : โ„)) (๐“[>] (0 : โ„)) := by apply tendsto_nhdsWithin_iff.mpr โŸจ?_, ?_โŸฉ ยท simpa only [Real.sqrt_zero] using (Real.continuous_sqrt.tendsto (0 : โ„)).mono_left nhdsWithin_le_nhds ยท filter_upwards [self_mem_nhdsWithin] with s hs exact Real.sqrt_pos.2 hs have h := (squareAction_quotient_tendsto G hmax hT hwindow hcurvature (metricCoordinates (F.metric T) p x)).comp hsqrt rw [metricCoordinates_inner, real_inner_self_eq_norm_sq] at h apply h.congr' filter_upwards [self_mem_nhdsWithin] with s hs simp only [Function.comp_def, Real.sq_sqrt hs.le] end PoincareMT.ReducedVolume