import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Radial.Scalar import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.RadialCurve import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.JetBounds.PrecompactGauss import PoincareLib.Geometry.Riemannian.Distance.NormalRadius /-! # Regular normalized exponential maps on the intrinsic surface Local compactness supplies a precompact intrinsic ball. M07 constructs its normalized exponential, and openness of invertible differentials gives a smaller regular radial domain. No quantitative curvature norm is required. Morgan--Tian context: Proposition 19.35, printed pp. 467-481. The project derivations implement its intrinsic normal-geodesic, focusing and retained-length comparison arguments. -/ noncomputable section set_option autoImplicit false set_option backward.isDefEq.respectTransparency false open Set Filter Manifold open scoped Manifold ContDiff Topology ENNReal Bundle namespace PoincareMT /-- Every point of the intrinsic surface has a precompact intrinsic ball. Source: M07 local exponential construction; the local regularity step is recorded in `reports/2026-09-24-intrinsic-radial-scalar.md`. -/ theorem m64Intrinsic_exists_precompact_ball (N : IntrinsicAnnulus) (p : AnnulusCoordinates) : βˆƒ R : ℝ, 0 < R ∧ IsCompact (closure (N.metric.ball p R)) := by let : Bundle.RiemannianBundle (TangentSpace (𝓑 2) : AnnulusCoordinates β†’ Type _) := ⟨N.metric.toRiemannianMetric⟩ let : IsContinuousRiemannianBundle AnnulusCoordinates (TangentSpace (𝓑 2) : AnnulusCoordinates β†’ Type _) := ⟨⟨N.metric.inner, N.metric.toContinuousRiemannianMetric.continuous, fun _ _ _ => rfl⟩⟩ obtain ⟨r, hr, hsub⟩ := setOfPred_riemannianEDist_lt_subset_nhds (𝓑 2) (Metric.ball_mem_nhds p (by norm_num : (0 : ℝ) < 1)) refine ⟨r, by exact_mod_cast hr, ?_⟩ apply (isCompact_closedBall p (1 : ℝ)).of_isClosed_subset isClosed_closure apply closure_minimal _ Metric.isClosed_closedBall intro q hq apply Metric.ball_subset_closedBall apply hsub simpa only [RiemannianMetric.ball, mem_ofPred_eq, RiemannianMetric.edist, ENNReal.ofReal_coe_nnreal] using hq attribute [local instance] normedAddCommGroupTangentSpaceVectorSpace normedSpaceTangentSpaceVectorSpace /-- A regular normalized exponential exists near every point. The radius is local to the metric; the later annulus argument supplies its quantitative radius and the one-sided domain restriction. Source: M07 local exponential construction; the local regularity step is recorded in `reports/2026-09-24-intrinsic-radial-scalar.md`. -/ theorem m64Intrinsic_exists_regular_radial_exponential (N : IntrinsicAnnulus) (p : AnnulusCoordinates) : βˆƒ r : ℝ, 0 < r ∧ βˆƒ e : AnnulusCoordinates β†’ AnnulusCoordinates, e 0 = p ∧ ContMDiffOn (𝓑 2) (𝓑 2) ∞ e (Metric.ball 0 r) ∧ (βˆ€ u v : AnnulusCoordinates, N.metric.inner (e 0) (mfderiv (𝓑 2) (𝓑 2) e 0 u) (mfderiv (𝓑 2) (𝓑 2) e 0 v) = inner ℝ u v) ∧ (βˆ€ v ∈ Metric.ball 0 r, βˆ€ w : AnnulusCoordinates, N.metric.inner (e v) (mfderiv (𝓑 2) (𝓑 2) e v v) (mfderiv (𝓑 2) (𝓑 2) e v w) = inner ℝ v w) ∧ (βˆ€ v ∈ Metric.ball 0 r, N.metric.IsGeodesicOn (fun t : ℝ => e (t β€’ v)) {t : ℝ | t β€’ v ∈ Metric.ball 0 r}) ∧ (βˆ€ v ∈ Metric.ball 0 r, Function.Injective (mfderiv (𝓑 2) (𝓑 2) e v)) ∧ βˆ€ v ∈ Metric.ball 0 r, N.metric.edist p (e v) ≀ ENNReal.ofReal β€–vβ€– := by obtain ⟨R, hR, hcompact⟩ := m64Intrinsic_exists_precompact_ball N p obtain ⟨L, e, hL, he, he0, hed, hgeo⟩ := N.metric.exists_orthonormal_radial_exponential_of_precompact_ball p hR hcompact have h0 : (0 : AnnulusCoordinates) ∈ Metric.ball 0 R := Metric.mem_ball_self hR have hezero := he.contMDiffAt (Metric.isOpen_ball.mem_nhds h0) have hmetric : βˆ€ u v : AnnulusCoordinates, N.metric.inner (e 0) (mfderiv (𝓑 2) (𝓑 2) e 0 u) (mfderiv (𝓑 2) (𝓑 2) e 0 v) = inner ℝ u v := by intro u v exact N.metric.pullbackCoefficients_zero_of_orthonormal p hezero he0 hed hL u v have hinj : Function.Injective (fderiv ℝ e 0) := by intro u v huv have h := hmetric (u - v) (u - v) simp only [TangentSpace, mfderiv_eq_fderiv] at h change N.metric.inner (e 0) ((fderiv ℝ e 0) (u - v)) ((fderiv ℝ e 0) (u - v)) = inner ℝ (u - v) (u - v) at h rw [map_sub, huv, sub_self, map_zero] at h exact sub_eq_zero.mp ((inner_self_eq_zero (π•œ := ℝ) (E := AnnulusCoordinates)).mp h.symm) let A : AnnulusCoordinates ≃L[ℝ] AnnulusCoordinates := (LinearEquiv.ofBijective (fderiv ℝ e 0).toLinearMap ⟨hinj, (LinearMap.injective_iff_surjective (f := (fderiv ℝ e 0).toLinearMap)).mp hinj⟩).toContinuousLinearEquiv have hA : A.toContinuousLinearMap = fderiv ℝ e 0 := rfl have hfd : ContinuousAt (fderiv ℝ e) 0 := ((contMDiffAt_iff_contDiffAt.mp hezero).fderiv_right (m := 0) (by simp)).continuousAt have hinvertible : {v : AnnulusCoordinates | (fderiv ℝ e v).IsInvertible} ∈ 𝓝 0 := by have h := A.nhds rw [hA] at h exact hfd.preimage_mem_nhds h obtain ⟨r, hr, hsmall⟩ := Metric.mem_nhds_iff.mp (inter_mem (Metric.isOpen_ball.mem_nhds h0) hinvertible) have hball : Metric.ball (0 : AnnulusCoordinates) r βŠ† Metric.ball 0 R := fun v hv => (hsmall hv).1 refine ⟨r, hr, e, he0, he.mono hball, hmetric, ?_, ?_, ?_, ?_⟩ Β· intro v hv w exact CoordinateExponential.gauss_identity_of_radial_family N.metric he (fun z hz => (hgeo z hz).1) (fun z hz t ht => ((hgeo z hz).2 t ht).1) v (hball hv) w Β· intro v hv t ht exact (hgeo v (hball hv)).1 t (hball ht) Β· intro v hv rw [mfderiv_eq_fderiv] exact (hsmall hv).2.injective Β· intro v hv simpa only [one_smul, ENNReal.ofReal_one, mul_one] using ((hgeo v (hball hv)).2 1 (by simp)).2 end PoincareMT