import LinkedTower.Hopf import LinkedTower.Links import F02NavierStokes.LinearAlgebra3D import F02NavierStokes.HopfBundleLiftAndStability import Mathlib.Analysis.SpecialFunctions.ExpDeriv import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic import Mathlib.Analysis.Calculus.MeanValue import Mathlib.Tactic.FinCases import Mathlib.Tactic.Linarith import Mathlib.Tactic.Positivity import Mathlib.Tactic.Ring import Mathlib.Tactic.FieldSimp import Mathlib.Tactic.NoncommRing /-! # Chart-Safe Verification of Quaternionic S⁴ Constraints on 3D NS vs. Curved S⁴ / 4D Fluid PDEs Strict local-chart, overlap-covariant revision eliminating every global section, single-chart stereographic projection, fixed eigenframe, and borrowed flat-`ℝ⁴` equation: ## Part 1 — Quaternionic `S⁴` Constraints on Actual 3D Navier–Stokes (Zero Global Sections) 1. **Basis-Free, `O(3)`-Overlap-Invariant `S⁴` Log-Stretch Eigenvalue Floor (`traceless_unit_S4_basis_free_bounds`, `traceless_unit_S4_matrix_extremizers`)**: Without choosing any eigenframe or global basis, for EVERY symmetric traceless `3×3` matrix `T ∈ Sym₀(E_x)` with `hsNormSq T = 1`, our basis-free Cholesky decomposition `isPSD_eq_sum_three_outers` yields `tr((c I - T)²) ≤ (tr(c I - T))²`, i.e., `3 c² + 1 ≤ 9 c²`, proving `T ⪯ₗ c I → 1 / √6 ≤ c`, alongside `T ⪯ₗ √(2/3) I`, strictly invariant under every local orthogonal overlap transition `T ↦ Oᵀ T O` (`O ∈ O(3)`). 2. **Complete Two-Chart `S⁷ → S⁴` Atlas for the 4D Strain-Vorticity Tetrad (`s4_two_chart_tetrad_atlas_and_pole_equivalence`)**: Replaces single-chart stereographic projection (which deleted the north pole and imposed a hidden global section `r_S = 1`) with the full two-chart cover `U_S = {c < 1}`, `U_N = {c > -1}` directly reusing `LinkedTower.Hopf.north`, `south`, and `transition`: - `U_S` carries coordinate `q ∈ ℍ` and local fiber `r_S = 1`; - `U_N` carries the inverted coordinate `w = q⁻¹ = q̄ / |q|²` (regular right through the north/blowup pole `w = 0`!) and the **non-trivial** fiber `r_N = q / |q| = g_NS ∈ Sp(1)`; - On the overlap `U_N ∩ U_S` (`q ≠ 0`): `stereoNorthS4 w = stereoSouthS4 q`, `r_N = g_NS * r_S`, `σ_N · r_N = tetradLiftS7 q = σ_S · r_S`, and the pole-margin condition `1 - c ≥ ε` is equivalently `|q|² ≤ (2 - ε)/ε` in `U_S` AND `|w|² ≥ ε/(2 - ε)` in `U_N`. 3. **`S⁷ → S⁴` Canonical Connection Underdetermination (`s7_s4_horizontal_underdetermination_HL14`)** and **Coupled `(S⁴, n)` Non-Stretching Closure (`coupled_s4_nonstretching_closure`)**. ## Part 2 — Curved Round `S⁴` (Non-Parallelizable, `χ(S⁴) = 2`) vs. Flat `𝕋⁴` Fluid PDEs 4. **Intrinsic 4D Hodge Star `★₄`, Self-Dual / Anti-Self-Dual 2-Form Split, and Full `SO(4)` Overlap Covariance (`s4_hodge_star_SO4_invariance`)**: Since `TS⁴` admits NO global frame (`χ(S⁴) = 2`), vorticity is an intrinsic 2-form `Ω = d u♭`. Directly using `LinkedTower.Hopf.Q` for the double cover `Sp(1)_L × Sp(1)_R → SO(4)`, proves `★₄² = Id`, `Ω = Ω₊ + Ω₋`, `⟨Ω₊, Ω₋⟩ = 0`, `|Ω|² = |Ω₊|² + |Ω₋|²`, exact `SO(4)` local chart-transition invariance `★₄(Oᵀ Ω O) = Oᵀ (★₄ Ω) O`, and exact chirality separation (`Sp(1)_L` fixes `Λ²₋`; `Sp(1)_R` fixes `Λ²₊`). 5. **Exact Curved `S^d` Bochner–Weitzenböck Curvature Gaps & Dimensional Scaling (`s4_curved_weitzenbock_gaps_and_scaling`)**: Separates flat `𝕋⁴` (`Ric = 0`, mean removal + Poincaré `λ₁`) from curved round `S⁴` (`Ric = 3 I` on 1-forms, `Δ_H^{(2)} = -Δ_∇ + 4 I` on 2-forms, giving exact frame-free gaps `E_H = ‖∇u‖₂² + 3 ‖u‖₂² ≥ 3 U²` and `F_H = ‖∇Ω‖₂² + 4 E_H ≥ 4 E_H`), alongside the exact Navier–Stokes vs. Yang–Mills criticality comparison (`γ_c(d) = (d+2)/4` vs `4 - d = 0`). 6. **Curved Round-`S⁴` 2nd-Order Hodge-Viscosity NS Threshold & Linear-`F_H` Obstruction (`ns4d_curved_S4_second_order_threshold_and_obstruction`)**: Uses the exact curved `S⁴` Weitzenböck gap `F_H ≥ 4 E_H` (giving exponential decay rate `8 (ν - C_{S⁴}² √E_H(0))` for small `H¹` data — no flat Fourier modes!) while proving that the large-data linear-`F_H` obstruction (`ν F_H < C_{S⁴}² √E_H F_H` for `E_H > ν² / C_{S⁴}⁴`) persists even with the curved `+4 E_H` curvature damping. 7. **Curved Round-`S⁴` Biharmonic Hodge-Laplacian NS Unconditional Exponential Decay Closure (`ns4d_curved_S4_biharmonic_global_closure`)**: Retaining the curved `S⁴` gap `F_H ≥ 4 E_H` and intrinsic spectral Cauchy–Schwarz `F_H² ≤ E_H G_H`, the zero-safe Lyapunov functional `Ψ(t) = E_H(t) exp(8 ν t + C_{S⁴}⁴ U_sq(t) / (2 ν μ))` is nonincreasing, yielding the strictly sharper frame-free curved-`S⁴` global exponential decay law `E_H(t) ≤ E_H(0) exp(C_{S⁴}⁴ U₀² / (2 ν μ) - 8 ν t)`. -/ namespace F02NavierStokes.QuaternionicS4And4DPDE open scoped Matrix BigOperators Quaternion open Matrix LinkedTower.Hopf open F02NavierStokes.LinearAlgebra3D open F02NavierStokes.HopfBundleLiftAndStability noncomputable section /-- Private helper: `g'(s) ≤ 0` on `[0, T]` implies `g t ≤ g 0` for all `t ∈ [0, T]`. -/ private theorem le_zero_of_hasDerivAt_nonpos {g : ℝ → ℝ} {T : ℝ} (hg : ∀ s ∈ Set.Icc 0 T, ∃ dg : ℝ, HasDerivAt g dg s ∧ dg ≤ 0) : ∀ t ∈ Set.Icc 0 T, g t ≤ g 0 := by have hcont : ContinuousOn g (Set.Icc 0 T) := fun s hs => by obtain ⟨dg, hdg, _⟩ := hg s hs exact hdg.continuousAt.continuousWithinAt let dgFun : ℝ → ℝ := fun s => if h : s ∈ Set.Icc 0 T then Classical.choose (hg s h) else 0 exact image_le_of_deriv_right_le_deriv_boundary hcont (f' := dgFun) (fun s hs => by have hs_icc : s ∈ Set.Icc 0 T := ⟨hs.1, le_of_lt hs.2⟩ simp only [dgFun, hs_icc, ↓reduceDIte] exact (Classical.choose_spec (hg s hs_icc)).1.hasDerivWithinAt) (B := fun _ => g 0) (B' := fun _ => 0) le_rfl continuousOn_const (fun s _ => hasDerivWithinAt_const s (Set.Ici s) (g 0)) (fun s hs => by have hs_icc : s ∈ Set.Icc 0 T := ⟨hs.1, le_of_lt hs.2⟩ simp only [dgFun, hs_icc, ↓reduceDIte] exact (Classical.choose_spec (hg s hs_icc)).2) /-! ## Part 1: Chart-Safe & Basis-Free Quaternionic `S⁴` Constraints on 3D Navier–Stokes -/ section QuaternionicS4Constraints /-- Basis-free PSD trace inequality `tr(M²) ≤ (tr M)²` for every `3×3` symmetric PSD matrix `M`, proved directly from the basis-free Cholesky decomposition `isPSD_eq_sum_three_outers` (no eigenbasis or global frame). -/ private theorem trace_sq_le_sq_trace_of_isPSD {M : Mat3} (hM : IsPSD M) : (M * M).trace ≤ (M.trace) ^ 2 := by obtain ⟨v₁, v₂, v₃, hM_eq⟩ := isPSD_eq_sum_three_outers hM have houter_tr : ∀ u : Vec3, (outer u).trace = vecSqNorm u := by intro u; simp [outer, Matrix.trace, Matrix.diag, vecSqNorm, pow_two] have houter_mul_tr : ∀ u w : Vec3, (outer u * outer w).trace = (vecDot u w) ^ 2 := by intro u w simp [outer, Matrix.trace, Matrix.diag, Matrix.mul_apply, vecDot, Fin.sum_univ_three] ring have hcs : ∀ u w : Vec3, (vecDot u w) ^ 2 ≤ vecSqNorm u * vecSqNorm w := by intro u w simp only [vecDot, vecSqNorm, Fin.sum_univ_three] nlinarith [sq_nonneg (u 0 * w 1 - u 1 * w 0), sq_nonneg (u 0 * w 2 - u 2 * w 0), sq_nonneg (u 1 * w 2 - u 2 * w 1)] rw [hM_eq] have htr : (outer v₁ + outer v₂ + outer v₃).trace = vecSqNorm v₁ + vecSqNorm v₂ + vecSqNorm v₃ := by rw [Matrix.trace_add, Matrix.trace_add, houter_tr, houter_tr, houter_tr] have hsq : ((outer v₁ + outer v₂ + outer v₃) * (outer v₁ + outer v₂ + outer v₃)).trace = (vecDot v₁ v₁) ^ 2 + (vecDot v₂ v₂) ^ 2 + (vecDot v₃ v₃) ^ 2 + 2 * (vecDot v₁ v₂) ^ 2 + 2 * (vecDot v₁ v₃) ^ 2 + 2 * (vecDot v₂ v₃) ^ 2 := by have hexp : (outer v₁ + outer v₂ + outer v₃) * (outer v₁ + outer v₂ + outer v₃) = outer v₁ * outer v₁ + outer v₁ * outer v₂ + outer v₁ * outer v₃ + outer v₂ * outer v₁ + outer v₂ * outer v₂ + outer v₂ * outer v₃ + outer v₃ * outer v₁ + outer v₃ * outer v₂ + outer v₃ * outer v₃ := by noncomm_ring rw [hexp] simp only [Matrix.trace_add, houter_mul_tr, vecDot_comm v₂ v₁, vecDot_comm v₃ v₁, vecDot_comm v₃ v₂] ring rw [htr, hsq, vecDot_self, vecDot_self, vecDot_self] have h12 := hcs v₁ v₂ have h13 := hcs v₁ v₃ have h23 := hcs v₂ v₃ nlinarith /-- **Basis-free, `O(3)`-overlap-invariant `S⁴` log-stretch floor and ceiling**: for EVERY real symmetric traceless `3×3` matrix `T : Mat3` (`Tᵀ = T`, `tr T = 0`, `hsNormSq T = 1`, representing an arbitrary point `γ ∈ S⁴ ⊂ Sym₀(E_x)` with NO eigenbasis or global frame!): 1. **Sharp basis-free lower floor**: for EVERY `c ≥ 0`, if `T ⪯ₗ c I`, then `1 / √6 ≤ c` (proved directly from `3 c² + 1 = tr((c I - T)²) ≤ (tr(c I - T))² = 9 c²`), 2. **Sharp basis-free upper ceiling**: `T ⪯ₗ √(2/3) I`, 3. **Exact `O(3)` local chart-overlap invariance**: under ANY local orthogonal frame transition `T' = Oᵀ T O` (`Oᵀ O = I`, `O Oᵀ = I`), `T'` retains symmetry, `tr T' = 0`, `hsNormSq T' = 1`, and `T' ⪯ₗ c I ↔ T ⪯ₗ c I`, 4. **Exponential stretch obstruction**: for every `c ≥ 0` with `T ⪯ₗ c I` and every `ρ ≥ 0`, `exp(ρ / √6) ≤ exp(ρ c)` and `exp(ρ c) → +∞` as `ρ → +∞`. -/ theorem traceless_unit_S4_basis_free_bounds {T : Mat3} (hTsym : Tᵀ = T) (hTtr : T.trace = 0) (hThs : hsNormSq T = 1) : (∀ c : ℝ, 0 ≤ c → T ⪯ₗ c • (1 : Mat3) → 1 / Real.sqrt 6 ≤ c) ∧ (T ⪯ₗ Real.sqrt (2 / 3) • (1 : Mat3)) ∧ (∀ O : Mat3, Oᵀ * O = 1 → O * Oᵀ = 1 → let T' := Oᵀ * T * O T'ᵀ = T' ∧ T'.trace = 0 ∧ hsNormSq T' = 1 ∧ (∀ c : ℝ, T' ⪯ₗ c • (1 : Mat3) ↔ T ⪯ₗ c • (1 : Mat3))) ∧ (∀ c : ℝ, 0 ≤ c → T ⪯ₗ c • (1 : Mat3) → (∀ ρ : ℝ, 0 ≤ ρ → Real.exp (ρ / Real.sqrt 6) ≤ Real.exp (ρ * c)) ∧ Filter.Tendsto (fun ρ : ℝ => Real.exp (ρ * c)) Filter.atTop Filter.atTop) := by have hTsq_tr : (T * T).trace = 1 := by have h1 : hsNormSq T = (Tᵀ * T).trace := rfl rw [h1, hTsym] at hThs exact hThs have hlow : ∀ c : ℝ, 0 ≤ c → T ⪯ₗ c • (1 : Mat3) → 1 / Real.sqrt 6 ≤ c := by intro c hc hle have hpsd : IsPSD (c • (1 : Mat3) - T) := hle have htr_ineq := trace_sq_le_sq_trace_of_isPSD hpsd have htr1 : (c • (1 : Mat3) - T).trace = 3 * c := by rw [Matrix.trace_sub, Matrix.trace_smul, Matrix.trace_one, hTtr] simp [smul_eq_mul]; ring have htr2 : ((c • (1 : Mat3) - T) * (c • (1 : Mat3) - T)).trace = 3 * c ^ 2 + 1 := by have hexp : (c • (1 : Mat3) - T) * (c • (1 : Mat3) - T) = (c ^ 2) • (1 : Mat3) - (2 * c) • T + T * T := by ext i j simp only [Matrix.sub_mul, Matrix.mul_sub, Matrix.smul_mul, Matrix.mul_smul, Matrix.one_mul, Matrix.mul_one, Matrix.sub_apply, Matrix.add_apply, Matrix.smul_apply, smul_eq_mul] ring rw [hexp, Matrix.trace_add, Matrix.trace_sub, Matrix.trace_smul, Matrix.trace_smul, Matrix.trace_one, hTtr, hTsq_tr] simp [smul_eq_mul]; ring rw [htr1, htr2] at htr_ineq have h6c2 : 1 ≤ 6 * c ^ 2 := by nlinarith have hs6_pos : 0 < Real.sqrt 6 := Real.sqrt_pos.mpr (by norm_num) rw [← sq_le_sq₀ (by positivity) hc, div_pow, one_pow, Real.sq_sqrt (by norm_num)] linarith have hhi : T ⪯ₗ Real.sqrt (2 / 3) • (1 : Mat3) := by refine ⟨by simp [hTsym], fun x => ?_⟩ have hq := traceless_sym_quadratic_bound T hTsym hTtr x rw [hThs, Real.sqrt_one, mul_one] at hq simp only [Matrix.sub_mulVec, Matrix.smul_mulVec, Matrix.one_mulVec, dotProduct_sub, dotProduct_smul, smul_eq_mul] have hxx : x ⬝ᵥ x = vecSqNorm x := (vecSqNorm_eq_dotProduct x).symm rw [hxx] linarith have horth : ∀ O : Mat3, Oᵀ * O = 1 → O * Oᵀ = 1 → let T' := Oᵀ * T * O T'ᵀ = T' ∧ T'.trace = 0 ∧ hsNormSq T' = 1 ∧ (∀ c : ℝ, T' ⪯ₗ c • (1 : Mat3) ↔ T ⪯ₗ c • (1 : Mat3)) := by intro O hOO1 hOO2 T' have hsym' : T'ᵀ = T' := by dsimp [T'] rw [Matrix.transpose_mul, Matrix.transpose_mul, Matrix.transpose_transpose, hTsym, Matrix.mul_assoc] have htr' : T'.trace = 0 := by dsimp [T'] rw [Matrix.trace_mul_comm (Oᵀ * T) O, ← Matrix.mul_assoc, hOO2, Matrix.one_mul, hTtr] have hhs' : hsNormSq T' = 1 := by change (T'ᵀ * T').trace = 1 rw [hsym'] dsimp [T'] have hmul : (Oᵀ * T * O) * (Oᵀ * T * O) = Oᵀ * (T * T) * O := by calc (Oᵀ * T * O) * (Oᵀ * T * O) = Oᵀ * T * (O * Oᵀ) * T * O := by simp only [Matrix.mul_assoc] _ = Oᵀ * (T * T) * O := by rw [hOO2]; simp only [Matrix.mul_one, Matrix.mul_assoc] rw [hmul, Matrix.trace_mul_comm (Oᵀ * (T * T)) O, ← Matrix.mul_assoc, hOO2, Matrix.one_mul, hTsq_tr] refine ⟨hsym', htr', hhs', ?_⟩ intro c have hconj_sub : c • (1 : Mat3) - T' = Oᵀ * (c • (1 : Mat3) - T) * O := by dsimp [T'] rw [Matrix.mul_sub, Matrix.sub_mul, Matrix.mul_smul, Matrix.smul_mul, Matrix.mul_one, hOO1] have hquad_eq : ∀ M : Mat3, ∀ x : Vec3, x ⬝ᵥ ((Oᵀ * M * O) *ᵥ x) = (O *ᵥ x) ⬝ᵥ (M *ᵥ (O *ᵥ x)) := by intro M x rw [Matrix.mul_assoc, ← Matrix.mulVec_mulVec, ← Matrix.mulVec_mulVec, Matrix.dotProduct_mulVec, Matrix.vecMul_transpose] constructor · intro hle' refine ⟨by simp [hTsym], fun y => ?_⟩ have h1 := hle'.2 (Oᵀ *ᵥ y) rw [hconj_sub, hquad_eq, Matrix.mulVec_mulVec, hOO2, Matrix.one_mulVec] at h1 exact h1 · intro hle refine ⟨by simp [hsym'], fun x => ?_⟩ rw [hconj_sub, hquad_eq] exact hle.2 (O *ᵥ x) refine ⟨hlow, hhi, horth, ?_⟩ intro c hc hle have hc_ge : 1 / Real.sqrt 6 ≤ c := hlow c hc hle have hs6_pos : 0 < Real.sqrt 6 := Real.sqrt_pos.mpr (by norm_num) have hc_pos : 0 < c := lt_of_lt_of_le (by positivity) hc_ge refine ⟨?_, ?_⟩ · intro ρ hρ apply Real.exp_le_exp.mpr have hmul := mul_le_mul_of_nonneg_left hc_ge hρ linarith [show ρ * (1 / Real.sqrt 6) = ρ / Real.sqrt 6 by ring] · have hlin : Filter.Tendsto (fun ρ : ℝ => ρ * c) Filter.atTop Filter.atTop := by simpa [mul_comm] using Filter.Tendsto.const_mul_atTop hc_pos Filter.tendsto_id exact Real.tendsto_exp_atTop.comp hlin /-- Explicit `Mat3` witnesses on `S⁴ ⊂ Sym₀(ℝ³)` attaining both sharp extremes `1 / √6` (biaxial sheet `diag(1/√6, 1/√6, -2/√6)`) and `√(2/3)` (uniaxial tube `diag(√(2/3), -1/√6, -1/√6)`). -/ theorem traceless_unit_S4_matrix_extremizers : let a := 1 / Real.sqrt 6 let b := Real.sqrt (2 / 3) let T_sheet : Mat3 := Matrix.diagonal ![a, a, -2 * a] let T_tube : Mat3 := Matrix.diagonal ![b, -a, -a] (T_sheetᵀ = T_sheet ∧ T_sheet.trace = 0 ∧ hsNormSq T_sheet = 1 ∧ T_sheet ⪯ₗ a • (1 : Mat3)) ∧ (T_tubeᵀ = T_tube ∧ T_tube.trace = 0 ∧ hsNormSq T_tube = 1 ∧ T_tube ⪯ₗ b • (1 : Mat3)) := by intro a b T_sheet T_tube have ha_nn : 0 ≤ a := by dsimp [a]; positivity have ha2 : a ^ 2 = 1 / 6 := by dsimp [a]; rw [div_pow, one_pow, Real.sq_sqrt (by norm_num)] have hb2 : b ^ 2 = 2 / 3 := by dsimp [b]; exact Real.sq_sqrt (by norm_num) have hb_eq : b = 2 * a := by apply (sq_eq_sq₀ (Real.sqrt_nonneg _) (by positivity)).mp rw [hb2, mul_pow, ha2]; norm_num have htr_sheet : T_sheet.trace = 0 := by dsimp [T_sheet]; simp [Matrix.trace, Matrix.diag, Fin.sum_univ_three]; ring have htr_tube : T_tube.trace = 0 := by dsimp [T_tube]; simp [Matrix.trace, Matrix.diag, Fin.sum_univ_three]; linarith have hhs_sheet : hsNormSq T_sheet = 1 := by change (T_sheetᵀ * T_sheet).trace = 1 dsimp [T_sheet] simp [Matrix.trace, Matrix.diag, Matrix.mul_apply, Fin.sum_univ_three] nlinarith [ha2] have hhs_tube : hsNormSq T_tube = 1 := by change (T_tubeᵀ * T_tube).trace = 1 dsimp [T_tube] simp [Matrix.trace, Matrix.diag, Matrix.mul_apply, Fin.sum_univ_three] nlinarith [ha2, hb2] refine ⟨⟨Matrix.diagonal_transpose _, htr_sheet, hhs_sheet, ?_⟩, ⟨Matrix.diagonal_transpose _, htr_tube, hhs_tube, ?_⟩⟩ · refine ⟨by simp [T_sheet, Matrix.diagonal_transpose], fun x => ?_⟩ dsimp [T_sheet] simp [Matrix.sub_mulVec, Matrix.smul_mulVec, Matrix.one_mulVec, dotProduct, Fin.sum_univ_three, Matrix.mulVec_diagonal] nlinarith [sq_nonneg (x 2), ha_nn] · refine ⟨by simp [T_tube, Matrix.diagonal_transpose], fun x => ?_⟩ dsimp [T_tube] simp [Matrix.sub_mulVec, Matrix.smul_mulVec, Matrix.one_mulVec, dotProduct, Fin.sum_univ_three, Matrix.mulVec_diagonal] nlinarith [sq_nonneg (x 1), sq_nonneg (x 2), ha_nn, hb_eq] /-- South-chart coordinate map `U_S = {c < 1}` of `S⁴` (`q ∈ ℍ ↦ (2q/(1+|q|²), (|q|²-1)/(1+|q|²))`). -/ def stereoSouthS4 (q : Q) : Q × ℝ := ((2 / (1 + Quaternion.normSq q) : ℝ) • q, (Quaternion.normSq q - 1) / (1 + Quaternion.normSq q)) /-- North-chart coordinate map `U_N = {c > -1}` of `S⁴`, regular right through the north/blowup pole `w = 0 ↦ (0, +1)` (`w ∈ ℍ ↦ (2w̄/(1+|w|²), (1-|w|²)/(1+|w|²))`). -/ def stereoNorthS4 (w : Q) : Q × ℝ := ((2 / (1 + Quaternion.normSq w) : ℝ) • star w, (1 - Quaternion.normSq w) / (1 + Quaternion.normSq w)) /-- Scale-retaining `S⁷` lift of the 4D strain-vorticity tetrad `(q, 1) ∈ ℍ²` (`HL25`): `p(q) = (q / √(1 + |q|²), 1 / √(1 + |q|²)) ∈ S⁷ ⊂ ℍ²`. -/ def tetradLiftS7 (q : Q) : Q × Q := let lam := Real.sqrt (1 + Quaternion.normSq q) ((1 / lam : ℝ) • q, ((1 / lam : ℝ) : Q)) /-- **Complete two-chart `S⁷ → S⁴` atlas and pole-margin equivalence** (replacing single-chart stereographic projection with the full `U_N, U_S` cover + non-trivial `Sp(1)` transition `g_NS`, directly reusing `LinkedTower.Hopf.north`, `south`, and `transition`): 1. `tetradLiftS7 q ∈ S⁷` for all `q ∈ ℍ`, and its `S⁴` Hopf projection equals `stereoSouthS4 q`, 2. Both `stereoSouthS4 q` and `stereoNorthS4 w` lie on round `S⁴` (`|Q|² + c² = 1`), and `stereoNorthS4 0 = (0, 1)` covers the blowup pole regularly without singularity, 3. On the overlap `U_N ∩ U_S` (`q ≠ 0`), with inverted north-chart coordinate `w := (1 / |q|²) • q̄ = q⁻¹`: - `stereoNorthS4 w = stereoSouthS4 q` (exact two-chart transition), - `r_S = 1` in `U_S` while `r_N = q / |q| = g_NS ∈ Sp(1)` in `U_N` (non-trivial fiber jump!), - Exact bundle reconstruction in BOTH charts via `LinkedTower.Hopf.north` and `south`: `north α X` scaled by `r_N` equals `tetradLiftS7 q` equals `south β X` scaled by `r_S = 1`, 4. Two-chart pole-margin equivalence for every `ε ∈ (0, 2)`: - In `U_S`: `1 - c ≥ ε ↔ |q|² ≤ (2 - ε) / ε`, - In `U_N` (`q ≠ 0`, `w = q⁻¹`): `1 - c ≥ ε ↔ ε / (2 - ε) ≤ |w|²`! 5. Gronwall consequence: staying at margin `ε` from `w = 0` in `U_N` (equivalently `1 - c ≥ ε`) forces `r(t) ≤ r(0) exp(t √((2 - ε) / ε))`. -/ theorem s4_two_chart_tetrad_atlas_and_pole_equivalence : (∀ q : Q, Quaternion.normSq (tetradLiftS7 q).1 + Quaternion.normSq (tetradLiftS7 q).2 = 1 ∧ ((2 : ℝ) • ((tetradLiftS7 q).1 * star (tetradLiftS7 q).2), Quaternion.normSq (tetradLiftS7 q).1 - Quaternion.normSq (tetradLiftS7 q).2) = stereoSouthS4 q ∧ Quaternion.normSq (stereoSouthS4 q).1 + (stereoSouthS4 q).2 ^ 2 = 1) ∧ (∀ w : Q, Quaternion.normSq (stereoNorthS4 w).1 + (stereoNorthS4 w).2 ^ 2 = 1) ∧ stereoNorthS4 0 = (0, 1) ∧ (∀ q : Q, 0 < Quaternion.normSq q → let w : Q := (1 / Quaternion.normSq q : ℝ) • star q let lam : ℝ := Real.sqrt (1 + Quaternion.normSq q) let X : Q := (stereoSouthS4 q).1 let α : ℝ := Real.sqrt (Quaternion.normSq q) / lam let β : ℝ := 1 / lam let g : Q := LinkedTower.Hopf.transition α β X let rN : Q := (1 / Real.sqrt (Quaternion.normSq q) : ℝ) • q stereoNorthS4 w = stereoSouthS4 q ∧ Quaternion.normSq rN = 1 ∧ g = rN ∧ ((LinkedTower.Hopf.north α X).1 * rN, (LinkedTower.Hopf.north α X).2 * rN) = tetradLiftS7 q ∧ ((LinkedTower.Hopf.south β X).1 * (1 : Q), (LinkedTower.Hopf.south β X).2 * (1 : Q)) = tetradLiftS7 q) ∧ (∀ (q : Q) (ε : ℝ), 0 < ε → ε < 2 → (ε ≤ 1 - (stereoSouthS4 q).2 ↔ Quaternion.normSq q ≤ (2 - ε) / ε) ∧ (0 < Quaternion.normSq q → let w : Q := (1 / Quaternion.normSq q : ℝ) • star q (ε ≤ 1 - (stereoNorthS4 w).2 ↔ ε / (2 - ε) ≤ Quaternion.normSq w))) ∧ (∀ {r α : ℝ → ℝ} {q : ℝ → Q} {ε T : ℝ}, 0 < ε → ε < 2 → 0 ≤ T → (∀ t ∈ Set.Icc 0 T, 0 ≤ r t) → (∀ t ∈ Set.Icc 0 T, (α t) ^ 2 ≤ Quaternion.normSq (q t)) → (∀ t ∈ Set.Icc 0 T, ε ≤ 1 - (stereoSouthS4 (q t)).2) → (∀ t ∈ Set.Icc 0 T, ∃ dr : ℝ, HasDerivAt r dr t ∧ dr ≤ α t * r t) → ∀ t ∈ Set.Icc 0 T, r t ≤ r 0 * Real.exp (t * Real.sqrt ((2 - ε) / ε))) := by have hden : ∀ q : Q, 0 < 1 + Quaternion.normSq q := fun q => by have := Quaternion.normSq_nonneg (a := q); linarith have hpart1 : ∀ q : Q, Quaternion.normSq (tetradLiftS7 q).1 + Quaternion.normSq (tetradLiftS7 q).2 = 1 ∧ ((2 : ℝ) • ((tetradLiftS7 q).1 * star (tetradLiftS7 q).2), Quaternion.normSq (tetradLiftS7 q).1 - Quaternion.normSq (tetradLiftS7 q).2) = stereoSouthS4 q ∧ Quaternion.normSq (stereoSouthS4 q).1 + (stereoSouthS4 q).2 ^ 2 = 1 := by intro q have hd_pos : 0 < 1 + Quaternion.normSq q := hden q have hlam2 : Real.sqrt (1 + Quaternion.normSq q) ^ 2 = 1 + Quaternion.normSq q := Real.sq_sqrt (le_of_lt hd_pos) have hlam_ne : Real.sqrt (1 + Quaternion.normSq q) ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr hd_pos) refine ⟨?_, ?_, ?_⟩ · dsimp [tetradLiftS7] rw [Quaternion.normSq_smul, Quaternion.normSq_coe, div_pow, one_pow, hlam2] field_simp [ne_of_gt hd_pos]; ring · dsimp [tetradLiftS7, stereoSouthS4] refine Prod.ext ?_ ?_ · dsimp only rw [Quaternion.star_coe, Quaternion.mul_coe_eq_smul, smul_smul, smul_smul] congr 1 field_simp [hlam_ne, ne_of_gt hd_pos] ring_nf rw [hlam2] · dsimp only rw [Quaternion.normSq_smul, Quaternion.normSq_coe, div_pow, one_pow, hlam2] field_simp [ne_of_gt hd_pos] · dsimp [stereoSouthS4] rw [Quaternion.normSq_smul] field_simp [ne_of_gt hd_pos]; ring have hpart2 : ∀ w : Q, Quaternion.normSq (stereoNorthS4 w).1 + (stereoNorthS4 w).2 ^ 2 = 1 := by intro w have hd := hden w dsimp [stereoNorthS4] rw [Quaternion.normSq_smul, Quaternion.normSq_star] field_simp [ne_of_gt hd]; ring have hpole : stereoNorthS4 0 = (0, 1) := by dsimp [stereoNorthS4]; simp have hoverlap : ∀ q : Q, 0 < Quaternion.normSq q → let w : Q := (1 / Quaternion.normSq q : ℝ) • star q let lam : ℝ := Real.sqrt (1 + Quaternion.normSq q) let X : Q := (stereoSouthS4 q).1 let α : ℝ := Real.sqrt (Quaternion.normSq q) / lam let β : ℝ := 1 / lam let g : Q := LinkedTower.Hopf.transition α β X let rN : Q := (1 / Real.sqrt (Quaternion.normSq q) : ℝ) • q stereoNorthS4 w = stereoSouthS4 q ∧ Quaternion.normSq rN = 1 ∧ g = rN ∧ ((LinkedTower.Hopf.north α X).1 * rN, (LinkedTower.Hopf.north α X).2 * rN) = tetradLiftS7 q ∧ ((LinkedTower.Hopf.south β X).1 * (1 : Q), (LinkedTower.Hopf.south β X).2 * (1 : Q)) = tetradLiftS7 q := by intro q hq w lam X α β g rN have hd_pos : 0 < 1 + Quaternion.normSq q := hden q have hlam_pos : 0 < lam := Real.sqrt_pos.mpr hd_pos have hlam2 : lam ^ 2 = 1 + Quaternion.normSq q := Real.sq_sqrt (le_of_lt hd_pos) have hq_sq : Real.sqrt (Quaternion.normSq q) ^ 2 = Quaternion.normSq q := Real.sq_sqrt (le_of_lt hq) have hsq_pos : 0 < Real.sqrt (Quaternion.normSq q) := Real.sqrt_pos.mpr hq have hw_norm : Quaternion.normSq w = (Quaternion.normSq q)⁻¹ := by dsimp [w] rw [Quaternion.normSq_smul, Quaternion.normSq_star] field_simp [ne_of_gt hq] have hinv_eq : stereoNorthS4 w = stereoSouthS4 q := by dsimp [stereoNorthS4, stereoSouthS4] rw [hw_norm] refine Prod.ext ?_ ?_ · dsimp [w] rw [Quaternion.star_smul, star_star, smul_smul] congr 1 field_simp [ne_of_gt hq, ne_of_gt hd_pos]; ring · field_simp [ne_of_gt hq, ne_of_gt hd_pos]; ring have hrN_unit : Quaternion.normSq rN = 1 := by dsimp [rN] rw [Quaternion.normSq_smul, div_pow, one_pow, hq_sq] field_simp [ne_of_gt hq] have hg_eq : g = rN := by dsimp [g, LinkedTower.Hopf.transition, X, stereoSouthS4, α, β, rN] rw [smul_smul] congr 1 have hlam_mul : lam * lam = 1 + Quaternion.normSq q := by simpa [pow_two] using hlam2 rw [← hlam_mul] field_simp [ne_of_gt hsq_pos, ne_of_gt hlam_pos] have htet_eq : tetradLiftS7 q = ((1 / lam : ℝ) • q, ((1 / lam : ℝ) : Q)) := rfl have hnorth_eq : ((LinkedTower.Hopf.north α X).1 * rN, (LinkedTower.Hopf.north α X).2 * rN) = tetradLiftS7 q := by rw [htet_eq] refine Prod.ext ?_ ?_ · dsimp [LinkedTower.Hopf.north, α, rN] rw [mul_smul_comm, Quaternion.coe_mul_eq_smul, smul_smul] congr 1 field_simp [ne_of_gt hsq_pos, ne_of_gt hlam_pos] · dsimp [LinkedTower.Hopf.north, X, stereoSouthS4, α, rN] rw [Quaternion.star_smul, smul_smul, smul_mul_assoc, mul_smul_comm, smul_smul, Quaternion.star_mul_self, Quaternion.smul_coe] congr 1 field_simp [ne_of_gt hsq_pos, ne_of_gt hlam_pos, ne_of_gt hd_pos] ring_nf rw [hlam2, hq_sq] ring have hsouth_eq : ((LinkedTower.Hopf.south β X).1 * (1 : Q), (LinkedTower.Hopf.south β X).2 * (1 : Q)) = tetradLiftS7 q := by rw [htet_eq] refine Prod.ext ?_ ?_ · dsimp [LinkedTower.Hopf.south, X, stereoSouthS4, β] rw [mul_one, smul_smul] congr 1 have hlam_mul : lam * lam = 1 + Quaternion.normSq q := by simpa [pow_two] using hlam2 rw [← hlam_mul] field_simp [ne_of_gt hlam_pos] · dsimp [LinkedTower.Hopf.south, β] rw [mul_one] exact ⟨hinv_eq, hrN_unit, hg_eq, hnorth_eq, hsouth_eq⟩ have hequiv : ∀ (q : Q) (ε : ℝ), 0 < ε → ε < 2 → (ε ≤ 1 - (stereoSouthS4 q).2 ↔ Quaternion.normSq q ≤ (2 - ε) / ε) ∧ (0 < Quaternion.normSq q → let w : Q := (1 / Quaternion.normSq q : ℝ) • star q (ε ≤ 1 - (stereoNorthS4 w).2 ↔ ε / (2 - ε) ≤ Quaternion.normSq w)) := by intro q ε hε hε2 have hS : ε ≤ 1 - (stereoSouthS4 q).2 ↔ Quaternion.normSq q ≤ (2 - ε) / ε := by dsimp [stereoSouthS4] have hd := hden q have h1 : 1 - (Quaternion.normSq q - 1) / (1 + Quaternion.normSq q) = 2 / (1 + Quaternion.normSq q) := by field_simp [ne_of_gt hd]; ring rw [h1, le_div_iff₀ hd, le_div_iff₀ hε] constructor <;> intro h <;> nlinarith refine ⟨hS, ?_⟩ intro hq w have hw_eq : (stereoNorthS4 w).2 = (stereoSouthS4 q).2 := congrArg Prod.snd (hoverlap q hq).1 have hw_norm : Quaternion.normSq w = (Quaternion.normSq q)⁻¹ := by dsimp [w] rw [Quaternion.normSq_smul, Quaternion.normSq_star] field_simp [ne_of_gt hq] rw [hw_eq, hS, hw_norm, div_le_iff₀ (by linarith : 0 < 2 - ε), le_div_iff₀ hε] constructor · intro h have : ε ≤ (2 - ε) * (Quaternion.normSq q)⁻¹ := by rw [le_mul_inv_iff₀ hq]; linarith linarith · intro h have h1 : ε ≤ (2 - ε) * (Quaternion.normSq q)⁻¹ := by linarith have h2 := (le_mul_inv_iff₀ hq).mp h1 linarith refine ⟨hpart1, hpart2, hpole, hoverlap, hequiv, ?_⟩ intro r α q ε T hε hε2 hT hr_nn hα_le hc_le hr_deriv set M : ℝ := Real.sqrt ((2 - ε) / ε) have hM_nn : 0 ≤ M := Real.sqrt_nonneg _ have hM_sq : M ^ 2 = (2 - ε) / ε := Real.sq_sqrt (div_nonneg (by linarith) (le_of_lt hε)) let g : ℝ → ℝ := fun t => r t * Real.exp (-(M * t)) have hg_deriv : ∀ t ∈ Set.Icc 0 T, ∃ dg : ℝ, HasDerivAt g dg t ∧ dg ≤ 0 := by intro t ht obtain ⟨dr, hdr, hdr_le⟩ := hr_deriv t ht have hlin : HasDerivAt (fun u : ℝ => -(M * u)) (-M) t := by simpa using ((hasDerivAt_id t).const_mul M).fun_neg refine ⟨dr * Real.exp (-(M * t)) + r t * (Real.exp (-(M * t)) * (-M)), hdr.mul hlin.exp, ?_⟩ have hq_le : Quaternion.normSq (q t) ≤ (2 - ε) / ε := (hequiv (q t) ε hε hε2).1.mp (hc_le t ht) have hα_bound : α t ≤ M := by have hsq : (α t) ^ 2 ≤ M ^ 2 := by rw [hM_sq]; exact le_trans (hα_le t ht) hq_le nlinarith [sq_nonneg (M - α t)] have hfac : dr * Real.exp (-(M * t)) + r t * (Real.exp (-(M * t)) * (-M)) = Real.exp (-(M * t)) * (dr - M * r t) := by ring rw [hfac] have hdiff : dr - M * r t ≤ 0 := by have := mul_le_mul_of_nonneg_right hα_bound (hr_nn t ht) linarith exact mul_nonpos_of_nonneg_of_nonpos (le_of_lt (Real.exp_pos _)) hdiff have hg_le := le_zero_of_hasDerivAt_nonpos hg_deriv intro t ht have hgt := hg_le t ht dsimp only [g] at hgt simp only [mul_zero, neg_zero, Real.exp_zero, mul_one] at hgt have hmul := mul_le_mul_of_nonneg_right hgt (le_of_lt (Real.exp_pos (M * t))) rw [mul_assoc, ← Real.exp_add, neg_add_cancel, Real.exp_zero, mul_one] at hmul simpa [mul_comm] using hmul /-- Exact `S⁷ → S⁴` horizontal underdetermination counterexample (`HL14`, `HOPF_FOLIATION_LINKAGE.md` lines 212–227): the two curves `p₀(s) = (1, 0)` and `p₁(s) = (cos s, sin s)` on `S⁷ ⊂ ℍ²` both have identically zero canonical `Sp(1)` connection `Ω₀ = Ω₁ = 0`, yet project to distinct `S⁴` base trajectories `(0, 1)` vs `(sin(2s), cos(2s))` (distinct at `s = π / 4`). -/ theorem s7_s4_horizontal_underdetermination_HL14 : let p₀ : ℝ → Q × Q := fun _ => ((1 : Q), (0 : Q)) let dp₀ : ℝ → Q × Q := fun _ => ((0 : Q), (0 : Q)) let p₁ : ℝ → Q × Q := fun s => (((Real.cos s : ℝ) : Q), ((Real.sin s : ℝ) : Q)) let dp₁ : ℝ → Q × Q := fun s => (((-Real.sin s : ℝ) : Q), ((Real.cos s : ℝ) : Q)) let projS4 : Q × Q → Q × ℝ := fun p => ((2 : ℝ) • (p.1 * star p.2), Quaternion.normSq p.1 - Quaternion.normSq p.2) (∀ s : ℝ, Quaternion.normSq (p₀ s).1 + Quaternion.normSq (p₀ s).2 = 1 ∧ Quaternion.normSq (p₁ s).1 + Quaternion.normSq (p₁ s).2 = 1) ∧ (∀ s : ℝ, canonConnS7 (p₀ s).1 (p₀ s).2 (dp₀ s).1 (dp₀ s).2 = 0 ∧ canonConnS7 (p₁ s).1 (p₁ s).2 (dp₁ s).1 (dp₁ s).2 = 0) ∧ (∀ s : ℝ, projS4 (p₀ s) = (0, 1) ∧ projS4 (p₁ s) = (((Real.sin (2 * s) : ℝ) : Q), Real.cos (2 * s))) ∧ projS4 (p₀ (Real.pi / 4)) ≠ projS4 (p₁ (Real.pi / 4)) := by intro p₀ dp₀ p₁ dp₁ projS4 refine ⟨?_, ?_, ?_, ?_⟩ · intro s refine ⟨by simp [p₀], ?_⟩ dsimp [p₁] simp only [Quaternion.normSq_coe] have := Real.cos_sq_add_sin_sq s nlinarith · intro s refine ⟨by ext <;> simp [p₀, dp₀, canonConnS7, qIm], ?_⟩ dsimp [p₁, dp₁, canonConnS7] ext <;> simp [qIm] · intro s refine ⟨by simp [p₀, projS4], ?_⟩ dsimp [p₁, projS4] refine Prod.ext ?_ ?_ · ext · simp [Real.sin_two_mul]; ring · simp · simp · simp · simp only [Quaternion.normSq_coe, Real.cos_two_mul] have := Real.cos_sq_add_sin_sq s nlinarith · intro heq have h2 : (projS4 (p₀ (Real.pi / 4))).2 = (projS4 (p₁ (Real.pi / 4))).2 := congrArg Prod.snd heq dsimp [p₀, p₁, projS4] at h2 simp only [map_one, map_zero, sub_zero, Quaternion.normSq_coe] at h2 have hcos : Real.cos (Real.pi / 4) = Real.sqrt 2 / 2 := Real.cos_pi_div_four have hsin : Real.sin (Real.pi / 4) = Real.sqrt 2 / 2 := Real.sin_pi_div_four rw [hcos, hsin] at h2 norm_num at h2 /-- Coupled `(S⁴, n)` non-stretching closure: if a dynamical alignment constraint forces `⟨n, S n⟩ ≤ β₀` (e.g., compressive hemisphere `β₀ = 0`) so that `(1/2) E' + ν D ≤ β₀ E` with Poincaré `λ₁ E ≤ D`, then `E(t) ≤ E(0) exp(2 (β₀ - ν λ₁) t)` globally on `[0, T]`. -/ theorem coupled_s4_nonstretching_closure {E D : ℝ → ℝ} {ν lam₁ β₀ T : ℝ} (hν : 0 < ν) (hD_poin : ∀ t ∈ Set.Icc 0 T, lam₁ * E t ≤ D t) (hE_deriv : ∀ t ∈ Set.Icc 0 T, ∃ dE : ℝ, HasDerivAt E dE t ∧ (1 / 2) * dE + ν * D t ≤ β₀ * E t) : ∀ t ∈ Set.Icc 0 T, E t ≤ E 0 * Real.exp (2 * (β₀ - ν * lam₁) * t) := by set γ : ℝ := 2 * (β₀ - ν * lam₁) let g : ℝ → ℝ := fun t => E t * Real.exp (-(γ * t)) have hg_deriv : ∀ t ∈ Set.Icc 0 T, ∃ dg : ℝ, HasDerivAt g dg t ∧ dg ≤ 0 := by intro t ht obtain ⟨dE, hdE, hineq⟩ := hE_deriv t ht have hlin : HasDerivAt (fun u : ℝ => -(γ * u)) (-γ) t := by simpa using ((hasDerivAt_id t).const_mul γ).fun_neg refine ⟨dE * Real.exp (-(γ * t)) + E t * (Real.exp (-(γ * t)) * (-γ)), hdE.mul hlin.exp, ?_⟩ have hD_t := hD_poin t ht have hfac : dE * Real.exp (-(γ * t)) + E t * (Real.exp (-(γ * t)) * (-γ)) = Real.exp (-(γ * t)) * (dE - γ * E t) := by ring rw [hfac] have hdiff : dE - γ * E t ≤ 0 := by dsimp [γ]; nlinarith exact mul_nonpos_of_nonneg_of_nonpos (le_of_lt (Real.exp_pos _)) hdiff have hg_le := le_zero_of_hasDerivAt_nonpos hg_deriv intro t ht have hgt := hg_le t ht dsimp only [g] at hgt simp only [mul_zero, neg_zero, Real.exp_zero, mul_one] at hgt have hmul := mul_le_mul_of_nonneg_right hgt (le_of_lt (Real.exp_pos (γ * t))) rw [mul_assoc, ← Real.exp_add, neg_add_cancel, Real.exp_zero, mul_one] at hmul exact hmul end QuaternionicS4Constraints /-! ## Part 2: Intrinsic Curved Round-`S⁴` (`χ(S⁴) = 2`, No Global Frame) vs. Flat-`𝕋⁴` Fluid PDEs -/ section CurvedS4And4DPDEs abbrev Mat4 := Matrix (Fin 4) (Fin 4) ℝ /-- Hilbert–Schmidt inner product on `4×4` matrices (representing 2-forms in an oriented orthonormal fiber of `T_x S⁴`). -/ def hsInner4 (A B : Mat4) : ℝ := (Aᵀ * B).trace /-- Squared Hilbert–Schmidt norm on `4×4` matrices. -/ def hsNormSq4 (A : Mat4) : ℝ := hsInner4 A A /-- Exact 4D Hodge star `★₄` on skew-symmetric `4×4` matrices (`Λ² T_x^* S⁴` in any oriented local orthonormal frame). -/ def star4 (Ω : Mat4) : Mat4 := !![0, Ω 2 3, -Ω 1 3, Ω 1 2; -Ω 2 3, 0, Ω 0 3, -Ω 0 2; Ω 1 3, -Ω 0 3, 0, Ω 0 1; -Ω 1 2, Ω 0 2, -Ω 0 1, 0] /-- Self-dual part `Ω₊ = (Ω + ★₄ Ω) / 2` in `Λ²₊ T_x^* S⁴`. -/ def sdPart (Ω : Mat4) : Mat4 := (1 / 2 : ℝ) • (Ω + star4 Ω) /-- Anti-self-dual part `Ω₋ = (Ω - ★₄ Ω) / 2` in `Λ²₋ T_x^* S⁴`. -/ def asdPart (Ω : Mat4) : Mat4 := (1 / 2 : ℝ) • (Ω - star4 Ω) /-- Matrix of left quaternion multiplication `x ↦ q * x` in `SO(4)` (`q ∈ Sp(1)_L`). -/ def quatLeftMat (q : Q) : Mat4 := !![q.re, -q.imI, -q.imJ, -q.imK; q.imI, q.re, -q.imK, q.imJ; q.imJ, q.imK, q.re, -q.imI; q.imK, -q.imJ, q.imI, q.re] /-- Matrix of right quaternion multiplication `x ↦ x * q̄` in `SO(4)` (`q ∈ Sp(1)_R`). -/ def quatRightMat (q : Q) : Mat4 := !![q.re, q.imI, q.imJ, q.imK; -q.imI, q.re, -q.imK, q.imJ; -q.imJ, q.imK, q.re, -q.imI; -q.imK, -q.imJ, q.imI, q.re] private theorem quatLeftMat_one : quatLeftMat (1 : Q) = 1 := by ext i j; fin_cases i <;> fin_cases j <;> simp [quatLeftMat] private theorem quatRightMat_one : quatRightMat (1 : Q) = 1 := by ext i j; fin_cases i <;> fin_cases j <;> simp [quatRightMat] private theorem quatLeftMat_star (q : Q) : quatLeftMat (star q) = (quatLeftMat q)ᵀ := by ext i j; fin_cases i <;> fin_cases j <;> simp [quatLeftMat] private theorem quatRightMat_star (q : Q) : quatRightMat (star q) = (quatRightMat q)ᵀ := by ext i j; fin_cases i <;> fin_cases j <;> simp [quatRightMat] private theorem quatLeftMat_mul (p q : Q) : quatLeftMat (p * q) = quatLeftMat p * quatLeftMat q := by ext i j fin_cases i <;> fin_cases j <;> simp [quatLeftMat, Matrix.mul_apply, Fin.sum_univ_four] <;> ring private theorem quatRightMat_mul (p q : Q) : quatRightMat (p * q) = quatRightMat p * quatRightMat q := by ext i j fin_cases i <;> fin_cases j <;> simp [quatRightMat, Matrix.mul_apply, Fin.sum_univ_four] <;> ring private theorem quatLeftMat_comm_quatRightMat (p q : Q) : quatLeftMat p * quatRightMat q = quatRightMat q * quatLeftMat p := by ext i j fin_cases i <;> fin_cases j <;> simp [quatLeftMat, quatRightMat, Matrix.mul_apply, Fin.sum_univ_four] <;> ring private theorem star4_quatLeftMat_pure {q : Q} (hq : q.re = 0) : star4 (quatLeftMat q) = quatLeftMat q := by ext i j; fin_cases i <;> fin_cases j <;> simp [star4, quatLeftMat, hq] private theorem star4_quatRightMat_pure {q : Q} (hq : q.re = 0) : star4 (quatRightMat q) = -quatRightMat q := by ext i j; fin_cases i <;> fin_cases j <;> simp [star4, quatRightMat, hq] /-- **Intrinsic 4D Hodge star, self-dual / anti-self-dual 2-form split, and full `SO(4)` local overlap-transition invariance** (valid on non-parallelizable `S⁴` with zero global frame!): for every skew-symmetric `Ω : Mat4` (`Ωᵀ = -Ω`, representing the vorticity 2-form `Ω = d u♭` in any oriented local orthonormal chart of `S⁴`) and EVERY `SO(4)` chart-overlap transition `O = quatLeftMat qL * quatRightMat qR` (`|qL| = |qR| = 1`): 1. `★₄` is a skew-preserving involution: `(★₄ Ω)ᵀ = -(★₄ Ω)` and `★₄(★₄ Ω) = Ω`, 2. Exact orthogonal split: `Ω = Ω₊ + Ω₋`, `★₄ Ω₊ = Ω₊`, `★₄ Ω₋ = -Ω₋`, `⟨Ω₊, Ω₋⟩_HS = 0`, and `‖Ω‖_HS² = ‖Ω₊‖_HS² + ‖Ω₋‖_HS²`, 3. `O ∈ SO(4)` (`Oᵀ O = I`, `O Oᵀ = I`) commutes identically with `★₄`: `★₄(Oᵀ Ω O) = Oᵀ (★₄ Ω) O`, and preserves `‖Ω‖_HS²`, 4. Exact chirality decoupling: `Sp(1)_L` fixes every anti-self-dual 2-form (`★₄ Ω = -Ω → O_Lᵀ Ω O_L = Ω`) while `Sp(1)_R` fixes every self-dual 2-form (`★₄ Ω = Ω → O_Rᵀ Ω O_R = Ω`). -/ theorem s4_hodge_star_SO4_invariance {Ω : Mat4} (hskew : Ωᵀ = -Ω) {qL qR : Q} (hqL : Quaternion.normSq qL = 1) (hqR : Quaternion.normSq qR = 1) : let OL := quatLeftMat qL let OR := quatRightMat qR let O := OL * OR ((star4 Ω)ᵀ = -star4 Ω ∧ star4 (star4 Ω) = Ω) ∧ (sdPart Ω + asdPart Ω = Ω ∧ star4 (sdPart Ω) = sdPart Ω ∧ star4 (asdPart Ω) = -asdPart Ω ∧ hsInner4 (sdPart Ω) (asdPart Ω) = 0 ∧ hsNormSq4 Ω = hsNormSq4 (sdPart Ω) + hsNormSq4 (asdPart Ω)) ∧ (Oᵀ * O = 1 ∧ O * Oᵀ = 1 ∧ star4 (Oᵀ * Ω * O) = Oᵀ * star4 Ω * O ∧ hsNormSq4 (Oᵀ * Ω * O) = hsNormSq4 Ω) ∧ ((star4 Ω = -Ω → OLᵀ * Ω * OL = Ω) ∧ (star4 Ω = Ω → ORᵀ * Ω * OR = Ω)) := by intro OL OR O have hdiag : ∀ i : Fin 4, Ω i i = 0 := fun i => by have h := congrFun (congrFun hskew i) i simp only [Matrix.transpose_apply, Matrix.neg_apply] at h linarith have hanti : ∀ i j : Fin 4, Ω j i = -Ω i j := fun i j => by have h := congrFun (congrFun hskew i) j simp only [Matrix.transpose_apply, Matrix.neg_apply] at h exact h have hOL_orth1 : OLᵀ * OL = 1 := by dsimp [OL] rw [← quatLeftMat_star, ← quatLeftMat_mul, Quaternion.star_mul_self, hqL, Quaternion.coe_one, quatLeftMat_one] have hOL_orth2 : OL * OLᵀ = 1 := by dsimp [OL] rw [← quatLeftMat_star, ← quatLeftMat_mul, Quaternion.self_mul_star, hqL, Quaternion.coe_one, quatLeftMat_one] have hOR_orth1 : ORᵀ * OR = 1 := by dsimp [OR] rw [← quatRightMat_star, ← quatRightMat_mul, Quaternion.star_mul_self, hqR, Quaternion.coe_one, quatRightMat_one] have hOR_orth2 : OR * ORᵀ = 1 := by dsimp [OR] rw [← quatRightMat_star, ← quatRightMat_mul, Quaternion.self_mul_star, hqR, Quaternion.coe_one, quatRightMat_one] have hO_orth1 : Oᵀ * O = 1 := by dsimp [O] calc (OL * OR)ᵀ * (OL * OR) = ORᵀ * (OLᵀ * OL) * OR := by rw [Matrix.transpose_mul]; simp only [Matrix.mul_assoc] _ = 1 := by rw [hOL_orth1, Matrix.mul_one, hOR_orth1] have hO_orth2 : O * Oᵀ = 1 := by dsimp [O] calc (OL * OR) * (OL * OR)ᵀ = OL * (OR * ORᵀ) * OLᵀ := by rw [Matrix.transpose_mul]; simp only [Matrix.mul_assoc] _ = 1 := by rw [hOR_orth2, Matrix.mul_one, hOL_orth2] have hstar_skew : (star4 Ω)ᵀ = -star4 Ω := by ext i j; fin_cases i <;> fin_cases j <;> simp [star4] have hstar_inv : star4 (star4 Ω) = Ω := by ext i j fin_cases i <;> fin_cases j <;> simp [star4, hdiag 0, hdiag 1, hdiag 2, hdiag 3, hanti 0 1, hanti 0 2, hanti 0 3, hanti 1 2, hanti 1 3, hanti 2 3] have hsd_sum : sdPart Ω + asdPart Ω = Ω := by ext i j; simp [sdPart, asdPart]; ring have hstar_add : ∀ A B : Mat4, star4 (A + B) = star4 A + star4 B := fun A B => by ext i j; fin_cases i <;> fin_cases j <;> simp [star4] <;> ring have hstar_sub : ∀ A B : Mat4, star4 (A - B) = star4 A - star4 B := fun A B => by ext i j; fin_cases i <;> fin_cases j <;> simp [star4] <;> ring have hstar_smul : ∀ (c : ℝ) (A : Mat4), star4 (c • A) = c • star4 A := fun c A => by ext i j; fin_cases i <;> fin_cases j <;> simp [star4] have hsd_eig : star4 (sdPart Ω) = sdPart Ω := by dsimp [sdPart]; rw [hstar_smul, hstar_add, hstar_inv, add_comm] have hasd_eig : star4 (asdPart Ω) = -asdPart Ω := by dsimp [asdPart]; rw [hstar_smul, hstar_sub, hstar_inv, ← smul_neg, neg_sub] have horth_inner : hsInner4 (sdPart Ω) (asdPart Ω) = 0 := by dsimp [hsInner4, sdPart, asdPart, star4] simp [Matrix.trace, Matrix.diag, Matrix.mul_apply, Fin.sum_univ_four, hdiag 0, hdiag 1, hdiag 2, hdiag 3, hanti 0 1, hanti 0 2, hanti 0 3, hanti 1 2, hanti 1 3, hanti 2 3] ring have hnorm_split : hsNormSq4 Ω = hsNormSq4 (sdPart Ω) + hsNormSq4 (asdPart Ω) := by dsimp [hsNormSq4, hsInner4, sdPart, asdPart, star4] simp [Matrix.trace, Matrix.diag, Matrix.mul_apply, Fin.sum_univ_four, hdiag 0, hdiag 1, hdiag 2, hdiag 3, hanti 0 1, hanti 0 2, hanti 0 3, hanti 1 2, hanti 1 3, hanti 2 3] ring -- Exact Lie-algebra isomorphism so(4) ≅ Im ℍ_L ⊕ Im ℍ_R: -- sdPart Ω = quatLeftMat p₊ and asdPart Ω = quatRightMat p₋ with pure imaginary p₊, p₋! let pPos : Q := ⟨0, -(Ω 0 1 + Ω 2 3) / 2, -(Ω 0 2 - Ω 1 3) / 2, -(Ω 0 3 + Ω 1 2) / 2⟩ let pNeg : Q := ⟨0, (Ω 0 1 - Ω 2 3) / 2, (Ω 0 2 + Ω 1 3) / 2, (Ω 0 3 - Ω 1 2) / 2⟩ have hsd_eq : sdPart Ω = quatLeftMat pPos := by ext i j fin_cases i <;> fin_cases j <;> simp [sdPart, star4, quatLeftMat, pPos, hdiag 0, hdiag 1, hdiag 2, hdiag 3, hanti 0 1, hanti 0 2, hanti 0 3, hanti 1 2, hanti 1 3, hanti 2 3] <;> ring have hasd_eq : asdPart Ω = quatRightMat pNeg := by ext i j fin_cases i <;> fin_cases j <;> simp [asdPart, star4, quatRightMat, pNeg, hdiag 0, hdiag 1, hdiag 2, hdiag 3, hanti 0 1, hanti 0 2, hanti 0 3, hanti 1 2, hanti 1 3, hanti 2 3] <;> ring have hconj_pure : ∀ (r p : Q), p.re = 0 → (star r * p * r).re = 0 := fun r p hp => by simp [hp]; ring -- Action of O = OL * OR on sdPart Ω = quatLeftMat pPos and asdPart Ω = quatRightMat pNeg: have hO_sd : Oᵀ * sdPart Ω * O = quatLeftMat (star qL * pPos * qL) := by rw [hsd_eq] dsimp [O, OL, OR] rw [Matrix.transpose_mul, ← quatLeftMat_star, ← quatRightMat_star] calc quatRightMat (star qR) * quatLeftMat (star qL) * quatLeftMat pPos * (quatLeftMat qL * quatRightMat qR) = quatRightMat (star qR) * (quatLeftMat (star qL) * quatLeftMat pPos * quatLeftMat qL) * quatRightMat qR := by simp only [Matrix.mul_assoc] _ = quatRightMat (star qR) * quatLeftMat (star qL * pPos * qL) * quatRightMat qR := by rw [← quatLeftMat_mul, ← quatLeftMat_mul] _ = quatLeftMat (star qL * pPos * qL) * (quatRightMat (star qR) * quatRightMat qR) := by rw [← quatLeftMat_comm_quatRightMat (star qL * pPos * qL) (star qR), Matrix.mul_assoc] _ = quatLeftMat (star qL * pPos * qL) := by rw [← quatRightMat_mul, Quaternion.star_mul_self, hqR, Quaternion.coe_one, quatRightMat_one, Matrix.mul_one] have hO_asd : Oᵀ * asdPart Ω * O = quatRightMat (star qR * pNeg * qR) := by rw [hasd_eq] dsimp [O, OL, OR] rw [Matrix.transpose_mul, ← quatLeftMat_star, ← quatRightMat_star] have hL_comm : quatLeftMat (star qL) * quatRightMat pNeg * quatLeftMat qL = quatRightMat pNeg := by rw [quatLeftMat_comm_quatRightMat (star qL) pNeg, Matrix.mul_assoc, ← quatLeftMat_mul, Quaternion.star_mul_self, hqL, Quaternion.coe_one, quatLeftMat_one, Matrix.mul_one] calc quatRightMat (star qR) * quatLeftMat (star qL) * quatRightMat pNeg * (quatLeftMat qL * quatRightMat qR) = quatRightMat (star qR) * (quatLeftMat (star qL) * quatRightMat pNeg * quatLeftMat qL) * quatRightMat qR := by simp only [Matrix.mul_assoc] _ = quatRightMat (star qR) * quatRightMat pNeg * quatRightMat qR := by rw [hL_comm] _ = quatRightMat (star qR * pNeg * qR) := by rw [← quatRightMat_mul, ← quatRightMat_mul] have hcomm_O : star4 (Oᵀ * Ω * O) = Oᵀ * star4 Ω * O := by have hsplit1 : Oᵀ * Ω * O = Oᵀ * sdPart Ω * O + Oᵀ * asdPart Ω * O := by conv_lhs => rw [← hsd_sum] rw [Matrix.mul_add, Matrix.add_mul] have hsplit2 : Oᵀ * star4 Ω * O = Oᵀ * sdPart Ω * O - Oᵀ * asdPart Ω * O := by have hst : star4 Ω = sdPart Ω - asdPart Ω := by conv_lhs => rw [← hsd_sum] rw [hstar_add, hsd_eig, hasd_eig, sub_eq_add_neg] rw [hst, Matrix.mul_sub, Matrix.sub_mul] rw [hsplit1, hsplit2, hstar_add, hO_sd, hO_asd, star4_quatLeftMat_pure (hconj_pure qL pPos rfl), star4_quatRightMat_pure (hconj_pure qR pNeg rfl), sub_eq_add_neg] have hnorm_O : hsNormSq4 (Oᵀ * Ω * O) = hsNormSq4 Ω := by dsimp [hsNormSq4, hsInner4] have hmul_gen : ∀ M : Mat4, M * Mᵀ = 1 → (Mᵀ * Ω * M)ᵀ * (Mᵀ * Ω * M) = Mᵀ * (Ωᵀ * Ω) * M := by intro M hM rw [Matrix.transpose_mul, Matrix.transpose_mul, Matrix.transpose_transpose] calc Mᵀ * (Ωᵀ * M) * (Mᵀ * Ω * M) = Mᵀ * Ωᵀ * (M * Mᵀ) * Ω * M := by simp only [Matrix.mul_assoc] _ = Mᵀ * (Ωᵀ * Ω) * M := by rw [hM]; simp only [Matrix.mul_one, Matrix.mul_assoc] rw [hmul_gen O hO_orth2, Matrix.trace_mul_comm (Oᵀ * (Ωᵀ * Ω)) O, ← Matrix.mul_assoc, hO_orth2, Matrix.one_mul] have hfix_L : star4 Ω = -Ω → OLᵀ * Ω * OL = Ω := by intro hasd have hΩ_eq : Ω = quatRightMat pNeg := by have h1 : asdPart Ω = Ω := by dsimp [asdPart]; rw [hasd, sub_neg_eq_add, ← two_smul ℝ Ω, smul_smul]; norm_num rw [← h1, hasd_eq] rw [hΩ_eq] dsimp [OL] rw [← quatLeftMat_star, quatLeftMat_comm_quatRightMat (star qL) pNeg, Matrix.mul_assoc, ← quatLeftMat_mul, Quaternion.star_mul_self, hqL, Quaternion.coe_one, quatLeftMat_one, Matrix.mul_one] have hfix_R : star4 Ω = Ω → ORᵀ * Ω * OR = Ω := by intro hsd have hΩ_eq : Ω = quatLeftMat pPos := by have h1 : sdPart Ω = Ω := by dsimp [sdPart]; rw [hsd, ← two_smul ℝ Ω, smul_smul]; norm_num rw [← h1, hsd_eq] rw [hΩ_eq] dsimp [OR] rw [← quatRightMat_star, ← quatLeftMat_comm_quatRightMat pPos (star qR), Matrix.mul_assoc, ← quatRightMat_mul, Quaternion.star_mul_self, hqR, Quaternion.coe_one, quatRightMat_one, Matrix.mul_one] exact ⟨⟨hstar_skew, hstar_inv⟩, ⟨hsd_sum, hsd_eig, hasd_eig, horth_inner, hnorm_split⟩, ⟨hO_orth1, hO_orth2, hcomm_O, hnorm_O⟩, ⟨hfix_L, hfix_R⟩⟩ /-- Exact Gallot–Meyer / Bochner–Weitzenböck curvature operator `p (d - p)` on `p`-forms on unit round `S^d` (constant sectional curvature `+1`). -/ def weitzenbockSphereCoeff (d p : ℝ) : ℝ := p * (d - p) /-- Local parabolic scaling-critical homogeneous Sobolev index `s_c(d, γ) = (d + 2)/2 - 2γ` in spatial dimension `d` with dissipation `(-Δ)^γ` (valid locally in normal charts near a concentration point; not a global symmetry of curved `S^d`). -/ def nsCriticalSobolev (d γ : ℝ) : ℝ := (d + 2) / 2 - 2 * γ /-- Lions energy-critical dissipation exponent `γ_c(d) = (d + 2) / 4`. -/ def nsLionsCriticalGamma (d : ℝ) : ℝ := (d + 2) / 4 /-- Scaling exponent `4 - d` of Yang–Mills curvature energy `∫_{M^d} |F|²`. -/ def ymEnergyScaleExp (d : ℝ) : ℝ := 4 - d /-- Exact curved-`S^d` Weitzenböck curvature gaps (separating curved `S⁴` from flat `𝕋⁴`) and local Navier–Stokes vs. Yang–Mills scaling criticality: 1. On unit round `S³`: `1`-forms and `2`-forms both have Weitzenböck coefficient `2` (`Ric = 2 I`), 2. On unit round `S⁴`: `1`-forms have `Ric = 3 I` (`E_H = ‖∇u‖₂² + 3 U² ≥ 3 U²`) and `2`-forms `Ω = d u♭` have Weitzenböck coefficient `4` (`F_H = ‖∇Ω‖₂² + 4 E_H ≥ 4 E_H`), 3. Local Navier–Stokes scaling: `s_c(2, 1) = 0` (2D critical), `s_c(3, 1) = 1/2`, `s_c(4, 1) = 1` (4D strictly more supercritical than 3D); `γ_c(4) = 3/2 < 2`, 4. Yang–Mills curvature energy is critical precisely at `d = 4`. -/ theorem s4_curved_weitzenbock_gaps_and_scaling : (weitzenbockSphereCoeff 3 1 = 2 ∧ weitzenbockSphereCoeff 3 2 = 2 ∧ weitzenbockSphereCoeff 4 1 = 3 ∧ weitzenbockSphereCoeff 4 2 = 4) ∧ (∀ d γ : ℝ, nsCriticalSobolev d γ = 0 ↔ γ = nsLionsCriticalGamma d) ∧ (nsCriticalSobolev 2 1 = 0 ∧ nsCriticalSobolev 3 1 = 1 / 2 ∧ nsCriticalSobolev 4 1 = 1) ∧ (nsLionsCriticalGamma 2 = 1 ∧ nsLionsCriticalGamma 3 = 5 / 4 ∧ nsLionsCriticalGamma 4 = 3 / 2 ∧ nsLionsCriticalGamma 4 < 2) ∧ (∀ d : ℝ, ymEnergyScaleExp d = 0 ↔ d = 4) := by refine ⟨by norm_num [weitzenbockSphereCoeff], ?_, by norm_num [nsCriticalSobolev], by norm_num [nsLionsCriticalGamma], ?_⟩ · intro d γ; dsimp [nsCriticalSobolev, nsLionsCriticalGamma]; constructor <;> intro h <;> linarith · intro d; dsimp [ymEnergyScaleExp]; constructor <;> intro h <;> linarith /-- **Curved round-`S⁴` 2nd-order Hodge-viscosity Navier–Stokes threshold and large-data obstruction** (frame-free: uses the intrinsic Hodge enstrophy `E_H = ‖d u♭‖₂² = ‖∇u‖₂² + 3 U²`, the exact curved-`S⁴` 2-form Weitzenböck gap `F_H = ‖Δ_H u♭‖₂² = ‖∇Ω‖₂² + 4 E_H ≥ 4 E_H`, and finite-atlas + Kato Sobolev constant `C_{S⁴}` — NO global frame on `S⁴`!): 1. **Small-`H¹` curved-`S⁴` exponential decay at exact Weitzenböck rate `8 (ν - C_{S⁴}² √E_H(0))`**: if `C_{S⁴}² √E_H(0) < ν`, `4 E_H ≤ F_H`, and `E_H' + 2 ν F_H ≤ 2 C_{S⁴}² √E_H F_H`, then `E_H(t) ≤ E_H(0) exp(-8 (ν - C_{S⁴}² √E_H(0)) t)` for all `t ∈ [0, T]`. 2. **Large-data linear-`F_H` absorption obstruction survives curved `S⁴` Ricci damping**: whenever `E_H > ν² / C_{S⁴}⁴`, `ν F_H < C_{S⁴}² √E_H F_H` for EVERY `F_H > 0`. -/ theorem ns4d_curved_S4_second_order_threshold_and_obstruction {C_S4 ν : ℝ} (hC : 0 < C_S4) (hν : 0 < ν) : (∀ {E_H F_H : ℝ → ℝ} {T : ℝ}, 0 ≤ T → (∀ t ∈ Set.Icc 0 T, 0 ≤ E_H t) → (∀ t ∈ Set.Icc 0 T, 4 * E_H t ≤ F_H t) → (∀ t ∈ Set.Icc 0 T, ∃ dE : ℝ, HasDerivAt E_H dE t ∧ dE + 2 * ν * F_H t ≤ 2 * C_S4 ^ 2 * Real.sqrt (E_H t) * F_H t) → C_S4 ^ 2 * Real.sqrt (E_H 0) < ν → ∀ t ∈ Set.Icc 0 T, E_H t ≤ E_H 0 ∧ E_H t ≤ E_H 0 * Real.exp (-(8 * (ν - C_S4 ^ 2 * Real.sqrt (E_H 0)) * t))) ∧ (∀ {E_H F_H : ℝ}, ν ^ 2 / C_S4 ^ 4 < E_H → 0 < F_H → ν * F_H < C_S4 ^ 2 * Real.sqrt E_H * F_H) := by refine ⟨?_, ?_⟩ · intro E_H F_H T hT hEnn hF_gap hE_deriv hsmall set δ₀ : ℝ := ν - C_S4 ^ 2 * Real.sqrt (E_H 0) have hδ₀_pos : 0 < δ₀ := sub_pos.mpr hsmall have htrap_eps : ∀ ε : ℝ, 0 < ε → C_S4 ^ 2 * Real.sqrt (E_H 0 + ε) < ν → ∀ t ∈ Set.Icc 0 T, E_H t ≤ E_H 0 + ε := by intro ε hε hsmall_eps set M : ℝ := E_H 0 + ε have hM_pos : 0 < M := by linarith [hEnn 0 ⟨le_rfl, hT⟩] by_contra hnot push Not at hnot let S : Set ℝ := {s ∈ Set.Icc 0 T | M < E_H s} have hS_ne : S.Nonempty := by obtain ⟨t, ht, hgt⟩ := hnot; exact ⟨t, ht, hgt⟩ have hS_bdd : BddBelow S := ⟨0, fun s hs => hs.1.1⟩ set s₁ : ℝ := sInf S have hs₁_ge : 0 ≤ s₁ := le_csInf hS_ne (fun s hs => hs.1.1) have hs₁_le : s₁ ≤ T := by obtain ⟨t, ht⟩ := hS_ne; exact le_trans (csInf_le hS_bdd ht) ht.1.2 have hs₁_mem : s₁ ∈ Set.Icc 0 T := ⟨hs₁_ge, hs₁_le⟩ obtain ⟨dE, hdE, hineq⟩ := hE_deriv s₁ hs₁_mem have hcont_s₁ : ContinuousAt E_H s₁ := hdE.continuousAt have hEs₁_ge : M ≤ E_H s₁ := by by_contra hlt push Not at hlt obtain ⟨δ, hδ_pos, hδ⟩ := Metric.eventually_nhds_iff.mp (hcont_s₁.eventually (Iio_mem_nhds hlt)) obtain ⟨u, huS, hu_lt⟩ := exists_lt_of_csInf_lt hS_ne (lt_add_of_pos_right s₁ hδ_pos) have hle_u : s₁ ≤ u := csInf_le hS_bdd huS have hdist : dist u s₁ < δ := by rw [Real.dist_eq, abs_of_nonneg (sub_nonneg.mpr hle_u)]; linarith linarith [hδ hdist, huS.2] have hEs₁_le : E_H s₁ ≤ M := by rcases eq_or_lt_of_le hs₁_ge with hs₁_eq | hs₁_gt · rw [← hs₁_eq]; dsimp [M]; linarith · let useq : ℕ → ℝ := fun n => s₁ - s₁ / ((n : ℝ) + 2) have huseq_tend : Filter.Tendsto useq Filter.atTop (nhds s₁) := by have h0 : Filter.Tendsto (fun n : ℕ => s₁ / ((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 s₁).comp (Filter.tendsto_add_atTop_nat 2) simpa [useq] using tendsto_const_nhds.sub h0 have huseq_le : ∀ n : ℕ, E_H (useq n) ≤ M := by intro n have hpos : 0 < s₁ / ((n : ℝ) + 2) := div_pos hs₁_gt (by positivity) have hlt : s₁ / ((n : ℝ) + 2) < s₁ := by rw [div_lt_iff₀ (by positivity : (0 : ℝ) < (n : ℝ) + 2)] nlinarith [Nat.cast_nonneg (α := ℝ) n] have hu_mem : useq n ∈ Set.Icc 0 T := by dsimp [useq]; exact ⟨by linarith, by linarith⟩ have hu_lt : useq n < s₁ := by dsimp [useq]; linarith by_contra hgt push Not at hgt have : s₁ ≤ useq n := csInf_le hS_bdd ⟨hu_mem, hgt⟩ linarith exact le_of_tendsto (hcont_s₁.tendsto.comp huseq_tend) (Filter.Eventually.of_forall huseq_le) have hEs₁_eq : E_H s₁ = M := le_antisymm hEs₁_le hEs₁_ge have hF_pos : 0 < F_H s₁ := by have := hF_gap s₁ hs₁_mem; rw [hEs₁_eq] at this; linarith have hdE_neg : dE < 0 := by rw [hEs₁_eq] at hineq have hgap : 0 < 2 * (ν - C_S4 ^ 2 * Real.sqrt M) * F_H s₁ := mul_pos (mul_pos (by norm_num) (sub_pos.mpr hsmall_eps)) hF_pos linarith have hslope := hdE.tendsto_slope_zero_right obtain ⟨δ, hδ_pos, hδ⟩ := Metric.tendsto_nhdsWithin_nhds.mp hslope (-dE / 2) (by linarith) obtain ⟨u, huS, hu_lt⟩ := exists_lt_of_csInf_lt hS_ne (lt_add_of_pos_right s₁ hδ_pos) have hs₁_le_u : s₁ ≤ u := csInf_le hS_bdd huS have hu_gt : s₁ < u := lt_of_le_of_ne hs₁_le_u (fun heq => by rw [← heq] at huS; linarith [huS.2]) set h : ℝ := u - s₁ have hh_pos : 0 < h := sub_pos.mpr hu_gt have hh_dist : dist h 0 < δ := by rw [Real.dist_eq, sub_zero, abs_of_pos hh_pos]; dsimp [h]; linarith have hquot_dist : dist (h⁻¹ * (E_H (s₁ + h) - E_H s₁)) dE < -dE / 2 := hδ hh_pos hh_dist have hquot_neg : h⁻¹ * (E_H (s₁ + h) - E_H s₁) < 0 := by rw [Real.dist_eq, abs_lt] at hquot_dist; linarith have hu_eq : s₁ + h = u := by dsimp [h]; ring rw [hu_eq, hEs₁_eq] at hquot_neg have hpos_quot : 0 < h⁻¹ * (E_H u - M) := mul_pos (inv_pos.mpr hh_pos) (sub_pos.mpr huS.2) linarith have hE_le0 : ∀ t ∈ Set.Icc 0 T, E_H t ≤ E_H 0 := by intro t ht by_contra hgt push Not at hgt have hcont_sqrt : ContinuousAt (fun x : ℝ => C_S4 ^ 2 * Real.sqrt (E_H 0 + x)) 0 := (continuous_const.mul (Real.continuous_sqrt.comp (continuous_const.add continuous_id))).continuousAt have hev : ∀ᶠ x in nhds (0 : ℝ), C_S4 ^ 2 * Real.sqrt (E_H 0 + x) < ν := hcont_sqrt.eventually (Iio_mem_nhds (by simpa using hsmall)) obtain ⟨δ, hδ_pos, hδ⟩ := Metric.eventually_nhds_iff.mp hev set ε : ℝ := min (δ / 2) ((E_H t - E_H 0) / 2) have hε_pos : 0 < ε := lt_min (by linarith) (by linarith) have hε_dist : dist ε 0 < δ := by rw [Real.dist_eq, sub_zero, abs_of_pos hε_pos] exact lt_of_le_of_lt (min_le_left _ _) (by linarith) have hsmall_eps : C_S4 ^ 2 * Real.sqrt (E_H 0 + ε) < ν := hδ hε_dist have hle := htrap_eps ε hε_pos hsmall_eps t ht have hε_lt : ε < E_H t - E_H 0 := lt_of_le_of_lt (min_le_right _ _) (by linarith) linarith let g : ℝ → ℝ := fun t => E_H t * Real.exp (8 * δ₀ * t) have hg_deriv : ∀ t ∈ Set.Icc 0 T, ∃ dg : ℝ, HasDerivAt g dg t ∧ dg ≤ 0 := by intro t ht obtain ⟨dE, hdE, hineq⟩ := hE_deriv t ht have hlin : HasDerivAt (fun u : ℝ => 8 * δ₀ * u) (8 * δ₀) t := by simpa using (hasDerivAt_id t).const_mul (8 * δ₀) refine ⟨dE * Real.exp (8 * δ₀ * t) + E_H t * (Real.exp (8 * δ₀ * t) * (8 * δ₀)), hdE.mul hlin.exp, ?_⟩ have hsqrt_le : Real.sqrt (E_H t) ≤ Real.sqrt (E_H 0) := Real.sqrt_le_sqrt (hE_le0 t ht) have hF_t := hF_gap t ht have hF_nn : 0 ≤ F_H t := by linarith [hEnn t ht] have hprod : 2 * C_S4 ^ 2 * Real.sqrt (E_H t) * F_H t ≤ 2 * C_S4 ^ 2 * Real.sqrt (E_H 0) * F_H t := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hsqrt_le (by positivity)) hF_nn have hdE_le : dE + 8 * δ₀ * E_H t ≤ 0 := by have h1 : dE + 2 * δ₀ * F_H t ≤ 0 := by dsimp [δ₀]; linarith nlinarith [hδ₀_pos] have hfac : dE * Real.exp (8 * δ₀ * t) + E_H t * (Real.exp (8 * δ₀ * t) * (8 * δ₀)) = Real.exp (8 * δ₀ * t) * (dE + 8 * δ₀ * E_H t) := by ring rw [hfac] exact mul_nonpos_of_nonneg_of_nonpos (le_of_lt (Real.exp_pos _)) hdE_le have hg_le := le_zero_of_hasDerivAt_nonpos hg_deriv intro t ht refine ⟨hE_le0 t ht, ?_⟩ have hgt := hg_le t ht dsimp only [g] at hgt simp only [mul_zero, Real.exp_zero, mul_one] at hgt have hmul := mul_le_mul_of_nonneg_right hgt (le_of_lt (Real.exp_pos (-(8 * δ₀ * t)))) rw [mul_assoc, ← Real.exp_add, add_neg_cancel, Real.exp_zero, mul_one] at hmul exact hmul · intro E_H F_H hE hF have hE_pos : 0 < E_H := lt_trans (by positivity) hE have hcoef : ν < C_S4 ^ 2 * Real.sqrt E_H := by rw [← sq_lt_sq₀ (le_of_lt hν) (by positivity), mul_pow, Real.sq_sqrt (le_of_lt hE_pos)] have hmul := (div_lt_iff₀ (by positivity : 0 < C_S4 ^ 4)).mp hE nlinarith [show (C_S4 ^ 2) ^ 2 = C_S4 ^ 4 by ring] exact mul_lt_mul_of_pos_right hcoef hF /-- **Curved round-`S⁴` Biharmonic Hodge-Laplacian Navier–Stokes unconditional global exponential decay closure** (`∂_t u + ∇_u u = -ν (Δ_H u♭)♯ - μ (Δ_H² u♭)♯ - ∇p`, `δ u♭ = 0`, frame-free!): retaining BOTH the intrinsic curved-`S⁴` Weitzenböck gap `4 E_H ≤ F_H` and intrinsic spectral Cauchy–Schwarz `F_H² ≤ E_H G_H`: 1. `P ≤ C_{S⁴}² √E_H F_H ≤ (μ / 2) G_H + (C_{S⁴}⁴ / (2 μ)) E_H²`, giving `E_H' + 2 ν F_H + μ G_H ≤ (C_{S⁴}⁴ / μ) E_H²`, 2. The zero-safe curved-`S⁴` Lyapunov functional `Ψ(t) = E_H(t) exp(8 ν t + C_{S⁴}⁴ U_sq(t) / (2 ν μ))` satisfies `Ψ'(t) ≤ 0`, yielding the strictly sharper arbitrary-amplitude **exponential decay ceiling**: `E_H(t) ≤ E_H(0) exp(C_{S⁴}⁴ U₀² / (2 ν μ) - 8 ν t) ≤ E_H(0) exp(C_{S⁴}⁴ U₀² / (2 ν μ))`. -/ theorem ns4d_curved_S4_biharmonic_global_closure {C_S4 ν μ : ℝ} (hν : 0 < ν) (hμ : 0 < μ) : (∀ {E_H F_H G_H P dE : ℝ}, 0 ≤ E_H → 0 ≤ F_H → 0 ≤ G_H → F_H ^ 2 ≤ E_H * G_H → P ≤ C_S4 ^ 2 * Real.sqrt E_H * F_H → P ≤ (μ / 2) * G_H + (C_S4 ^ 4 / (2 * μ)) * E_H ^ 2 ∧ ((1 / 2) * dE + ν * F_H + μ * G_H ≤ P → dE + 2 * ν * F_H + μ * G_H ≤ (C_S4 ^ 4 / μ) * E_H ^ 2)) ∧ (∀ {E_H F_H G_H U_sq : ℝ → ℝ} {U₀ T : ℝ}, 0 ≤ T → U_sq 0 = U₀ ^ 2 → (∀ t ∈ Set.Icc 0 T, 0 ≤ E_H t) → (∀ t ∈ Set.Icc 0 T, 4 * E_H t ≤ F_H t) → (∀ t ∈ Set.Icc 0 T, 0 ≤ G_H t) → (∀ t ∈ Set.Icc 0 T, 0 ≤ U_sq t) → (∀ t ∈ Set.Icc 0 T, ∃ dE : ℝ, HasDerivAt E_H dE t ∧ dE + 2 * ν * F_H t + μ * G_H t ≤ (C_S4 ^ 4 / μ) * (E_H t) ^ 2) → (∀ t ∈ Set.Icc 0 T, ∃ dU : ℝ, HasDerivAt U_sq dU t ∧ dU ≤ -(2 * ν) * E_H t) → ∀ t ∈ Set.Icc 0 T, E_H t ≤ E_H 0 * Real.exp (C_S4 ^ 4 * U₀ ^ 2 / (2 * ν * μ) - 8 * ν * t) ∧ E_H t ≤ E_H 0 * Real.exp (C_S4 ^ 4 * U₀ ^ 2 / (2 * ν * μ))) := by refine ⟨?_, ?_⟩ · intro E_H F_H G_H P dE hE hF hG hinterp hP have hF_le : F_H ≤ Real.sqrt E_H * Real.sqrt G_H := by rw [← sq_le_sq₀ hF (mul_nonneg (Real.sqrt_nonneg _) (Real.sqrt_nonneg _)), mul_pow, Real.sq_sqrt hE, Real.sq_sqrt hG] exact hinterp have hP1 : P ≤ C_S4 ^ 2 * E_H * Real.sqrt G_H := by calc P ≤ C_S4 ^ 2 * Real.sqrt E_H * F_H := hP _ ≤ C_S4 ^ 2 * Real.sqrt E_H * (Real.sqrt E_H * Real.sqrt G_H) := mul_le_mul_of_nonneg_left hF_le (by positivity) _ = C_S4 ^ 2 * (Real.sqrt E_H) ^ 2 * Real.sqrt G_H := by ring _ = C_S4 ^ 2 * E_H * Real.sqrt G_H := by rw [Real.sq_sqrt hE] have hyoung : C_S4 ^ 2 * E_H * Real.sqrt G_H ≤ (μ / 2) * G_H + (C_S4 ^ 4 / (2 * μ)) * E_H ^ 2 := by have hsq : 0 ≤ (Real.sqrt (μ / 2) * Real.sqrt G_H - C_S4 ^ 2 * E_H / Real.sqrt (2 * μ)) ^ 2 := sq_nonneg _ have hμ2 : (Real.sqrt (μ / 2)) ^ 2 = μ / 2 := Real.sq_sqrt (by positivity) have h2μ : (Real.sqrt (2 * μ)) ^ 2 = 2 * μ := Real.sq_sqrt (by positivity) have hprod : Real.sqrt (μ / 2) / Real.sqrt (2 * μ) = 1 / 2 := by rw [← Real.sqrt_div (by positivity)] have : (μ / 2) / (2 * μ) = 1 / 4 := by field_simp [ne_of_gt hμ]; ring rw [this] have h14 : (1 / 4 : ℝ) = (1 / 2) ^ 2 := by norm_num rw [h14, Real.sqrt_sq (by norm_num)] have hexp : (Real.sqrt (μ / 2) * Real.sqrt G_H - C_S4 ^ 2 * E_H / Real.sqrt (2 * μ)) ^ 2 = (μ / 2) * G_H + (C_S4 ^ 4 / (2 * μ)) * E_H ^ 2 - C_S4 ^ 2 * E_H * Real.sqrt G_H := by have hcross : 2 * (Real.sqrt (μ / 2) * Real.sqrt G_H) * (C_S4 ^ 2 * E_H / Real.sqrt (2 * μ)) = C_S4 ^ 2 * E_H * Real.sqrt G_H := by have : 2 * (Real.sqrt (μ / 2) / Real.sqrt (2 * μ)) = 1 := by rw [hprod]; norm_num calc 2 * (Real.sqrt (μ / 2) * Real.sqrt G_H) * (C_S4 ^ 2 * E_H / Real.sqrt (2 * μ)) = (2 * (Real.sqrt (μ / 2) / Real.sqrt (2 * μ))) * (C_S4 ^ 2 * E_H * Real.sqrt G_H) := by ring _ = 1 * (C_S4 ^ 2 * E_H * Real.sqrt G_H) := by rw [this] _ = C_S4 ^ 2 * E_H * Real.sqrt G_H := one_mul _ have h1 : (Real.sqrt (μ / 2) * Real.sqrt G_H) ^ 2 = (μ / 2) * G_H := by rw [mul_pow, hμ2, Real.sq_sqrt hG] have h2 : (C_S4 ^ 2 * E_H / Real.sqrt (2 * μ)) ^ 2 = (C_S4 ^ 4 / (2 * μ)) * E_H ^ 2 := by rw [div_pow, mul_pow, h2μ]; ring linarith [show (Real.sqrt (μ / 2) * Real.sqrt G_H - C_S4 ^ 2 * E_H / Real.sqrt (2 * μ)) ^ 2 = (Real.sqrt (μ / 2) * Real.sqrt G_H) ^ 2 - 2 * (Real.sqrt (μ / 2) * Real.sqrt G_H) * (C_S4 ^ 2 * E_H / Real.sqrt (2 * μ)) + (C_S4 ^ 2 * E_H / Real.sqrt (2 * μ)) ^ 2 by ring] linarith have hP_fin : P ≤ (μ / 2) * G_H + (C_S4 ^ 4 / (2 * μ)) * E_H ^ 2 := le_trans hP1 hyoung refine ⟨hP_fin, ?_⟩ intro hineq have hcoef : 2 * (C_S4 ^ 4 / (2 * μ)) = C_S4 ^ 4 / μ := by field_simp [ne_of_gt hμ] have h2 : dE + 2 * ν * F_H + 2 * μ * G_H ≤ μ * G_H + 2 * (C_S4 ^ 4 / (2 * μ)) * E_H ^ 2 := by linarith rw [hcoef] at h2 linarith · intro E_H F_H G_H U_sq U₀ T hT hU0 hEnn hF_gap hGnn hUnn hE_deriv hU_deriv set κ : ℝ := C_S4 ^ 4 / (2 * ν * μ) have hκ_nn : 0 ≤ κ := by dsimp [κ]; positivity let Ψ : ℝ → ℝ := fun t => E_H t * Real.exp (8 * ν * t + κ * U_sq t) have hΨ_deriv : ∀ t ∈ Set.Icc 0 T, ∃ dΨ : ℝ, HasDerivAt Ψ dΨ t ∧ dΨ ≤ 0 := by intro t ht obtain ⟨dE, hdE, hE_ineq⟩ := hE_deriv t ht obtain ⟨dU, hdU, hU_ineq⟩ := hU_deriv t ht have hlin : HasDerivAt (fun u : ℝ => 8 * ν * u) (8 * ν) t := by simpa using (hasDerivAt_id t).const_mul (8 * ν) have harg := hlin.add (hdU.const_mul κ) refine ⟨dE * Real.exp (8 * ν * t + κ * U_sq t) + E_H t * (Real.exp (8 * ν * t + κ * U_sq t) * (8 * ν + κ * dU)), hdE.mul harg.exp, ?_⟩ have hdE_le : dE + 8 * ν * E_H t ≤ (C_S4 ^ 4 / μ) * (E_H t) ^ 2 := by have hF_t := hF_gap t ht have h2 : 0 ≤ μ * G_H t := mul_nonneg (le_of_lt hμ) (hGnn t ht) nlinarith [hν] have hκdU : κ * dU ≤ -(C_S4 ^ 4 / μ) * E_H t := by calc κ * dU ≤ κ * (-(2 * ν) * E_H t) := mul_le_mul_of_nonneg_left hU_ineq hκ_nn _ = -(C_S4 ^ 4 / μ) * E_H t := by dsimp [κ]; field_simp [ne_of_gt hν, ne_of_gt hμ] have hprod : E_H t * (κ * dU) ≤ -(C_S4 ^ 4 / μ) * (E_H t) ^ 2 := by calc E_H t * (κ * dU) ≤ E_H t * (-(C_S4 ^ 4 / μ) * E_H t) := mul_le_mul_of_nonneg_left hκdU (hEnn t ht) _ = -(C_S4 ^ 4 / μ) * (E_H t) ^ 2 := by ring have hfac : dE * Real.exp (8 * ν * t + κ * U_sq t) + E_H t * (Real.exp (8 * ν * t + κ * U_sq t) * (8 * ν + κ * dU)) = Real.exp (8 * ν * t + κ * U_sq t) * (dE + 8 * ν * E_H t + E_H t * (κ * dU)) := by ring rw [hfac] exact mul_nonpos_of_nonneg_of_nonpos (le_of_lt (Real.exp_pos _)) (by linarith) have hΨ_le := le_zero_of_hasDerivAt_nonpos hΨ_deriv intro t ht have hΨt := hΨ_le t ht dsimp only [Ψ] at hΨt simp only [mul_zero, zero_add, hU0] at hΨt have hκU : κ * U₀ ^ 2 = C_S4 ^ 4 * U₀ ^ 2 / (2 * ν * μ) := by dsimp [κ]; ring rw [hκU] at hΨt have hmul := mul_le_mul_of_nonneg_right hΨt (le_of_lt (Real.exp_pos (-(8 * ν * t)))) have hL_ge : E_H t ≤ E_H t * Real.exp (κ * U_sq t) := by have hge1 : 1 ≤ Real.exp (κ * U_sq t) := Real.one_le_exp (mul_nonneg hκ_nn (hUnn t ht)) calc E_H t = E_H t * 1 := (mul_one _).symm _ ≤ E_H t * Real.exp (κ * U_sq t) := mul_le_mul_of_nonneg_left hge1 (hEnn t ht) have hL_eq : E_H t * Real.exp (8 * ν * t + κ * U_sq t) * Real.exp (-(8 * ν * t)) = E_H t * Real.exp (κ * U_sq t) := by rw [mul_assoc, ← Real.exp_add] congr 2; ring have hR_eq : E_H 0 * Real.exp (C_S4 ^ 4 * U₀ ^ 2 / (2 * ν * μ)) * Real.exp (-(8 * ν * t)) = E_H 0 * Real.exp (C_S4 ^ 4 * U₀ ^ 2 / (2 * ν * μ) - 8 * ν * t) := by rw [mul_assoc, ← Real.exp_add, sub_eq_add_neg] rw [hL_eq, hR_eq] at hmul have hdec : E_H t ≤ E_H 0 * Real.exp (C_S4 ^ 4 * U₀ ^ 2 / (2 * ν * μ) - 8 * ν * t) := le_trans hL_ge hmul refine ⟨hdec, ?_⟩ have hexp_le : Real.exp (C_S4 ^ 4 * U₀ ^ 2 / (2 * ν * μ) - 8 * ν * t) ≤ Real.exp (C_S4 ^ 4 * U₀ ^ 2 / (2 * ν * μ)) := Real.exp_le_exp.mpr (by nlinarith [ht.1]) exact le_trans hdec (mul_le_mul_of_nonneg_left hexp_le (hEnn 0 ⟨le_rfl, hT⟩)) end CurvedS4And4DPDEs end end F02NavierStokes.QuaternionicS4And4DPDE