import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Exponential.FamilyPhase import PoincareLib.Geometry.RicciFlow.Curvature.Theory import Mathlib.Analysis.SpecialFunctions.Sqrt /-! # Smoothness of the actual positive-time backward action integrand The metric and scalar curvature are evaluated at the same spacetime graph as the actual bundled velocity of each family slice. -/ set_option autoImplicit false set_option maxSynthPendingDepth 3 set_option maxHeartbeats 800000 open scoped Manifold ContDiff Bundle universe u v namespace PoincareMT.ReducedLength variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {E : Type v} [NormedAddCommGroup E] [NormedSpace ℝ E] set_option backward.isDefEq.respectTransparency false in theorem backwardFamilyActionDensity_contDiffOn {J : Set ℝ} (F : RicciFlow n M J) (hM04 : RicciFlowCurvatureTheory.{u}) (T : ℝ) (f : E Γ— ℝ β†’ M) (U : Set (E Γ— ℝ)) (hU : IsOpen U) (hf : ContMDiffOn (π“˜(ℝ, E Γ— ℝ)) (𝓑 n) ∞ f U) (hpositive : βˆ€ z ∈ U, 0 < z.2) (htime : βˆ€ z ∈ U, T - z.2 ∈ J) : ContDiffOn ℝ ∞ (fun z : E Γ— ℝ ↦ backwardLIntegrand F T (fun s ↦ f (z.1, s)) z.2) U := by have hbase : ContMDiffOn (π“˜(ℝ, E Γ— ℝ)) ((π“˜(ℝ, ℝ)).prod (𝓑 n)) ∞ (fun z : E Γ— ℝ ↦ (T - z.2, f z)) U := (contDiff_const.sub contDiff_snd).contMDiff.contMDiffOn.prodMk hf have hg := F.smooth.comp hbase (fun z hz ↦ ⟨htime z hz, Set.mem_univ _⟩) have hphase := familyPhase_contMDiffOn f U hU hf have heval : ContMDiffOn (π“˜(ℝ, E Γ— ℝ)) ((𝓑 n).prod (π“˜(ℝ, ℝ))) ∞ (fun z : E Γ— ℝ ↦ (⟨f z, (F.metric (T - z.2)).inner (f z) (curveVelocity (n := n) (fun s ↦ f (z.1, s)) z.2) (curveVelocity (n := n) (fun s ↦ f (z.1, s)) z.2)⟩ : Bundle.TotalSpace ℝ (Bundle.Trivial M ℝ))) U := hg.clm_bundle_applyβ‚‚ hphase hphase have henergy : ContMDiffOn (π“˜(ℝ, E Γ— ℝ)) (π“˜(ℝ, ℝ)) ∞ (fun z : E Γ— ℝ ↦ (F.metric (T - z.2)).inner (f z) (curveVelocity (n := n) (fun s ↦ f (z.1, s)) z.2) (curveVelocity (n := n) (fun s ↦ f (z.1, s)) z.2)) U := by intro z hz exact (Bundle.contMDiffWithinAt_totalSpace.mp (heval z hz)).2 have hscalar := ((hM04.scalar_regular n M J F).comp hbase (fun z hz ↦ ⟨htime z hz, Set.mem_univ _⟩)).contDiffOn have hsqrt : ContDiffOn ℝ ∞ (fun z : E Γ— ℝ ↦ Real.sqrt z.2) U := contDiff_snd.contDiffOn.sqrt (fun z hz ↦ (hpositive z hz).ne') exact hsqrt.mul (hscalar.add henergy.contDiffOn) end PoincareMT.ReducedLength