import LinkedTower.Hopf import LinkedTower.Tower import LinkedTower.Links import F02NavierStokes.LinearAlgebra3D import F02NavierStokes.HopfEquivariantS3 import Mathlib.Analysis.SpecialFunctions.ExpDeriv import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic import Mathlib.Analysis.Calculus.Deriv.Add import Mathlib.Analysis.Calculus.Deriv.Mul import Mathlib.Analysis.Calculus.Deriv.Inv import Mathlib.Analysis.Calculus.Deriv.Pow import Mathlib.Topology.Order.Compact import Mathlib.Tactic.FinCases import Mathlib.Tactic.Linarith import Mathlib.Tactic.Positivity import Mathlib.Tactic.Ring import Mathlib.Tactic.FieldSimp import Mathlib.Tactic.NoncommRing /-! # Hopf-Bundle Replacement of the S² Direction Sphere, Quaternionic S⁷ → S⁴ Connection, # Nonsymmetric Fiber Variance Split, and Non-Hopf-Symmetric Round-S³ Stability Formalizes Paul Cooper's Hopf-bundle geometry and non-Hopf-symmetric stability derivations: - `S3_LINKED_GEOMETRY.md` (`SG2`--`SG4c`): explicit two-chart Hopf lifts `q_N, q_S : S² \ {∓e₃} → S³`, `U(1)_k` overlap transition `q_S = q_N c_NS`, gauge-invariant directional diffusion `κ = |∇ξ|² = 4 ∑_j |a_j^⊥|²`, Maurer--Cartan Berry/Hopf curvature `(dβ)_{ij} = -2 k·(a_i × a_j) = -(1/2) ξ·(∂_i ξ × ∂_j ξ)`, and `4 |(dβ)_{ij}| ≤ |∂_i ξ|² + |∂_j ξ|²`. - `S3_PRIMARY_PDE_REVIEW.md` (§4, `L2`): explicit unit-sphere oscillation countercheck `ω_N(x₁) = (0, cos(N x₁), sin(N x₁))` showing `|ω_N| = 1` yet `|∂₁ ω_N|² = N²`. - `HOPF_FOLIATION_LINKAGE.md` (`HL9`--`HL13`), directly reusing `LinkedTower.Hopf`, `LinkedTower.Tower`, and `LinkedTower.Links`: canonical `Sp(1)` connection on `S⁷ → S⁴`, exact N/S pullbacks `A_N, A_S`, exact overlap gauge law `A_S = g⁻¹ A_N g + g⁻¹ dg`, moving-chart covariant evolution (`HL12`), and derived `S²` covariant derivative (`HL13`). - `NONSYMMETRIC_FIBER_CONCENTRATION.md` (`NF4a`, `NF16`): exact Hopf-fiber fourth-moment variance split `avg(r⁴) = R⁴ + J₄` (`J₄ ≥ 0`) and round-`S³` vertical-defect energy budget. - `HOLONOMY_NONSYMMETRIC_INITIAL_DATA_BOUND.md` (`NH8`--`NH14`): exact Young optimizations (`B = 729 C_B⁴ / 16`), full real-calculus Bernoulli ODE comparison with zero-safe first-crossing argument (`δ < 1 ⇒ W(t) ≤ e^{A(t)} W₀ e^{-νλt} / √(1 - δ(1 - e^{-2νλt})) ≤ e^{A₀} W₀`), and the resulting global enstrophy ceiling `Ebar_NS = (√Ebar_b + e^{A₀/2} √W₀)²` for genuinely non-Hopf-symmetric initial data on round `S³`. -/ namespace F02NavierStokes.HopfBundleLiftAndStability open scoped BigOperators Quaternion open LinkedTower.Hopf LinkedTower.Tower LinkedTower.Links open F02NavierStokes.LinearAlgebra3D F02NavierStokes.HopfEquivariantS3 noncomputable section /-! ## 1. Replacing the S² Bloch / Vorticity-Direction Sphere by the Hopf Fiber Bundle (`SG2`--`SG4c`) -/ section HopfBundleS2Lift /-- Pure-imaginary quaternion embedding `ℝ³ → Im ℍ`. -/ def vecToQ (v : Vec3) : Q := ⟨0, v 0, v 1, v 2⟩ /-- Imaginary-part projection `ℍ → ℝ³`. -/ def qToVec (q : Q) : Vec3 := ![q.imI, q.imJ, q.imK] /-- Pure imaginary projection `Im q = q - Re q`. -/ def qIm (q : Q) : Q := ⟨0, q.imI, q.imJ, q.imK⟩ /-- Standard 3D cross product. -/ def cross3 (u v : Vec3) : Vec3 := ![u 1 * v 2 - u 2 * v 1, u 2 * v 0 - u 0 * v 2, u 0 * v 1 - u 1 * v 0] /-- Explicit north-hemisphere Hopf lift `q_N(ξ) ∈ S³` on `ξ₃ > -1` (`SG3`, `S3_LINKED_GEOMETRY.md`). -/ def hopfLiftN (ξ : Vec3) : Q := (1 / Real.sqrt (2 * (1 + ξ 2))) • ⟨1 + ξ 2, -ξ 1, ξ 0, 0⟩ /-- Explicit south-hemisphere Hopf lift `q_S(ξ) ∈ S³` on `ξ₃ < 1` (`SG3`, `S3_LINKED_GEOMETRY.md`). -/ def hopfLiftS (ξ : Vec3) : Q := (1 / Real.sqrt (2 * (1 - ξ 2))) • ⟨-ξ 1, 1 - ξ 2, 0, ξ 0⟩ /-- Explicit `U(1)_k` overlap transition `c_NS(ξ) = (-ξ₂ + ξ₁ k) / √(ξ₁² + ξ₂²)` on `ξ₁² + ξ₂² > 0` (`SG3`). -/ def hopfChartOverlap (ξ : Vec3) : Q := (1 / Real.sqrt (ξ 0 ^ 2 + ξ 1 ^ 2)) • ⟨-ξ 1, 0, 0, ξ 0⟩ theorem hopfLiftN_unit_and_project (ξ : Vec3) (hξ : vecSqNorm ξ = 1) (hN : -1 < ξ 2) : Quaternion.normSq (hopfLiftN ξ) = 1 ∧ hopfQuotientK (hopfLiftN ξ) = vecToQ ξ := by have h2p : 0 < 2 * (1 + ξ 2) := by linarith have hsq : Real.sqrt (2 * (1 + ξ 2)) ^ 2 = 2 * (1 + ξ 2) := Real.sq_sqrt (le_of_lt h2p) have hξeq : (ξ 0) ^ 2 + (ξ 1) ^ 2 + (ξ 2) ^ 2 = 1 := by simpa [vecSqNorm, Fin.sum_univ_three] using hξ set q₀ : Q := ⟨1 + ξ 2, -ξ 1, ξ 0, 0⟩ have hq₀_norm : Quaternion.normSq q₀ = 2 * (1 + ξ 2) := by simp only [q₀, Quaternion.normSq_def'] nlinarith [hξeq] have hq₀_adj : q₀ * LinkedTower.Hopf.qk * star q₀ = (2 * (1 + ξ 2) : ℝ) • vecToQ ξ := by ext <;> simp [q₀, LinkedTower.Hopf.qk, vecToQ] <;> nlinarith [hξeq] have h1p : 1 + ξ 2 ≠ 0 := by linarith constructor · rw [hopfLiftN, Quaternion.normSq_smul] change (1 / Real.sqrt (2 * (1 + ξ 2))) ^ 2 * Quaternion.normSq q₀ = 1 rw [hq₀_norm, div_pow, one_pow, hsq] field_simp [h1p] · rw [hopfQuotientK, LinkedTower.Tower.adjoint, hopfLiftN] change ((1 / Real.sqrt (2 * (1 + ξ 2))) • q₀) * LinkedTower.Hopf.qk * star ((1 / Real.sqrt (2 * (1 + ξ 2))) • q₀) = vecToQ ξ rw [Quaternion.star_smul, smul_mul_assoc, mul_smul_comm, smul_mul_assoc, smul_smul, hq₀_adj, smul_smul] have hc : (1 / Real.sqrt (2 * (1 + ξ 2)) * (1 / Real.sqrt (2 * (1 + ξ 2)))) * (2 * (1 + ξ 2)) = 1 := by have hsq' : Real.sqrt (2 * (1 + ξ 2)) * Real.sqrt (2 * (1 + ξ 2)) = 2 * (1 + ξ 2) := by simpa [pow_two] using hsq have hne : Real.sqrt (2 * (1 + ξ 2)) ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr h2p) field_simp [hne] linarith rw [hc, one_smul] theorem hopfLiftS_unit_and_project (ξ : Vec3) (hξ : vecSqNorm ξ = 1) (hS : ξ 2 < 1) : Quaternion.normSq (hopfLiftS ξ) = 1 ∧ hopfQuotientK (hopfLiftS ξ) = vecToQ ξ := by have h2m : 0 < 2 * (1 - ξ 2) := by linarith have hsq : Real.sqrt (2 * (1 - ξ 2)) ^ 2 = 2 * (1 - ξ 2) := Real.sq_sqrt (le_of_lt h2m) have hξeq : (ξ 0) ^ 2 + (ξ 1) ^ 2 + (ξ 2) ^ 2 = 1 := by simpa [vecSqNorm, Fin.sum_univ_three] using hξ set q₀ : Q := ⟨-ξ 1, 1 - ξ 2, 0, ξ 0⟩ have hq₀_norm : Quaternion.normSq q₀ = 2 * (1 - ξ 2) := by simp only [q₀, Quaternion.normSq_def'] nlinarith [hξeq] have hq₀_adj : q₀ * LinkedTower.Hopf.qk * star q₀ = (2 * (1 - ξ 2) : ℝ) • vecToQ ξ := by ext <;> simp [q₀, LinkedTower.Hopf.qk, vecToQ] <;> nlinarith [hξeq] have h1m : 1 - ξ 2 ≠ 0 := by linarith constructor · rw [hopfLiftS, Quaternion.normSq_smul] change (1 / Real.sqrt (2 * (1 - ξ 2))) ^ 2 * Quaternion.normSq q₀ = 1 rw [hq₀_norm, div_pow, one_pow, hsq] field_simp [h1m] · rw [hopfQuotientK, LinkedTower.Tower.adjoint, hopfLiftS] change ((1 / Real.sqrt (2 * (1 - ξ 2))) • q₀) * LinkedTower.Hopf.qk * star ((1 / Real.sqrt (2 * (1 - ξ 2))) • q₀) = vecToQ ξ rw [Quaternion.star_smul, smul_mul_assoc, mul_smul_comm, smul_mul_assoc, smul_smul, hq₀_adj, smul_smul] have hc : (1 / Real.sqrt (2 * (1 - ξ 2)) * (1 / Real.sqrt (2 * (1 - ξ 2)))) * (2 * (1 - ξ 2)) = 1 := by have hsq' : Real.sqrt (2 * (1 - ξ 2)) * Real.sqrt (2 * (1 - ξ 2)) = 2 * (1 - ξ 2) := by simpa [pow_two] using hsq have hne : Real.sqrt (2 * (1 - ξ 2)) ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr h2m) field_simp [hne] linarith rw [hc, one_smul] /-- Complete `S²` Hopf atlas overlap theorem (`SG3`, `S3_LINKED_GEOMETRY.md` lines 46--58): on the overlap `ξ₁² + ξ₂² > 0` of the north and south Hopf charts: 1. `c_NS(ξ)` has unit norm and lies in the `U(1)_k` stabilizer of `k`, 2. `q_S(ξ) = q_N(ξ) * c_NS(ξ)` exactly, retaining the full `U(1)` winding transition. -/ theorem hopfLift_overlap_U1_cocycle (ξ : Vec3) (hξ : vecSqNorm ξ = 1) (hOv : 0 < ξ 0 ^ 2 + ξ 1 ^ 2) : Quaternion.normSq (hopfChartOverlap ξ) = 1 ∧ hopfChartOverlap ξ * LinkedTower.Hopf.qk = LinkedTower.Hopf.qk * hopfChartOverlap ξ ∧ hopfLiftS ξ = hopfLiftN ξ * hopfChartOverlap ξ := by have hξeq : (ξ 0) ^ 2 + (ξ 1) ^ 2 + (ξ 2) ^ 2 = 1 := by simpa [vecSqNorm, Fin.sum_univ_three] using hξ have h1p : 0 < 1 + ξ 2 := by nlinarith [hξeq, hOv] have h1m : 0 < 1 - ξ 2 := by nlinarith [hξeq, hOv] have hprod : (ξ 0) ^ 2 + (ξ 1) ^ 2 = (1 - ξ 2) * (1 + ξ 2) := by nlinarith [hξeq] have hsqrt_prod : Real.sqrt (2 * (1 + ξ 2)) * Real.sqrt (ξ 0 ^ 2 + ξ 1 ^ 2) = (1 + ξ 2) * Real.sqrt (2 * (1 - ξ 2)) := by rw [← Real.sqrt_mul (by linarith : 0 ≤ 2 * (1 + ξ 2)), hprod] have hfac : 2 * (1 + ξ 2) * ((1 - ξ 2) * (1 + ξ 2)) = (1 + ξ 2) ^ 2 * (2 * (1 - ξ 2)) := by ring rw [hfac, Real.sqrt_mul (sq_nonneg _), Real.sqrt_sq (le_of_lt h1p)] have hsqOv : Real.sqrt (ξ 0 ^ 2 + ξ 1 ^ 2) ^ 2 = ξ 0 ^ 2 + ξ 1 ^ 2 := Real.sq_sqrt (le_of_lt hOv) have hden2 : Real.sqrt (2 * (1 - ξ 2)) ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr (by linarith)) refine ⟨?_, ?_, ?_⟩ · rw [hopfChartOverlap, Quaternion.normSq_smul] simp only [Quaternion.normSq_def'] have hns : (-ξ 1) ^ 2 + 0 ^ 2 + 0 ^ 2 + (ξ 0) ^ 2 = ξ 0 ^ 2 + ξ 1 ^ 2 := by ring rw [hns, div_pow, one_pow, hsqOv] field_simp [ne_of_gt hOv] · ext <;> simp [hopfChartOverlap, LinkedTower.Hopf.qk] · set qN₀ : Q := ⟨1 + ξ 2, -ξ 1, ξ 0, 0⟩ set qS₀ : Q := ⟨-ξ 1, 1 - ξ 2, 0, ξ 0⟩ set c₀ : Q := ⟨-ξ 1, 0, 0, ξ 0⟩ have hmul₀ : qN₀ * c₀ = (1 + ξ 2 : ℝ) • qS₀ := by ext <;> simp [qN₀, qS₀, c₀] <;> nlinarith [hξeq] have hscale : (1 / Real.sqrt (2 * (1 + ξ 2))) * (1 / Real.sqrt (ξ 0 ^ 2 + ξ 1 ^ 2)) * (1 + ξ 2) = 1 / Real.sqrt (2 * (1 - ξ 2)) := by have h1 : (1 / Real.sqrt (2 * (1 + ξ 2))) * (1 / Real.sqrt (ξ 0 ^ 2 + ξ 1 ^ 2)) = 1 / ((1 + ξ 2) * Real.sqrt (2 * (1 - ξ 2))) := by rw [one_div_mul_one_div, hsqrt_prod] rw [h1] field_simp [ne_of_gt h1p, hden2] change (1 / Real.sqrt (2 * (1 - ξ 2)) : ℝ) • qS₀ = ((1 / Real.sqrt (2 * (1 + ξ 2)) : ℝ) • qN₀) * ((1 / Real.sqrt (ξ 0 ^ 2 + ξ 1 ^ 2) : ℝ) • c₀) rw [smul_mul_assoc, mul_smul_comm, smul_smul, hmul₀, smul_smul, hscale] /-- Exact Hopf-bundle directional diffusion identity and `U(1)` gauge transformation (`SG4a`): for unit `q ∈ S³` and tangent jet `dq` satisfying `(star q * dq).re = 0`: 1. Writing `a = star q * dq` (pure imaginary), the derivative of `ξ = q k q*` obeys `dξ := dq k q* + q k dq* = q (a k - k a) q*`, 2. Exact directional diffusion (`SG4a`): `|dξ|² = 4 (a_i² + a_j²) = 4 |a^⊥|²`, 3. Under a `U(1)_k` overlap change `q_b = q * e^{k φ}` (`dq_b = dq e^{k φ} + q (dφ k e^{k φ})`), the connection transforms by `a_b = e^{-k φ} a e^{k φ} + dφ k`, shifting `β_b = β_a + dφ` while leaving the horizontal norm `|a_b^⊥|² = |a_a^⊥|²` strictly gauge-invariant. -/ theorem hopf_directional_diffusion_and_gauge (q dq : Q) (φ dφ : ℝ) (hq : Quaternion.normSq q = 1) (htang : (star q * dq).re = 0) : let a := star q * dq let dξ := dq * LinkedTower.Hopf.qk * star q + q * LinkedTower.Hopf.qk * star dq let c := hopfRightCircle φ let qb := q * c let dqb := dq * c + q * ((dφ : Q) * LinkedTower.Hopf.qk * c) let ab := star qb * dqb dξ = q * (a * LinkedTower.Hopf.qk - LinkedTower.Hopf.qk * a) * star q ∧ Quaternion.normSq dξ = 4 * (a.imI ^ 2 + a.imJ ^ 2) ∧ ab = star c * a * c + (dφ : Q) * LinkedTower.Hopf.qk ∧ ab.imK = a.imK + dφ ∧ ab.imI ^ 2 + ab.imJ ^ 2 = a.imI ^ 2 + a.imJ ^ 2 := by intro a dξ c qb dqb ab have hstar_a : star a = -a := by have ha_re : a.re = 0 := htang ext · simp [ha_re] · simp · simp · simp have hqmul : q * star q = 1 := unit_mul_star q hq have hstarmul : star q * q = 1 := unit_star_mul q hq have hqa : q * a = dq := by dsimp [a]; rw [← mul_assoc, hqmul, one_mul] have hdq_star : star dq = -a * star q := by have h1 : star dq = star (q * a) := by rw [hqa] rw [h1, star_mul, hstar_a] have hdξ_eq : dξ = q * (a * LinkedTower.Hopf.qk - LinkedTower.Hopf.qk * a) * star q := by dsimp [dξ] rw [hdq_star, ← hqa] noncomm_ring have hcomm_norm : Quaternion.normSq (a * LinkedTower.Hopf.qk - LinkedTower.Hopf.qk * a) = 4 * (a.imI ^ 2 + a.imJ ^ 2) := by simp [Quaternion.normSq_def', LinkedTower.Hopf.qk] ring have hdξ_norm : Quaternion.normSq dξ = 4 * (a.imI ^ 2 + a.imJ ^ 2) := by rw [hdξ_eq, map_mul, map_mul, Quaternion.normSq_star, hq, one_mul, mul_one, hcomm_norm] have hsc := Real.sin_sq_add_cos_sq φ have hc_comm : star c * ((dφ : Q) * LinkedTower.Hopf.qk * c) = (dφ : Q) * LinkedTower.Hopf.qk := by ext <;> simp [c, hopfRightCircle, LinkedTower.Hopf.qk] · ring · calc Real.cos φ * (dφ * Real.cos φ) + Real.sin φ * (dφ * Real.sin φ) = (Real.sin φ ^ 2 + Real.cos φ ^ 2) * dφ := by ring _ = dφ := by rw [hsc, one_mul] have hab_eq : ab = star c * a * c + (dφ : Q) * LinkedTower.Hopf.qk := by dsimp [ab, qb, dqb, a] rw [star_mul, mul_add] have h1 : star c * star q * (dq * c) = star c * (star q * dq) * c := by simp only [mul_assoc] have h2 : star c * star q * (q * ((dφ : Q) * LinkedTower.Hopf.qk * c)) = star c * ((star q * q) * ((dφ : Q) * LinkedTower.Hopf.qk * c)) := by simp only [mul_assoc] rw [h1, h2, hstarmul, one_mul, hc_comm] refine ⟨hdξ_eq, hdξ_norm, hab_eq, ?_, ?_⟩ · rw [hab_eq] simp [c, hopfRightCircle, LinkedTower.Hopf.qk] calc (Real.cos φ * a.re + Real.sin φ * a.imK) * Real.sin φ + (Real.cos φ * a.imK + -(Real.sin φ * a.re)) * Real.cos φ = (Real.sin φ ^ 2 + Real.cos φ ^ 2) * a.imK := by ring _ = a.imK := by rw [hsc, one_mul] · rw [hab_eq] simp [c, hopfRightCircle, LinkedTower.Hopf.qk] calc ((Real.cos φ * a.imI + Real.sin φ * a.imJ) * Real.cos φ + (Real.cos φ * a.imJ + -(Real.sin φ * a.imI)) * Real.sin φ) ^ 2 + (-((Real.cos φ * a.imI + Real.sin φ * a.imJ) * Real.sin φ) + (Real.cos φ * a.imJ + -(Real.sin φ * a.imI)) * Real.cos φ) ^ 2 = (Real.sin φ ^ 2 + Real.cos φ ^ 2) ^ 2 * (a.imI ^ 2 + a.imJ ^ 2) := by ring _ = a.imI ^ 2 + a.imJ ^ 2 := by rw [hsc, one_pow, one_mul] /-- Adjoint action of a unit quaternion preserves the 3D scalar triple product `u · (v × w)` (since `Ad_q ∈ SO(3)` has determinant `+1`). -/ theorem adjoint_preserves_triple_product (q : Q) (u v w : Vec3) (hq : Quaternion.normSq q = 1) : let Tu := qToVec (LinkedTower.Tower.adjoint q (vecToQ u)) let Tv := qToVec (LinkedTower.Tower.adjoint q (vecToQ v)) let Tw := qToVec (LinkedTower.Tower.adjoint q (vecToQ w)) vecDot Tu (cross3 Tv Tw) = vecDot u (cross3 v w) := by intro Tu Tv Tw have hstar_q : star q * q = 1 := unit_star_mul q hq have hprod : LinkedTower.Tower.adjoint q (vecToQ u) * (LinkedTower.Tower.adjoint q (vecToQ v) * LinkedTower.Tower.adjoint q (vecToQ w)) = LinkedTower.Tower.adjoint q (vecToQ u * (vecToQ v * vecToQ w)) := by simp only [LinkedTower.Tower.adjoint] calc q * vecToQ u * star q * (q * vecToQ v * star q * (q * vecToQ w * star q)) = q * vecToQ u * (star q * q) * vecToQ v * (star q * q) * vecToQ w * star q := by simp only [mul_assoc] _ = q * (vecToQ u * (vecToQ v * vecToQ w)) * star q := by rw [hstar_q]; simp only [mul_one, mul_assoc] have hre_adj : ∀ z : Q, (LinkedTower.Tower.adjoint q z).re = z.re := by intro z have hqeq : q.re ^ 2 + q.imI ^ 2 + q.imJ ^ 2 + q.imK ^ 2 = 1 := by simpa [Quaternion.normSq_def', pow_two] using hq simp [LinkedTower.Tower.adjoint] calc (q.re * z.re - q.imI * z.imI - q.imJ * z.imJ - q.imK * z.imK) * q.re + (q.re * z.imI + q.imI * z.re + q.imJ * z.imK - q.imK * z.imJ) * q.imI + (q.re * z.imJ - q.imI * z.imK + q.imJ * z.re + q.imK * z.imI) * q.imJ + (q.re * z.imK + q.imI * z.imJ - q.imJ * z.imI + q.imK * z.re) * q.imK = (q.re ^ 2 + q.imI ^ 2 + q.imJ ^ 2 + q.imK ^ 2) * z.re := by ring _ = z.re := by rw [hqeq, one_mul] have hpure : ∀ x : Vec3, vecToQ (qToVec (LinkedTower.Tower.adjoint q (vecToQ x))) = LinkedTower.Tower.adjoint q (vecToQ x) := by intro x ext · simp only [vecToQ, hre_adj] · rfl · rfl · rfl have htriple_re : ∀ x y z : Vec3, (vecToQ x * (vecToQ y * vecToQ z)).re = -vecDot x (cross3 y z) := by intro x y z simp [vecToQ, vecDot, cross3, Fin.sum_univ_three]; ring have hL : (LinkedTower.Tower.adjoint q (vecToQ u) * (LinkedTower.Tower.adjoint q (vecToQ v) * LinkedTower.Tower.adjoint q (vecToQ w))).re = -vecDot Tu (cross3 Tv Tw) := by rw [← hpure u, ← hpure v, ← hpure w] exact htriple_re Tu Tv Tw have hR : (LinkedTower.Tower.adjoint q (vecToQ u * (vecToQ v * vecToQ w))).re = -vecDot u (cross3 v w) := by rw [hre_adj, htriple_re] have heq := congrArg (fun z : Q => z.re) hprod rw [hL, hR] at heq linarith /-- Exact Maurer--Cartan Hopf curvature identity and curvature-diffusion inequality (`SG4b`--`SG4c`): for unit `q ∈ S³` and two local connection vectors `aᵢ, aⱼ ∈ ℝ³`, with `ξ = qToVec(q k q*)` and `∂_m ξ = qToVec(q (a_m k - k a_m) q*)`: 1. `(dβ)_{ij} := -2 (aᵢ × aⱼ)₂ = -(1/2) ξ · (∂ᵢ ξ × ∂ⱼ ξ)` (`SG4b`), 2. `4 |(dβ)_{ij}| ≤ |∂ᵢ ξ|² + |∂ⱼ ξ|²` (`SG4c`, showing curvature is controlled by angular diffusion, not the converse). -/ theorem hopf_maurer_cartan_curvature_and_bound (q : Q) (aᵢ aⱼ : Vec3) (hq : Quaternion.normSq q = 1) : let ξ := qToVec (hopfQuotientK q) let dξᵢ := qToVec (LinkedTower.Tower.adjoint q (vecToQ aᵢ * LinkedTower.Hopf.qk - LinkedTower.Hopf.qk * vecToQ aᵢ)) let dξⱼ := qToVec (LinkedTower.Tower.adjoint q (vecToQ aⱼ * LinkedTower.Hopf.qk - LinkedTower.Hopf.qk * vecToQ aⱼ)) let dβ := -2 * (cross3 aᵢ aⱼ 2) dβ = -(1 / 2 : ℝ) * vecDot ξ (cross3 dξᵢ dξⱼ) ∧ 4 * |dβ| ≤ vecSqNorm dξᵢ + vecSqNorm dξⱼ := by intro ξ dξᵢ dξⱼ dβ have hcomm_vec : ∀ a : Vec3, vecToQ a * LinkedTower.Hopf.qk - LinkedTower.Hopf.qk * vecToQ a = vecToQ (fun k => 2 * cross3 a ![0, 0, 1] k) := by intro a ext <;> simp [vecToQ, LinkedTower.Hopf.qk, cross3] <;> ring have hqk_vec : LinkedTower.Hopf.qk = vecToQ ![0, 0, 1] := by ext <;> simp [vecToQ, LinkedTower.Hopf.qk] have htriple : vecDot ξ (cross3 dξᵢ dξⱼ) = vecDot ![0, 0, 1] (cross3 (fun k => 2 * cross3 aᵢ ![0, 0, 1] k) (fun k => 2 * cross3 aⱼ ![0, 0, 1] k)) := by dsimp [ξ, dξᵢ, dξⱼ, hopfQuotientK] rw [hcomm_vec aᵢ, hcomm_vec aⱼ, hqk_vec] exact adjoint_preserves_triple_product q ![0, 0, 1] _ _ hq have htriple_eval : vecDot ![0, 0, 1] (cross3 (fun k => 2 * cross3 aᵢ ![0, 0, 1] k) (fun k => 2 * cross3 aⱼ ![0, 0, 1] k)) = 4 * cross3 aᵢ aⱼ 2 := by simp [vecDot, cross3, Fin.sum_univ_three] ring have hnorm_adj : ∀ v : Vec3, vecSqNorm (qToVec (LinkedTower.Tower.adjoint q (vecToQ v))) = vecSqNorm v := by intro v have hre0 : (LinkedTower.Tower.adjoint q (vecToQ v)).re = 0 := by simp [LinkedTower.Tower.adjoint, vecToQ]; ring have hns : Quaternion.normSq (LinkedTower.Tower.adjoint q (vecToQ v)) = Quaternion.normSq (vecToQ v) := by simp [LinkedTower.Tower.adjoint, map_mul, hq] have hL : vecSqNorm (qToVec (LinkedTower.Tower.adjoint q (vecToQ v))) = Quaternion.normSq (LinkedTower.Tower.adjoint q (vecToQ v)) := by simp [vecSqNorm, qToVec, Quaternion.normSq_def', hre0, Fin.sum_univ_three, pow_two] have hR : Quaternion.normSq (vecToQ v) = vecSqNorm v := by simp [vecSqNorm, vecToQ, Quaternion.normSq_def', Fin.sum_univ_three, pow_two] rw [hL, hns, hR] have hdξᵢ_sq : vecSqNorm dξᵢ = 4 * ((aᵢ 0) ^ 2 + (aᵢ 1) ^ 2) := by dsimp [dξᵢ]; rw [hcomm_vec aᵢ, hnorm_adj] simp [vecSqNorm, cross3, Fin.sum_univ_three]; ring have hdξⱼ_sq : vecSqNorm dξⱼ = 4 * ((aⱼ 0) ^ 2 + (aⱼ 1) ^ 2) := by dsimp [dξⱼ]; rw [hcomm_vec aⱼ, hnorm_adj] simp [vecSqNorm, cross3, Fin.sum_univ_three]; ring constructor · dsimp [dβ]; rw [htriple, htriple_eval]; ring · rw [hdξᵢ_sq, hdξⱼ_sq] dsimp [dβ, cross3] have h1 : 4 * (-2 * (aᵢ 0 * aⱼ 1 - aᵢ 1 * aⱼ 0)) ≤ 4 * (aᵢ 0 ^ 2 + aᵢ 1 ^ 2) + 4 * (aⱼ 0 ^ 2 + aⱼ 1 ^ 2) := by nlinarith [sq_nonneg (aᵢ 0 + aⱼ 1), sq_nonneg (aᵢ 1 - aⱼ 0)] have h2 : -(4 * (-2 * (aᵢ 0 * aⱼ 1 - aᵢ 1 * aⱼ 0))) ≤ 4 * (aᵢ 0 ^ 2 + aᵢ 1 ^ 2) + 4 * (aⱼ 0 ^ 2 + aⱼ 1 ^ 2) := by nlinarith [sq_nonneg (aᵢ 0 - aⱼ 1), sq_nonneg (aᵢ 1 + aⱼ 0)] have habs : |4 * (-2 * (aᵢ 0 * aⱼ 1 - aᵢ 1 * aⱼ 0))| ≤ 4 * (aᵢ 0 ^ 2 + aᵢ 1 ^ 2) + 4 * (aⱼ 0 ^ 2 + aⱼ 1 ^ 2) := abs_le.mpr ⟨by linarith, by linarith⟩ rw [abs_mul, abs_of_pos (by norm_num : (0 : ℝ) < 4)] at habs exact habs /-- Unit-vorticity oscillation countercheck (`S3_PRIMARY_PDE_REVIEW.md` §4, `L2`): for `ω_N(x) = (0, cos(N x), sin(N x))`, the direction stays on unit `S²` (with unit `S³` lift) everywhere, yet `|∂_x ω_N(x)|² = N²` is unbounded as `N → ∞`. -/ theorem vorticity_direction_oscillation_countercheck (N x : ℝ) : let ω : Vec3 := ![0, Real.cos (N * x), Real.sin (N * x)] let dω : Vec3 := ![0, -N * Real.sin (N * x), N * Real.cos (N * x)] vecSqNorm ω = 1 ∧ vecSqNorm dω = N ^ 2 := by intro ω dω have hsc := Real.sin_sq_add_cos_sq (N * x) constructor · simp only [ω, vecSqNorm, Fin.sum_univ_three, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val] linarith · simp only [dω, vecSqNorm, Fin.sum_univ_three, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val] nlinarith end HopfBundleS2Lift /-! ## 2. Quaternionic Hopf Bundle S³ → S⁷ → S⁴ Canonical Connection (`HL9`--`HL13`, reusing `LinkedTower`) -/ section QuaternionicHopfConnection /-- Canonical `Sp(1)` connection 1-form `A = Im(ā da + b̄ db)` on `S⁷ ⊂ ℍ²` (`HL9`). -/ def canonConnS7 (a b da db : Q) : Q := qIm (star a * da + star b * db) /-- Pulled-back north-chart `Sp(1)` connection `A_N = Im(X dX̄) / (2(1 + z₀))` (`HL10`). -/ def hopfS7ConnN (z₀ : ℝ) (X dX : Q) : Q := (1 / (2 * (1 + z₀)) : ℝ) • qIm (X * star dX) /-- Pulled-back south-chart `Sp(1)` connection `A_S = Im(X̄ dX) / (2(1 - z₀))` (`HL10`). -/ def hopfS7ConnS (z₀ : ℝ) (X dX : Q) : Q := (1 / (2 * (1 - z₀)) : ℝ) • qIm (star X * dX) theorem qIm_add (p q : Q) : qIm (p + q) = qIm p + qIm q := by ext <;> simp [qIm] theorem qIm_smul (c : ℝ) (q : Q) : qIm (c • q) = c • qIm q := by ext <;> simp [qIm] theorem qIm_coe (c : ℝ) : qIm (c : Q) = 0 := by ext <;> simp [qIm] theorem qIm_eq_self_of_re_zero {q : Q} (h : q.re = 0) : qIm q = q := by ext <;> simp [qIm, h] theorem qIm_conj (r q : Q) (hr : Quaternion.normSq r = 1) : qIm (star r * q * r) = star r * qIm q * r := by have h1 : q = (q.re : Q) + qIm q := by ext <;> simp [qIm] have hrmul : star r * r = 1 := unit_star_mul r hr have hre_split : star r * ((q.re : Q) + qIm q) * r = (q.re : Q) + star r * qIm q * r := by rw [mul_add, add_mul] have hcoe : star r * (q.re : Q) * r = (q.re : Q) := by rw [Quaternion.mul_coe_eq_smul, smul_mul_assoc, hrmul] ext <;> simp rw [hcoe] have him_re : (star r * qIm q * r).re = 0 := by simp [qIm]; ring conv_lhs => rw [h1, hre_split, qIm_add, qIm_coe, zero_add, qIm_eq_self_of_re_zero him_re] /-- Vertical reproduction and right-equivariance of the canonical `Sp(1)` connection on `S⁷` (`HL9`). -/ theorem canonConnS7_vertical_and_right_covariant (a b da db r dr ξ : Q) (hS7 : Quaternion.normSq a + Quaternion.normSq b = 1) (hξ : ξ.re = 0) (hr : Quaternion.normSq r = 1) (hdr : (star r * dr).re = 0) : canonConnS7 a b (a * ξ) (b * ξ) = ξ ∧ canonConnS7 (a * r) (b * r) (da * r + a * dr) (db * r + b * dr) = star r * canonConnS7 a b da db * r + star r * dr := by have hsum_one : star a * a + star b * b = 1 := by rw [Quaternion.star_mul_self, Quaternion.star_mul_self, ← Quaternion.coe_add, hS7, Quaternion.coe_one] constructor · dsimp [canonConnS7] have h1 : star a * (a * ξ) + star b * (b * ξ) = (star a * a + star b * b) * ξ := by noncomm_ring rw [h1, hsum_one, one_mul, qIm_eq_self_of_re_zero hξ] · dsimp [canonConnS7] have h1 : star (a * r) * (da * r + a * dr) + star (b * r) * (db * r + b * dr) = star r * (star a * da + star b * db) * r + star r * ((star a * a + star b * b) * dr) := by rw [star_mul, star_mul] noncomm_ring rw [h1, hsum_one, one_mul, qIm_add, qIm_conj r _ hr, qIm_eq_self_of_re_zero hdr] /-- Exact pullbacks of `canonConnS7` through `LinkedTower.Hopf.north` and `LinkedTower.Hopf.south` (`HL10`, `HOPF_FOLIATION_LINKAGE.md` lines 148--160). -/ theorem canonConnS7_pullback_north_south (a b z₀ da db : ℝ) (X dX : Q) (ha : a ^ 2 = (1 + z₀) / 2) (hb : b ^ 2 = (1 - z₀) / 2) (ha0 : a ≠ 0) (hb0 : b ≠ 0) : canonConnS7 (north a X).1 (north a X).2 (da : Q) ((-(da / (2 * a ^ 2)) : ℝ) • star X + (1 / (2 * a) : ℝ) • star dX) = hopfS7ConnN z₀ X dX ∧ canonConnS7 (south b X).1 (south b X).2 ((-(db / (2 * b ^ 2)) : ℝ) • X + (1 / (2 * b) : ℝ) • dX) (db : Q) = hopfS7ConnS z₀ X dX := by have h2a2 : 2 * (1 + z₀) = 4 * a ^ 2 := by linarith have h2b2 : 2 * (1 - z₀) = 4 * b ^ 2 := by linarith constructor · dsimp [canonConnS7, north, hopfS7ConnN] have h1 : star (a : Q) * (da : Q) = ((a * da : ℝ) : Q) := by rw [Quaternion.star_coe, Quaternion.coe_mul] have h2 : star ((1 / (2 * a) : ℝ) • star X) * ((-(da / (2 * a ^ 2)) : ℝ) • star X + (1 / (2 * a) : ℝ) • star dX) = (((1 / (2 * a)) * (-(da / (2 * a ^ 2))) * Quaternion.normSq X : ℝ) : Q) + (1 / (4 * a ^ 2) : ℝ) • (X * star dX) := by rw [Quaternion.star_smul, star_star, mul_add, smul_mul_assoc, mul_smul_comm, smul_smul, smul_mul_assoc, mul_smul_comm, smul_smul, Quaternion.self_mul_star, Quaternion.smul_coe] congr 1 have hc : 1 / (2 * a) * (1 / (2 * a)) = 1 / (4 * a ^ 2) := by field_simp [ha0]; ring rw [hc] rw [h1, h2, ← add_assoc, ← Quaternion.coe_add, qIm_add, qIm_coe, zero_add, qIm_smul, h2a2] · dsimp [canonConnS7, south, hopfS7ConnS] have h1 : star (b : Q) * (db : Q) = ((b * db : ℝ) : Q) := by rw [Quaternion.star_coe, Quaternion.coe_mul] have h2 : star ((1 / (2 * b) : ℝ) • X) * ((-(db / (2 * b ^ 2)) : ℝ) • X + (1 / (2 * b) : ℝ) • dX) = (((1 / (2 * b)) * (-(db / (2 * b ^ 2))) * Quaternion.normSq X : ℝ) : Q) + (1 / (4 * b ^ 2) : ℝ) • (star X * dX) := by rw [Quaternion.star_smul, mul_add, smul_mul_assoc, mul_smul_comm, smul_smul, smul_mul_assoc, mul_smul_comm, smul_smul, Quaternion.star_mul_self, Quaternion.smul_coe] congr 1 have hc : 1 / (2 * b) * (1 / (2 * b)) = 1 / (4 * b ^ 2) := by field_simp [hb0]; ring rw [hc] rw [h1, h2, add_comm ((_ : Q) + _), ← add_assoc, ← Quaternion.coe_add, qIm_add, qIm_coe, zero_add, qIm_smul, h2b2] /-- Exact `Sp(1)` gauge transformation (`HL11`) and moving-chart fiber evolution (`HL12`) on the `S⁷ → S⁴` Hopf overlap, directly reusing `LinkedTower.Hopf.transition` and `LinkedTower.Links.moving_covariant_velocity`. -/ theorem hopfS7_gauge_transform_and_evolution (a b z₀ : ℝ) (X dX rN drN Ω : Q) (ha : a ^ 2 = (1 + z₀) / 2) (hb : b ^ 2 = (1 - z₀) / 2) (ha0 : a ≠ 0) (hb0 : b ≠ 0) (hS4 : Quaternion.normSq X + z₀ ^ 2 = 1) (hLawN : drN = rN * Ω - hopfS7ConnN z₀ X dX * rN) : let g := transition a b X let cX := (star X * dX).re let dg := (1 / (2 * a * b) : ℝ) • dX - (cX / ((2 * a * b) ^ 3) : ℝ) • X let rS := star g * rN let drS := movedVelocity (star g) dg rN drN hopfS7ConnS z₀ X dX = LinkedTower.Links.gauge g (star g) dg (hopfS7ConnN z₀ X dX) ∧ drS = rS * Ω - hopfS7ConnS z₀ X dX * rS := by intro g cX dg rS drS have hXsq : Quaternion.normSq X = (2 * a * b) ^ 2 := overlap_squared_coordinate a b z₀ X ha hb hS4 have hg_unit : Quaternion.normSq g = 1 := transition_unit a b X ha0 hb0 hXsq have hg_inv : g * star g = 1 := unit_mul_star g hg_unit have h2ab : 2 * a * b ≠ 0 := mul_ne_zero (mul_ne_zero (by norm_num) ha0) hb0 have h2a2 : 2 * (1 + z₀) = 4 * a ^ 2 := by linarith have h2b2 : 2 * (1 - z₀) = 4 * b ^ 2 := by linarith have hab1 : a ^ 2 + b ^ 2 = 1 := by linarith have hre_eq : (X * star dX).re = cX := by dsimp [cX]; simp have hconj_im : star X * qIm (X * star dX) * X = -((2 * a * b) ^ 2 : ℝ) • qIm (star X * dX) := by have hsplit : qIm (X * star dX) = X * star dX - (cX : Q) := by ext <;> simp [qIm, cX] have hstar_im : star dX * X - (cX : Q) = -qIm (star X * dX) := by ext <;> simp [qIm, cX] <;> ring have h1 : star X * (X * star dX - (cX : Q)) * X = ((2 * a * b) ^ 2 : ℝ) • (star dX * X - (cX : Q)) := by rw [mul_sub, sub_mul, ← mul_assoc (star X) X (star dX), Quaternion.star_mul_self, hXsq, Quaternion.coe_mul_eq_smul, smul_mul_assoc, Quaternion.mul_coe_eq_smul, smul_mul_assoc, Quaternion.star_mul_self, hXsq, Quaternion.smul_coe, mul_comm cX ((2 * a * b) ^ 2), ← Quaternion.smul_coe, ← smul_sub] rw [hsplit, h1, hstar_im, smul_neg, neg_smul] have hterm1 : star g * hopfS7ConnN z₀ X dX * g = (-(1 / (4 * a ^ 2)) : ℝ) • qIm (star X * dX) := by dsimp [g, transition, hopfS7ConnN] rw [Quaternion.star_smul, smul_mul_assoc, mul_smul_comm, smul_mul_assoc, mul_smul_comm, smul_mul_assoc, smul_smul, smul_smul, hconj_im, smul_smul, h2a2] congr 1 field_simp [ha0, hb0] have hterm2 : star g * dg = (1 / (4 * a ^ 2 * b ^ 2) : ℝ) • qIm (star X * dX) := by dsimp [g, transition, dg] rw [Quaternion.star_smul, mul_sub, smul_mul_assoc, mul_smul_comm, smul_smul, smul_mul_assoc, mul_smul_comm, smul_smul, Quaternion.star_mul_self, hXsq] have hsplit : qIm (star X * dX) = star X * dX - (cX : Q) := by ext <;> simp [qIm, cX] rw [hsplit, smul_sub] have hc1 : 1 / (2 * a * b) * (1 / (2 * a * b)) = 1 / (4 * a ^ 2 * b ^ 2) := by field_simp [ha0, hb0]; ring have hc2 : (1 / (2 * a * b) * (cX / (2 * a * b) ^ 3)) • (((2 * a * b) ^ 2 : ℝ) : Q) = (1 / (4 * a ^ 2 * b ^ 2) : ℝ) • (cX : Q) := by rw [Quaternion.smul_coe, Quaternion.smul_coe] congr 1 field_simp [ha0, hb0] ring rw [hc1, hc2] have hgauge : hopfS7ConnS z₀ X dX = LinkedTower.Links.gauge g (star g) dg (hopfS7ConnN z₀ X dX) := by dsimp [LinkedTower.Links.gauge, hopfS7ConnS] rw [hterm1, hterm2, ← add_smul, h2b2] congr 1 have hcoeff : -(1 / (4 * a ^ 2)) + 1 / (4 * a ^ 2 * b ^ 2) = 1 / (4 * b ^ 2) := by have ha2 : 1 - b ^ 2 = a ^ 2 := by linarith [hab1] field_simp [ha0, hb0] nlinarith [ha2] exact hcoeff.symm refine ⟨hgauge, ?_⟩ have hcov := moving_covariant_velocity g (star g) dg (hopfS7ConnN z₀ X dX) rN drN hg_inv have hN : drN + hopfS7ConnN z₀ X dX * rN = rN * Ω := by rw [hLawN]; abel rw [← hgauge, hN] at hcov have hS : drS + hopfS7ConnS z₀ X dX * rS = rS * Ω := by simpa [rS, drS, mul_assoc] using hcov calc drS = (drS + hopfS7ConnS z₀ X dX * rS) - hopfS7ConnS z₀ X dX * rS := by abel _ = rS * Ω - hopfS7ConnS z₀ X dX * rS := by rw [hS] /-- Derived `S²` covariant evolution law (`HL13`): for `dr = r Ω - A r` with pure-imaginary `A, Ω` (`A.re = Ω.re = 0`), the derived direction `n = hopfQuotientK r = r k r*` obeys `dn + [A, n] = r [Ω, k] r*`. In particular, a purely `k`-directed phase `Ω = φ k` drops out of the `S²` evolution while remaining in `dr`. -/ theorem hopf_derived_S2_covariant_law (r A Ω : Q) (hA : A.re = 0) (hΩ : Ω.re = 0) : let dr := r * Ω - A * r let n := hopfQuotientK r let dn := dr * LinkedTower.Hopf.qk * star r + r * LinkedTower.Hopf.qk * star dr dn + (A * n - n * A) = r * (Ω * LinkedTower.Hopf.qk - LinkedTower.Hopf.qk * Ω) * star r ∧ (∀ φ : ℝ, Ω = (φ : Q) * LinkedTower.Hopf.qk → dn + (A * n - n * A) = 0) := by intro dr n dn have hAstar : star A = -A := by ext <;> simp [hA] have hΩstar : star Ω = -Ω := by ext <;> simp [hΩ] have hlaw : dn + (A * n - n * A) = r * (Ω * LinkedTower.Hopf.qk - LinkedTower.Hopf.qk * Ω) * star r := by dsimp [dn, dr, n, hopfQuotientK, LinkedTower.Tower.adjoint] rw [star_sub, star_mul, star_mul, hAstar, hΩstar] noncomm_ring refine ⟨hlaw, ?_⟩ intro φ hφ rw [hlaw, hφ] have hcomm : (φ : Q) * LinkedTower.Hopf.qk * LinkedTower.Hopf.qk - LinkedTower.Hopf.qk * ((φ : Q) * LinkedTower.Hopf.qk) = 0 := by ext <;> simp [LinkedTower.Hopf.qk] rw [hcomm, mul_zero, zero_mul] end QuaternionicHopfConnection /-! ## 3. Nonsymmetric Hopf-Fiber Fourth-Moment Split & Defect Budget (`NF4a`, `NF16`) -/ section NonsymmetricFiberMoments /-- Exact Hopf-fiber fourth-moment variance split (`NF4a`, `NONSYMMETRIC_FIBER_CONCENTRATION.md`): for any probability weights `w_i ≥ 0` (`∑ w_i = 1`) and fiber amplitudes `r_i`: 1. `∑ w_i r_i⁴ = R⁴ + J₄` where `R² = ∑ w_i r_i²` and `J₄ = ∑ w_i (r_i² - R²)² ≥ 0`, 2. Equality `∑ w_i r_i⁴ = R⁴` holds iff `r_i² = R²` on every positive-weight point (showing precisely where the naive `S²`-quotient replacement `avg(r⁴) = (avg(r²))²` fails when the vertical fiber derivative is nonzero), 3. Oscillation envelope (`NF4`): if `r_i² ≤ R² + Δ` on every point (`Δ ≥ 0`), then `∑ w_i r_i⁴ ≤ R⁴ + Δ R²`. -/ theorem fiber_fourth_moment_variance_split {ι : Type*} (s : Finset ι) (w r : ι → ℝ) (hw_nn : ∀ i ∈ s, 0 ≤ w i) (hw_sum : ∑ i ∈ s, w i = 1) : let Rsq := ∑ i ∈ s, w i * (r i) ^ 2 let J4 := ∑ i ∈ s, w i * ((r i) ^ 2 - Rsq) ^ 2 (∑ i ∈ s, w i * (r i) ^ 4 = Rsq ^ 2 + J4) ∧ 0 ≤ J4 ∧ (∑ i ∈ s, w i * (r i) ^ 4 = Rsq ^ 2 ↔ ∀ i ∈ s, 0 < w i → (r i) ^ 2 = Rsq) ∧ (∀ Δ : ℝ, (∀ i ∈ s, (r i) ^ 2 ≤ Rsq + Δ) → ∑ i ∈ s, w i * (r i) ^ 4 ≤ Rsq ^ 2 + Δ * Rsq) := by intro Rsq J4 have hsplit : ∑ i ∈ s, w i * (r i) ^ 4 = Rsq ^ 2 + J4 := by have hexp : J4 = ∑ i ∈ s, (w i * (r i) ^ 4 - 2 * Rsq * (w i * (r i) ^ 2) + Rsq ^ 2 * w i) := by dsimp [J4] apply Finset.sum_congr rfl; intro i _; ring rw [hexp, Finset.sum_add_distrib, Finset.sum_sub_distrib, ← Finset.mul_sum, ← Finset.mul_sum] have hR : (∑ i ∈ s, w i * (r i) ^ 2) = Rsq := rfl rw [hR, hw_sum] ring have hJ4_nn : 0 ≤ J4 := Finset.sum_nonneg fun i hi => mul_nonneg (hw_nn i hi) (sq_nonneg _) refine ⟨hsplit, hJ4_nn, ?_, ?_⟩ · constructor · intro heq i hi hwi have hJ4_zero : J4 = 0 := by linarith have hterm0 : w i * ((r i) ^ 2 - Rsq) ^ 2 = 0 := by have hle := Finset.single_le_sum (f := fun j => w j * ((r j) ^ 2 - Rsq) ^ 2) (fun j hj => mul_nonneg (hw_nn j hj) (sq_nonneg _)) hi have hnn := mul_nonneg (hw_nn i hi) (sq_nonneg ((r i) ^ 2 - Rsq)) linarith have hsq0 : ((r i) ^ 2 - Rsq) ^ 2 = 0 := (mul_eq_zero.mp hterm0).resolve_left (ne_of_gt hwi) nlinarith · intro hall have hJ4_zero : J4 = 0 := by apply Finset.sum_eq_zero intro i hi rcases eq_or_lt_of_le (hw_nn i hi) with h0 | hpos · rw [← h0, zero_mul] · rw [hall i hi hpos, sub_self, sq, mul_zero, mul_zero] linarith · intro Δ hΔ have hsum_le : ∑ i ∈ s, w i * (r i) ^ 4 ≤ ∑ i ∈ s, (Rsq + Δ) * (w i * (r i) ^ 2) := by apply Finset.sum_le_sum intro i hi have hri := hΔ i hi have h1 : (r i) ^ 4 = (r i) ^ 2 * (r i) ^ 2 := by ring rw [h1] have hwi := hw_nn i hi have hri2 : 0 ≤ (r i) ^ 2 := sq_nonneg (r i) have hwr : 0 ≤ w i * (r i) ^ 2 := mul_nonneg hwi hri2 nlinarith rw [← Finset.mul_sum] at hsum_le have hR : (∑ i ∈ s, w i * (r i) ^ 2) = Rsq := rfl rw [hR] at hsum_le linarith /-- Round-`S³` vertical Hopf-defect energy budget (`NF16`, `NONSYMMETRIC_FIBER_CONCENTRATION.md`): from `Z ≤ 2 (‖∇u‖₂² + ‖u‖₂²)` and the round-`S³` Weitzenböck/Hodge identity `E = ‖∇u‖₂² + 2 ‖u‖₂²` (`U² = ‖u‖₂² ≥ 0`), we obtain `Z ≤ 2 E - 2 U² ≤ 2 E`. -/ theorem hopf_fiber_defect_energy_NF16 (Z gradU2 U2 E : ℝ) (hZ : Z ≤ 2 * (gradU2 + U2)) (hHodge : E = gradU2 + 2 * U2) (hU2 : 0 ≤ U2) : Z ≤ 2 * E - 2 * U2 ∧ Z ≤ 2 * E := by constructor <;> linarith end NonsymmetricFiberMoments /-! ## 4. Non-Hopf-Symmetric Stability Theorem on Round S³ (`NH8`--`NH14`) -/ section NonHopfSymmetricStability /-- Exact scalar Young inequalities from `NH8`--`NH9` (`HOLONOMY_NONSYMMETRIC_INITIAL_DATA_BOUND.md` lines 105--108): 1. `a x^(3/4) ≤ ε x + 27 a⁴ / (256 ε³)` for `a ≥ 0, x ≥ 0, ε > 0`, 2. `a √x ≤ ε x + a² / (4 ε)` for `a ≥ 0, x ≥ 0, ε > 0`. -/ theorem young_three_quarters_and_half_exact (a x ε : ℝ) (ha : 0 ≤ a) (hx : 0 ≤ x) (hε : 0 < ε) : a * x ^ (3 / 4 : ℝ) ≤ ε * x + 27 * a ^ 4 / (256 * ε ^ 3) ∧ a * Real.sqrt x ≤ ε * x + a ^ 2 / (4 * ε) := by constructor · set y : ℝ := x ^ (1 / 4 : ℝ) have hy : 0 ≤ y := Real.rpow_nonneg hx _ have hy3 : y ^ 3 = x ^ (3 / 4 : ℝ) := by dsimp [y] rw [← Real.rpow_natCast, ← Real.rpow_mul hx] norm_num have hy4 : y ^ 4 = x := by dsimp [y] rw [← Real.rpow_natCast, ← Real.rpow_mul hx] norm_num set c : ℝ := (4 * ε / 3) ^ (1 / 4 : ℝ) have hc_pos : 0 < c := Real.rpow_pos_of_pos (by positivity) _ have hc4 : c ^ 4 = 4 * ε / 3 := by dsimp [c] rw [← Real.rpow_natCast, ← Real.rpow_mul (by positivity : (0 : ℝ) ≤ 4 * ε / 3)] norm_num set u : ℝ := c * y set v : ℝ := a / c ^ 3 have hu : 0 ≤ u := by positivity have hv : 0 ≤ v := by positivity have hamgm : 4 * u ^ 3 * v ≤ 3 * u ^ 4 + v ^ 4 := by have hfac : 3 * u ^ 4 + v ^ 4 - 4 * u ^ 3 * v = (u - v) ^ 2 * (3 * u ^ 2 + 2 * u * v + v ^ 2) := by ring have hpos2 : 0 ≤ 3 * u ^ 2 + 2 * u * v + v ^ 2 := by positivity nlinarith [sq_nonneg (u - v), hpos2] have hL : 4 * u ^ 3 * v = 4 * (a * x ^ (3 / 4 : ℝ)) := by dsimp [u, v] rw [← hy3] field_simp [ne_of_gt hc_pos] have hR1 : 3 * u ^ 4 = 4 * (ε * x) := by dsimp [u] rw [mul_pow, hc4, hy4] ring have hR2 : v ^ 4 = 4 * (27 * a ^ 4 / (256 * ε ^ 3)) := by dsimp [v] have hc12 : (c ^ 3) ^ 4 = (c ^ 4) ^ 3 := by ring rw [div_pow, hc12, hc4] field_simp [ne_of_gt hε] ring linarith · have hsq : Real.sqrt x ^ 2 = x := Real.sq_sqrt hx have hεsq : Real.sqrt ε ^ 2 = ε := Real.sq_sqrt (le_of_lt hε) have hεne : Real.sqrt ε ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr hε) have hid : (Real.sqrt ε * Real.sqrt x - a / (2 * Real.sqrt ε)) ^ 2 = Real.sqrt ε ^ 2 * Real.sqrt x ^ 2 - a * Real.sqrt x + a ^ 2 / (4 * Real.sqrt ε ^ 2) := by field_simp [hεne]; ring rw [hεsq, hsq] at hid linarith [sq_nonneg (Real.sqrt ε * Real.sqrt x - a / (2 * Real.sqrt ε))] /-- Exact assembly of the non-Hopf-symmetric perturbation inequality (`NH8`--`NH9`): testing the perturbation equation with `2 Δ_H w` and applying `young_three_quarters_and_half_exact` with share `ε = ν / 6` to all three nonlinear terms yields the exact constant `B = 729 C_B⁴ / 16` and `W' + ν F_w ≤ (B ν⁻³ E_b² + 3 C_B² ν⁻¹ √(E_b F_b)) W + B ν⁻³ W³`. -/ theorem nonsymmetric_perturbation_young_assembly (ν C_B Eb Fb W Fw : ℝ) (hν : 0 < ν) (hCB : 0 ≤ C_B) (hEb : 0 ≤ Eb) (hFb : 0 ≤ Fb) (hW : 0 ≤ W) (hFw : 0 ≤ Fw) : let B := (729 / 16 : ℝ) * C_B ^ 4 let a := B * ν ^ (-(3 : ℤ)) * Eb ^ 2 + 3 * C_B ^ 2 * ν⁻¹ * Real.sqrt (Eb * Fb) 2 * (C_B * Eb ^ (1 / 2 : ℝ) * W ^ (1 / 4 : ℝ) * Fw ^ (3 / 4 : ℝ) + C_B * W ^ (1 / 2 : ℝ) * Eb ^ (1 / 4 : ℝ) * Fb ^ (1 / 4 : ℝ) * Fw ^ (1 / 2 : ℝ) + C_B * W ^ (3 / 4 : ℝ) * Fw ^ (3 / 4 : ℝ)) ≤ ν * Fw + a * W + B * ν ^ (-(3 : ℤ)) * W ^ 3 := by intro B a have hε : 0 < ν / 6 := by positivity have ht1 := (young_three_quarters_and_half_exact (C_B * Eb ^ (1 / 2 : ℝ) * W ^ (1 / 4 : ℝ)) Fw (ν / 6) (by positivity) hFw hε).1 have ht2 := (young_three_quarters_and_half_exact (C_B * W ^ (1 / 2 : ℝ) * Eb ^ (1 / 4 : ℝ) * Fb ^ (1 / 4 : ℝ)) Fw (ν / 6) (by positivity) hFw hε).2 have ht3 := (young_three_quarters_and_half_exact (C_B * W ^ (3 / 4 : ℝ)) Fw (ν / 6) (by positivity) hFw hε).1 have hFw_half : Real.sqrt Fw = Fw ^ (1 / 2 : ℝ) := Real.sqrt_eq_rpow Fw rw [hFw_half] at ht2 have hpow1 : (C_B * Eb ^ (1 / 2 : ℝ) * W ^ (1 / 4 : ℝ)) ^ 4 = C_B ^ 4 * Eb ^ 2 * W := by have hEb4 : (Eb ^ (1 / 2 : ℝ)) ^ (4 : ℕ) = Eb ^ 2 := by rw [← Real.rpow_natCast, ← Real.rpow_mul hEb]; norm_num have hW4 : (W ^ (1 / 4 : ℝ)) ^ (4 : ℕ) = W := by rw [← Real.rpow_natCast, ← Real.rpow_mul hW]; norm_num rw [mul_pow, mul_pow, hEb4, hW4] have hpow2 : (C_B * W ^ (1 / 2 : ℝ) * Eb ^ (1 / 4 : ℝ) * Fb ^ (1 / 4 : ℝ)) ^ 2 = C_B ^ 2 * W * Real.sqrt (Eb * Fb) := by have hW2 : (W ^ (1 / 2 : ℝ)) ^ (2 : ℕ) = W := by rw [← Real.rpow_natCast, ← Real.rpow_mul hW]; norm_num have hEb2 : (Eb ^ (1 / 4 : ℝ)) ^ (2 : ℕ) = Eb ^ (1 / 2 : ℝ) := by rw [← Real.rpow_natCast, ← Real.rpow_mul hEb]; norm_num have hFb2 : (Fb ^ (1 / 4 : ℝ)) ^ (2 : ℕ) = Fb ^ (1 / 2 : ℝ) := by rw [← Real.rpow_natCast, ← Real.rpow_mul hFb]; norm_num rw [mul_pow, mul_pow, mul_pow, hW2, hEb2, hFb2, Real.sqrt_mul hEb, Real.sqrt_eq_rpow, Real.sqrt_eq_rpow] ring have hpow3 : (C_B * W ^ (3 / 4 : ℝ)) ^ 4 = C_B ^ 4 * W ^ 3 := by have hW3 : (W ^ (3 / 4 : ℝ)) ^ (4 : ℕ) = W ^ 3 := by rw [← Real.rpow_natCast, ← Real.rpow_mul hW]; norm_num rw [mul_pow, hW3] rw [hpow1] at ht1 rw [hpow2] at ht2 rw [hpow3] at ht3 have hzpow : ν ^ (-(3 : ℤ)) = (ν ^ 3)⁻¹ := by rw [zpow_neg] norm_cast have hc1 : 2 * (27 * (C_B ^ 4 * Eb ^ 2 * W) / (256 * (ν / 6) ^ 3)) = B * ν ^ (-(3 : ℤ)) * Eb ^ 2 * W := by dsimp [B]; rw [hzpow]; field_simp [ne_of_gt hν]; ring have hc2 : 2 * (C_B ^ 2 * W * Real.sqrt (Eb * Fb) / (4 * (ν / 6))) = 3 * C_B ^ 2 * ν⁻¹ * Real.sqrt (Eb * Fb) * W := by field_simp [ne_of_gt hν]; ring have hc3 : 2 * (27 * (C_B ^ 4 * W ^ 3) / (256 * (ν / 6) ^ 3)) = B * ν ^ (-(3 : ℤ)) * W ^ 3 := by dsimp [B]; rw [hzpow]; field_simp [ne_of_gt hν]; ring have hsum : 2 * (C_B * Eb ^ (1 / 2 : ℝ) * W ^ (1 / 4 : ℝ) * Fw ^ (3 / 4 : ℝ) + C_B * W ^ (1 / 2 : ℝ) * Eb ^ (1 / 4 : ℝ) * Fb ^ (1 / 4 : ℝ) * Fw ^ (1 / 2 : ℝ) + C_B * W ^ (3 / 4 : ℝ) * Fw ^ (3 / 4 : ℝ)) ≤ 2 * ((ν / 6 * Fw + 27 * (C_B ^ 4 * Eb ^ 2 * W) / (256 * (ν / 6) ^ 3)) + (ν / 6 * Fw + C_B ^ 2 * W * Real.sqrt (Eb * Fb) / (4 * (ν / 6))) + (ν / 6 * Fw + 27 * (C_B ^ 4 * W ^ 3) / (256 * (ν / 6) ^ 3))) := by linarith [ht1, ht2, ht3] dsimp only [a] linarith [hsum, hc1, hc2, hc3] /-- Helper: strict first-crossing comparison for scalar Bernoulli differential inequalities `y'(t) ≤ -2 γ y(t) + 2 K y(t)²` on `[0, T]` with zero-safe perturbation `η > 0`. -/ private theorem bernoulli_strict_comparison {y y' : ℝ → ℝ} {γ K y0 η T : ℝ} (hγ : 0 < γ) (hK : 0 ≤ K) (hy0 : 0 ≤ y0) (hη : 0 < η) (hinit : y 0 ≤ y0) (hderiv : ∀ t ∈ Set.Icc 0 T, HasDerivAt y (y' t) t) (hineq : ∀ t ∈ Set.Icc 0 T, y' t ≤ -2 * γ * y t + 2 * K * (y t) ^ 2) (hδ : (K + η) * (y0 + η) / γ < 1) : ∀ t ∈ Set.Icc 0 T, y t < (y0 + η) * Real.exp (-2 * γ * t) / (1 - ((K + η) * (y0 + η) / γ) * (1 - Real.exp (-2 * γ * t))) := by set Kη : ℝ := K + η set y0η : ℝ := y0 + η set δη : ℝ := Kη * y0η / γ have hKη : 0 < Kη := by linarith have hy0η : 0 < y0η := by linarith have hδη_pos : 0 < δη := by positivity let denom : ℝ → ℝ := fun t => (1 - δη) * Real.exp (2 * γ * t) + δη let U : ℝ → ℝ := fun t => y0η / denom t have hdenom_pos : ∀ t : ℝ, 0 < denom t := fun t => by dsimp [denom] have h1 : 0 < 1 - δη := by linarith have he : 0 < Real.exp (2 * γ * t) := Real.exp_pos _ nlinarith have hU_eq : ∀ t : ℝ, U t = y0η * Real.exp (-2 * γ * t) / (1 - δη * (1 - Real.exp (-2 * γ * t))) := by intro t have hepos : 0 < Real.exp (2 * γ * t) := Real.exp_pos _ have hneg : Real.exp (-2 * γ * t) = (Real.exp (2 * γ * t))⁻¹ := by rw [← Real.exp_neg]; congr 1; ring have hden_pos2 : 0 < 1 - δη * (1 - Real.exp (-2 * γ * t)) := by have h1 : 1 - δη * (1 - Real.exp (-2 * γ * t)) = denom t * (Real.exp (2 * γ * t))⁻¹ := by dsimp [denom]; rw [hneg]; field_simp [ne_of_gt hepos]; ring rw [h1]; exact mul_pos (hdenom_pos t) (inv_pos.mpr hepos) dsimp [U] rw [hneg] have h1 : 1 - δη * (1 - (Real.exp (2 * γ * t))⁻¹) = denom t / Real.exp (2 * γ * t) := by dsimp [denom]; field_simp [ne_of_gt hepos]; ring rw [h1] field_simp [ne_of_gt hepos, ne_of_gt (hdenom_pos t)] have hU_deriv : ∀ t : ℝ, HasDerivAt U (-2 * γ * U t + 2 * Kη * (U t) ^ 2) t := by intro t have hlin : HasDerivAt (fun s : ℝ => 2 * γ * s) (2 * γ) t := by simpa using (hasDerivAt_id t).const_mul (2 * γ) have hexp : HasDerivAt (fun s : ℝ => Real.exp (2 * γ * s)) (Real.exp (2 * γ * t) * (2 * γ)) t := (Real.hasDerivAt_exp (2 * γ * t)).comp t hlin have hd : HasDerivAt denom ((1 - δη) * (Real.exp (2 * γ * t) * (2 * γ))) t := by simpa [denom] using (hexp.const_mul (1 - δη)).add_const δη have hinv : HasDerivAt (fun s => (denom s)⁻¹) (-((denom t) ^ 2)⁻¹ * ((1 - δη) * (Real.exp (2 * γ * t) * (2 * γ)))) t := (hasDerivAt_inv (ne_of_gt (hdenom_pos t))).comp t hd have hUmul : HasDerivAt U (y0η * (-((denom t) ^ 2)⁻¹ * ((1 - δη) * (Real.exp (2 * γ * t) * (2 * γ))))) t := by simpa [U, div_eq_mul_inv] using hinv.const_mul y0η have hval : y0η * (-((denom t) ^ 2)⁻¹ * ((1 - δη) * (Real.exp (2 * γ * t) * (2 * γ)))) = -2 * γ * U t + 2 * Kη * (U t) ^ 2 := by have hK_eq : Kη * y0η = γ * δη := by dsimp [δη]; field_simp [ne_of_gt hγ] have hd_eq : (1 - δη) * Real.exp (2 * γ * t) = denom t - δη := by dsimp [denom]; ring dsimp only [U] field_simp [ne_of_gt (hdenom_pos t)] nlinarith [hK_eq, hd_eq] rwa [hval] at hUmul let h : ℝ → ℝ := fun t => y t - U t have hh_deriv : ∀ t ∈ Set.Icc 0 T, HasDerivAt h (y' t - (-2 * γ * U t + 2 * Kη * (U t) ^ 2)) t := fun t ht => (hderiv t ht).sub (hU_deriv t) have hh_cont : ContinuousOn h (Set.Icc 0 T) := fun t ht => (hh_deriv t ht).continuousAt.continuousWithinAt have hh0 : h 0 < 0 := by have hU0 : U 0 = y0η := by simp [U, denom] dsimp [h]; rw [hU0]; linarith -- First-crossing contradiction: if h ever reaches ≥ 0 on [0, T], take minimum t₀. have hlt : ∀ t ∈ Set.Icc 0 T, h t < 0 := by by_contra hnot push Not at hnot obtain ⟨t₁, ht₁, hge₁⟩ := hnot let S : Set ℝ := {s ∈ Set.Icc 0 T | 0 ≤ h s} have hS_ne : S.Nonempty := ⟨t₁, ht₁, hge₁⟩ have hS_compact : IsCompact S := by have hclosed : IsClosed {s ∈ Set.Icc 0 T | 0 ≤ h s} := by have hpre : {s ∈ Set.Icc 0 T | 0 ≤ h s} = Set.Icc 0 T ∩ h ⁻¹' Set.Ici 0 := rfl rw [hpre] exact hh_cont.preimage_isClosed_of_isClosed isClosed_Icc isClosed_Ici exact IsCompact.of_isClosed_subset isCompact_Icc hclosed (fun s hs => hs.1) obtain ⟨t₀, ht₀S, ht₀_min⟩ := hS_compact.exists_isMinOn hS_ne continuousOn_id have ht₀_pos : 0 < t₀ := by rcases eq_or_lt_of_le ht₀S.1.1 with h0 | hpos · exfalso; have := ht₀S.2; rw [← h0] at this; linarith · exact hpos have hlt_left : ∀ s ∈ Set.Ico 0 t₀, h s < 0 := by intro s hs by_contra hge push Not at hge have hsS : s ∈ S := ⟨⟨hs.1, le_trans (le_of_lt hs.2) ht₀S.1.2⟩, hge⟩ have hle : t₀ ≤ s := ht₀_min hsS linarith [hs.2] have hh_t0_zero : h t₀ = 0 := by apply le_antisymm _ ht₀S.2 have hcont_t0 : ContinuousAt h t₀ := (hh_deriv t₀ ht₀S.1).continuousAt have h0 : Filter.Tendsto (fun n : ℕ => t₀ / ((n : ℝ) + 2)) Filter.atTop (nhds 0) := by simpa [Function.comp_def, Nat.cast_add, Nat.cast_ofNat] using (tendsto_const_div_atTop_nhds_zero_nat t₀).comp (Filter.tendsto_add_atTop_nat 2) have hseq_tend : Filter.Tendsto (fun n : ℕ => t₀ - t₀ / ((n : ℝ) + 2)) Filter.atTop (nhds t₀) := by simpa using tendsto_const_nhds.sub h0 have hval_tend : Filter.Tendsto (fun n : ℕ => h (t₀ - t₀ / ((n : ℝ) + 2))) Filter.atTop (nhds (h t₀)) := hcont_t0.tendsto.comp hseq_tend have hle0 : ∀ n : ℕ, h (t₀ - t₀ / ((n : ℝ) + 2)) ≤ 0 := fun n => by have hn : (0 : ℝ) < (n : ℝ) + 2 := by positivity have hdiv_pos : 0 < t₀ / ((n : ℝ) + 2) := div_pos ht₀_pos hn have hdiv_lt : t₀ / ((n : ℝ) + 2) < t₀ := by rw [div_lt_iff₀ hn]; nlinarith [Nat.cast_nonneg (α := ℝ) n] exact le_of_lt (hlt_left _ ⟨by linarith, by linarith⟩) exact le_of_tendsto hval_tend (Filter.Eventually.of_forall hle0) have hy_eq_U : y t₀ = U t₀ := by dsimp [h] at hh_t0_zero; linarith have hU_pos : 0 < U t₀ := div_pos hy0η (hdenom_pos t₀) have hh'_neg : y' t₀ - (-2 * γ * U t₀ + 2 * Kη * (U t₀) ^ 2) < 0 := by have hineq0 := hineq t₀ ht₀S.1 rw [hy_eq_U] at hineq0 have hsq_pos : 0 < (U t₀) ^ 2 := sq_pos_of_pos hU_pos have hdiff : -2 * γ * U t₀ + 2 * K * (U t₀) ^ 2 - (-2 * γ * U t₀ + 2 * Kη * (U t₀) ^ 2) = -2 * η * (U t₀) ^ 2 := by dsimp [Kη]; ring nlinarith have hslope := (hh_deriv t₀ ht₀S.1).tendsto_slope_zero_left let rseq : ℕ → ℝ := fun n => -(t₀ / ((n : ℝ) + 2)) have hrseq_zero : Filter.Tendsto rseq Filter.atTop (nhds 0) := by have h0 : Filter.Tendsto (fun n : ℕ => t₀ / ((n : ℝ) + 2)) Filter.atTop (nhds 0) := by simpa [Function.comp_def, Nat.cast_add, Nat.cast_ofNat] using (tendsto_const_div_atTop_nhds_zero_nat t₀).comp (Filter.tendsto_add_atTop_nat 2) simpa [rseq] using h0.neg have hrseq_neg : ∀ n : ℕ, rseq n < 0 := fun n => by dsimp [rseq] exact neg_lt_zero.mpr (div_pos ht₀_pos (by positivity)) have hrseq_within : Filter.Tendsto rseq Filter.atTop (nhdsWithin 0 (Set.Iio 0)) := tendsto_nhdsWithin_of_tendsto_nhds_of_eventually_within _ hrseq_zero (Filter.Eventually.of_forall hrseq_neg) have hquot_tend := hslope.comp hrseq_within have hquot_ev : ∀ᶠ n : ℕ in Filter.atTop, (rseq n)⁻¹ * (h (t₀ + rseq n) - h t₀) < 0 := hquot_tend.eventually (Iio_mem_nhds hh'_neg) obtain ⟨N, hN⟩ := hquot_ev.exists rw [hh_t0_zero, sub_zero] at hN have hdiv_lt : t₀ / ((N : ℝ) + 2) < t₀ := by rw [div_lt_iff₀ (by positivity : (0 : ℝ) < (N : ℝ) + 2)] nlinarith [Nat.cast_nonneg (α := ℝ) N] have hs_in : t₀ + rseq N ∈ Set.Ico 0 t₀ := by dsimp [rseq]; exact ⟨by linarith, by linarith [div_pos ht₀_pos (by positivity : (0 : ℝ) < (N : ℝ) + 2)]⟩ have hhs_neg : h (t₀ + rseq N) < 0 := hlt_left (t₀ + rseq N) hs_in have hinv_neg : (rseq N)⁻¹ < 0 := inv_neg''.mpr (hrseq_neg N) have hprod_pos : 0 < (rseq N)⁻¹ * h (t₀ + rseq N) := mul_pos_of_neg_of_neg hinv_neg hhs_neg linarith intro t ht rw [← hU_eq t] have := hlt t ht dsimp [h] at this linarith /-- Complete real-calculus non-Hopf-symmetric Bernoulli comparison theorem (`NH11`--`NH13`, `HOLONOMY_NONSYMMETRIC_INITIAL_DATA_BOUND.md` lines 133--151): for any differentiable `W, A : ℝ → ℝ` on `[0, T]` (`0 ≤ W t`, `A 0 = 0`, `0 ≤ A t ≤ A₀`, `A' = a`) satisfying `W'(t) ≤ (a(t) - ν λ) W(t) + B ν⁻³ W(t)³` (`ν > 0, λ > 0, B ≥ 0`), whenever the computable initial-data threshold satisfies `δ := B e^{2 A₀} W(0)² / (λ ν⁴) < 1`, we obtain for ALL `t ∈ [0, T]` (without dividing by `W(t)`): 1. `W(t) ≤ e^{A(t)} W(0) e^{-ν λ t} / √(1 - δ (1 - e^{-2 ν λ t}))`, 2. Uniform time-independent ceiling `W(t) ≤ e^{A₀} W(0)`. -/ theorem nonsymmetric_bernoulli_comparison {W W' A a : ℝ → ℝ} {ν lam B A₀ T : ℝ} (hν : 0 < ν) (hlam : 0 < lam) (hB : 0 ≤ B) (hT : 0 ≤ T) (hW_nn : ∀ t ∈ Set.Icc 0 T, 0 ≤ W t) (hA0 : A 0 = 0) (hA_le : ∀ t ∈ Set.Icc 0 T, A t ≤ A₀) (hW_deriv : ∀ t ∈ Set.Icc 0 T, HasDerivAt W (W' t) t) (hA_deriv : ∀ t ∈ Set.Icc 0 T, HasDerivAt A (a t) t) (hW_ineq : ∀ t ∈ Set.Icc 0 T, W' t ≤ (a t - ν * lam) * W t + B * ν ^ (-(3 : ℤ)) * (W t) ^ 3) (hδ : B * Real.exp (2 * A₀) * (W 0) ^ 2 / (lam * ν ^ 4) < 1) : let δ := B * Real.exp (2 * A₀) * (W 0) ^ 2 / (lam * ν ^ 4) ∀ t ∈ Set.Icc 0 T, W t ≤ Real.exp (A t) * W 0 * Real.exp (-ν * lam * t) / Real.sqrt (1 - δ * (1 - Real.exp (-2 * ν * lam * t))) ∧ W t ≤ Real.exp A₀ * W 0 := by intro δ t ht set γ : ℝ := ν * lam set K : ℝ := B * ν ^ (-(3 : ℤ)) * Real.exp (2 * A₀) have hγ : 0 < γ := mul_pos hν hlam have hK : 0 ≤ K := by dsimp [K] rw [zpow_neg] positivity have hδ_eq : δ = K * (W 0) ^ 2 / γ := by dsimp [δ, K, γ] rw [zpow_neg] field_simp [ne_of_gt hν, ne_of_gt hlam] have hδ_lt : K * (W 0) ^ 2 / γ < 1 := by rwa [← hδ_eq] have hδ_nn : 0 ≤ δ := by rw [hδ_eq]; positivity -- Define Z(t) = W(t) e^{-A(t)} and y(t) = Z(t)². let Z : ℝ → ℝ := fun s => W s * Real.exp (-A s) let y : ℝ → ℝ := fun s => (Z s) ^ 2 let Z' : ℝ → ℝ := fun s => (W' s - a s * W s) * Real.exp (-A s) let y' : ℝ → ℝ := fun s => 2 * Z s * Z' s have hZ_deriv : ∀ s ∈ Set.Icc 0 T, HasDerivAt Z (Z' s) s := fun s hs => by have hexp : HasDerivAt (fun r => Real.exp (-A r)) (Real.exp (-A s) * (-a s)) s := by simpa [Function.comp_def] using (Real.hasDerivAt_exp (-A s)).comp s (hA_deriv s hs).neg have hmul := (hW_deriv s hs).mul hexp have hval : W' s * Real.exp (-A s) + W s * (Real.exp (-A s) * -a s) = Z' s := by dsimp [Z']; ring rwa [hval] at hmul have hy_deriv : ∀ s ∈ Set.Icc 0 T, HasDerivAt y (y' s) s := fun s hs => by have hpow := (hasDerivAt_pow 2 (Z s)).comp s (hZ_deriv s hs) have hval : 2 * (Z s) ^ (2 - 1) * Z' s = y' s := by dsimp [y']; norm_num simpa [y, Function.comp_def, hval] using hpow have hy_ineq : ∀ s ∈ Set.Icc 0 T, y' s ≤ -2 * γ * y s + 2 * K * (y s) ^ 2 := fun s hs => by have hWs : 0 ≤ W s := hW_nn s hs have hZs : 0 ≤ Z s := mul_nonneg hWs (le_of_lt (Real.exp_pos _)) have hZ'_le : Z' s ≤ -γ * Z s + K * (Z s) ^ 3 := by have hineq := hW_ineq s hs have h1 : W' s - a s * W s ≤ -γ * W s + B * ν ^ (-(3 : ℤ)) * (W s) ^ 3 := by dsimp [γ]; linarith have h2 := mul_le_mul_of_nonneg_right h1 (le_of_lt (Real.exp_pos (-A s))) have hexp_le : Real.exp (2 * A s) ≤ Real.exp (2 * A₀) := Real.exp_le_exp.mpr (by linarith [hA_le s hs]) have hcubic : B * ν ^ (-(3 : ℤ)) * (W s) ^ 3 * Real.exp (-A s) = B * ν ^ (-(3 : ℤ)) * Real.exp (2 * A s) * (Z s) ^ 3 := by dsimp [Z] have he : Real.exp (2 * A s) * (Real.exp (-A s)) ^ 3 = Real.exp (-A s) := by rw [← Real.exp_nat_mul, ← Real.exp_add] congr 1; ring calc B * ν ^ (-(3 : ℤ)) * (W s) ^ 3 * Real.exp (-A s) = B * ν ^ (-(3 : ℤ)) * (W s) ^ 3 * (Real.exp (2 * A s) * (Real.exp (-A s)) ^ 3) := by rw [he] _ = B * ν ^ (-(3 : ℤ)) * Real.exp (2 * A s) * (W s * Real.exp (-A s)) ^ 3 := by ring have hBν : 0 ≤ B * ν ^ (-(3 : ℤ)) := by rw [zpow_neg]; positivity have h3 : B * ν ^ (-(3 : ℤ)) * Real.exp (2 * A s) * (Z s) ^ 3 ≤ K * (Z s) ^ 3 := by dsimp [K] exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hexp_le hBν) (pow_nonneg hZs 3) dsimp [Z', Z] at h2 ⊢ linarith [h2, hcubic, h3] dsimp [y', y] have hmul := mul_le_mul_of_nonneg_left hZ'_le (by linarith : 0 ≤ 2 * Z s) linarith [show 2 * Z s * (-γ * Z s + K * (Z s) ^ 3) = -2 * γ * (Z s) ^ 2 + 2 * K * ((Z s) ^ 2) ^ 2 by ring] have hy0_eq : y 0 = (W 0) ^ 2 := by simp [y, Z, hA0] -- Pass to the limit η ↓ 0 in bernoulli_strict_comparison. have hy_bound : y t ≤ (W 0) ^ 2 * Real.exp (-2 * γ * t) / (1 - δ * (1 - Real.exp (-2 * γ * t))) := by have hgap : 0 < 1 - K * (W 0) ^ 2 / γ := by linarith -- Choose η₀ > 0 small enough that for all 0 < η ≤ η₀, (K + η)((W 0)² + η) / γ < 1. set M : ℝ := K + (W 0) ^ 2 + 1 have hM_pos : 0 < M := by positivity set η₀ : ℝ := min 1 ((γ * (1 - K * (W 0) ^ 2 / γ)) / (2 * M)) have hη₀_pos : 0 < η₀ := lt_min (by norm_num) (div_pos (mul_pos hγ hgap) (by positivity)) let seq : ℕ → ℝ := fun n => η₀ / ((n : ℝ) + 1) have hseq_pos : ∀ n : ℕ, 0 < seq n := fun n => div_pos hη₀_pos (by positivity) have hseq_le : ∀ n : ℕ, seq n ≤ η₀ := fun n => by dsimp [seq] exact div_le_self (le_of_lt hη₀_pos) (by linarith [Nat.cast_nonneg (α := ℝ) n]) have hseq_bound : ∀ n : ℕ, y t ≤ ((W 0) ^ 2 + seq n) * Real.exp (-2 * γ * t) / (1 - ((K + seq n) * ((W 0) ^ 2 + seq n) / γ) * (1 - Real.exp (-2 * γ * t))) := by intro n have hηn : 0 < seq n := hseq_pos n have hηle1 : seq n ≤ 1 := le_trans (hseq_le n) (min_le_left _ _) have hηle2 : seq n ≤ (γ * (1 - K * (W 0) ^ 2 / γ)) / (2 * M) := le_trans (hseq_le n) (min_le_right _ _) have hδn : (K + seq n) * ((W 0) ^ 2 + seq n) / γ < 1 := by rw [div_lt_one hγ] have h1 : (K + seq n) * ((W 0) ^ 2 + seq n) - K * (W 0) ^ 2 = seq n * (K + (W 0) ^ 2 + seq n) := by ring have h2 : seq n * (K + (W 0) ^ 2 + seq n) ≤ seq n * M := by dsimp [M]; exact mul_le_mul_of_nonneg_left (by linarith) (le_of_lt hηn) have h3 : seq n * M ≤ γ * (1 - K * (W 0) ^ 2 / γ) / 2 := by have := mul_le_mul_of_nonneg_right hηle2 (le_of_lt hM_pos) have hsimp : γ * (1 - K * (W 0) ^ 2 / γ) / (2 * M) * M = γ * (1 - K * (W 0) ^ 2 / γ) / 2 := by field_simp [ne_of_gt hM_pos] linarith have h4 : γ * (1 - K * (W 0) ^ 2 / γ) = γ - K * (W 0) ^ 2 := by field_simp [ne_of_gt hγ] nlinarith [h1, h2, h3, h4, hgap, hγ] exact le_of_lt (bernoulli_strict_comparison hγ hK (sq_nonneg (W 0)) hηn (by rw [hy0_eq]) hy_deriv hy_ineq hδn t ht) have hseq_zero : Filter.Tendsto seq Filter.atTop (nhds 0) := by simpa [seq, Function.comp_def, Nat.cast_add, Nat.cast_one] using (tendsto_const_div_atTop_nhds_zero_nat η₀).comp (Filter.tendsto_add_atTop_nat 1) have hden_pos : 0 < 1 - δ * (1 - Real.exp (-2 * γ * t)) := by have he_le1 : Real.exp (-2 * γ * t) ≤ 1 := Real.exp_le_one_iff.mpr (by nlinarith [hγ, ht.1]) have h1me_lt1 : 1 - Real.exp (-2 * γ * t) < 1 := by linarith [Real.exp_pos (-2 * γ * t)] nlinarith [hδ_nn, hδ, h1me_lt1, he_le1] have hnum_tend : Filter.Tendsto (fun n => ((W 0) ^ 2 + seq n) * Real.exp (-2 * γ * t)) Filter.atTop (nhds ((W 0) ^ 2 * Real.exp (-2 * γ * t))) := by simpa using (tendsto_const_nhds.add hseq_zero).mul tendsto_const_nhds have hden_tend : Filter.Tendsto (fun n => 1 - ((K + seq n) * ((W 0) ^ 2 + seq n) / γ) * (1 - Real.exp (-2 * γ * t))) Filter.atTop (nhds (1 - δ * (1 - Real.exp (-2 * γ * t)))) := by rw [hδ_eq] have hprod : Filter.Tendsto (fun n => (K + seq n) * ((W 0) ^ 2 + seq n) / γ) Filter.atTop (nhds (K * (W 0) ^ 2 / γ)) := by simpa using ((tendsto_const_nhds.add hseq_zero).mul (tendsto_const_nhds.add hseq_zero)).div_const γ exact tendsto_const_nhds.sub (hprod.mul tendsto_const_nhds) have hdiv_tend := hnum_tend.div hden_tend (ne_of_gt hden_pos) exact ge_of_tendsto hdiv_tend (Filter.Eventually.of_forall hseq_bound) -- Convert y(t) = Z(t)² bound back to W(t) = e^{A(t)} Z(t). have hden_pos : 0 < 1 - δ * (1 - Real.exp (-2 * ν * lam * t)) := by have he_le1 : Real.exp (-2 * ν * lam * t) ≤ 1 := Real.exp_le_one_iff.mpr (by nlinarith [hγ, ht.1]) have h1me_lt1 : 1 - Real.exp (-2 * ν * lam * t) < 1 := by linarith [Real.exp_pos (-2 * ν * lam * t)] nlinarith [hδ_nn, hδ, h1me_lt1, he_le1] have hZ_nn : 0 ≤ Z t := mul_nonneg (hW_nn t ht) (le_of_lt (Real.exp_pos _)) have hW0_nn : 0 ≤ W 0 := hW_nn 0 ⟨le_refl 0, hT⟩ have hZ_le : Z t ≤ W 0 * Real.exp (-ν * lam * t) / Real.sqrt (1 - δ * (1 - Real.exp (-2 * ν * lam * t))) := by have hrhs_nn : 0 ≤ W 0 * Real.exp (-ν * lam * t) / Real.sqrt (1 - δ * (1 - Real.exp (-2 * ν * lam * t))) := by positivity have hrhs_sq : (W 0 * Real.exp (-ν * lam * t) / Real.sqrt (1 - δ * (1 - Real.exp (-2 * ν * lam * t)))) ^ 2 = (W 0) ^ 2 * Real.exp (-2 * γ * t) / (1 - δ * (1 - Real.exp (-2 * γ * t))) := by rw [div_pow, mul_pow, Real.sq_sqrt (le_of_lt hden_pos), ← Real.exp_nat_mul] have h2γ : (2 : ℕ) * (-ν * lam * t) = -2 * γ * t := by dsimp [γ]; ring have h2γ' : -2 * ν * lam * t = -2 * γ * t := by dsimp [γ]; ring rw [h2γ, h2γ'] have hsq_le : (Z t) ^ 2 ≤ (W 0 * Real.exp (-ν * lam * t) / Real.sqrt (1 - δ * (1 - Real.exp (-2 * ν * lam * t)))) ^ 2 := by rw [hrhs_sq]; exact hy_bound nlinarith have hW_eq : W t = Real.exp (A t) * Z t := by dsimp [Z] rw [mul_comm (W t), ← mul_assoc, ← Real.exp_add, add_neg_cancel, Real.exp_zero, one_mul] have h1 : W t ≤ Real.exp (A t) * W 0 * Real.exp (-ν * lam * t) / Real.sqrt (1 - δ * (1 - Real.exp (-2 * ν * lam * t))) := by rw [hW_eq] have := mul_le_mul_of_nonneg_left hZ_le (le_of_lt (Real.exp_pos (A t))) linarith [show Real.exp (A t) * (W 0 * Real.exp (-ν * lam * t) / Real.sqrt (1 - δ * (1 - Real.exp (-2 * ν * lam * t)))) = Real.exp (A t) * W 0 * Real.exp (-ν * lam * t) / Real.sqrt (1 - δ * (1 - Real.exp (-2 * ν * lam * t))) by ring] have h2 : W t ≤ Real.exp A₀ * W 0 := by -- Notice e^{-2 ν λ t} / (1 - δ (1 - e^{-2 ν λ t})) ≤ 1 since δ < 1 and e^{-2 ν λ t} ≤ 1. have he_le1 : Real.exp (-2 * γ * t) ≤ 1 := Real.exp_le_one_iff.mpr (by nlinarith [hγ, ht.1]) have hfrac_le1 : Real.exp (-2 * γ * t) / (1 - δ * (1 - Real.exp (-2 * γ * t))) ≤ 1 := by rw [div_le_one (by simpa [γ, mul_assoc] using hden_pos)] nlinarith [hδ, he_le1] have hZ_sq_le : (Z t) ^ 2 ≤ (W 0) ^ 2 := by calc (Z t) ^ 2 ≤ (W 0) ^ 2 * (Real.exp (-2 * γ * t) / (1 - δ * (1 - Real.exp (-2 * γ * t)))) := by simpa [mul_div_assoc] using hy_bound _ ≤ (W 0) ^ 2 * 1 := mul_le_mul_of_nonneg_left hfrac_le1 (sq_nonneg _) _ = (W 0) ^ 2 := mul_one _ have hZ_le_W0 : Z t ≤ W 0 := by nlinarith have hexpA : Real.exp (A t) ≤ Real.exp A₀ := Real.exp_le_exp.mpr (hA_le t ht) rw [hW_eq] exact mul_le_mul hexpA hZ_le_W0 hZ_nn (le_of_lt (Real.exp_pos A₀)) exact ⟨h1, h2⟩ /-- Global non-Hopf-symmetric enstrophy ceiling on round `S³` (`NH14`): from `‖curl u‖₂ ≤ ‖curl v‖₂ + ‖curl w‖₂`, `‖curl v‖₂² ≤ Ebar_b`, and `‖curl w‖₂² ≤ e^{A₀} W₀`, obtain `‖curl u‖₂² ≤ (√Ebar_b + e^{A₀/2} √W₀)² = Ebar_NS`. -/ theorem nonsymmetric_global_enstrophy_ceiling_NH14 (normCurlU normCurlV normCurlW Ebar_b A₀ W₀ : ℝ) (hU : 0 ≤ normCurlU) (hV : 0 ≤ normCurlV) (hW : 0 ≤ normCurlW) (hEb : 0 ≤ Ebar_b) (hW₀ : 0 ≤ W₀) (htri : normCurlU ≤ normCurlV + normCurlW) (hVbd : normCurlV ^ 2 ≤ Ebar_b) (hWbd : normCurlW ^ 2 ≤ Real.exp A₀ * W₀) : normCurlU ^ 2 ≤ (Real.sqrt Ebar_b + Real.exp (A₀ / 2) * Real.sqrt W₀) ^ 2 := by have hV_le : normCurlV ≤ Real.sqrt Ebar_b := by have hsq : Real.sqrt Ebar_b ^ 2 = Ebar_b := Real.sq_sqrt hEb nlinarith [Real.sqrt_nonneg Ebar_b] have hW_le : normCurlW ≤ Real.exp (A₀ / 2) * Real.sqrt W₀ := by have hsq : (Real.exp (A₀ / 2) * Real.sqrt W₀) ^ 2 = Real.exp A₀ * W₀ := by rw [mul_pow, Real.sq_sqrt hW₀, ← Real.exp_nat_mul] congr 2; push_cast; ring have hrhs_nn : 0 ≤ Real.exp (A₀ / 2) * Real.sqrt W₀ := by positivity nlinarith have hlin : normCurlU ≤ Real.sqrt Ebar_b + Real.exp (A₀ / 2) * Real.sqrt W₀ := by linarith have hrhs_nn : 0 ≤ Real.sqrt Ebar_b + Real.exp (A₀ / 2) * Real.sqrt W₀ := by positivity nlinarith end NonHopfSymmetricStability end end F02NavierStokes.HopfBundleLiftAndStability