import PoincareLib.Geometry.RicciFlow.Basic import PoincareLib.Geometry.Riemannian.MetricComparison import PoincareLib.Analysis.ODE.LogDerivative /-! # Local metric comparison along Ricci flow Integrating the actual Ricci-flow equation at a fixed point compares its metrics from a local quadratic-form bound on Ricci. The estimate requires control only at that point and on the intervening time interval. This is the metric-variation step in the local-cylinder argument for Morgan--Tian, Theorem 3.28, p. 51, and Proposition 5.14, pp. 90--91. -/ set_option autoImplicit false open scoped Manifold ContDiff Bundle namespace PoincareMT.RicciFlow /-- Exponential comparison of squared tangent lengths on a convex time set. The Ricci bound is required only at the selected point and vector. -/ theorem metric_inner_self_exp_bounds {n : โ„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] {J I : Set โ„} (F : RicciFlow n M J) (hI : Convex โ„ I) (hIJ : I โІ J) (x : M) (v : TangentSpace (๐“ก n) x) (K : โ„) (hRic : โˆ€ t โˆˆ I, |(F.connection t).ricci x v v| โ‰ค K * (F.metric t).inner x v v) {a b : โ„} (ha : a โˆˆ I) (hb : b โˆˆ I) : Real.exp (-(2 * K) * |b - a|) * (F.metric a).inner x v v โ‰ค (F.metric b).inner x v v โˆง (F.metric b).inner x v v โ‰ค Real.exp ((2 * K) * |b - a|) * (F.metric a).inner x v v := by by_cases hv : v = 0 ยท subst v simp apply Poincare.exp_bounds_of_abs_deriv_le_mul hI (fun t _ โ†ฆ (F.metric t).pos x v hv) (fun t ht โ†ฆ (F.equation t (hIJ ht) x v v).mono hIJ) ?_ ha hb intro t ht calc |-2 * (F.connection t).ricci x v v| = 2 * |(F.connection t).ricci x v v| := by rw [abs_mul]; norm_num _ โ‰ค 2 * (K * (F.metric t).inner x v v) := mul_le_mul_of_nonneg_left (hRic t ht) (by norm_num) _ = (2 * K) * (F.metric t).inner x v v := by ring variable {n : โ„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin n)) M] [IsManifold (๐“ก n) โˆž M] {J : Set โ„} /-- The corresponding comparison of tangent norms has half the exponent. -/ theorem tangentNorm_le_exp_of_ricci_bound (F : RicciFlow n M J) {I : Set โ„} (hI : Convex โ„ I) (hIJ : I โІ J) (x : M) (v : TangentSpace (๐“ก n) x) (K : โ„) (hRic : โˆ€ t โˆˆ I, |(F.connection t).ricci x v v| โ‰ค K * (F.metric t).inner x v v) {s t : โ„} (hs : s โˆˆ I) (ht : t โˆˆ I) : (F.metric t).tangentNorm x v โ‰ค Real.exp (K * |t - s|) * (F.metric s).tangentNorm x v := by have h := (F.metric_inner_self_exp_bounds hI hIJ x v K hRic hs ht).2 have hexp : Real.exp ((2 * K) * |t - s|) = Real.exp (K * |t - s|) ^ 2 := by rw [โ† Real.exp_nat_mul] congr 1 ring have hsqrt := Real.sqrt_le_sqrt h rw [hexp, Real.sqrt_mul (sq_nonneg _), Real.sqrt_sq (Real.exp_nonneg _)] at hsqrt exact hsqrt /-- A Ricci bound on a reference-time ball controls its radius at other times. -/ theorem ball_subset_ball_of_ricci_bound (F : RicciFlow n M J) {I : Set โ„} (hI : Convex โ„ I) (hIJ : I โІ J) (p : M) (r K : โ„) {s t : โ„} (hs : s โˆˆ I) (ht : t โˆˆ I) (hRic : โˆ€ ฯ„ โˆˆ I, โˆ€ x โˆˆ (F.metric s).ball p r, โˆ€ v : TangentSpace (๐“ก n) x, |(F.connection ฯ„).ricci x v v| โ‰ค K * (F.metric ฯ„).inner x v v) : (F.metric s).ball p r โІ (F.metric t).ball p (Real.exp (K * |t - s|) * r) := by apply RiemannianMetric.ball_subset_ball_of_tangentNorm_le _ _ _ _ _ (Real.exp_pos _) intro x hx v exact F.tangentNorm_le_exp_of_ricci_bound hI hIJ x v K (fun ฯ„ hฯ„ โ†ฆ hRic ฯ„ hฯ„ x hx v) hs ht /-- Local Ricci control bounds distances between points of a reference ball. The larger control ball accommodates paths approaching the reference distance. -/ theorem edist_le_exp_mul_of_ricci_bound (F : RicciFlow n M J) {I : Set โ„} (hI : Convex โ„ I) (hIJ : I โІ J) (p : M) (r K : โ„) (hr : 0 < r) {s t : โ„} (hs : s โˆˆ I) (ht : t โˆˆ I) (hRic : โˆ€ ฯ„ โˆˆ I, โˆ€ z โˆˆ (F.metric s).ball p (3 * r), โˆ€ v : TangentSpace (๐“ก n) z, |(F.connection ฯ„).ricci z v v| โ‰ค K * (F.metric ฯ„).inner z v v) {x y : M} (hx : x โˆˆ (F.metric s).ball p r) (hy : y โˆˆ (F.metric s).ball p r) : (F.metric t).edist x y โ‰ค ENNReal.ofReal (Real.exp (K * |t - s|)) * (F.metric s).edist x y := by apply RiemannianMetric.edist_le_mul_edist_of_tangentNorm_le_on_ball _ _ p r _ hr (Real.exp_pos _) _ hx hy intro z hz v exact F.tangentNorm_le_exp_of_ricci_bound hI hIJ z v K (fun ฯ„ hฯ„ โ†ฆ hRic ฯ„ hฯ„ z hz v) hs ht end PoincareMT.RicciFlow