import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Polar.Inverse /-! A concrete local lift of the fixed second geodesic through a polar inverse. Source: MT Claim 19.41, p. 471; short-geodesic-digons derivation, Section 8. This constructs the local perturbation map but does not assert confinement. -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter open scoped Topology ContDiff Manifold namespace PoincareMT /-- A regular polar preimage gives an actual smooth local lift of any smooth curve through its image, retaining the chosen preimage and equality on a full parameter neighborhood. Source: MT Claim 19.41, p. 471; digon derivation, Section 8. -/ theorem m64Intrinsic_exists_local_polar_curve_lift {e : AnnulusCoordinates โ†’ AnnulusCoordinates} {Omega : Set AnnulusCoordinates} (hOmega : IsOpen Omega) (he : ContMDiffOn (๐“ก 2) (๐“ก 2) โˆž e Omega) {v : AnnulusCoordinates} (hv : v โˆˆ Omega) (hreg : Function.Injective (mfderiv (๐“ก 2) (๐“ก 2) e v)) {beta : โ„ โ†’ AnnulusCoordinates} {s : โ„} (hb : ContDiffAt โ„ โˆž beta s) (hpoint : e v = beta s) : โˆƒ u : โ„ โ†’ AnnulusCoordinates, ContDiffAt โ„ โˆž u s โˆง u s = v โˆง (โˆ€แถ  a in ๐“ s, u a โˆˆ Omega โˆง e (u a) = beta a) := by obtain โŸจF, hvF, hFO, hF, _, hFiโŸฉ := m64Intrinsic_exists_smooth_polar_inverse hOmega he hv hreg have hsF : beta s โˆˆ F.target := by rw [โ† hpoint, โ† hF] exact F.map_source hvF let u : โ„ โ†’ AnnulusCoordinates := F.symm โˆ˜ beta have hu : ContDiffAt โ„ โˆž u s := (hFi.contDiffAt (F.open_target.mem_nhds hsF)).comp s hb have hu0 : u s = v := by change F.symm (beta s) = v rw [โ† hpoint, โ† hF, F.left_inv hvF] refine โŸจu, hu, hu0, ?_โŸฉ filter_upwards [hb.continuousAt.preimage_mem_nhds (F.open_target.mem_nhds hsF)] with a ha refine โŸจhFO (F.map_target ha), ?_โŸฉ change e (F.symm (beta a)) = beta a rw [โ† hF] exact F.right_inv ha end PoincareMT