import PoincareLib.Geometry.CurveShortening.Evolution.Flow import PoincareLib.Geometry.CurveShortening.Evolution.Theory import PoincareLib.Geometry.CurveShortening.Evolution.CovariantTheory /-! # M62 exact curve evolution and uniform estimates The scalar and spatial expressions refer directly to the supplied curve and ambient flow. The 2015 correction's regularization is retained at curvature zeros, and its total-curvature conclusion is integrated before taking limits. -/ 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 : โ„} /-- Exact spatial form of the corrected equation, with all connection-variation terms. -/ noncomputable def m62SpatialEvolutionRhs (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) (t x : โ„) : โ„ := let H := m62CurvatureVector F c t x let S := spatialUnitTangent F c t x let P := m62SpatialNormalDerivative F c t x let D := F.connection t let k2 := m62CurvatureSquared F c t x m62ArcSecondDerivative F c t (m62CurvatureSquared F c t) x - 2 * (F.metric t).inner (c x t) P P + 2 * k2 ^ 2 - 2 * D.ricci (c x t) H H + 4 * k2 * D.ricci (c x t) S S + 2 * D.curvatureTensor (c x t) H S H S + 2 * D.covariantTensorDerivative D.ricciEvaluation (c x t) ![H, S, S] - 4 * D.covariantTensorDerivative D.ricciEvaluation (c x t) ![S, S, H] /-- Speed, the parameter-domain commutator, and the exact spatial equation. -/ structure M62SpatialEvolution (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) : Prop where speed_positive : โˆ€ t โˆˆ Set.Icc a b, โˆ€ x, 0 < curveSpeed F c t x speed_squared : โˆ€ t โˆˆ Set.Ioo a b, โˆ€ x, HasDerivAt (fun s โ†ฆ (curveSpeed F c s x) ^ 2) (-2 * (m62TangentRicci F c t x + m62CurvatureSquared F c t x) * (curveSpeed F c t x) ^ 2) t speed_derivative : โˆ€ t โˆˆ Set.Ioo a b, โˆ€ x, HasDerivAt (fun s โ†ฆ curveSpeed F c s x) (-(m62TangentRicci F c t x + m62CurvatureSquared F c t x) * curveSpeed F c t x) t commutator : โˆ€ f : โ„ ร— โ„ โ†’ โ„, ContDiffOn โ„ 2 f (Set.univ ร—หข Set.Ioo a b) โ†’ โˆ€ t โˆˆ Set.Ioo a b, โˆ€ x, deriv (fun s โ†ฆ m62ArcDerivative F c s (fun y โ†ฆ f (y, s)) x) t - m62ArcDerivative F c t (fun y โ†ฆ deriv (fun s โ†ฆ f (y, s)) t) x = (m62CurvatureSquared F c t x + m62TangentRicci F c t x) * m62ArcDerivative F c t (fun y โ†ฆ f (y, t)) x curvature_squared_smooth : ContDiffOn โ„ โˆž (fun z : โ„ ร— โ„ โ†ฆ m62CurvatureSquared F c z.2 z.1) (Set.univ ร—หข Set.Ioo a b) exact_curvature : โˆ€ t โˆˆ Set.Ioo a b, โˆ€ x, HasDerivAt (fun s โ†ฆ m62CurvatureSquared F c s x) (m62SpatialEvolutionRhs F c t x) t /-- Quantitative consequences with constants fixed by the three ambient bounds. -/ structure M62CurveEstimates (F : RicciFlow n M (Set.Icc a b)) (c : โ„ โ†’ โ„ โ†’ M) (K0 K1 K2 : โ„) : Prop where spatial_squared_bound : โˆ€ t โˆˆ Set.Ioo a b, โˆ€ x, let P := m62SpatialNormalDerivative F c t x let k2 := m62CurvatureSquared F c t x deriv (fun s โ†ฆ m62CurvatureSquared F c s x) t โ‰ค m62ArcSecondDerivative F c t (m62CurvatureSquared F c t) x - 2 * (F.metric t).inner (c x t) P P + 2 * k2 ^ 2 + m62C0 K0 K1 K2 * (k2 + m62Curvature F c t x) regularized_positive : โˆ€ ฮต : โ„, 0 < ฮต โ†’ โˆ€ t โˆˆ Set.Icc a b, โˆ€ x, 0 < m62RegularizedCurvature F c ฮต t x regularized_smooth : โˆ€ ฮต : โ„, 0 < ฮต โ†’ ContDiffOn โ„ โˆž (fun z : โ„ ร— โ„ โ†ฆ m62RegularizedCurvature F c ฮต z.2 z.1) (Set.univ ร—หข Set.Ioo a b) regularized_gradient : โˆ€ ฮต : โ„, 0 < ฮต โ†’ โˆ€ t โˆˆ Set.Ioo a b, โˆ€ x, let P := m62SpatialNormalDerivative F c t x (m62ArcDerivative F c t (m62RegularizedCurvature F c ฮต t) x) ^ 2 โ‰ค (F.metric t).inner (c x t) P P regularized_bound : โˆ€ ฮต : โ„, 0 < ฮต โ†’ โˆ€ t โˆˆ Set.Ioo a b, โˆ€ x, deriv (fun s โ†ฆ m62RegularizedCurvature F c ฮต s x) t โ‰ค m62ArcSecondDerivative F c t (m62RegularizedCurvature F c ฮต t) x + (m62Curvature F c t x) ^ 3 + m62C1 K0 K1 K2 * (m62RegularizedCurvature F c ฮต t x + 1) length_integrable : โˆ€ t โˆˆ Set.Icc a b, IntervalIntegrable (curveSpeed F c t) MeasureTheory.volume 0 curvePeriod total_curvature_integrable : โˆ€ t โˆˆ Set.Icc a b, IntervalIntegrable (fun x โ†ฆ m62Curvature F c t x * curveSpeed F c t x) MeasureTheory.volume 0 curvePeriod regularized_integrable : โˆ€ ฮต : โ„, 0 < ฮต โ†’ โˆ€ t โˆˆ Set.Icc a b, IntervalIntegrable (fun x โ†ฆ m62RegularizedCurvature F c ฮต t x * curveSpeed F c t x) MeasureTheory.volume 0 curvePeriod length_continuous : ContinuousOn (m62Length F c) (Set.Icc a b) total_curvature_continuous : ContinuousOn (m62TotalCurvature F c) (Set.Icc a b) regularized_continuous : โˆ€ ฮต : โ„, 0 < ฮต โ†’ ContinuousOn (m62RegularizedTotalCurvature F c ฮต) (Set.Icc a b) length_derivative : โˆ€ t โˆˆ Set.Ioo a b, HasDerivAt (m62Length F c) (-(โˆซ x in (0 : โ„)..curvePeriod, (m62CurvatureSquared F c t x + m62TangentRicci F c t x) * curveSpeed F c t x)) t length_bound : โˆ€ t โˆˆ Set.Ioo a b, deriv (m62Length F c) t โ‰ค โˆซ x in (0 : โ„)..curvePeriod, (K2 - m62CurvatureSquared F c t x) * curveSpeed F c t x length_scalar_bound : โˆ€ t โˆˆ Set.Ioo a b, deriv (m62Length F c) t โ‰ค K2 * m62Length F c t regularized_differentiable : โˆ€ ฮต : โ„, 0 < ฮต โ†’ โˆ€ t โˆˆ Set.Ioo a b, DifferentiableAt โ„ (m62RegularizedTotalCurvature F c ฮต) t regularized_total_bound : โˆ€ ฮต : โ„, 0 < ฮต โ†’ โˆ€ t โˆˆ Set.Ioo a b, deriv (m62RegularizedTotalCurvature F c ฮต) t โ‰ค (m62C1 K0 K1 K2 + K2) * m62RegularizedTotalCurvature F c ฮต t + m62C1 K0 K1 K2 * m62Length F c t regularization_error : โˆ€ ฮต : โ„, 0 < ฮต โ†’ โˆ€ t โˆˆ Set.Icc a b, 0 โ‰ค m62RegularizedTotalCurvature F c ฮต t - m62TotalCurvature F c t โˆง m62RegularizedTotalCurvature F c ฮต t - m62TotalCurvature F c t โ‰ค ฮต * m62Length F c t total_curvature_integral : โˆ€ s t : โ„, s โˆˆ Set.Icc a b โ†’ t โˆˆ Set.Icc a b โ†’ s โ‰ค t โ†’ m62TotalCurvature F c t - m62TotalCurvature F c s โ‰ค โˆซ r in s..t, (m62C1 K0 K1 K2 + K2) * m62TotalCurvature F c r + m62C1 K0 K1 K2 * m62Length F c r total_curvature_forward : โˆ€ t โˆˆ Set.Ico a b, โˆ€ ฮต : โ„, 0 < ฮต โ†’ โˆƒ ฮด : โ„, 0 < ฮด โˆง โˆ€ h : โ„, 0 < h โ†’ h < ฮด โ†’ t + h โˆˆ Set.Icc a b โ†’ (m62TotalCurvature F c (t + h) - m62TotalCurvature F c t) / h โ‰ค (m62C1 K0 K1 K2 + K2) * m62TotalCurvature F c t + m62C1 K0 K1 K2 * m62Length F c t + ฮต /-- The horizontal lift of the actual curvature vector to the open spacetime. -/ noncomputable def m62LiftedCurvature {F : RicciFlow n M (Set.Icc a b)} (G : M62.SpacetimeData F) (c : โ„ โ†’ โ„ โ†’ M) (t : M62.OpenTime a b) (x : โ„) : TangentSpace (๐“ก (n + 1)) (G.liftCurve c (x, t)) := G.charts.horizontal (G.liftCurve c (x, t)) (m62CurvatureVector F c t x) noncomputable def m62LiftedUnitTangent {F : RicciFlow n M (Set.Icc a b)} (G : M62.SpacetimeData F) (c : โ„ โ†’ โ„ โ†’ M) (t : M62.OpenTime a b) (x : โ„) : TangentSpace (๐“ก (n + 1)) (G.liftCurve c (x, t)) := G.charts.horizontal (G.liftCurve c (x, t)) (spatialUnitTangent F c t x) /-- The full spacetime normal derivative, including its vertical component. -/ noncomputable def m62SpacetimeNormalDerivative {F : RicciFlow n M (Set.Icc a b)} (G : M62.SpacetimeData F) (c : โ„ โ†’ โ„ โ†’ M) (t : M62.OpenTime a b) (x : โ„) : TangentSpace (๐“ก (n + 1)) (G.liftCurve c (x, t)) := let A := (curveSpeed F c t x)โปยน โ€ข G.covariantAlong (fun y โ†ฆ G.liftCurve c (y, t)) (m62LiftedCurvature G c t) x let S := m62LiftedUnitTangent G c t x A - G.metric.inner (G.liftCurve c (x, t)) A S โ€ข S /-- Every term of corrected Lemma 0.2, using the actual spacetime curvature. -/ noncomputable def m62SpacetimeEvolutionRhs {F : RicciFlow n M (Set.Icc a b)} (G : M62.SpacetimeData F) (c : โ„ โ†’ โ„ โ†’ M) (t : M62.OpenTime a b) (x : โ„) : โ„ := let H := m62CurvatureVector F c t x let S := spatialUnitTangent F c t x let P := m62SpacetimeNormalDerivative G c t x let D := F.connection t let k2 := m62CurvatureSquared F c t x m62ArcSecondDerivative F c t (m62CurvatureSquared F c t) x - 2 * G.metric.inner (G.liftCurve c (x, t)) P P + 2 * k2 ^ 2 - 2 * D.ricci (c x t) H H + 4 * k2 * D.ricci (c x t) S S + 2 * G.connection.curvatureTensor (G.liftCurve c (x, t)) (G.liftedTimeVelocity c (x, t)) (m62LiftedUnitTangent G c t x) (m62LiftedCurvature G c t x) (m62LiftedUnitTangent G c t x) + 2 * D.ricci (c x t) S S * D.ricci (c x t) H H - 2 * D.covariantTensorDerivative D.ricciEvaluation (c x t) ![S, S, H] /-- Exact laws for the same curve in the constructed spacetime. -/ structure M62CurveLaws {F : RicciFlow n M (Set.Icc a b)} (G : M62.SpacetimeData F) (c : โ„ โ†’ โ„ โ†’ M) : Prop where spatial : M62SpatialEvolution F c lifted_time : โˆ€ (t : M62.OpenTime a b) (x : โ„), G.liftedTimeVelocity c (x, t) = m62LiftedCurvature G c t x + G.charts.timeVector (G.liftCurve c (x, t)) normal_norm : โˆ€ (t : M62.OpenTime a b) (x : โ„), let P := m62SpacetimeNormalDerivative G c t x let Pg := m62SpatialNormalDerivative F c t x G.metric.inner (G.liftCurve c (x, t)) P P = (F.metric t).inner (c x t) Pg Pg + ((F.connection t).ricci (c x t) (spatialUnitTangent F c t x) (m62CurvatureVector F c t x)) ^ 2 exact_curvature : โˆ€ (t : M62.OpenTime a b) (x : โ„), HasDerivAt (fun s โ†ฆ m62CurvatureSquared F c s x) (m62SpacetimeEvolutionRhs G c t x) t regularized_gradient : โˆ€ ฮต : โ„, 0 < ฮต โ†’ โˆ€ (t : M62.OpenTime a b) (x : โ„), let P := m62SpacetimeNormalDerivative G c t x (m62ArcDerivative F c t (m62RegularizedCurvature F c ฮต t) x) ^ 2 โ‰ค G.metric.inner (G.liftCurve c (x, t)) P P /-- The full-normal upper bound before discarding the negative time component. -/ def M62SpacetimeEstimate {F : RicciFlow n M (Set.Icc a b)} (G : M62.SpacetimeData F) (c : โ„ โ†’ โ„ โ†’ M) (K0 K1 K2 : โ„) : Prop := โˆ€ (t : M62.OpenTime a b) (x : โ„), let P := m62SpacetimeNormalDerivative G c t x let k2 := m62CurvatureSquared F c t x deriv (fun s โ†ฆ m62CurvatureSquared F c s x) t โ‰ค m62ArcSecondDerivative F c t (m62CurvatureSquared F c t) x - 2 * G.metric.inner (G.liftCurve c (x, t)) P P + 2 * k2 ^ 2 + m62C0 K0 K1 K2 * (k2 + m62Curvature F c t x) /-- Curve geometry and estimates on one specified ambient flow. -/ structure M62CurveTheory (F : RicciFlow n M (Set.Icc a b)) where spacetime : M62.SpacetimeData F spacetime_identities : M62.SpacetimeIdentities spacetime curves : โˆ€ c : โ„ โ†’ โ„ โ†’ M, M62ShrinkingCurve F c โ†’ M62CurveLaws spacetime c estimates : โˆ€ K0 K1 K2 : โ„, 0 โ‰ค K0 โ†’ 0 โ‰ค K1 โ†’ 0 โ‰ค K2 โ†’ CurveEvolutionAmbientBounds F K0 K1 K2 โ†’ โˆ€ c : โ„ โ†’ โ„ โ†’ M, M62ShrinkingCurve F c โ†’ M62CurveEstimates F c K0 K1 K2 โˆง M62SpacetimeEstimate spacetime c K0 K1 K2 /-- The pairing with the actual fixed positive circle field. -/ noncomputable def m62Slope {F : RicciFlow n M (Set.Icc a b)} {circumference : โ„} (P : M62.CircleProductData F circumference) (c : โ„ โ†’ โ„ โ†’ P.charts.Point) (t x : โ„) : โ„ := (P.flow.metric t).inner (c x t) (spatialUnitTangent P.flow c t x) (P.charts.circleUnit (c x t)) /-- Claim 19.11's exact equation and its sign-guarded lower inequality. -/ structure M62SlopeLaws {F : RicciFlow n M (Set.Icc a b)} {circumference : โ„} (P : M62.CircleProductData F circumference) (c : โ„ โ†’ โ„ โ†’ P.charts.Point) (K2 : โ„) : Prop where abs_le_one : โˆ€ t โˆˆ Set.Icc a b, โˆ€ x, |m62Slope P c t x| โ‰ค 1 evolution : โˆ€ t โˆˆ Set.Ioo a b, โˆ€ x, HasDerivAt (fun s โ†ฆ m62Slope P c s x) (m62ArcSecondDerivative P.flow c t (m62Slope P c t) x + (m62CurvatureSquared P.flow c t x + m62TangentRicci P.flow c t x) * m62Slope P c t x) t lower_bound : โˆ€ t โˆˆ Set.Ioo a b, โˆ€ x, 0 โ‰ค m62Slope P c t x โ†’ m62ArcSecondDerivative P.flow c t (m62Slope P c t) x - K2 * m62Slope P c t x โ‰ค deriv (fun s โ†ฆ m62Slope P c s x) t /-- An actual circle product, retaining the base flow's three numeric bounds. -/ structure M62CircleConclusion (F : RicciFlow n M (Set.Icc a b)) (circumference K0 K1 K2 : โ„) where product : M62.CircleProductData F circumference product_identities : M62.CircleProductIdentities product bounds : CurveEvolutionAmbientBounds product.flow K0 K1 K2 curve_theory : M62CurveTheory product.flow spacetime_parallel : M62.CircleUnitSpacetimeParallel product curve_theory.spacetime slope : โˆ€ c : โ„ โ†’ โ„ โ†’ product.charts.Point, M62ShrinkingCurve product.flow c โ†’ M62SlopeLaws product c K2 /-- Ambient constants precede all curves and circle circumferences. -/ structure M62FlowConclusion (F : RicciFlow n M (Set.Icc a b)) where K0 : โ„ K1 : โ„ K2 : โ„ nonnegative : 0 โ‰ค K0 โˆง 0 โ‰ค K1 โˆง 0 โ‰ค K2 bounds : CurveEvolutionAmbientBounds F K0 K1 K2 curve_theory : M62CurveTheory F circle_products : โˆ€ circumference : โ„, 0 < circumference โ†’ Nonempty (M62CircleConclusion F circumference K0 K1 K2) /-- Only the universal curvature-calculus field of M04 is needed. -/ def M62CurvatureService : Prop := โˆ€ (n : โ„•) (M : Type u) [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] (g : RiemannianMetric n M) (D : LeviCivitaData g), D.CurvatureTensorCalculus /-- Complete M62 construction on every source-admissible compact ambient flow. -/ def M62CurveEvolutionTheory : Prop := โˆ€ (n : โ„•) (M : Type u) [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] [T2Space M] [SecondCountableTopology M] (a b : โ„) (F : RicciFlow n M (Set.Icc a b)), IsCompact (Set.univ : Set M) โ†’ Nonempty (M62FlowConclusion F) end PoincareMT