import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Compact.Product.OrdinaryProduct import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Confinement.Coordinates.LiftedVelocity import PoincareLib.Geometry.RicciFlow.ReducedGeometry.LGeometry.Basic /-! Adapted from Mapher `PoincareMT/Proofs/M15/Thm8_10_PathProjection.lean` at `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in `references/ricci-flow/mapher/noncollapse/import.json`. -/ /-! # Ordinary projection of actual product paths Morgan-Tian Definitions 6.1-6.2, pp. 105-106, and Theorem 8.10, p. 177. The product projection preserves the scalar and kinetic densities on the open parameter interval, hence admissibility. See `references/ricci-flow/mapher/noncollapse/derivations/2026-09-21-ordinary-capture.md`. -/ set_option autoImplicit false -- The selected product and tangent models have compatible reducible 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} /-- Ordinary projection preserves the actual action density at interior times. Source: Definitions 6.1-6.2, pp. 105-106, in Theorem 8.10, p. 177. -/ theorem ordinaryProduct_backwardIntegrand_eq (hM12 : GeneralizedRicciGaugeTheory.{u} n) (F : RicciFlow n M I.domain) (P : OrdinaryProductRicciGeometry F.metric I) {T a b : โ„} {x y : (ordinaryProductTransport F P).Point} (p : M14BackwardPath (ordinaryProductTransport F P) T a b x y) {s : โ„} (hs : s โˆˆ Ioo a b) : backwardLIntegrand F T (fun t => (p.curve t).2) s = M14BackwardLIntegrand (ordinaryProductTransport F P) p s := by let G := ordinaryProductTransport F P let L : โ„ โ†’ (P.product.timeIntervals.interval I).Point ร— M := P.product.productIdentification.symm โˆ˜ p.curve have hid : โˆ€ q : G.Point, P.product.productIdentification.symm q = q := by intro q have h := P.product.productIdentification_eq (P.product.productIdentification.symm q) rw [P.product.productIdentification.apply_symm_apply] at h exact h.symm have hL : L = p.curve := funext fun t => hid (p.curve t) have he : P.product.productCylinder.toSpacetime โˆ˜ L = p.curve := by funext t exact (P.product.productCylinder_eq (L t)).trans (congrFun hL t) have hreg : ContMDiffOn ๐“˜(โ„) (spacetimeModel n) 1 L (Ioo a b) := (P.product.productIdentification.symm.contMDiff.of_le (by simp)).comp_contMDiffOn p.curve_regular have hnh : Ioo a b โˆˆ ๐“ s := isOpen_Ioo.mem_nhds hs have hproj := compatibleCylinder_horizontalDerivative_lift P.product.productCylinder (ordinaryProductCylinderMetric F P) L ((hreg s hs).mdifferentiableWithinAt (by simp)) (isOpen_Ioo.uniqueDiffWithinAt hs) rw [he, mfderivWithin_of_mem_nhds hnh, mfderivWithin_of_mem_nhds hnh] at hproj have htime : G.spacetime.horizontalProjection (p.curve s) (G.spacetime.timeVector (p.curve s)) = 0 := by apply Subtype.ext simp only [G.spacetime.horizontalProjection_eq, G.spacetime.timeVector_normalized, one_smul, sub_self] rfl have hclock : (p.curve s).1.val = T - s := p.curve_time s (Ioo_subset_Icc_self hs) have hscalar := (ordinaryProduct_moving_calculus hM12 F P).scalar_eq (p.curve s).1 (p.curve s).2 change (F.connection (p.curve s).1.val).scalarCurvature (p.curve s).2 = horizontalScalarCurvature G.leafwise (P.product.productCylinder.toSpacetime (p.curve s)) at hscalar rw [P.product.productCylinder_eq, hclock] at hscalar have hmetric := (ordinaryProductCylinderMetric F P).metric_eq (L s).1 (L s).2 (curveVelocity (n := n) (fun t => (L t).2) s) (curveVelocity (n := n) (fun t => (L t).2) s) unfold curveVelocity at hmetric rw [hproj] at hmetric erw [hL, P.product.productCylinder_eq] at hmetric erw [p.derivative_eq s hs, map_add, map_neg, htime, neg_zero, G.spacetime.horizontalProjection_identity, zero_add] at hmetric change (F.metric (p.curve s).1.val).inner _ _ _ = _ at hmetric rw [hclock] at hmetric unfold backwardLIntegrand M14BackwardLIntegrand M14RawLIntegrand erw [hscalar, hmetric] rfl /-- Projecting an actual product path gives an admissible ordinary backward path. Source: Definitions 6.1-6.2, pp. 105-106, and Theorem 8.10, p. 177. -/ theorem ordinaryProduct_backwardPath_projection (hM12 : GeneralizedRicciGaugeTheory.{u} n) (F : RicciFlow n M I.domain) (P : OrdinaryProductRicciGeometry F.metric I) {T a b : โ„} (hT : T โˆˆ I.domain) {x y : (ordinaryProductTransport F P).Point} (p : M14BackwardPath (ordinaryProductTransport F P) T a b x y) : โˆƒ q : BackwardTimePath F T a b, q.curve = (fun t => (p.curve t).2) := by refine โŸจ{ curve := fun t => (p.curve t).2 nonnegative := p.tau_nonneg ordered := p.tau_lt terminal_mem := hT time_mem := ?_ continuous := (ordinaryProduct_spatial_smooth F P).continuous.comp_continuousOn p.curve_continuous regular := (ordinaryProduct_spatial_smooth F P).of_le (by simp) |>.comp_contMDiffOn p.curve_regular l_integrable := ?_ }, rflโŸฉ ยท intro s hs have h := (p.curve s).1.property change (p.curve s).1.val โˆˆ I.domain at h have ht : (p.curve s).1.val = T - s := p.curve_time s hs rwa [ht] at h ยท apply p.action_integrable.congr_uIoo intro s hs have hi : s โˆˆ Ioo a b := by simpa only [uIoo_of_le p.tau_lt.le] using hs exact (ordinaryProduct_backwardIntegrand_eq hM12 F P p hi).symm end PoincareMT.Generalized.Noncollapse