import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Minimum.PathCompactness /-! # Backward action in square-root time The substitution is valid for the frozen admissible paths, without a derivative at either endpoint. Adapted from Mapher `Proofs/M08/RegularizedAction.lean`, commit `49331b7d7ecad38f53e4300c3b35d6a84b2cc648`. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set MeasureTheory open scoped Manifold ContDiff Bundle intervalIntegral namespace PoincareMT.ReducedLengthMinimum.Variational variable {n : โ„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] /-- The nonsingular action density after the substitution `tau = s^2`. -/ noncomputable def regularizedLIntegrand {J : Set โ„} (F : RicciFlow n M J) (T : โ„) (ฮฑ : โ„ โ†’ M) (s : โ„) : โ„ := 2 * s ^ 2 * (F.connection (T - s ^ 2)).scalarCurvature (ฮฑ s) + (1 / 2 : โ„) * (F.metric (T - s ^ 2)).inner (ฮฑ s) (curveVelocity (n := n) ฮฑ s) (curveVelocity (n := n) ฮฑ s) /-- The actual backward action expressed on a regular parameter interval. -/ noncomputable def regularizedLAction {J : Set โ„} (F : RicciFlow n M J) (T tau : โ„) (ฮฑ : โ„ โ†’ M) : โ„ := โˆซ s in 0..Real.sqrt tau, regularizedLIntegrand F T ฮฑ s theorem squarePath_integrand_eq_transformed {J : Set โ„} {F : RicciFlow n M J} {T tau : โ„} (p : BackwardTimePath F T 0 tau) {s : โ„} (hs : s โˆˆ Ioo 0 (Real.sqrt tau)) : regularizedLIntegrand F T (fun r => p.curve (r ^ 2)) s = backwardLIntegrand F T p.curve (s ^ 2) * (2 * s) := by have htime : s ^ 2 โˆˆ Ioo 0 tau := โŸจsq_pos_of_pos hs.1, (Real.lt_sqrt hs.1.le).mp hs.2โŸฉ have hreg := (p.regular _ htime).contMDiffAt (isOpen_Ioo.mem_nhds htime) have hvel := curveVelocity_comp_sq (hreg.mdifferentiableAt one_ne_zero) unfold regularizedLIntegrand backwardLIntegrand rw [Real.sqrt_sq hs.1.le, hvel] simp only [map_smul, smul_apply, smul_eq_mul] ring /-- The square-time density is integrable and has exactly the frozen action. -/ theorem squarePath_action {J : Set โ„} {F : RicciFlow n M J} {T tau : โ„} (p : BackwardTimePath F T 0 tau) : IntervalIntegrable (regularizedLIntegrand F T (fun r => p.curve (r ^ 2))) volume 0 (Real.sqrt tau) โˆง regularizedLAction F T tau (fun r => p.curve (r ^ 2)) = backwardLLength F T 0 tau p.curve := by have hd (s : โ„) : HasDerivAt (fun r : โ„ => r ^ 2) (2 * s) s := by simpa using hasDerivAt_pow 2 s have hn : โˆ€ s โˆˆ uIoo 0 (Real.sqrt tau), 0 โ‰ค 2 * s := by intro s hs rw [uIoo_of_le (Real.sqrt_nonneg tau)] at hs exact mul_nonneg (by norm_num) hs.1.le have ht : IntervalIntegrable (fun s => backwardLIntegrand F T p.curve (s ^ 2) * (2 * s)) volume 0 (Real.sqrt tau) := by apply (intervalIntegral.integrable_comp_mul_deriv_iff_of_deriv_nonneg (f := fun s : โ„ => s ^ 2) (f' := fun s => 2 * s) (g := backwardLIntegrand F T p.curve) (continuous_id.pow 2).continuousOn (fun s _ => hd s) hn).mpr simpa only [zero_pow two_ne_zero, Real.sq_sqrt p.ordered.le] using p.l_integrable refine โŸจ?_, ?_โŸฉ ยท apply ht.congr_uIoo intro s hs rw [uIoo_of_le (Real.sqrt_nonneg tau)] at hs exact (squarePath_integrand_eq_transformed p hs).symm ยท have hsub := intervalIntegral.integral_comp_mul_deriv_of_deriv_nonneg (f := fun s : โ„ => s ^ 2) (f' := fun s => 2 * s) (g := backwardLIntegrand F T p.curve) (continuous_id.pow 2).continuousOn (fun s _ => hd s) hn calc _ = โˆซ s in 0..Real.sqrt tau, backwardLIntegrand F T p.curve (s ^ 2) * (2 * s) := intervalIntegral.integral_congr_Ioo_of_le (Real.sqrt_nonneg tau) (fun _ hs => squarePath_integrand_eq_transformed p hs) _ = _ := by simpa only [Function.comp_def, zero_pow two_ne_zero, Real.sq_sqrt p.ordered.le, backwardLLength] using hsub end PoincareMT.ReducedLengthMinimum.Variational