import PoincareLib.Geometry.CurveShortening.Evolution.Geometry import PoincareLib.Geometry.CurveShortening.Ramp.Geometry /-! # Primitive curve-shortening geometry for M62 Morgan--Tian pp. 441-446, with the 2015 Section 19.2 correction, pp. 2-8. Every quantity is computed from the displayed map and the actual ambient metric/connection. Parameter pullbacks allow self-intersections and retain C2 endpoint data. The full milestone statement and its sole admission are owned by M62; these definitions contain no proof placeholders. -/ set_option autoImplicit false open scoped Manifold ContDiff Bundle intervalIntegral universe u namespace PoincareMT variable {n : โ„•} {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] {a b : โ„} /-- Actual spatial pullback differentiation with respect to arc length. -/ noncomputable def m62SpatialDerivative (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) (t : โ„) (Y : โˆ€ x, TangentSpace (๐“ก n) (c x t)) (x : โ„) : TangentSpace (๐“ก n) (c x t) := (curveSpeed F c t x)โปยน โ€ข rampHorizontalCovariantDerivative (F.connection t) (fun y โ†ฆ c y t) Y x /-- Curvature vector of the chosen parameterized curve, including at self-intersections. -/ noncomputable def m62CurvatureVector (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) (t x : โ„) : TangentSpace (๐“ก n) (c x t) := m62SpatialDerivative F c t (spatialUnitTangent F c t) x noncomputable def m62CurvatureSquared (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) (t x : โ„) : โ„ := (F.metric t).inner (c x t) (m62CurvatureVector F c t x) (m62CurvatureVector F c t x) noncomputable def m62Curvature (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) (t x : โ„) : โ„ := Real.sqrt (m62CurvatureSquared F c t x) /-- The spatial normal projection removes only the unit curve tangent. -/ noncomputable def m62SpatialNormalDerivative (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) (t x : โ„) : TangentSpace (๐“ก n) (c x t) := let A := m62SpatialDerivative F c t (m62CurvatureVector F c t) x let S := spatialUnitTangent F c t x A - (F.metric t).inner (c x t) A S โ€ข S noncomputable def m62ArcDerivative (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) (t : โ„) (f : โ„ โ†’ โ„) (x : โ„) : โ„ := (curveSpeed F c t x)โปยน * deriv f x /-- Iteration retains the spatial variation of the speed coefficient. -/ noncomputable def m62ArcSecondDerivative (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) (t : โ„) (f : โ„ โ†’ โ„) (x : โ„) : โ„ := m62ArcDerivative F c t (m62ArcDerivative F c t f) x noncomputable def m62RegularizedCurvature (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) (ฮต t x : โ„) : โ„ := Real.sqrt (m62CurvatureSquared F c t x + ฮต ^ 2) noncomputable def m62Length (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) (t : โ„) : โ„ := โˆซ x in (0 : โ„)..curvePeriod, curveSpeed F c t x noncomputable def m62TotalCurvature (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) (t : โ„) : โ„ := โˆซ x in (0 : โ„)..curvePeriod, m62Curvature F c t x * curveSpeed F c t x noncomputable def m62RegularizedTotalCurvature (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) (ฮต t : โ„) : โ„ := โˆซ x in (0 : โ„)..curvePeriod, m62RegularizedCurvature F c ฮต t x * curveSpeed F c t x /-- The actual Ricci pairing of the spatial unit tangent. -/ noncomputable def m62TangentRicci (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) (t x : โ„) : โ„ := (F.connection t).ricci (c x t) (spatialUnitTangent F c t x) (spatialUnitTangent F c t x) /-- Primitive regularity and curve-shortening equation for a displayed map. Only C2 spatial regularity is imposed at the time endpoints. -/ structure M62ShrinkingCurve (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) : Prop where periodic : โˆ€ t โˆˆ Set.Icc a b, โˆ€ x, c (x + curvePeriod) t = c x t spatial_regular : โˆ€ t โˆˆ Set.Icc a b, ContMDiff (๐“˜(โ„, โ„)) (๐“ก n) 2 (fun x โ†ฆ c x t) joint_smooth : ContMDiffOn (๐“˜(โ„, โ„ ร— โ„)) (๐“ก n) โˆž (fun z : โ„ ร— โ„ โ†ฆ c z.1 z.2) (Set.univ ร—หข Set.Ioo a b) immersed : โˆ€ t โˆˆ Set.Icc a b, โˆ€ x, curveVelocity (n := n) (fun y โ†ฆ c y t) x โ‰  0 continuous : ContinuousOn (fun z : โ„ ร— โ„ โ†ฆ c z.1 z.2) (Set.univ ร—หข Set.Icc a b) velocity_continuous : ContinuousOn (fun z : โ„ ร— โ„ โ†ฆ (โŸจc z.1 z.2, curveVelocity (n := n) (fun y โ†ฆ c y z.2) z.1โŸฉ : TangentBundle (๐“ก n) M)) (Set.univ ร—หข Set.Icc a b) curvature_continuous : ContinuousOn (fun z : โ„ ร— โ„ โ†ฆ (โŸจc z.1 z.2, m62CurvatureVector F c z.2 z.1โŸฉ : TangentBundle (๐“ก n) M)) (Set.univ ร—หข Set.Icc a b) equation : โˆ€ t โˆˆ Set.Ioo a b, โˆ€ x, curveVelocity (n := n) (fun s โ†ฆ c x s) t = m62CurvatureVector F c t x /-- Constants from the full spacetime-normal estimate, chosen before the curve. -/ def m62C0 (K0 K1 K2 : โ„) : โ„ := 2 * K0 + 6 * K2 + 2 * K2 ^ 2 + 6 * K1 noncomputable def m62C1 (K0 K1 K2 : โ„) : โ„ := m62C0 K0 K1 K2 / 2 end PoincareMT