import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Circle.PhaseDifferential import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Finite.Conformality /-! An affine auxiliary phase gives a nonzero actual radial derivative on the closed C1 annulus. The current identity extends from the interior by continuity of the genuine within tangent columns. 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 Filter MeasureTheory Bundle 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-domain radial current equals the affine 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_current (P : M62.CircleProductData F circumference) (t : ℝ) {f : LoopPlane β†’ P.charts.Point} (hf : ContMDiffOn (𝓑 2) (𝓑 (n + 1)) 1 f m64AnnulusDomain) (hfi : ContMDiffOn (𝓑 2) (𝓑 (n + 1)) ∞ f m64AnnulusInterior) {c : ℝ} (hphase : βˆ€ p ∈ m64AnnulusDomain, (f p).2 = P.circle.quotient (c * p 1)) : βˆ€ p ∈ m64AnnulusDomain, (P.flow.metric t).inner (f p) (mfderivWithin (𝓑 2) (𝓑 (n + 1)) f m64AnnulusDomain p (EuclideanSpace.basisFun (Fin 2) ℝ 1)) (P.charts.circleUnit (f p)) = c := by let : Bundle.RiemannianBundle (TangentSpace (𝓑 (n + 1)) : P.charts.Point β†’ Type _) := ⟨(P.flow.metric t).toRiemannianMetric⟩ let J : LoopPlane β†’ ℝ := fun p => (P.flow.metric t).inner (f p) (mfderivWithin (𝓑 2) (𝓑 (n + 1)) f m64AnnulusDomain p (EuclideanSpace.basisFun (Fin 2) ℝ 1)) (P.charts.circleUnit (f p)) have hc : ContinuousOn J m64AnnulusDomain := (m64AnnulusWithinColumn_continuousOn hf 1).inner_bundle ((M62.circleProduct_identities P).circle_unit_smooth.continuous.comp_continuousOn hf.continuousOn) have hsub : m64AnnulusInterior βŠ† m64AnnulusDomain := by rw [← m64AnnulusInterior_closure] exact subset_closure have heq : EqOn J (fun _ => c) m64AnnulusInterior := by intro p hp let L : LoopPlane β†’L[ℝ] ℝ := c β€’ EuclideanSpace.proj (1 : Fin 2) have hquot : P.circle.quotient ∘ L =αΆ [𝓝 p] Prod.snd ∘ f := by filter_upwards [isOpen_m64AnnulusInterior.mem_nhds hp] with q hq exact (hphase q (hsub hq)).symm have h := m64CirclePhase_current P t ((hfi.contMDiffAt (isOpen_m64AnnulusInterior.mem_nhds hp)).mdifferentiableAt (by simp)) L.differentiableAt hquot 1 have hd : fderiv ℝ L p (EuclideanSpace.single (1 : Fin 2) 1) = c := by rw [L.fderiv] simp [L] rw [hd] at h have hpi := (interior_maximal hsub isOpen_m64AnnulusInterior) hp dsimp only [J] rw [mfderivWithin_of_mem_nhds (mem_interior_iff_mem_nhds.mp hpi)] simpa only [m64AnnulusCircleCurrent, EuclideanSpace.basisFun_apply] using h.symm exact heq.of_subset_closure hc continuousOn_const hsub (by rw [m64AnnulusInterior_closure]) /-- A nonzero auxiliary slope excludes vanishing of the radial column even at corners and boundary points of the actual C1 source. 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_radial_ne_zero (P : M62.CircleProductData F circumference) (t : ℝ) {f : LoopPlane β†’ P.charts.Point} (hf : ContMDiffOn (𝓑 2) (𝓑 (n + 1)) 1 f m64AnnulusDomain) (hfi : ContMDiffOn (𝓑 2) (𝓑 (n + 1)) ∞ f m64AnnulusInterior) {c : ℝ} (hc : c β‰  0) (hphase : βˆ€ p ∈ m64AnnulusDomain, (f p).2 = P.circle.quotient (c * p 1)) : βˆ€ p ∈ m64AnnulusDomain, mfderivWithin (𝓑 2) (𝓑 (n + 1)) f m64AnnulusDomain p (EuclideanSpace.basisFun (Fin 2) ℝ 1) β‰  0 := by intro p hp hz have h := m64Annulus_affine_phase_within_current P t hf hfi hphase p hp rw [hz, map_zero, zero_apply] at h exact hc h.symm end PoincareMT