import Mathlib.Geometry.Manifold.ContMDiff.NormedSpace import Mathlib.Geometry.Manifold.MFDeriv.SpecificFunctions /-! # Actual differentials of a smooth manifold retraction The ambient composite is smooth, and differentiating the retraction identity gives the actual left inverse on tangent spaces. MT2007 Claim 19.1, p. 437; `2026-09-21-geometric-retraction-identities.md`, item 2. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set open scoped Manifold ContDiff universe u v w namespace PoincareMT.M63 variable {E : Type u} [NormedAddCommGroup E] [NormedSpace โ„ E] {V : Type v} [NormedAddCommGroup V] [NormedSpace โ„ V] {M : Type w} [TopologicalSpace M] [ChartedSpace E M] /-- A smooth manifold retraction gives the actual ambient derivative factorization and a left inverse on every tangent space. MT2007 Claim 19.1, p. 437; geometric retraction derivation, item 2. -/ theorem smooth_retraction_differentials [IsManifold ๐“˜(โ„, E) โˆž M] {e : M โ†’ V} (he : ContMDiff ๐“˜(โ„, E) ๐“˜(โ„, V) โˆž e) {U : Set V} (hU : IsOpen U) (heU : range e โІ U) {ฯ : V โ†’ M} (hฯ : ContMDiffOn ๐“˜(โ„, V) ๐“˜(โ„, E) โˆž ฯ U) (hฯe : โˆ€ p, ฯ (e p) = p) : ContDiffOn โ„ โˆž (e โˆ˜ ฯ) U โˆง (โˆ€ z โˆˆ U, โˆ€ v : V, fderiv โ„ (e โˆ˜ ฯ) z v = mfderiv ๐“˜(โ„, E) ๐“˜(โ„, V) e (ฯ z) (mfderiv ๐“˜(โ„, V) ๐“˜(โ„, E) ฯ z v)) โˆง โˆ€ p : M, โˆ€ v : TangentSpace ๐“˜(โ„, E) p, mfderiv ๐“˜(โ„, V) ๐“˜(โ„, E) ฯ (e p) (mfderiv ๐“˜(โ„, E) ๐“˜(โ„, V) e p v) = v := by refine โŸจ(he.comp_contMDiffOn hฯ).contDiffOn, ?_, ?_โŸฉ ยท intro z hz v have hchain : fderiv โ„ (e โˆ˜ ฯ) z = (mfderiv ๐“˜(โ„, E) ๐“˜(โ„, V) e (ฯ z)).comp (mfderiv ๐“˜(โ„, V) ๐“˜(โ„, E) ฯ z) := by rw [โ† mfderiv_eq_fderiv] exact mfderiv_comp z (he.mdifferentiable (by simp)).mdifferentiableAt ((hฯ.contMDiffAt (hU.mem_nhds hz)).mdifferentiableAt (by simp)) exact congrArg (fun L : V โ†’L[โ„] V => L v) hchain ยท intro p v have hchain := mfderiv_comp p ((hฯ.contMDiffAt (hU.mem_nhds (heU (mem_range_self p)))).mdifferentiableAt (by simp)) (he.mdifferentiable (by simp)).mdifferentiableAt have heq : ฯ โˆ˜ e = id := funext hฯe rw [heq, mfderiv_id] at hchain exact (congrArg (fun L : E โ†’L[โ„] E => L v) hchain).symm end PoincareMT.M63