import PoincareLib.Geometry.RicciFlow.Compactness.GeometricLimit.Stages.SourceEmbedding.UniformMetric /-! # Actual terminal coefficient limits give compact metric comparison The tensor convergence theorem is applied on a singleton index set; no Ricci flow or time extension is asserted. Source: MT Theorem 5.9, pp. 88-89; derivations/terminal-germs-completeness.md, Stage A4. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter Poincare.Gluing open scoped Manifold ContDiff Topology universe u v namespace PoincareMT.M47 /-- Unit-vector error rescales to a quadratic upper bound for every tangent vector, without a packaged pointed-flow convergence object. -/ theorem terminalGerms_quadratic_of_unit_error {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin 3)) M] [IsManifold (๐“ก 3) โˆž M] {N : Type v} [TopologicalSpace N] [ChartedSpace (EuclideanSpace โ„ (Fin 3)) N] [IsManifold (๐“ก 3) โˆž N] (g : RiemannianMetric 3 M) (h : RiemannianMetric 3 N) (f : M โ†’ N) (x : M) (hclose : โˆ€ v w : TangentSpace (๐“ก 3) x, g.tangentNorm x v โ‰ค 1 โ†’ g.tangentNorm x w โ‰ค 1 โ†’ |h.inner (f x) (mfderiv (๐“ก 3) (๐“ก 3) f x v) (mfderiv (๐“ก 3) (๐“ก 3) f x w) - g.inner x v w| < 1) (v : TangentSpace (๐“ก 3) x) : h.inner (f x) (mfderiv (๐“ก 3) (๐“ก 3) f x v) (mfderiv (๐“ก 3) (๐“ก 3) f x v) โ‰ค 4 * g.inner x v v := by by_cases hv : v = 0 ยท subst v simp let a := g.tangentNorm x v have ha : 0 < a := Real.sqrt_pos.mpr (g.pos x v hv) have ha2 : a ^ 2 = g.inner x v v := Real.sq_sqrt (g.pos x v hv).le let w : TangentSpace (๐“ก 3) x := aโปยน โ€ข v have hw : g.tangentNorm x w = 1 := by dsimp [w, RiemannianMetric.tangentNorm] simp only [map_smul, smul_apply, smul_eq_mul] rw [show aโปยน * (aโปยน * g.inner x v v) = aโปยน ^ 2 * a ^ 2 by rw [ha2]; ring] rw [show aโปยน ^ 2 * a ^ 2 = 1 by field_simp, Real.sqrt_one] have hbound := (le_abs_self _).trans_lt (hclose w w hw.le hw.le) simp only [w, map_smul, smul_apply, smul_eq_mul] at hbound have hainv : aโปยน ^ 2 * a ^ 2 = 1 := by field_simp have hpos : 0 < aโปยน ^ 2 := sq_pos_of_pos (inv_pos.mpr ha) nlinarith [g.pos x v hv] open ChartDistance /-- The actual coordinate convergence of the source embeddings supplies the compact quadratic bound used by the static completeness argument. -/ theorem terminalGerms_source_quadratic_bound (U : โ„• โ†’ Set (EuclideanSpace โ„ (Fin 3))) (hU : โˆ€ i, IsOpen (U i)) [โˆ€ i, Nonempty (Piece U i)] (O : OverlapSystem (fun i => Piece U i)) (hO : SmoothOverlap U hU O) [T2Space (Quotient O.setoid)] (E : โ„• โ†’ Set (Quotient O.setoid)) (hE : โˆ€ k, IsOpen (E k)) (hmono : Monotone E) (hcover : (โ‹ƒ k, E k) = univ) {N : โ„• โ†’ Type u} [โˆ€ k, TopologicalSpace (N k)] [โˆ€ k, ChartedSpace (EuclideanSpace โ„ (Fin 3)) (N k)] [โˆ€ k, IsManifold (๐“ก 3) โˆž (N k)] (f : โˆ€ k, Quotient O.setoid โ†’ N k) (hf : letI := quotientChartedSpace U hU O โˆ€ k, IsLocalDiffeomorphOn (๐“ก 3) (๐“ก 3) โˆž (f k) (E k)) (h : โˆ€ k, RiemannianMetric 3 (N k)) (g : โˆ€ i, CanonicalMetric U hU i) (hg : CompatibleMetrics U hU O g) (B : โ„• โ†’ EuclideanSpace โ„ (Fin 3) โ†’ EuclideanSpace โ„ (Fin 3) โ†’L[โ„] EuclideanSpace โ„ (Fin 3) โ†’L[โ„] โ„) (hB : โˆ€ i, ContinuousOn (B i) (U i)) (hcoeff : letI : โˆ€ i, ChartedSpace (EuclideanSpace โ„ (Fin 3)) (Piece U i) := fun i => (hU i).isOpenEmbedding_subtypeVal.singletonChartedSpace letI : โˆ€ i, IsManifold (๐“ก 3) โˆž (Piece U i) := fun i => (hU i).isOpenEmbedding_subtypeVal.isManifold_singleton โˆ€ i (x : Piece U i) v w, (g i).inner x v w = B i x v w) (hconv : โˆ€ i K, IsCompact K โ†’ K โІ U i โ†’ TendstoUniformlyOn (fun k => (h k).pullbackCoefficients (chartParametrization U hU (f k โˆ˜ O.include i))) (B i) atTop K) : letI := quotientChartedSpace U hU O letI := quotient_isManifold U hU O hO โˆ€ K : Set (Quotient O.setoid), IsCompact K โ†’ โˆ€แถ  k in atTop, โˆ€ x โˆˆ K, โˆ€ v : TangentSpace (๐“ก 3) x, (h k).inner (f k x) (mfderiv (๐“ก 3) (๐“ก 3) (f k) x v) (mfderiv (๐“ก 3) (๐“ก 3) (f k) x v) โ‰ค 4 * (quotientMetric U hU O hO g hg).inner x v v := by let := quotientChartedSpace U hU O let := quotient_isManifold U hU O hO have herror := source_exhaustion_uniform_metric_error U hU O hO hE hmono hcover f hf (fun k _ => h k) (fun i _ => g i) (fun _ => hg) (J := {0}) (fun i p => B i p.2) (fun i => (hB i).comp continuous_snd.continuousOn (fun _ hp => hp.2)) (fun i _ _ x => hcoeff i x) (by intro i K hK hKU have hsub : Prod.snd '' K โІ U i := by rintro _ โŸจp, hp, rflโŸฉ exact (hKU hp).2 exact ((hconv i (Prod.snd '' K) (hK.image continuous_snd) hsub).comp Prod.snd).mono (subset_preimage_image Prod.snd K)) intro K hK filter_upwards [herror K {0} hK isCompact_singleton Subset.rfl 1 zero_lt_one] with k hk intro x hx v exact terminalGerms_quadratic_of_unit_error (quotientMetric U hU O hO g hg) (h k) (f k) x (hk 0 (mem_singleton 0) x hx) v end PoincareMT.M47