import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Finite.C2AnnulusMotion import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Finite.PeriodicFirstVariation import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Boundary.Relabel.AreaRange /-! The original C2 boundary evolutions and attained free-label minimum supply their actual conormal first variation. Source: MT Lemma 19.15, pp. 447-449; finite-conormal-variation derivation. -/ noncomputable section set_option autoImplicit false set_option warningAsError true set_option backward.isDefEq.respectTransparency false open Set Filter MeasureTheory open scoped Manifold ContDiff Topology namespace PoincareMT variable {n : β„•} {M : Type*} [TopologicalSpace M] [T2Space M] [CompactSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] {a b : ℝ} /-- The attained original minimum has genuine moving competitors, the prescribed curvature velocities, and the boundary-minus-Ricci energy derivative. The original labels may have flat intervals. 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 m64C2Annulus_exists_finite_first_variation (F : RicciFlow n M (Icc a b)) {c0 c1 : ℝ β†’ ℝ β†’ M} (hc0 : M63C2ShrinkingCurveOn F c0 (Icc a b)) (hc1 : M63C2ShrinkingCurveOn F c1 (Icc a b)) {t : ℝ} (ht : t ∈ Ioo a b) (sigma0 sigma1 : M64PeriodicDegreeOneLift) (hsigma0 : ContDiff ℝ 1 sigma0.map) (hsigma1 : ContDiff ℝ 1 sigma1.map) (A : M64Annulus (F.metric t) ((fun x => c0 x t) ∘ sigma0.map) ((fun x => c1 x t) ∘ sigma1.map)) (hA : ContMDiffOn (𝓑 2) (𝓑 n) 1 A.map m64AnnulusDomain) (hstrip : ContMDiffOn (𝓑 2) (𝓑 n) ∞ A.map {p : LoopPlane | p 1 ∈ Ioo (0 : ℝ) 1}) {r : ℝ} (hr : 0 < r) (hminimum : A.area = m64LeastAnnulusArea (F.metric t) (fun x => c0 x t) (fun x => c1 x t)) (hconformal : βˆ€α΅ p βˆ‚volume.restrict m64AnnulusDomain, r * m60AreaGram (F.metric t) A.map p 0 0 = r⁻¹ * m60AreaGram (F.metric t) A.map p 1 1 ∧ m60AreaGram (F.metric t) A.map p 0 1 = 0) : βˆƒ epsilon : ℝ, 0 < epsilon ∧ (βˆ€ s ∈ Ioo (-epsilon) epsilon, t + s ∈ Ioo a b) ∧ βˆƒ v : ℝ β†’ LoopPlane β†’ M, (βˆ€ p, v 0 p = A.map p) ∧ (βˆ€ s x y, v s (annulusPoint (x + curvePeriod) y) = v s (annulusPoint x y)) ∧ (βˆ€ s ∈ Ioo (-epsilon) epsilon, βˆ€ x, v s (annulusPoint x 0) = c0 (sigma0.map x) (t + s)) ∧ (βˆ€ s ∈ Ioo (-epsilon) epsilon, βˆ€ x, v s (annulusPoint x 1) = c1 (sigma1.map x) (t + s)) ∧ (βˆ€ x, curveVelocity (n := n) (fun s => v s (annulusPoint x 0)) 0 = m62CurvatureVector F c0 t (sigma0.map x)) ∧ (βˆ€ x, curveVelocity (n := n) (fun s => v s (annulusPoint x 1)) 0 = m62CurvatureVector F c1 t (sigma1.map x)) ∧ (βˆ€ s ∈ Ioo (-epsilon) epsilon, βˆ€ g' : RiemannianMetric n M, βˆƒ B : M64Annulus g' ((fun x => c0 x (t + s)) ∘ sigma0.map) ((fun x => c1 x (t + s)) ∘ sigma1.map), EqOn B.map (v s) m64AnnulusDomain ∧ B.area = m64AnnulusArea g' (v s)) ∧ let R := fun p => r * (F.connection t).ricci (v 0 p) (mfderiv (𝓑 2) (𝓑 n) (v 0) p (EuclideanSpace.basisFun (Fin 2) ℝ 0)) (mfderiv (𝓑 2) (𝓑 n) (v 0) p (EuclideanSpace.basisFun (Fin 2) ℝ 0)) + r⁻¹ * (F.connection t).ricci (v 0 p) (mfderiv (𝓑 2) (𝓑 n) (v 0) p (EuclideanSpace.basisFun (Fin 2) ℝ 1)) (mfderiv (𝓑 2) (𝓑 n) (v 0) p (EuclideanSpace.basisFun (Fin 2) ℝ 1)) HasDerivAt (fun s => ∫ p in m64AnnulusDomain, m64ModulusEnergyDensity (F.metric (t + s)) r (v s) p) (r⁻¹ * (∫ x in Icc (0 : ℝ) curvePeriod, m64FiniteAnnulusCurrent (F.metric t) v 1 (annulusPoint x 1) - m64FiniteAnnulusCurrent (F.metric t) v 1 (annulusPoint x 0)) - ∫ p in m64AnnulusDomain, R p) 0 := by obtain ⟨epsilon, hepsilon, htime, v, hbase, hperiod, hlower, hupper, hvelocity0, hvelocity1, hfamily, -, d, h, hh, O, hO, hmap, Phi, hPhi, hv⟩ := m64C2Annulus_exists_finite_energy_motion F hc0 hc1 ht sigma0 sigma1 hsigma0 hsigma1 A hA have ht' : t ∈ Icc a b := Ioo_subset_Icc_self ht have hmin : A.area = m64LeastAnnulusArea (F.metric t) ((fun x => c0 x t) ∘ sigma0.map) ((fun x => c1 x t) ∘ sigma1.map) := by rw [M64.leastAnnulusArea_comp_lifts_of_C1 ((hc0.spatial_regular t ht').of_le (by norm_num)) (hc0.periodic t ht') ((hc1.spatial_regular t ht').of_le (by norm_num)) (hc1.periodic t ht') sigma0 sigma1] exact hminimum refine ⟨epsilon, hepsilon, htime, v, hbase, hperiod, hlower, hupper, hvelocity0, hvelocity1, hfamily, ?_⟩ rw [hv] at hbase hperiod ⊒ exact m64ParameterAnnulus_periodic_first_variation F ht A hr hmin hconformal hstrip hepsilon htime hO hPhi hh hmap hbase hperiod end PoincareMT