import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.GeometryImports import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Persistence.NeckGeometry.CapturedCylinderChart import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Analysis.FiniteHessian.MetricTransition /-! # Finite derivatives of the actual captured cylinder maps The guarded atlas coefficients are smooth and nonsingular. The actual metric identity therefore supplies the Hessian equation, and finite coefficient bounds supply finite map bounds. The source metric may be the normalized whole-slice metric while the neck retains its raw chart. Source: Morgan--Tian Propositions 9.79 and 10.7, pp. 232-234 and 253; M28 derivation 104. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter open scoped Manifold ContDiff Bundle Topology universe u v namespace PoincareMT.Proofs.M28.NeckTransfer open PoincareMT.M28.tube FiniteHessian attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace normedSpaceTangentSpaceVectorSpace variable {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓑 3) ∞ M] /-- Actual atlas coefficients are smooth and nonsingular at every captured chart point. The differential is the composition of two guarded local diffeomorphisms. Source: Proposition 10.7; M28 derivation 104. -/ theorem capturedCylinderCoordinates_atlas_regular {X : Type v} [TopologicalSpace X] [ChartedSpace (EuclideanSpace ℝ (Fin 3)) X] [IsManifold (𝓑 3) ∞ X] {h : RiemannianMetric 3 X} (gX : RiemannianMetric 3 X) (e : PartialDiffeomorph (𝓑 3) (𝓑 3) M X ∞) (N : EpsilonNeck h) (hcapture : N.carrier βŠ† e.target) (q : UnitTwoSphere) (s : ℝ) (p : M) {x : EuclideanSpace ℝ (Fin 3)} (hx : x ∈ capturedCylinderChartDomain e N q s p) : ContDiffAt ℝ ∞ (gX.pullbackCoefficients (e ∘ (extChartAt (𝓑 3) p).symm)) (capturedCylinderCoordinates e N q s p x) ∧ (gX.pullbackCoefficients (e ∘ (extChartAt (𝓑 3) p).symm) (capturedCylinderCoordinates e N q s p x)).IsInvertible := by let c := extChartAt (𝓑 3) p let y := capturedCylinderCoordinates e N q s p x have hy : y ∈ c.target := c.map_source hx.2 have hs : c.symm y ∈ e.source := by rw [show c.symm y = capturedCylinderMap e N q s x from c.left_inv hx.2] exact capturedCylinderMap_mem_source e N hcapture q s hx.1 have hcinv : ContMDiffAt (𝓑 3) (𝓑 3) ∞ c.symm y := (contMDiffOn_extChartAt_symm p).contMDiffAt ((isOpen_extChartAt_target p).mem_nhds hy) have he := e.contMDiffOn_toFun.contMDiffAt (e.open_source.mem_nhds hs) refine ⟨gX.contDiffAt_pullbackCoefficients (he.comp y hcinv), ?_⟩ apply gX.isInvertible_pullbackCoefficients rw [mfderiv_comp y (he.mdifferentiableAt (by simp)) (hcinv.mdifferentiableAt (by simp))] have helocal : IsLocalDiffeomorphAt (𝓑 3) (𝓑 3) ∞ e (c.symm y) := ⟨e, hs, fun _ _ => rfl⟩ have heinj : Function.Injective (mfderiv (𝓑 3) (𝓑 3) e (c.symm y)) := (helocal.mfderivToContinuousLinearEquiv (by simp)).injective have hi := isInvertible_mfderivWithin_extChartAt_symm (I := 𝓑 3) hy rw [ModelWithCorners.range_eq_univ, mfderivWithin_univ] at hi exact heinj.comp hi.injective /-- Finite metric jets and pointwise ellipticity bound the actual captured coordinate derivatives through one extra order. Source manifolds may vary with the index. No Hessian equation or map-jet estimate is an input. Source: Proposition 10.7, p. 253; M28 derivation 104. -/ theorem hasUniformJetBoundsAt_capturedCylinderCoordinates_fderiv {ΞΉ : Type*} {X : ΞΉ β†’ Type v} [βˆ€ i, TopologicalSpace (X i)] [βˆ€ i, ChartedSpace (EuclideanSpace ℝ (Fin 3)) (X i)] [βˆ€ i, IsManifold (𝓑 3) ∞ (X i)] {h : βˆ€ i, RiemannianMetric 3 (X i)} (gX : βˆ€ i, RiemannianMetric 3 (X i)) (e : βˆ€ i, PartialDiffeomorph (𝓑 3) (𝓑 3) M (X i) ∞) (N : βˆ€ i, EpsilonNeck (h i)) (hcapture : βˆ€ i, (N i).carrier βŠ† (e i).target) (q : ΞΉ β†’ UnitTwoSphere) (s : ΞΉ β†’ ℝ) (p : ΞΉ β†’ M) (hs : βˆ€ i, s i ∈ Ioo (-(N i).epsilon⁻¹) (N i).epsilon⁻¹) (hp : βˆ€ i, (e i).symm ((N i).coordinate_map (q i, s i)) ∈ (extChartAt (𝓑 3) (p i)).source) (n : β„•) (hAj : HasUniformJetBoundsAt (n + 1) (fun i => (gX i).pullbackCoefficients (cylinderNeckChart (N i) (q i) (s i))) (fun _ => 0)) (hBj : HasUniformJetBoundsAt (n + 1) (fun i => (gX i).pullbackCoefficients ((e i) ∘ (extChartAt (𝓑 3) (p i)).symm)) (fun i => capturedCylinderCoordinates (e i) (N i) (q i) (s i) (p i) 0)) {a b : ℝ} (ha : 0 < a) (hb : 0 < b) (hAe : βˆ€ i v, a * β€–vβ€– ^ 2 ≀ (gX i).pullbackCoefficients (cylinderNeckChart (N i) (q i) (s i)) 0 v v) (hBe : βˆ€ i v, b * β€–vβ€– ^ 2 ≀ (gX i).pullbackCoefficients ((e i) ∘ (extChartAt (𝓑 3) (p i)).symm) (capturedCylinderCoordinates (e i) (N i) (q i) (s i) (p i) 0) v v) : HasUniformJetBoundsAt (n + 1) (fun i => fderiv ℝ (capturedCylinderCoordinates (e i) (N i) (q i) (s i) (p i))) (fun _ => 0) := by refine hasUniformJetBoundsAt_fderiv_of_metric_pullback n (U := fun i => capturedCylinderChartDomain (e i) (N i) (q i) (s i) (p i)) (fun i => isOpen_capturedCylinderChartDomain (e i) (N i) (hcapture i) (q i) (s i) (p i)) (fun i => zero_mem_capturedCylinderChartDomain (e i) (N i) (q i) (hs i) (p i) (hp i)) (fun i => contDiffOn_capturedCylinderCoordinates (e i) (N i) (hcapture i) (q i) (s i) (p i)) ?_ ?_ ?_ ?_ ?_ ?_ hAj hBj ha hb hAe hBe Β· intro i y hy exact ((gX i).contDiffAt_pullbackCoefficients ((contMDiffOn_cylinderNeckChart (N i) (q i) (s i)).contMDiffAt ((isOpen_cylinderNeckChartDomain (N i) (q i) (s i)).mem_nhds hy.1))).contDiffWithinAt Β· intro i y hy exact (capturedCylinderCoordinates_atlas_regular (gX i) (e i) (N i) (hcapture i) (q i) (s i) (p i) hy).1 Β· intro i y hy exact (gX i).isInvertible_pullbackCoefficients (cylinderNeckChart_mfderiv_isInvertible (N i) (q i) (s i) hy.1).injective Β· intro i y hy exact (capturedCylinderCoordinates_atlas_regular (gX i) (e i) (N i) (hcapture i) (q i) (s i) (p i) hy).2 Β· intro i y _ v w exact (gX i).symm _ _ _ Β· intro i y hy v w exact congrArg (fun B : EuclideanSpace ℝ (Fin 3) β†’L[ℝ] EuclideanSpace ℝ (Fin 3) β†’L[ℝ] ℝ => B v w) (capturedCylinderCoordinates_source_coefficients (gX i) (e i) (N i) (hcapture i) (q i) (s i) (p i) hy) end PoincareMT.Proofs.M28.NeckTransfer