import PoincareLib.Geometry.RicciFlow.Compactness.Coordinates.Covering import PoincareLib.Geometry.RicciFlow.Compactness.Coordinates.JetBounds /-! # Fixed finite indices for the controlled source charts Repetitions pad each finite cover to a fixed index set, with index zero at the basepoint. The normalized charts retain their distance, coefficient and compact coverage estimates. Jet bounds apply to every such choice of charts. Reference: Morgan--Tian, Theorem 5.6, pp. 86--87, and Proposition 5.14, pp. 90--91. -/ noncomputable section set_option autoImplicit false set_option synthInstance.maxHeartbeats 100000 open Set Filter open scoped Manifold ContDiff Bundle ENNReal Topology namespace PoincareMT /-- A finite family of normalized source charts with fixed indices. -/ structure NormalChartCover {n : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] (g : ℝ β†’ RiemannianMetric n M) (p : M) (T' T A R ρ a b : ℝ) (N : β„•) where centre : Fin (N + 1) β†’ M chart : Fin (N + 1) β†’ PartialDiffeomorph (𝓑 n) (𝓑 n) (EuclideanSpace ℝ (Fin n)) M ∞ centre_zero : centre 0 = p centre_mem : βˆ€ i, centre i ∈ (g 0).ball p A source : βˆ€ i, (chart i).source = Metric.ball 0 R target : βˆ€ i, (chart i).target = (g 0).ball (centre i) R map_zero : βˆ€ i, chart i 0 = centre i normalized : βˆ€ i, βˆƒ L : EuclideanSpace ℝ (Fin n) ≃L[ℝ] EuclideanSpace ℝ (Fin n), (βˆ€ u v, (g 0).pullbackCoefficients (extChartAt (𝓑 n) (centre i)).symm (extChartAt (𝓑 n) (centre i) (centre i)) (L u) (L v) = inner ℝ u v) ∧ HasFDerivAt (fun w => extChartAt (𝓑 n) (centre i) (chart i w)) L.toContinuousLinearMap 0 radial_geodesic : βˆ€ i, βˆ€ w ∈ Metric.ball 0 R, (g 0).IsGeodesicOn (fun t => chart i (t β€’ w)) {t : ℝ | t β€’ w ∈ Metric.ball 0 R} radial_distance : βˆ€ i, βˆ€ w ∈ Metric.ball 0 R, (g 0).edist (centre i) (chart i w) = ENNReal.ofReal β€–wβ€– coefficients : βˆ€ i, βˆ€ t ∈ Ioo T' T, βˆ€ x ∈ Metric.closedBall 0 (2 * ρ), βˆ€ v, a * β€–vβ€– ^ 2 ≀ (g t).pullbackCoefficients (chart i) x v v ∧ (g t).pullbackCoefficients (chart i) x v v ≀ b * β€–vβ€– ^ 2 distances : βˆ€ i, βˆ€ x ∈ Metric.ball 0 (ρ / 2), βˆ€ y ∈ Metric.ball 0 (ρ / 2), Real.sqrt a * dist x y ≀ ((g 0).edist (chart i x) (chart i y)).toReal ∧ ((g 0).edist (chart i x) (chart i y)).toReal ≀ Real.sqrt b * dist x y compact_image : βˆ€ i, IsCompact ((chart i) '' Metric.closedBall 0 (ρ / 4)) cover : (g 0).ball p A βŠ† ⋃ i, (chart i) '' Metric.closedBall 0 (ρ / 4) namespace NormalChartCover /-- A bound on one coefficient jet of all the retained charts. -/ def HasMetricJetBound {n : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {g : ℝ β†’ RiemannianMetric n M} {p : M} {T' T A R ρ a b : ℝ} {N : β„•} (C : NormalChartCover g p T' T A R ρ a b N) (m : β„•) (B : ℝ) : Prop := βˆ€ i x, x ∈ Metric.closedBall 0 ρ β†’ β€–iteratedFDeriv ℝ m ((g 0).pullbackCoefficients (C.chart i)) xβ€– ≀ B end NormalChartCover private theorem exists_surjective_fin_with_zero {Ξ± : Type*} [Fintype Ξ±] (a : Ξ±) {N : β„•} (hN : Fintype.card Ξ± ≀ N) : βˆƒ f : Fin (N + 1) β†’ Ξ±, f 0 = a ∧ Function.Surjective f := by classical let : Nonempty Ξ± := ⟨a⟩ let e : Ξ± β†ͺ Fin N := { toFun := fun x => ⟨(Fintype.equivFin Ξ± x).val, (Fintype.equivFin Ξ± x).isLt.trans_le hN⟩ inj' := fun x y h => (Fintype.equivFin Ξ±).injective (Fin.ext (congrArg (fun z : Fin N => z.val) h)) } refine ⟨Fin.cases a (Function.invFun e), rfl, ?_⟩ intro x exact ⟨(e x).succ, Function.leftInverse_invFun e.injective x⟩ namespace PointedRicciFlowCompactnessHypotheses /-- The source-cover index set is fixed before the sequence index. -/ theorem eventually_nonempty_normalChartCover {n : β„•} {T' T : ℝ} (H : PointedRicciFlowCompactnessHypotheses n T' T) (hn : 1 ≀ n) {A : ℝ} (hA : 0 < A) : βˆƒ R ρ a b : ℝ, 0 < ρ ∧ 2 * ρ < R ∧ 0 < a ∧ 0 < b ∧ βˆƒ N : β„•, βˆ€αΆ  k in atTop, let C := H.sequence.carrier k let F := H.sequence.flow k letI : TopologicalSpace C.carrier := C.topologicalSpace letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace letI : IsManifold (𝓑 n) ∞ C.carrier := C.isManifold Nonempty (NormalChartCover F.metricAt F.base T' T A R ρ a b N) := by classical obtain ⟨R, ρ, a, b, hρ, hρR, ha, hb, N, hcover⟩ := H.eventually_exists_uniform_exponential_cover hn hA refine ⟨R, ρ, a, b, hρ, hρR, ha, hb, N, ?_⟩ filter_upwards [hcover] with k hk let C := H.sequence.carrier k let F := H.sequence.flow k let : TopologicalSpace C.carrier := C.topologicalSpace let : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace let : IsManifold (𝓑 n) ∞ C.carrier := C.isManifold obtain ⟨S, hbase, hS, hN, Ξ¦, hΞ¦, hdist, hcompact, hcover⟩ := hk obtain ⟨f, hf0, hf⟩ := exists_surjective_fin_with_zero (⟨F.base, hbase⟩ : S) (by simpa only [Fintype.card_coe] using hN) choose hsource htarget hzero L hL hderiv hgeo hradial hcoeff using hΞ¦ have hcoverFixed : (F.metricAt 0).ball F.base A βŠ† ⋃ i, (Ξ¦ (f i)) '' Metric.closedBall 0 (ρ / 4) := by intro x hx obtain ⟨q, hq⟩ := mem_iUnion.mp (hcover hx) obtain ⟨i, rfl⟩ := hf q exact mem_iUnion.mpr ⟨i, hq⟩ dsimp only refine ⟨{ centre := fun i => f i chart := fun i => Ξ¦ (f i) centre_zero := congrArg Subtype.val hf0 centre_mem := fun i => hS (f i).property source := fun i => hsource (f i) target := fun i => htarget (f i) map_zero := fun i => hzero (f i) normalized := fun i => ⟨L (f i), hL (f i), hderiv (f i)⟩ radial_geodesic := fun i => hgeo (f i) radial_distance := fun i => hradial (f i) coefficients := fun i => hcoeff (f i) distances := fun i => hdist (f i) compact_image := fun i => hcompact (f i) cover := hcoverFixed }⟩ /-- The order-dependent tail controls every choice of the indexed chart cover. -/ theorem eventually_normalChartCover_metric_jet_bound_of_local_derivative_estimates {n : β„•} {T' T : ℝ} (H : PointedRicciFlowCompactnessHypotheses n T' T) (hShi : LocalCurvatureDerivativeEstimates.{0}) {A R ρ a b : ℝ} {N : β„•} (hA : 0 < A) (hρ : 0 < ρ) (hρR : ρ < R) (m : β„•) : βˆƒ B : ℝ, 0 ≀ B ∧ βˆ€αΆ  k in atTop, let C := H.sequence.carrier k let F := H.sequence.flow k letI : TopologicalSpace C.carrier := C.topologicalSpace letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace letI : IsManifold (𝓑 n) ∞ C.carrier := C.isManifold βˆ€ C : NormalChartCover F.metricAt F.base T' T A R ρ a b N, C.HasMetricJetBound m B := by obtain ⟨B, hB, hbound⟩ := H.eventually_uniform_zero_time_exponential_metric_jet_bound_of_local_derivative_estimates hShi hA hρ hρR m refine ⟨B, hB, ?_⟩ filter_upwards [hbound] with k hk let C := H.sequence.carrier k let F := H.sequence.flow k let : TopologicalSpace C.carrier := C.topologicalSpace let : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace let : IsManifold (𝓑 n) ∞ C.carrier := C.isManifold dsimp only intro C i x hx obtain ⟨L, hL, hderiv⟩ := C.normalized i exact hk (C.centre i) (C.centre_mem i) L (C.chart i) (C.source i) (C.target i) (C.map_zero i) hL hderiv (C.radial_geodesic i) x hx /-- The supplied curvature theory bounds every indexed normal-chart cover. -/ theorem eventually_normalChartCover_metric_jet_bound {n : β„•} {T' T : ℝ} (H : PointedRicciFlowCompactnessHypotheses n T' T) (hM04 : RicciFlowCurvatureTheory.{0}) {A R ρ a b : ℝ} {N : β„•} (hA : 0 < A) (hρ : 0 < ρ) (hρR : ρ < R) (m : β„•) : βˆƒ B : ℝ, 0 ≀ B ∧ βˆ€αΆ  k in atTop, let C := H.sequence.carrier k let F := H.sequence.flow k letI : TopologicalSpace C.carrier := C.topologicalSpace letI : ChartedSpace (EuclideanSpace ℝ (Fin n)) C.carrier := C.chartedSpace letI : IsManifold (𝓑 n) ∞ C.carrier := C.isManifold βˆ€ C : NormalChartCover F.metricAt F.base T' T A R ρ a b N, C.HasMetricJetBound m B := H.eventually_normalChartCover_metric_jet_bound_of_local_derivative_estimates hM04.local_derivative_estimates hA hρ hρR m end PointedRicciFlowCompactnessHypotheses end PoincareMT