import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Annulus.CircleCurrent /-! The real phase differential is the actual product circle current. The quotient chain rule and the product metric determine its sign. Source: MT Lemma 19.15, pp. 447-449; M64 affine phase derivation. -/ noncomputable section set_option autoImplicit false set_option warningAsError true set_option backward.isDefEq.respectTransparency false open Set Filter open scoped Manifold ContDiff Topology Bundle 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 differential of an actual local real circle phase equals the genuine product-metric circle current. 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 m64CirclePhase_current (P : M62.CircleProductData F circumference) (t : โ„) {f : LoopPlane โ†’ P.charts.Point} {L : LoopPlane โ†’ โ„} {p : LoopPlane} (hf : MDifferentiableAt (๐“ก 2) (๐“ก (n + 1)) f p) (hL : DifferentiableAt โ„ L p) (hquot : P.circle.quotient โˆ˜ L =แถ [๐“ p] Prod.snd โˆ˜ f) (i : Fin 2) : fderiv โ„ L p (EuclideanSpace.single i 1) = m64AnnulusCircleCurrent P t f i p := by let := P.charts.chartedSpace let := P.circle.chartedSpace let v : LoopPlane := EuclideanSpace.single i 1 let W := mfderiv (๐“ก 2) (๐“ก (n + 1)) f p v have hsnd : MDifferentiable (๐“ก (n + 1)) (๐“ก 1) (Prod.snd : P.charts.Point โ†’ P.circle.Point) := (contMDiff_snd.comp P.charts.to_product_smooth).mdifferentiable (by simp) have hpr := mfderiv_comp_apply (f := f) (g := (Prod.snd : P.charts.Point โ†’ P.circle.Point)) p (hsnd (f p)) hf v have hl := mfderiv_comp_apply (f := L) (g := P.circle.quotient) p (P.circle.quotient_smooth.mdifferentiableAt (by simp)) hL.hasFDerivAt.hasMFDerivAt.mdifferentiableAt v rw [hquot.mfderiv_eq, mfderiv_eq_fderiv] at hl have hv : (P.charts.split (f p) W).2 = mfderiv ๐“˜(โ„, โ„) (๐“ก 1) P.circle.quotient (L p) (fderiv โ„ L p v) := by rw [P.charts.split_circle] exact hpr.symm.trans hl have hpoint : P.circle.quotient (L p) = (f p).2 := hquot.eq_of_nhds have hsplit : P.charts.split (f p) (P.charts.circleUnit (f p)) = (0, P.circle.frame (f p).2) := (P.charts.split (f p)).apply_symm_apply _ change fderiv โ„ L p v = (P.flow.metric t).inner (f p) W (P.charts.circleUnit (f p)) rw [P.metric_eq, hsplit] simp only [map_zero, zero_add] rw [hv, โ† hpoint] simp only [M62.CircleGeometry.quotient, P.circle.frame_quotient] simpa +instances only [M62.CircleGeometry.quotient, M62.CircleGeometry.metricOnPoints, mul_one] using! (P.circle.metric_quotient (L p) (fderiv โ„ L p v) 1).symm end PoincareMT