import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Polar.Inverse /-! # Regularity of continuous polar boundary lifts A continuous lift of the intrinsic boundary through a regular smooth polar map is smooth within its parameter set, including one-sided endpoints. This supplies the regularity step after the continuous direction map in Morgan--Tian, Remark 19.42, p. 472; see `derivations/2026-09-26-continuous-polar-focusing.md`. -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter open scoped Topology Manifold ContDiff Bundle namespace PoincareMT attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace normedSpaceTangentSpaceVectorSpace /-- Smooth inverse charts give relative smoothness of a continuous boundary lift. The parameter set need not be open, and no extension of the lift is assumed. Source: Morgan--Tian, Remark 19.42, p. 472. -/ theorem m64Intrinsic_contDiffOn_boundary_lift {e : AnnulusCoordinates โ†’ AnnulusCoordinates} {U : Set AnnulusCoordinates} (hU : IsOpen U) (he : ContMDiffOn (๐“ก 2) (๐“ก 2) โˆž e U) {u : โ„ โ†’ AnnulusCoordinates} {J : Set โ„} {radius : โ„} (hu : ContinuousOn u J) (humap : MapsTo u J U) (hboundary : โˆ€ s โˆˆ J, e (u s) = intrinsicAnnulusBoundary radius s) (hi : โˆ€ s โˆˆ J, Function.Injective (mfderiv (๐“ก 2) (๐“ก 2) e (u s))) : ContDiffOn โ„ โˆž u J := by intro s hs obtain โŸจF, hsF, _, hF, _, hFiโŸฉ := m64Intrinsic_exists_smooth_polar_inverse hU he (humap hs) (hi s hs) have htarget : intrinsicAnnulusBoundary radius s โˆˆ F.target := by rw [โ† hboundary s hs, โ† hF] exact F.map_source hsF have hlocal : ContDiffAt โ„ โˆž (F.symm โˆ˜ intrinsicAnnulusBoundary radius) s := (hFi.contDiffAt (F.open_target.mem_nhds htarget)).comp s (m64Intrinsic_contDiff_boundary radius).contDiffAt have hsource : โˆ€แถ  t in ๐“[J] s, u t โˆˆ F.source := (hu s hs).preimage_mem_nhdsWithin (F.open_source.mem_nhds hsF) have heq : u =แถ [๐“[J] s] F.symm โˆ˜ intrinsicAnnulusBoundary radius := by filter_upwards [hsource, self_mem_nhdsWithin] with t ht htJ change u t = F.symm (intrinsicAnnulusBoundary radius t) rw [โ† hboundary t htJ, โ† hF, F.left_inv ht] apply hlocal.contDiffWithinAt.congr_of_eventuallyEq heq change u s = F.symm (intrinsicAnnulusBoundary radius s) rw [โ† hboundary s hs, โ† hF, F.left_inv hsF] end PoincareMT