import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Exponential.FamilyPhase import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Action.IntrinsicEnergy import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedLength.Variation.Fields.SquareTimeFields /-! # The smooth action density of an actual square-time family Evaluate the pulled-back metric on the bundled time-slice phase. The result is the intrinsic energy of that slice, with no independent field. -/ 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] noncomputable def squareFamilyActionDensity {J : Set ℝ} (F : RicciFlow n M J) (T : ℝ) (f : E Γ— ℝ β†’ M) (z : E Γ— ℝ) : ℝ := 2 * z.2 ^ 2 * (F.connection (T - z.2 ^ 2)).scalarCurvature (f z) + (1 / 2 : ℝ) * regularizedCurveEnergy F T (fun s ↦ f (z.1, s)) z.2 set_option backward.isDefEq.respectTransparency false in theorem squareFamilyActionDensity_contDiffOn {J : Set ℝ} (F : RicciFlow n M J) (hM04 : RicciFlowCurvatureTheory.{u}) (T b : ℝ) (hb : 0 < b) (hwindow : Set.Icc (T - b) T βŠ† J) (f : E Γ— ℝ β†’ M) (U : Set (E Γ— ℝ)) (hU : IsOpen U) (hf : ContMDiffOn (π“˜(ℝ, E Γ— ℝ)) (𝓑 n) ∞ f U) (htime : βˆ€ z ∈ U, z.2 ∈ Set.Ioo (-Real.sqrt b) (Real.sqrt b)) : ContDiffOn ℝ ∞ (squareFamilyActionDensity F T f) U := by have hbase : ContMDiffOn (π“˜(ℝ, E Γ— ℝ)) ((π“˜(ℝ, ℝ)).prod (𝓑 n)) ∞ (fun z : E Γ— ℝ ↦ (z.2, f z)) U := contDiff_snd.contMDiff.contMDiffOn.prodMk hf have hg := (squareTime_metric_smooth F T b hb hwindow).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, regularizedCurveEnergy F T (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 Γ— ℝ ↦ regularizedCurveEnergy F T (fun s ↦ f (z.1, s)) z.2) U := by intro z hz exact (Bundle.contMDiffWithinAt_totalSpace.mp (heval z hz)).2 have hscalar := ((squareTime_scalar_smooth F hM04 T b hb hwindow).comp hbase (fun z hz ↦ ⟨htime z hz, Set.mem_univ _⟩)).contDiffOn exact ((contDiffOn_const.mul (contDiff_snd.contDiffOn.pow 2)).mul hscalar).add (contDiffOn_const.mul henergy.contDiffOn) end PoincareMT.ReducedLength