import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.FiniteSlab.FiniteLeftSourceFlows import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.FiniteSlab.FiniteLeftStageLimit import PoincareLib.Geometry.RicciFlow.Blowup.Construction.LongTime.ClosedLeftDescent import PoincareLib.Geometry.RicciFlow.Harnack.Regularity /-! # Local finite-left extensions from radius-dependent source cylinders Each precompact stage receives an actual Ricci flow through the left endpoint, agreeing with the retained flow on the old interval. The local time buffer may depend on the stage. Morgan--Tian Claim 11.17, p. 278. -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter open scoped Manifold ContDiff Bundle Topology ENNReal universe u namespace PoincareMT.M30 attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace FlowCarrier.isManifold FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable private theorem finiteLeftStage_openCodomain {X Z : Type*} [TopologicalSpace X] [TopologicalSpace Z] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) X] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) Z] (U : TopologicalSpace.Opens Z) (e : X β†’ U) (he : IsLocalDiffeomorph (𝓑 3) (𝓑 3) ∞ ((Subtype.val : U β†’ Z) ∘ e)) : IsLocalDiffeomorph (𝓑 3) (𝓑 3) ∞ e := by have hU := Poincare.isLocalDiffeomorph_opensSubtypeVal (𝓑 3) U intro x have hix := hU (e x) apply ((he x).comp (𝓑 3) U hix.localInverse_isLocalDiffeomorphAt).congr_of_eventuallyEq filter_upwards [(he x).contMDiffAt.continuousAt.preimage_mem_nhds (hix.localInverse.open_source.mem_nhds hix.localInverse_mem_source)] with y hy exact Subtype.ext (hix.localInverse_right_inv hy).symm set_option synthInstance.maxHeartbeats 200000 in -- The retained source, open-stage and selected-chart atlases require extra reduction. set_option maxHeartbeats 1800000 in -- The source family and its dependent restriction identities are assembled together. /-- Radius-dependent source cylinders give an actual extension on each buffered precompact open stage of the old limit. -/ theorem exists_nonnegative_left_extension_on_stage (hShi : LocalCurvatureDerivativeEstimates.{u}) {S : GeneralizedBlowupSequence.{u}} {T : ℝ} (hT : 0 < T) (G : GeneralizedBlowupConvergence S (Ioc (-T) 0)) (hbranch : βˆ€ k, generalizedPinchedOrNonnegative (S.flow k)) (hcompact : βˆ€ A : ℝ, 0 < A β†’ βˆ€αΆ  k : β„• in atTop, IsCompact (closure (S.baseBall (G.subsequence k) A))) (hcyl : βˆ€ A : ℝ, 0 < A β†’ βˆƒ delta : ℝ, 0 < delta ∧ βˆƒ B : ℝ, 0 ≀ B ∧ βˆ€αΆ  k : β„• in atTop, Nonempty (ControlledBlowupCylinder S (G.subsequence k) A (T + delta) B 1)) (Y Yplus : TopologicalSpace.Opens G.limit.carrier.carrier) (hY : IsCompact (closure (Y : Set G.limit.carrier.carrier))) (hYne : (Y : Set G.limit.carrier.carrier).Nonempty) (hYplus : IsCompact (closure (Yplus : Set G.limit.carrier.carrier))) (hbuffer : closure (Y : Set G.limit.carrier.carrier) βŠ† Yplus) : βˆƒ delta : ℝ, 0 < delta ∧ βˆƒ F : RicciFlow 3 Y (Icc (-(T + delta)) 0), (βˆ€ t ∈ Ioc (-T) 0, βˆ€ (x : Y) (v w : TangentSpace (𝓑 3) x), (F.metric t).inner x v w = (G.limit.flow.metric t).inner x.val (mfderiv (𝓑 3) (𝓑 3) (Subtype.val : Y β†’ G.limit.carrier.carrier) x v) (mfderiv (𝓑 3) (𝓑 3) (Subtype.val : Y β†’ G.limit.carrier.carrier) x w)) ∧ βˆ€ t ∈ Icc (-(T + delta)) 0, βˆ€ x : Y, (F.connection t).NonnegativeCurvatureOperator x := by classical obtain ⟨W, delta, B, _, hdelta, _, N, E, f, P, _hf, hstage, _hzero, _hball, _hpull, _hnative, hmatch, hcurv, hdefect⟩ := exists_extended_source_flows_on_generalized_stage hShi hT G hbranch hcompact hcyl Yplus hYplus let tau := T + delta / 2 have hTtau : T < tau := by dsimp [tau]; linarith have htau : 0 < tau := hT.trans hTtau have hJsub : Icc (-tau) 0 βŠ† Icc (-(T + delta)) 0 := by intro t ht exact ⟨by dsimp [tau] at ht; linarith [ht.1], ht.2⟩ have hJne : (Icc (-tau) (0 : ℝ)).Nontrivial := ⟨-tau, ⟨le_rfl, by linarith⟩, 0, ⟨by linarith, le_rfl⟩, by linarith⟩ let P0 (k : β„•) : RicciFlow 3 Yplus (Icc (-tau) 0) := Poincare.Geometry.RicciFlow.Harnack.restrictFlow (P k) hJsub ordConnected_Icc hJne have hstage0 (k : β„•) : (Yplus : Set G.limit.carrier.carrier) βŠ† G.exhaustion.space (k + N) := subset_closure.trans (hstage k) have hmatch0 : βˆ€ k s (_hs : s ∈ Icc (-tau) 0) (hsG : s ∈ Icc (-G.exhaustion.time (k + N)) 0) (x : Yplus) (v w : TangentSpace (𝓑 3) x), ((P0 k).metric s).inner x v w = (G.embedding (k + N)).pullbackInner s hsG x.val (mfderiv (𝓑 3) (𝓑 3) (Subtype.val : Yplus β†’ G.limit.carrier.carrier) x v) (mfderiv (𝓑 3) (𝓑 3) (Subtype.val : Yplus β†’ G.limit.carrier.carrier) x w) := fun k s hs hsG x v w => hmatch k s (hJsub hs) hsG x v w have hdefect0 (eta : ℝ) (heta : 0 < eta) : βˆ€αΆ  k : β„• in atTop, βˆ€ t ∈ Icc (-tau) 0, βˆ€ x : Yplus, ((P0 k).connection t).negativeCurvaturePart x ≀ eta := (hdefect eta heta).mono fun k hk t ht x => hk t (hJsub ht) x obtain ⟨L⟩ := exists_finiteLeftStageLimit hT hTtau G Yplus N P0 hstage0 hmatch0 hcurv hdefect0 (closure (Y : Set G.limit.carrier.carrier)) hY (hYne.mono subset_closure) hbuffer let inc : Y β†’ L.domain := fun x => ⟨x.val, L.contains (subset_closure x.property)⟩ have hinc : IsLocalDiffeomorph (𝓑 3) (𝓑 3) ∞ inc := finiteLeftStage_openCodomain L.domain inc (Poincare.isLocalDiffeomorph_opensSubtypeVal (𝓑 3) Y) have hLinc := Poincare.isLocalDiffeomorph_opensSubtypeVal (𝓑 3) L.domain let F : RicciFlow 3 Y (Icc (-tau) 0) := L.flow.pullbackWithConnection inc hinc (fun t => ((L.flow.metric t).pullbackOfLocalDiffeomorph inc hinc).leviCivitaData) refine ⟨delta / 2, half_pos hdelta, F, ?_, ?_⟩ Β· intro t ht x v w change (L.flow.metric t).inner (inc x) (mfderiv (𝓑 3) (𝓑 3) inc x v) (mfderiv (𝓑 3) (𝓑 3) inc x w) = _ rw [L.interior_metric t ht] have hd := mfderiv_comp x ((hLinc (inc x)).mdifferentiableAt (by simp)) ((hinc x).mdifferentiableAt (by simp)) change mfderiv (𝓑 3) (𝓑 3) (Subtype.val : Y β†’ G.limit.carrier.carrier) x = (mfderiv (𝓑 3) (𝓑 3) (Subtype.val : L.domain β†’ G.limit.carrier.carrier) (inc x)).comp (mfderiv (𝓑 3) (𝓑 3) inc x) at hd exact congrArgβ‚‚ (fun a b => (G.limit.flow.metric t).inner x.val a b) (congrArg (fun A => A v) hd).symm (congrArg (fun A => A w) hd).symm Β· intro t ht x exact ((F.connection t).nonnegativeCurvatureOperator_iff_of_local_isometry (L.flow.connection t) isOpen_univ hinc.contMDiff.contMDiffOn (fun _ _ _ _ => rfl) (mem_univ x)).mpr (L.nonnegative t ht (inc x)) /-- Terminal metric balls satisfy the compact-buffer hypotheses of the local extension theorem by completeness of the old finite limit. -/ theorem exists_nonnegative_left_extension_on_terminal_ball (hShi : LocalCurvatureDerivativeEstimates.{u}) {S : GeneralizedBlowupSequence.{u}} {T : ℝ} (hT : 0 < T) (G : GeneralizedBlowupConvergence S (Ioc (-T) 0)) (hbranch : βˆ€ k, generalizedPinchedOrNonnegative (S.flow k)) (hcompact : βˆ€ A : ℝ, 0 < A β†’ βˆ€αΆ  k : β„• in atTop, IsCompact (closure (S.baseBall (G.subsequence k) A))) (hcyl : βˆ€ A : ℝ, 0 < A β†’ βˆƒ delta : ℝ, 0 < delta ∧ βˆƒ B : ℝ, 0 ≀ B ∧ βˆ€αΆ  k : β„• in atTop, Nonempty (ControlledBlowupCylinder S (G.subsequence k) A (T + delta) B 1)) (A : ℝ) (hA : 0 < A) (Y : TopologicalSpace.Opens G.limit.carrier.carrier) (hY : (Y : Set G.limit.carrier.carrier) = (G.limit.flow.metric 0).ball G.limit.base A) : βˆƒ delta : ℝ, 0 < delta ∧ βˆƒ F : RicciFlow 3 Y (Icc (-(T + delta)) 0), (βˆ€ t ∈ Ioc (-T) 0, βˆ€ (x : Y) (v w : TangentSpace (𝓑 3) x), (F.metric t).inner x v w = (G.limit.flow.metric t).inner x.val (mfderiv (𝓑 3) (𝓑 3) (Subtype.val : Y β†’ G.limit.carrier.carrier) x v) (mfderiv (𝓑 3) (𝓑 3) (Subtype.val : Y β†’ G.limit.carrier.carrier) x w)) ∧ βˆ€ t ∈ Icc (-(T + delta)) 0, βˆ€ x : Y, (F.connection t).NonnegativeCurvatureOperator x := by let g := G.limit.flow.metric 0 let : MetricSpace G.limit.carrier.carrier := G.limit.carrier.metricSpaceOf g have hball (r : ℝ) : Metric.ball G.limit.base r = g.ball G.limit.base r := by simpa only [FlowCarrier.metricBall] using G.limit.carrier.metricBall_eq_metricBallOf g G.limit.base r have hcompactBall (r : ℝ) : IsCompact (closure (g.ball G.limit.base r)) := by apply IsCompact.of_isClosed_subset (g.isCompact_closedBall_of_metricComplete (G.limit.complete 0 G.limit.zero_mem) G.limit.base r) isClosed_closure apply closure_minimal (fun x (hx : g.edist G.limit.base x < ENNReal.ofReal r) => hx.le) exact isClosed_le (continuous_const.edist continuous_id) continuous_const let Yplus : TopologicalSpace.Opens G.limit.carrier.carrier := ⟨g.ball G.limit.base (A + 1), by rw [← hball]; exact Metric.isOpen_ball⟩ have hYcompact : IsCompact (closure (Y : Set G.limit.carrier.carrier)) := by rw [hY] exact hcompactBall A have hYne : (Y : Set G.limit.carrier.carrier).Nonempty := by rw [hY, ← hball] exact ⟨G.limit.base, Metric.mem_ball_self hA⟩ have hbuffer : closure (Y : Set G.limit.carrier.carrier) βŠ† Yplus := by change closure (Y : Set G.limit.carrier.carrier) βŠ† g.ball G.limit.base (A + 1) rw [hY, ← hball, ← hball] exact Metric.closure_ball_subset_closedBall.trans (Metric.closedBall_subset_ball (by linarith)) exact exists_nonnegative_left_extension_on_stage hShi hT G hbranch hcompact hcyl Y Yplus hYcompact hYne (hcompactBall (A + 1)) hbuffer /-- Radius-dependent source control adds a complete, nonnegative left endpoint to the old limit, while retaining local backward extensions. No global curvature bound at that endpoint is an input. -/ theorem exists_complete_closed_left_extension_of_radius_dependent_cylinders (hShi : LocalCurvatureDerivativeEstimates.{u}) {S : GeneralizedBlowupSequence.{u}} {T : ℝ} (hT : 0 < T) (G : GeneralizedBlowupConvergence S (Ioc (-T) 0)) (hbranch : βˆ€ k, generalizedPinchedOrNonnegative (S.flow k)) (hcompact : βˆ€ A : ℝ, 0 < A β†’ βˆ€αΆ  k : β„• in atTop, IsCompact (closure (S.baseBall (G.subsequence k) A))) (hcyl : βˆ€ A : ℝ, 0 < A β†’ βˆƒ delta : ℝ, 0 < delta ∧ βˆƒ B : ℝ, 0 ≀ B ∧ βˆ€αΆ  k : β„• in atTop, Nonempty (ControlledBlowupCylinder S (G.subsequence k) A (T + delta) B 1)) : βˆƒ Fbar : RicciFlow 3 G.limit.carrier.carrier (Icc (-T) 0), (βˆ€ t ∈ Ioc (-T) 0, Fbar.metric t = G.limit.flow.metric t) ∧ (βˆ€ t ∈ Icc (-T) 0, G.limit.carrier.metricComplete (Fbar.metric t)) ∧ (βˆ€ t ∈ Icc (-T) 0, βˆ€ x : G.limit.carrier.carrier, (Fbar.connection t).NonnegativeCurvatureOperator x) ∧ (βˆ€ (x : G.limit.carrier.carrier) (v : TangentSpace (𝓑 3) x), (G.limit.flow.metric 0).inner x v v ≀ (Fbar.metric (-T)).inner x v v) ∧ βˆ€ A : ℝ, 0 < A β†’ βˆ€ U : TopologicalSpace.Opens G.limit.carrier.carrier, (U : Set G.limit.carrier.carrier) = (G.limit.flow.metric 0).ball G.limit.base A β†’ βˆƒ delta : ℝ, 0 < delta ∧ βˆƒ P : RicciFlow 3 U (Icc (-(T + delta)) 0), (βˆ€ t ∈ Icc (-T) 0, βˆ€ (x : U) (v w : TangentSpace (𝓑 3) x), (P.metric t).inner x v w = (Fbar.metric t).inner x.val (mfderiv (𝓑 3) (𝓑 3) (Subtype.val : U β†’ G.limit.carrier.carrier) x v) (mfderiv (𝓑 3) (𝓑 3) (Subtype.val : U β†’ G.limit.carrier.carrier) x w)) ∧ βˆ€ t ∈ Icc (-(T + delta)) 0, βˆ€ x : U, (P.connection t).NonnegativeCurvatureOperator x := by exact exists_closed_left_flow_of_local_extensions hT G (fun A hA U hU => exists_nonnegative_left_extension_on_terminal_ball hShi hT G hbranch hcompact hcyl A hA U hU) end PoincareMT.M30