import PoincareLib.Geometry.RicciFlow.Surgery.Flow.Basic import PoincareLib.Geometry.Riemannian.Metric.LocalExtension import PoincareLib.Geometry.Riemannian.Comparison.Injectivity.LocalIsometry /-! # Metric germs at a fixed Euclidean point Translate a valid chart center to zero and realize its positive metric coefficients by a genuine Euclidean metric. The realization preserves all scalar jets and the norm of every compatible Levi-Civita connection. This lets moving chart centers use the existing fixed-point jet convergence theorem without assuming continuity of a chosen orthonormal basis. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter open scoped Manifold ContDiff Topology universe u namespace PoincareMT.M51 attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace normedSpaceTangentSpaceVectorSpace variable {M : Type u} [TopologicalSpace M] [ChartedSpace (EuclideanSpace โ„ (Fin 3)) M] [IsManifold (๐“ก 3) โˆž M] /-- Translation has identity differential, including in the manifold API. -/ theorem mfderiv_translatedChart (q : M) (z y : EuclideanSpace โ„ (Fin 3)) (hy : y + z โˆˆ (extChartAt (๐“ก 3) q).target) : mfderiv (๐“ก 3) (๐“ก 3) (fun w => (extChartAt (๐“ก 3) q).symm (w + z)) y = mfderiv (๐“ก 3) (๐“ก 3) (extChartAt (๐“ก 3) q).symm (y + z) := by have hc := (contMDiffOn_extChartAt_symm (I := ๐“ก 3) (n := โˆž) q).contMDiffAt ((isOpen_extChartAt_target (I := ๐“ก 3) q).mem_nhds hy) have ht : ContDiff โ„ โˆž (fun w : EuclideanSpace โ„ (Fin 3) => w + z) := contDiff_id.add contDiff_const rw [show (fun w => (extChartAt (๐“ก 3) q).symm (w + z)) = (extChartAt (๐“ก 3) q).symm โˆ˜ (fun w => w + z) from rfl, mfderiv_comp y (hc.mdifferentiableAt (by simp)) (ht.contMDiff.mdifferentiable (by simp) y)] simp only [mfderiv_eq_fderiv, fderiv_add_const, fderiv_fun_id] ext v rfl /-- Every valid translated chart germ has a metric realization with exactly the original scalar jets and curvature norm. -/ theorem exists_shiftedChartMetric (g : RiemannianMetric 3 M) (q : M) (z : EuclideanSpace โ„ (Fin 3)) (hz : z โˆˆ (extChartAt (๐“ก 3) q).target) : โˆƒ (G : RiemannianMetric 3 (EuclideanSpace โ„ (Fin 3))) (DG : LeviCivitaData G), (โˆ€ D : LeviCivitaData g, DG.curvatureTensorNorm 0 = D.curvatureTensorNorm ((extChartAt (๐“ก 3) q).symm z)) โˆง โˆ€ k : โ„•, โˆ€ a b : Fin 3, iteratedFDeriv โ„ k (fun y => G.inner y (EuclideanSpace.basisFun (Fin 3) โ„ a) (EuclideanSpace.basisFun (Fin 3) โ„ b)) 0 = iteratedFDeriv โ„ k (singularMetricCoefficient g q a b) z := by let c := extChartAt (๐“ก 3) q let U := (fun y : EuclideanSpace โ„ (Fin 3) => y + z) โปยน' c.target let B := fun y => g.pullbackCoefficients c.symm (y + z) have hU : IsOpen U := (isOpen_extChartAt_target (I := ๐“ก 3) q).preimage (continuous_id.add continuous_const) have hzero : (0 : EuclideanSpace โ„ (Fin 3)) โˆˆ U := by change 0 + z โˆˆ c.target rw [zero_add] exact hz have hB : ContDiffOn โ„ โˆž B U := by intro y hy apply ContDiffAt.contDiffWithinAt exact ((g.contDiffOn_chartCoefficients q).contDiffAt ((isOpen_extChartAt_target (I := ๐“ก 3) q).mem_nhds hy)).comp y (contDiffAt_id.add contDiffAt_const) have hsymm : โˆ€ y โˆˆ U, โˆ€ v w, B y v w = B y w v := by intro y _ v w exact g.symm _ _ _ have hpos : โˆ€ y โˆˆ U, โˆ€ v, v โ‰  0 โ†’ 0 < B y v v := by intro y hy v hv apply g.pos intro hzero have hinv := isInvertible_mfderivWithin_extChartAt_symm (I := ๐“ก 3) hy simp only [ModelWithCorners.range_eq_univ, mfderivWithin_univ] at hinv apply hv apply hinv.injective rw [map_zero] exact hzero obtain โŸจG, DG, V, hV, hzeroV, hVU, hGโŸฉ := RiemannianMetric.exists_local_realization hU hzero B hB hsymm hpos have hgerm : G.euclideanCoefficients =แถ [๐“ 0] B := Filter.mem_of_superset (hV.mem_nhds hzeroV) hG have hcoeff : G.euclideanCoefficients =แถ [๐“ 0] g.pullbackCoefficients (fun y => c.symm (y + z)) := by filter_upwards [hgerm, hU.mem_nhds hzero] with y hy hyU rw [hy] ext v w change g.inner _ (mfderiv (๐“ก 3) (๐“ก 3) c.symm (y + z) v) (mfderiv (๐“ก 3) (๐“ก 3) c.symm (y + z) w) = g.inner _ (mfderiv (๐“ก 3) (๐“ก 3) (fun y => c.symm (y + z)) y v) (mfderiv (๐“ก 3) (๐“ก 3) (fun y => c.symm (y + z)) y w) rw [mfderiv_translatedChart q z y hyU] rfl refine โŸจG, DG, ?_, ?_โŸฉ ยท intro D have hc := (contMDiffOn_extChartAt_symm (I := ๐“ก 3) (n := โˆž) q).contMDiffAt ((isOpen_extChartAt_target (I := ๐“ก 3) q).mem_nhds hz) have he : ContMDiffAt (๐“ก 3) (๐“ก 3) โˆž (fun y => c.symm (y + z)) 0 := by apply hc.comp_of_eq (x := (0 : EuclideanSpace โ„ (Fin 3))) ((contDiffAt_id.add contDiffAt_const).contMDiffAt) simp simpa only [zero_add] using DG.curvatureTensorNorm_eq_of_pullback_germ D he hcoeff ยท intro k a b have heq : (fun y => G.inner y (EuclideanSpace.basisFun (Fin 3) โ„ a) (EuclideanSpace.basisFun (Fin 3) โ„ b)) =แถ [๐“ 0] (fun y => singularMetricCoefficient g q a b (y + z)) := by filter_upwards [hgerm] with y hy exact congrArg (fun C => C (EuclideanSpace.basisFun (Fin 3) โ„ a) (EuclideanSpace.basisFun (Fin 3) โ„ b)) hy rw [(heq.iteratedFDeriv โ„ k).eq_of_nhds, iteratedFDeriv_comp_add_right, zero_add] end PoincareMT.M51