import Mathlib.Geometry.Manifold.LocalDiffeomorph import Mathlib.Geometry.Manifold.MFDeriv.FDeriv /-! # Translation and recentering of partial diffeomorphisms Translation in a normed model space has identity differential and gives recentered source coordinates of any differentiability order. Application: Morgan-Tian Proposition 12.13, pp. 304-306. -/ set_option autoImplicit false open Set open scoped Manifold ContDiff namespace PoincareMT.M34 variable {๐•œ : Type*} [NontriviallyNormedField ๐•œ] {E : Type*} [NormedAddCommGroup E] [NormedSpace ๐•œ E] /-- Addition by a fixed vector as a diffeomorphism, of any smoothness order (used in Proposition 12.13, pp. 304-306). -/ noncomputable def modelTranslationDiffeomorph (x : E) (m : โ„•โˆžฯ‰ := โˆž) : Diffeomorph (๐“˜(๐•œ, E)) (๐“˜(๐•œ, E)) E E m where toEquiv := (Homeomorph.addLeft x).toEquiv contMDiff_toFun := (contDiff_const.add contDiff_id).contMDiff contMDiff_invFun := (contDiff_const.add contDiff_id).contMDiff set_option backward.isDefEq.respectTransparency false in /-- Translation has the identity manifold derivative, regardless of the recorded smoothness order (Proposition 12.13, pp. 304-306). -/ theorem modelTranslationDiffeomorph_mfderiv (x z : E) (m : โ„•โˆžฯ‰ := โˆž) : mfderiv (๐“˜(๐•œ, E)) (๐“˜(๐•œ, E)) (modelTranslationDiffeomorph (๐•œ := ๐•œ) x m) z = ContinuousLinearMap.id ๐•œ E := by have hd : HasFDerivAt (fun y : E => x + y) (ContinuousLinearMap.id ๐•œ E) z := (hasFDerivAt_id z).const_add x apply ContinuousLinearMap.ext intro v change mfderiv (๐“˜(๐•œ, E)) (๐“˜(๐•œ, E)) (fun y => x + y) z v = v rw [mfderiv_eq_fderiv] convert! congrArg (fun L : E โ†’L[๐•œ] E => L v) hd.fderiv using 1 variable {E' : Type*} [NormedAddCommGroup E'] [NormedSpace ๐•œ E'] {H : Type*} [TopologicalSpace H] {I : ModelWithCorners ๐•œ E' H} {M : Type*} [TopologicalSpace M] [ChartedSpace H M] {m : โ„•โˆžฯ‰} /-- Recenter the normed source of any partial diffeomorphism by a translation (Proposition 12.13, pp. 304-306). -/ noncomputable def centeredDiffeomorph (e : PartialDiffeomorph (๐“˜(๐•œ, E)) I E M m) (x : E) : PartialDiffeomorph (๐“˜(๐•œ, E)) I E M m := (modelTranslationDiffeomorph (๐•œ := ๐•œ) x m).toPartialDiffeomorph.trans e /-- The recentered source is exactly the translated original source (Proposition 12.13, pp. 304-306). -/ theorem centeredDiffeomorph_mem_source (e : PartialDiffeomorph (๐“˜(๐•œ, E)) I E M m) (x z : E) : z โˆˆ (centeredDiffeomorph e x).source โ†” x + z โˆˆ e.source := by change z โˆˆ (univ : Set E) โˆฉ (fun y => x + y) โปยน' e.source โ†” _ simp end PoincareMT.M34