import PoincareLib.Geometry.Riemannian.Metric.LocalExtension import PoincareLib.Geometry.Riemannian.Coordinates.Coefficients /-! # Euclidean realization of the actual model metric germ Realize the unnormalized physical pullback before applying the model scale. Morgan--Tian Definition 2.16, equation (2.1), p. 30, and Definition 9.76, p. 231; M45 `derivations/ModelAnalyticsLocal.md`. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set open scoped Manifold ContDiff Topology namespace PoincareMT.M45 local notation "E" => EuclideanSpace โ„ (Fin 3) /-- A smooth chart with invertible differential has a positive smooth Euclidean metric realizing its physical pullback near the origin. Source: the coordinate interpretation of equation (2.1), p. 30. -/ theorem model_metric_realization {M : Type*} [TopologicalSpace M] [ChartedSpace E M] [IsManifold (๐“ก 3) โˆž M] (g : RiemannianMetric 3 M) {f : E โ†’ M} {U : Set E} (hU : IsOpen U) (hzero : (0 : E) โˆˆ U) (hf : ContMDiffOn (๐“ก 3) (๐“ก 3) โˆž f U) (hinv : โˆ€ y โˆˆ U, (mfderiv (๐“ก 3) (๐“ก 3) f y).IsInvertible) : โˆƒ (gE : RiemannianMetric 3 E) (_DE : LeviCivitaData gE) (W : Set E), IsOpen W โˆง (0 : E) โˆˆ W โˆง W โІ U โˆง โˆ€ y โˆˆ W, gE.euclideanCoefficients y = g.pullbackCoefficients f y := by apply RiemannianMetric.exists_local_realization hU hzero (g.pullbackCoefficients f) ยท exact fun y hy => (g.contDiffAt_pullbackCoefficients (hf.contMDiffAt (hU.mem_nhds hy))).contDiffWithinAt ยท exact fun y _ v w => g.symm (f y) _ _ ยท intro y hy v hv apply g.pos (f y) intro hz apply hv apply (hinv y hy).injective rw [map_zero] exact hz end PoincareMT.M45