import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.SourceNames.Metric import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Scalar.Calculus.UniformCoordinateJets import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Scalar.Round.RoundPullback import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.Scalar.Round.RoundModelCoordinates /-! # Coordinate error jets from the intrinsic round comparison A local realization of the model metric transports the actual covariant error tensor to Euclidean coordinates. Its ordinary derivatives are then bounded by the uniform reverse estimate. Morgan--Tian, Definition 9.76, Lemma 11.2 and Lemma 16.8, pp. 372-373; M44 derivation 30. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter open scoped Manifold ContDiff Bundle Topology namespace PoincareMT.M44 open M36 local notation "E" => EuclideanSpace ℝ (Fin 3) /-- A locally smooth bilinear error has the same intrinsic jet norms as its actual target tensor under a local model isometry. Smooth extension is used only as a germ. Source: Definition 9.76; M44 derivation 30. -/ theorem local_bilinear_covariant_norm_eq_pullback {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold (𝓑 3) ∞ M] {g : RiemannianMetric 3 E} {h : RiemannianMetric 3 M} (D : LeviCivitaData g) (D' : LeviCivitaData h) {f : E β†’ M} {U : Set E} (hU : IsOpen U) (hf : ContMDiffOn (𝓑 3) (𝓑 3) ∞ f U) (hinv : βˆ€ y ∈ U, (mfderiv (𝓑 3) (𝓑 3) f y).IsInvertible) (hmetric : βˆ€ y ∈ U, βˆ€ u v : E, g.inner y u v = h.inner (f y) (mfderiv (𝓑 3) (𝓑 3) f y u) (mfderiv (𝓑 3) (𝓑 3) f y v)) {A : E β†’ E β†’L[ℝ] E β†’L[ℝ] ℝ} (hA : ContDiffOn ℝ ∞ A U) {T : CovariantTensorEvaluation 3 M 2} (hT : IsSmoothCovariantTensor T) (hAT : βˆ€ y ∈ U, βˆ€ v : Fin 2 β†’ E, A y (v 0) (v 1) - g.inner y (v 0) (v 1) = T (f y) (fun i => mfderiv (𝓑 3) (𝓑 3) f y (v i))) (j : β„•) {x : E} (hx : x ∈ U) : g.tensorNorm (D.iteratedCovariantTensorDerivative (k := 2) (fun y v => A y (v 0) (v 1) - g.inner y (v 0) (v 1)) j) x = h.tensorNorm (D'.iteratedCovariantTensorDerivative T j) (f x) := by have hg : ContDiff ℝ ∞ g.euclideanCoefficients := contDiff_iff_contDiffAt.mpr g.contDiffAt_euclideanCoefficients obtain ⟨B, hB, heq⟩ := exists_comparison_smooth_germ hU (hA.sub hg.contDiffOn) hx let S : CovariantTensorEvaluation 3 E 2 := fun y v => B y (v 0) (v 1) have hS : IsSmoothCovariantTensor S := comparison_bilinear_isSmooth hB have hSeq : S =αΆ [𝓝 x] (fun (y : E) (v : Fin 2 β†’ E) => A y (v 0) (v 1) - g.inner y (v 0) (v 1)) := by filter_upwards [heq] with y hy funext v change B y (v 0) (v 1) = _ rw [hy] rfl have hjet := (comparison_iteratedCovariantTensorDerivative_eventuallyEq D hSeq j).self_of_nhds have hnorm : g.tensorNorm (D.iteratedCovariantTensorDerivative S j) x = g.tensorNorm (D.iteratedCovariantTensorDerivative (k := 2) (fun y v => A y (v 0) (v 1) - g.inner y (v 0) (v 1)) j) x := by unfold RiemannianMetric.tensorNorm rw [hjet] rfl obtain ⟨V, hV, hVo, hxV⟩ := mem_nhds_iff.mp (inter_mem (hU.mem_nhds hx) hSeq) have hsub : V βŠ† U := fun y hy => (hV hy).1 rw [← hnorm] apply tensorNorm_iterated_eq_of_metric_pullback D D' hVo (hf.mono hsub) (fun y hy => hinv y (hsub hy)) (fun y hy => hmetric y (hsub hy)) hS hT (fun y hy v => ?_) j hxV rw [(hV hy).2] exact hAT y (hsub hy) v end PoincareMT.M44