import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Compact.Product.OrdinaryProduct import PoincareLib.Geometry.Spacetime.Interval.RealTime import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Basic /-! Adapted from Mapher `PoincareMT/Proofs/M15/Thm8_10_PathLift.lean` at `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in `references/ricci-flow/mapher/noncollapse/import.json`. -/ /-! # Ordinary paths lifted to the actual product spacetime Morgan-Tian Remark 3.37, p. 60, Definitions 6.1-6.2, pp. 105-106, and Theorem 8.10, p. 177. The real-time parametrization uses the selected interval atlas and only asserts derivatives at valid times. See `references/ricci-flow/mapher/noncollapse/derivations/2026-09-21-ordinary-capture.md`. -/ set_option autoImplicit false -- Derivatives retain the selected interval and product tangent instances. set_option backward.isDefEq.respectTransparency false open Set open scoped Manifold ContDiff Bundle Topology universe u namespace PoincareMT.Generalized.Noncollapse variable {n : β„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {I : SpacetimeInterval} /-- Every ordinary backward path has an actual admissible product lift. Source: Definitions 6.1-6.2, pp. 105-106, used in Theorem 8.10, p. 177. -/ theorem ordinaryProduct_backwardPath_lift (hM12 : GeneralizedRicciGaugeTheory.{u} n) (F : RicciFlow n M I.domain) (P : OrdinaryProductRicciGeometry F.metric I) {T a b : ℝ} (q : BackwardTimePath F T a b) : βˆƒ p : M14BackwardPath (ordinaryProductTransport F P) T a b (P.product.productCylinder.toSpacetime ((⟨T - a, q.time_mem a ⟨le_rfl, q.ordered.le⟩⟩, q.curve a))) (P.product.productCylinder.toSpacetime ((⟨T - b, q.time_mem b ⟨q.ordered.le, le_rfl⟩⟩, q.curve b))), βˆ€ (s : ℝ) (hs : s ∈ Icc a b), P.product.productCylinder.toSpacetime ((⟨T - s, q.time_mem s hs⟩, q.curve s)) = p.curve s := by let G := ordinaryProductTransport F P let D := P.product.timeIntervals.interval I let e := P.product.productCylinder let g := ordinaryProductCylinderMetric F P let Ξ± : ℝ β†’ D.Point := fun s => D.realParam (T - s) let L : ℝ β†’ D.Point Γ— M := fun s => (Ξ± s, q.curve s) let Ξ³ : ℝ β†’ G.Point := e.toSpacetime ∘ L let v : βˆ€ s, G.Horizontal (Ξ³ s) := fun s => g.spatialTangentEquiv (Ξ± s) (q.curve s) (curveVelocity (n := n) q.curve s) have hΞ±val (s : ℝ) (hs : s ∈ Icc a b) : (Ξ± s).val = T - s := D.realParam_val (q.time_mem s hs) have hΞ± : ContMDiffOn π“˜(ℝ) (π“‘βˆ‚ 1) 1 Ξ± (Icc a b) := (D.realParam_smoothOn.of_le (by simp)).comp (contDiff_const.sub contDiff_id).contMDiff.contMDiffOn q.time_mem have hL : ContMDiffOn π“˜(ℝ) (spacetimeModel n) 1 L (Ioo a b) := (hΞ±.mono Ioo_subset_Icc_self).prodMk q.regular have hΞ³ : ContMDiffOn π“˜(ℝ) (spacetimeModel n) 1 Ξ³ (Ioo a b) := (e.smooth.of_le (by simp)).comp_contMDiffOn hL have hlift (s : ℝ) (hs : s ∈ Icc a b) : e.toSpacetime ((⟨T - s, q.time_mem s hs⟩, q.curve s)) = Ξ³ s := by have ht : Ξ± s = ⟨T - s, q.time_mem s hs⟩ := Subtype.ext (hΞ±val s hs) change e.toSpacetime _ = e.toSpacetime (Ξ± s, q.curve s) rw [ht] have hclock (s : ℝ) (hs : s ∈ Icc a b) : G.spacetime.timeFunction (Ξ³ s) = T - s := (e.time_eq (L s)).trans (hΞ±val s hs) have hderiv (s : ℝ) (hs : s ∈ Ioo a b) : mfderiv π“˜(ℝ) (spacetimeModel n) Ξ³ s 1 = -G.spacetime.timeVector (Ξ³ s) + (v s).val := by have hnh : Ioo a b ∈ 𝓝 s := isOpen_Ioo.mem_nhds hs have hu : UniqueDiffWithinAt ℝ (Ioo a b) s := isOpen_Ioo.uniqueDiffWithinAt hs have ht := q.time_mem s (Ioo_subset_Icc_self hs) have hsub : HasDerivAt (fun r : ℝ => T - r) (-1) s := by simpa using (hasDerivAt_id s).const_sub T have hsubm : MDifferentiableWithinAt π“˜(ℝ) π“˜(ℝ) (fun r : ℝ => T - r) (Ioo a b) s := hsub.differentiableAt.mdifferentiableAt.mdifferentiableWithinAt have hsubD : mfderivWithin π“˜(ℝ) π“˜(ℝ) (fun r : ℝ => T - r) (Ioo a b) s 1 = -1 := by rw [mfderivWithin_eq_fderivWithin] simpa using! congrArg (fun A : ℝ β†’L[ℝ] ℝ => A 1) (hsub.hasFDerivAt.hasFDerivWithinAt.fderivWithin hu) have hΞ±d : mfderiv π“˜(ℝ) (π“‘βˆ‚ 1) Ξ± s 1 = -D.positiveTangent (Ξ± s) := by rw [← mfderivWithin_of_mem_nhds hnh] change mfderivWithin π“˜(ℝ) (π“‘βˆ‚ 1) (D.realParam ∘ (fun r => T - r)) (Ioo a b) s 1 = _ rw [mfderivWithin_comp s ((D.realParam_smoothOn (T - s) ht).mdifferentiableWithinAt (by simp)) hsubm (fun r hr => q.time_mem r (Ioo_subset_Icc_self hr)) hu.uniqueMDiffWithinAt] change mfderivWithin π“˜(ℝ) (π“‘βˆ‚ 1) D.realParam I.domain (T - s) (mfderivWithin π“˜(ℝ) π“˜(ℝ) (fun r : ℝ => T - r) (Ioo a b) s 1) = _ rw [hsubD, D.realParam_mfderivWithin ht] change (D.inclusionDerivative (Ξ± s)).symm (-1) = -(D.inclusionDerivative (Ξ± s)).symm 1 exact map_neg _ _ have hΞ±m := ((hΞ±.mono Ioo_subset_Icc_self s hs).mdifferentiableWithinAt (by simp)).mdifferentiableAt hnh have hqm := ((q.regular s hs).mdifferentiableWithinAt (by simp)).mdifferentiableAt hnh have hLm := ((hL s hs).mdifferentiableWithinAt (by simp)).mdifferentiableAt hnh have hLd : mfderiv π“˜(ℝ) (spacetimeModel n) L s 1 = (-D.positiveTangent (Ξ± s), curveVelocity (n := n) q.curve s) := by change mfderiv π“˜(ℝ) ((π“‘βˆ‚ 1).prod (𝓑 n)) (fun r => (Ξ± r, q.curve r)) s 1 = _ rw [mfderiv_prodMk hΞ±m hqm] change (mfderiv π“˜(ℝ) (π“‘βˆ‚ 1) Ξ± s 1, mfderiv π“˜(ℝ) (𝓑 n) q.curve s 1) = _ rw [hΞ±d] rfl change mfderiv π“˜(ℝ) (spacetimeModel n) (e.toSpacetime ∘ L) s 1 = _ rw [mfderiv_comp_apply s (e.smooth.mdifferentiableAt (by simp)) hLm, hLd] rw [mfderiv_prod_eq_add_apply (e.smooth.mdifferentiableAt (by simp)), map_neg, e.worldline_derivative, ← g.spatialTangentEquiv_eq] rfl have hdensity (s : ℝ) (hs : s ∈ Ioo a b) : M14RawLIntegrand G Ξ³ v s = backwardLIntegrand F T q.curve s := by have hc := ordinaryProduct_moving_calculus hM12 F P unfold M14RawLIntegrand backwardLIntegrand change Real.sqrt s * (horizontalScalarCurvature G.leafwise (e.toSpacetime (Ξ± s, q.curve s)) + G.spacetime.horizontalMetric.inner (e.toSpacetime (Ξ± s, q.curve s)) (g.spatialTangentEquiv (Ξ± s) (q.curve s) (curveVelocity (n := n) q.curve s)) (g.spatialTangentEquiv (Ξ± s) (q.curve s) (curveVelocity (n := n) q.curve s))) = _ erw [← hc.scalar_eq, ← g.metric_eq] change Real.sqrt s * ((F.connection (Ξ± s).val).scalarCurvature (q.curve s) + (F.metric (Ξ± s).val).inner (q.curve s) _ _) = _ rw [hΞ±val s (Ioo_subset_Icc_self hs)] refine ⟨{ tau_nonneg := q.nonnegative tau_lt := q.ordered base_time := e.time_eq _ endpoint_time := e.time_eq _ curve := Ξ³ curve_start := (hlift a ⟨le_rfl, q.ordered.le⟩).symm curve_end := (hlift b ⟨q.ordered.le, le_rfl⟩).symm curve_time := hclock curve_continuous := e.smooth.continuous.comp_continuousOn (hΞ±.continuousOn.prodMk q.continuous) curve_regular := hΞ³ horizontal_velocity := v derivative_eq := hderiv action_integrable := ?_ }, hlift⟩ apply q.l_integrable.congr_uIoo intro s hs exact (hdensity s (by simpa only [uIoo_of_le q.ordered.le] using hs)).symm end PoincareMT.Generalized.Noncollapse