import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Coordinates.JetSlices import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.ScalarRatio.Annular.ChartFlow import PoincareLib.Geometry.RicciFlow.Compactness.Pointed import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.ScalarRatio.Annular.FlowEquation import PoincareLib.Geometry.RicciFlow.MetricFamily.Coordinates import PoincareLib.Geometry.Riemannian.Connection.OpenDomain import PoincareLib.Geometry.Riemannian.Coordinates.CanonicalDomain /-! # Local ancient flows on arbitrary coordinate balls Positive smooth bilinear limits construct actual metric families on an open spatial domain. Closed-domain jet slicing and the within-time equation passage retain the Ricci-flow equation at the terminal time. This is the local realization step in Kleiner--Lott (corrected 2013), Theorem 41.2, Case 1, pp. 2674--2675. The smooth coefficient limit and its positivity are constructed separately by the annular compactness producers. -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false set_option maxSynthPendingDepth 8 set_option synthInstance.maxHeartbeats 100000 open Set Filter Metric TopologicalSpace open scoped Manifold ContDiff Bundle Topology universe u namespace PoincareMT.RiemannianMetric private theorem pullbackCoefficients_openChart {n : โ„•} (U : Opens (EuclideanSpace โ„ (Fin n))) (g : RiemannianMetric n U) (p x : U) : g.pullbackCoefficients (extChartAt (๐“ก n) p).symm (x : EuclideanSpace โ„ (Fin n)) = g.inner x := by have hd := mfderivWithin_range_extChartAt_symm (I := ๐“ก n) (x := x) rw [ModelWithCorners.range_eq_univ, mfderivWithin_univ] at hd have hc : extChartAt (๐“ก n) p = extChartAt (๐“ก n) x := by simp [extChartAt, Opens.chartAt_eq] rw [hc] ext v w change g.inner ((extChartAt (๐“ก n) x).symm x) (mfderiv (๐“ก n) (๐“ก n) (extChartAt (๐“ก n) x).symm x v) (mfderiv (๐“ก n) (๐“ก n) (extChartAt (๐“ก n) x).symm x w) = g.inner x v w have hx : (extChartAt (๐“ก n) x).symm (x : EuclideanSpace โ„ (Fin n)) = x := (extChartAt (๐“ก n) x).left_inv (mem_extChartAt_source x) change mfderiv (๐“ก n) (๐“ก n) (extChartAt (๐“ก n) x).symm (x : EuclideanSpace โ„ (Fin n)) = ContinuousLinearMap.id โ„ _ at hd rw [hd, hx] rfl private theorem iteratedFDeriv_openChart_eq {n : โ„•} (U : Opens (EuclideanSpace โ„ (Fin n))) (g : RiemannianMetric n U) (B : EuclideanSpace โ„ (Fin n) โ†’ EuclideanSpace โ„ (Fin n) โ†’L[โ„] EuclideanSpace โ„ (Fin n) โ†’L[โ„] โ„) (hcoeff : โˆ€ (x : U) v w, g.inner x v w = B x v w) (x : U) (v w : EuclideanSpace โ„ (Fin n)) (r : โ„•) : iteratedFDeriv โ„ r (fun y => g.pullbackCoefficients (extChartAt (๐“ก n) x).symm y v w) (extChartAt (๐“ก n) x x) = iteratedFDeriv โ„ r (fun y => B y v w) x := by have heq : (fun y => g.pullbackCoefficients (extChartAt (๐“ก n) x).symm y v w) =แถ [๐“ (x : EuclideanSpace โ„ (Fin n))] (fun y => B y v w) := by filter_upwards [U.isOpen.mem_nhds x.property] with y hy rw [pullbackCoefficients_openChart U g x โŸจy, hyโŸฉ] exact hcoeff โŸจy, hyโŸฉ v w exact (heq.iteratedFDeriv โ„ r).eq_of_nhds end PoincareMT.RiemannianMetric namespace PoincareMT.RicciFlow private theorem scalar_slices_of_bilinear_jets {n : โ„•} {xโ‚€ : EuclideanSpace โ„ (Fin n)} {ฯ : โ„} (hฯ : 0 < ฯ) (Bseq : โ„• โ†’ โ„ ร— EuclideanSpace โ„ (Fin n) โ†’ EuclideanSpace โ„ (Fin n) โ†’L[โ„] EuclideanSpace โ„ (Fin n) โ†’L[โ„] โ„) (B : โ„ ร— EuclideanSpace โ„ (Fin n) โ†’ EuclideanSpace โ„ (Fin n) โ†’L[โ„] EuclideanSpace โ„ (Fin n) โ†’L[โ„] โ„) (hseq : โˆ€ k, ContDiffOn โ„ โˆž (Bseq k) (Iic 0 ร—หข closedBall xโ‚€ ฯ)) (hB : ContDiffOn โ„ โˆž B (Iic 0 ร—หข closedBall xโ‚€ ฯ)) {t : โ„} (ht : t โ‰ค 0) {x : EuclideanSpace โ„ (Fin n)} (hx : x โˆˆ ball xโ‚€ ฯ) (hjet : โˆ€ r, Tendsto (fun k => iteratedFDerivWithin โ„ r (Bseq k) (Iic 0 ร—หข closedBall xโ‚€ ฯ) (t, x)) atTop (๐“ (iteratedFDerivWithin โ„ r B (Iic 0 ร—หข closedBall xโ‚€ ฯ) (t, x)))) (v w : EuclideanSpace โ„ (Fin n)) : (โˆ€ r, Tendsto (fun k => iteratedFDeriv โ„ r (fun y => Bseq k (t, y) v w) x) atTop (๐“ (iteratedFDeriv โ„ r (fun y => B (t, y) v w) x))) โˆง Tendsto (fun k => derivWithin (fun s => Bseq k (s, x) v w) (Iic 0) t) atTop (๐“ (derivWithin (fun s => B (s, x) v w) (Iic 0) t)) := by let E := EuclideanSpace โ„ (Fin n) let L : (E โ†’L[โ„] E โ†’L[โ„] โ„) โ†’L[โ„] โ„ := (ContinuousLinearMap.apply โ„ โ„ w).comp (ContinuousLinearMap.apply โ„ (E โ†’L[โ„] โ„) v) have huBall : UniqueDiffOn โ„ (closedBall xโ‚€ ฯ) := by apply uniqueDiffOn_convex (convex_closedBall xโ‚€ ฯ) rw [interior_closedBall xโ‚€ hฯ.ne'] exact โŸจxโ‚€, by simpa using hฯโŸฉ have hu := (uniqueDiffOn_Iic 0).prod huBall have hp : (t, x) โˆˆ Iic 0 ร—หข closedBall xโ‚€ ฯ := โŸจht, ball_subset_closedBall hxโŸฉ have hs (C : โ„ ร— E โ†’ E โ†’L[โ„] E โ†’L[โ„] โ„) (hC : ContDiffOn โ„ โˆž C (Iic 0 ร—หข closedBall xโ‚€ ฯ)) : ContDiffOn โ„ โˆž (fun z => C z v w) (Iic 0 ร—หข closedBall xโ‚€ ฯ) := (hC.clm_apply contDiffOn_const).clm_apply contDiffOn_const have heq (C : โ„ ร— E โ†’ E โ†’L[โ„] E โ†’L[โ„] โ„) (hC : ContDiffOn โ„ โˆž C (Iic 0 ร—หข closedBall xโ‚€ ฯ)) (r : โ„•) : iteratedFDerivWithin โ„ r (fun z => C z v w) (Iic 0 ร—หข closedBall xโ‚€ ฯ) (t, x) = L.compContinuousMultilinearMap (iteratedFDerivWithin โ„ r C (Iic 0 ร—หข closedBall xโ‚€ ฯ) (t, x)) := by exact L.iteratedFDerivWithin_comp_left (hC (t, x) hp) hu hp (WithTop.coe_le_coe.mpr (le_top : (r : โ„•โˆž) โ‰ค โŠค)) have hj (r : โ„•) : Tendsto (fun k => iteratedFDerivWithin โ„ r (fun z => Bseq k z v w) (Iic 0 ร—หข closedBall xโ‚€ ฯ) (t, x)) atTop (๐“ (iteratedFDerivWithin โ„ r (fun z => B z v w) (Iic 0 ร—หข closedBall xโ‚€ ฯ) (t, x))) := by rw [heq B hB r] have hpost := ((ContinuousLinearMap.compContinuousMultilinearMapL โ„ (fun _ : Fin r => โ„ ร— E) (E โ†’L[โ„] E โ†’L[โ„] โ„) โ„ L).continuous.tendsto _).comp (hjet r) exact hpost.congr (fun k => (heq (Bseq k) (hseq k) r).symm) exact โŸจfun r => PoincareMT.AncientCompactness.tendsto_spatial_slice_jet_of_centered_halfCylinder hฯ _ _ (fun k => hs _ (hseq k)) (hs _ hB) ht hx r (hj r), PoincareMT.AncientCompactness.tendsto_derivWithin_time_slice_of_centered_halfCylinder hฯ _ _ (fun k => hs _ (hseq k)) (hs _ hB) ht (ball_subset_closedBall hx) (hj 1)โŸฉ /-- Actual ancient source flows and their closed spacetime coefficient jets construct an actual local limit flow, retaining time zero. Positivity is needed only on the chosen open spatial subdomain. -/ theorem exists_of_ancient_centered_halfCylinder_coefficients {n : โ„•} {xโ‚€ : EuclideanSpace โ„ (Fin n)} {ฯ : โ„} (hฯ : 0 < ฯ) (U : Opens (EuclideanSpace โ„ (Fin n))) (hU : (U : Set (EuclideanSpace โ„ (Fin n))) โІ ball xโ‚€ ฯ) (Fseq : โ„• โ†’ RicciFlow n U (Iic 0)) (Bseq : โ„• โ†’ โ„ ร— EuclideanSpace โ„ (Fin n) โ†’ EuclideanSpace โ„ (Fin n) โ†’L[โ„] EuclideanSpace โ„ (Fin n) โ†’L[โ„] โ„) (B : โ„ ร— EuclideanSpace โ„ (Fin n) โ†’ EuclideanSpace โ„ (Fin n) โ†’L[โ„] EuclideanSpace โ„ (Fin n) โ†’L[โ„] โ„) (hseq : โˆ€ k, ContDiffOn โ„ โˆž (Bseq k) (Iic 0 ร—หข closedBall xโ‚€ ฯ)) (hB : ContDiffOn โ„ โˆž B (Iic 0 ร—หข closedBall xโ‚€ ฯ)) (hcoeff : โˆ€ k t, t โ‰ค 0 โ†’ โˆ€ (x : U) (v w : TangentSpace (๐“ก n) x), ((Fseq k).metric t).inner x v w = Bseq k (t, x) v w) (hsymm : โˆ€ t โ‰ค 0, โˆ€ x โˆˆ U, โˆ€ v w, B (t, x) v w = B (t, x) w v) (hlower : โˆ€ t โ‰ค 0, โˆ€ x โˆˆ U, โˆƒ c : โ„, 0 < c โˆง โˆ€ v, c * โ€–vโ€– ^ 2 โ‰ค B (t, x) v v) (hjet : โˆ€ r K, IsCompact K โ†’ K โІ Iic 0 ร—หข closedBall xโ‚€ ฯ โ†’ TendstoUniformlyOn (fun k => iteratedFDerivWithin โ„ r (Bseq k) (Iic 0 ร—หข closedBall xโ‚€ ฯ)) (iteratedFDerivWithin โ„ r B (Iic 0 ร—หข closedBall xโ‚€ ฯ)) atTop K) : โˆƒ F : RicciFlow n U (Iic 0), โˆ€ t โ‰ค 0, โˆ€ (x : U) (v w : TangentSpace (๐“ก n) x), (F.metric t).inner x v w = B (t, x) v w := by obtain โŸจg, hg, hgcoeffโŸฉ := RiemannianMetric.exists_smoothFamily_of_ancient_coefficients U B (hB.mono (prod_mono subset_rfl (hU.trans ball_subset_closedBall))) hsymm hlower let D : โˆ€ t, LeviCivitaData (g t) := fun t => (g t).openEuclideanLeviCivitaData U have hj (t : โ„) (ht : t โ‰ค 0) (x : U) (v w : EuclideanSpace โ„ (Fin n)) := by apply scalar_slices_of_bilinear_jets hฯ Bseq B hseq hB ht (hU x.property) ?_ v w intro r exact (hjet r {(t, (x : EuclideanSpace โ„ (Fin n)))} isCompact_singleton (singleton_subset_iff.mpr โŸจht, ball_subset_closedBall (hU x.property)โŸฉ)).tendsto_at (mem_singleton _) have heq := equation_of_coordinate_jets_within Fseq g D (uniqueDiffOn_Iic 0) hg have hequation : โˆ€ t โˆˆ Iic (0 : โ„), โˆ€ (x : U) (v w : TangentSpace (๐“ก n) x), HasDerivWithinAt (fun s => (g s).inner x v w) (-2 * (D t).ricci x v w) (Iic 0) t := by apply heq ยท intro t ht x r _ a c simpa only [RiemannianMetric.iteratedFDeriv_openChart_eq U (g t) (fun y => B (t, y)) (hgcoeff t ht), RiemannianMetric.iteratedFDeriv_openChart_eq U ((Fseq _).metric t) (fun y => Bseq _ (t, y)) (hcoeff _ t ht)] using (hj t ht x (EuclideanSpace.basisFun (Fin n) โ„ a) (EuclideanSpace.basisFun (Fin n) โ„ c)).1 r ยท intro t ht x v w have hlim : derivWithin (fun s => (g s).inner x v w) (Iic 0) t = derivWithin (fun s => B (s, x) v w) (Iic 0) t := derivWithin_congr (fun s hs => hgcoeff s hs x v w) (hgcoeff t ht x v w) have hsrc (k : โ„•) : derivWithin (fun s => ((Fseq k).metric s).inner x v w) (Iic 0) t = derivWithin (fun s => Bseq k (s, x) v w) (Iic 0) t := derivWithin_congr (fun s hs => hcoeff k s hs x v w) (hcoeff k t ht x v w) simpa only [hlim, hsrc] using (hj t ht x v w).2 exact โŸจ{ metric := g connection := D interval := (Fseq 0).interval nontrivial := (Fseq 0).nontrivial smooth := hg equation := hequation }, hgcoeffโŸฉ attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace FlowCarrier.isManifold /-- Eventual partial-chart domains and closed jets of varying source flows realize a terminal chart flow on any centered coordinate ball. The limiting coefficients are those of the original sequence. -/ theorem exists_ancient_limit_of_eventual_partial_chart_coefficients {n : โ„•} (C : โ„• โ†’ FlowCarrier.{u} n) {xโ‚€ : EuclideanSpace โ„ (Fin n)} {ฯ : โ„} (hฯ : 0 < ฯ) (Fseq : โˆ€ k, RicciFlow n (C k).carrier (Iic 0)) (ฮฆ : โˆ€ k, PartialDiffeomorph (๐“ก n) (๐“ก n) (EuclideanSpace โ„ (Fin n)) (C k).carrier โˆž) (hsource : โˆ€แถ  k : โ„• in atTop, closedBall xโ‚€ ฯ โІ (ฮฆ k).source) (U : Opens (EuclideanSpace โ„ (Fin n))) (hU : (U : Set (EuclideanSpace โ„ (Fin n))) โІ ball xโ‚€ ฯ) (B : โ„ ร— EuclideanSpace โ„ (Fin n) โ†’ EuclideanSpace โ„ (Fin n) โ†’L[โ„] EuclideanSpace โ„ (Fin n) โ†’L[โ„] โ„) (hB : ContDiffOn โ„ โˆž B (Iic 0 ร—หข closedBall xโ‚€ ฯ)) (hsymm : โˆ€ t โ‰ค 0, โˆ€ x โˆˆ U, โˆ€ v w, B (t, x) v w = B (t, x) w v) (hlower : โˆ€ t โ‰ค 0, โˆ€ x โˆˆ U, โˆƒ c : โ„, 0 < c โˆง โˆ€ v, c * โ€–vโ€– ^ 2 โ‰ค B (t, x) v v) (hjet : โˆ€ r K, IsCompact K โ†’ K โІ Iic 0 ร—หข closedBall xโ‚€ ฯ โ†’ TendstoUniformlyOn (fun k => iteratedFDerivWithin โ„ r (fun z : โ„ ร— EuclideanSpace โ„ (Fin n) => ((Fseq k).metric z.1).pullbackCoefficients (ฮฆ k) z.2) (Iic 0 ร—หข closedBall xโ‚€ ฯ)) (iteratedFDerivWithin โ„ r B (Iic 0 ร—หข closedBall xโ‚€ ฯ)) atTop K) : โˆƒ F : RicciFlow n U (Iic 0), โˆ€ t โ‰ค 0, โˆ€ (x : U) (v w : TangentSpace (๐“ก n) x), (F.metric t).inner x v w = B (t, x) v w := by obtain โŸจN, hNโŸฉ := eventually_atTop.mp hsource have hUฮฆ (k : โ„•) : (U : Set (EuclideanSpace โ„ (Fin n))) โІ (ฮฆ (max k N)).source := (hU.trans ball_subset_closedBall).trans (hN _ (le_max_right k N)) let Fchart (k : โ„•) := (Fseq (max k N)).pullbackToPartialChart (ฮฆ (max k N)) U (hUฮฆ k) apply exists_of_ancient_centered_halfCylinder_coefficients hฯ U hU Fchart (fun k z => ((Fseq (max k N)).metric z.1).pullbackCoefficients (ฮฆ (max k N)) z.2) B ?_ hB ?_ hsymm hlower ?_ ยท intro k exact ((Fseq (max k N)).contDiffOn_pullbackCoefficients_within (ฮฆ (max k N)).open_source (ฮฆ (max k N)).contMDiffOn_toFun).mono (prod_mono subset_rfl (hN _ (le_max_right k N))) ยท intro k t _ x v w exact pullbackToPartialChart_inner (Fseq (max k N)) (ฮฆ (max k N)) U (hUฮฆ k) t x v w ยท intro r K hK hKฮฉ apply (hjet r K hK hKฮฉ).congr filter_upwards [eventually_ge_atTop N] with k hk z _ rw [max_eq_left hk] end PoincareMT.RicciFlow