import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Finite.PhaseCurrent /-! The attained annulus with nonzero auxiliary slope has injective within differential on its whole closed source. Weighted conformality and the genuine positive metric exclude a kernel. Source: MT Lemma 19.15, pp. 447-449; M64 affine auxiliary phase derivation. -/ noncomputable section set_option autoImplicit false set_option warningAsError true set_option backward.isDefEq.respectTransparency false open Set MeasureTheory open scoped Manifold ContDiff Topology namespace PoincareMT variable {n : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {a b : ℝ} {F : RicciFlow n M (Icc a b)} {circumference : ℝ} /-- The actual closed C1 annulus is immersed, including its boundary, when its auxiliary-circle phase has nonzero radial slope. Source: Morgan--Tian (2007), Lemma 19.15 and Corollary 19.16, pp. 447-449; project derivation `proof-work/tasks/M64/reports/2026-09-27-annulus-energy-and-finite-variation-derivation.md`. -/ theorem m64Annulus_affine_phase_within_immersion (P : M62.CircleProductData F circumference) (t : ℝ) {c0 c1 : ℝ β†’ P.charts.Point} (A : M64Annulus (P.flow.metric t) c0 c1) {r : ℝ} (hr : 0 < r) (hAc : ContMDiffOn (𝓑 2) (𝓑 (n + 1)) 1 A.map m64AnnulusDomain) (hAi : ContMDiffOn (𝓑 2) (𝓑 (n + 1)) ∞ A.map m64AnnulusInterior) (hconformal : βˆ€α΅ p βˆ‚volume.restrict m64AnnulusDomain, r * m60AreaGram (P.flow.metric t) A.map p 0 0 = r⁻¹ * m60AreaGram (P.flow.metric t) A.map p 1 1 ∧ m60AreaGram (P.flow.metric t) A.map p 0 1 = 0) {c : ℝ} (hc : c β‰  0) (hphase : βˆ€ p ∈ m64AnnulusDomain, (A.map p).2 = P.circle.quotient (c * p 1)) : βˆ€ p ∈ m64AnnulusDomain, 0 < m64AnnulusWithinGram (P.flow.metric t) A.map p 0 0 ∧ 0 < m64AnnulusWithinGram (P.flow.metric t) A.map p 1 1 ∧ Function.Injective (mfderivWithin (𝓑 2) (𝓑 (n + 1)) A.map m64AnnulusDomain p) := by have hradial := m64Annulus_affine_phase_radial_ne_zero P t hAc hAi hc hphase have hconf := m64AnnulusWithinGram_modulus_conformal A r hAc hAi hconformal intro p hp let d := mfderivWithin (𝓑 2) (𝓑 (n + 1)) A.map m64AnnulusDomain p let e0 : LoopPlane := EuclideanSpace.basisFun (Fin 2) ℝ 0 let e1 : LoopPlane := EuclideanSpace.basisFun (Fin 2) ℝ 1 let G := (P.flow.metric t).inner (A.map p) have h11 : 0 < G (d e1) (d e1) := (P.flow.metric t).pos _ _ (hradial p hp) have hdiag := (hconf p hp).1 have h00 : 0 < G (d e0) (d e0) := by have hpos := mul_pos (inv_pos.mpr hr) h11 change 0 < r⁻¹ * m64AnnulusWithinGram (P.flow.metric t) A.map p 1 1 at hpos rw [← hdiag] at hpos exact (mul_pos_iff_of_pos_left hr).mp hpos have h01 : G (d e0) (d e1) = 0 := (hconf p hp).2 have h10 : G (d e1) (d e0) = 0 := ((P.flow.metric t).symm _ _ _).trans h01 refine ⟨h00, h11, ?_⟩ have hdecomp (v : LoopPlane) : v = v 0 β€’ e0 + v 1 β€’ e1 := by ext i fin_cases i <;> simp [e0, e1] have hd (v : LoopPlane) : d v = v 0 β€’ d e0 + v 1 β€’ d e1 := by rw [← map_smul, ← map_smul, ← map_add, ← hdecomp] have hker (v : LoopPlane) (hv : d v = 0) : v = 0 := by have h0 := congrArg (fun w => G w (d e0)) hv have h1 := congrArg (fun w => G w (d e1)) hv rw [hd v] at h0 h1 simp only [map_add, add_apply, map_smul, smul_apply, smul_eq_mul, h10, h01, mul_zero, zero_add, add_zero, map_zero, zero_apply] at h0 h1 have hv0 : v 0 = 0 := (mul_eq_zero.mp h0).resolve_right h00.ne' have hv1 : v 1 = 0 := (mul_eq_zero.mp h1).resolve_right h11.ne' rw [hdecomp v, hv0, hv1, zero_smul, zero_smul, add_zero] intro v w hvw exact sub_eq_zero.mp (hker (v - w) (by rw [map_sub, hvw, sub_self])) end PoincareMT