import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Stabilization.Free.PhaseConfinement import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Plateau.Free.WeakPhaseMinimum /-! Genuine free weak attainment over every positive modulus. The seam and boundary energy bounds produce the compact interval inside the proof. Its endpoints cannot contain a bounded-energy minimizer. Morgan--Tian context: Lemma 19.15 and its annular area-to-energy construction, printed pp. 447-449. -/ set_option autoImplicit false set_option backward.isDefEq.respectTransparency false noncomputable section open Set MeasureTheory Topology open scoped ContDiff Manifold namespace PoincareMT.M64FreeWeakPhaseAnnulus variable {n m : β„•} {M : Type*} [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓑 n) ∞ M] [CompactSpace M] [T2Space M] local notation "E" => EuclideanSpace ℝ (Fin m) /-- The compact-interval minimizer is an actual minimum over every positive modulus by the proved energy confinement. Source: MT Lemma 19.15, pp. 447-449; M64 derivation `2026-09-25-free-label-compactness.md`. -/ theorem weightedEnergy_attained_positive (e : M β†’ E) (he : ContMDiff (𝓑 n) (𝓑 m) 1 e) (hei : IsClosedEmbedding e) (hread : M60.SUChartReadable (n := n) e) (R : E β†’L[ℝ] LoopPlane) (c0 c1 : ℝ β†’ M) (hc0 : Continuous c0) (hc1 : Continuous c1) (H0 H1 : ℝ ≃o ℝ) {frequency D : ℝ} (hf : frequency β‰  0) (hD : D β‰  0) (hH0 : βˆ€ x, H0 (x + curvePeriod) = H0 x + D) (hH1 : βˆ€ x, H1 (x + curvePeriod) = H1 x + D) (T : E β†’L[ℝ] ℝ) {v0 v1 : ℝ} (hne : v0 β‰  v1) (h0 : βˆ€ x, T (e (c0 x)) = v0) (h1 : βˆ€ x, T (e (c1 x)) = v1) (B : M β†’ E β†’L[ℝ] E β†’L[ℝ] ℝ) (hB : Continuous B) {K : ℝ} (hK : 0 ≀ K) (hb : βˆ€ q, β€–B qβ€– ≀ K) (hpos : βˆ€ q v, 0 ≀ B q v v) (hsymm : βˆ€ q v w, B q v w = B q w v) {C : ℝ} (hC : 0 ≀ C) (hcoercive : βˆ€ (q : M) (v : E), v ∈ range (mfderiv (𝓑 n) (𝓑 m) e q) β†’ β€–vβ€– ^ 2 ≀ C * B q v v) (A0 : M64FreeWeakPhaseAnnulus (n := n) e R c0 c1 H0 H1 frequency D) : βˆƒ r : ℝ, 0 < r ∧ βˆƒ L : M64FreeWeakPhaseAnnulus (n := n) e R c0 c1 H0 H1 frequency D, βˆ€ s : ℝ, 0 < s β†’ βˆ€ A : M64FreeWeakPhaseAnnulus (n := n) e R c0 c1 H0 H1 frequency D, L.annulus.weightedEnergy B r ≀ A.annulus.weightedEnergy B s := by let cap := A0.annulus.weightedEnergy B 1 + 1 have hcap : 0 < cap := by have hn := A0.annulus.weightedEnergy_nonneg B hpos zero_le_one dsimp only [cap] linarith obtain ⟨lo, hi, hlo, hlohi, hconfined⟩ := exists_strict_modulus_interval (R := R) hf hD hH0 hH1 (he.continuous.comp hc0) (he.continuous.comp hc1) T hne h0 h1 B hB hei.isEmbedding hb hpos hcoercive hcap have hseed : A0.annulus.weightedEnergy B 1 ≀ cap := by dsimp only [cap] linarith have hone := hconfined A0 1 one_pos hseed obtain ⟨r, hr, L, hminimum⟩ := weightedEnergy_attained e he hei hread R c0 c1 hc0 hc1 H0 H1 hf hH0 hH1 B hB hK hb hpos hsymm hC hcoercive hlo hlohi.le A0 have hrpos : 0 < r := hlo.trans_le hr.1 have hbelow : L.annulus.weightedEnergy B r ≀ cap := (hminimum 1 ⟨hone.1.le, hone.2.le⟩ A0).trans hseed have hinterior := hconfined L r hrpos hbelow refine ⟨r, hlo.trans hinterior.1, L, ?_⟩ intro s hs A by_cases hA : A.annulus.weightedEnergy B s ≀ cap Β· have hsI := hconfined A s hs hA exact hminimum s ⟨hsI.1.le, hsI.2.le⟩ A Β· exact hbelow.trans (lt_of_not_ge hA).le end PoincareMT.M64FreeWeakPhaseAnnulus