import F02NavierStokes.LinearAlgebra3D import F02NavierStokes.AnisotropicLerayAndFlatObstructions import Mathlib.Analysis.SpecialFunctions.ExpDeriv import Mathlib.Tactic.FinCases import Mathlib.Tactic.Linarith import Mathlib.Tactic.Positivity import Mathlib.Tactic.Ring import Mathlib.Tactic.FieldSimp /-! # Cross-Helical Waleffe Triads, Positive Green Square & Unforced Breakdown Frontier Machine-checked Lean 4.35.0 formalization of our multi-agent, independently audited investigation of both sides of the open 3D Navier–Stokes frontier: ## Part I — Regularity Attack (Cross-Helical `Ξ` Dynamics & Positive Green Square `𝒢₊`) 1. `waleffe_triad_energy_helicity_enstrophy_identity` 2. `triad_covariance_coplanar_eigenvalue_identity` 3. `lamb_vector_u_perp_and_green_square_recombination` 4. `beltrami_and_planar_vortex_green_square_obstruction` 5. `two_wave_reflection_vanishing_and_cubic_scaling` ## Part II — Unforced Breakdown Test (Stretched Core, NRS Obstruction & Heterochiral Cascades) 6. `anisotropic_stretched_vortex_origin_jet_cancellation` 7. `nrs_bernoulli_head_elliptic_identity_and_barrier` 8. `waleffe_helical_triad_instability_dichotomy` 9. `three_wave_noncollinear_leray_nonclosure` 10. `three_wave_helical_complex_leray_nonclosure` 11. `dyadic_heterochiral_energy_conservation_and_typeII_rate` Zero `sorry`, zero custom axioms, zero global sections. -/ namespace F02NavierStokes.CrossHelicalTriadsAndBreakdownFrontier open scoped Matrix BigOperators open Matrix F02NavierStokes.LinearAlgebra3D open F02NavierStokes.AnisotropicLerayAndFlatObstructions noncomputable section private lemma fin3_forall {P : Fin 3 → Prop} (h0 : P 0) (h1 : P 1) (h2 : P 2) : ∀ i : Fin 3, P i | 0 => h0 | 1 => h1 | 2 => h2 /-! ## Part I: Cross-Helical Waleffe Triads & Positive Green Square Dissection -/ /-- **Theorem 1 (`waleffe_triad_energy_helicity_enstrophy_identity`)**: Exact inviscid energy & helicity conservation, Vandermonde enstrophy transfer law, exact affine manifold law on fixed `(E0, H0)`, homochiral upper ceiling, and distinct finite-gap enstrophy jumps for heterochiral `(+,-,+)` vs. `(+,+,-)` triads. -/ theorem waleffe_triad_energy_helicity_enstrophy_identity (k1 k2 k3 s1 s2 s3 E1 E2 E3 E0 H0 J : ℝ) (hs1 : s1 ^ 2 = 1) (hs2 : s2 ^ 2 = 1) (hs3 : s3 ^ 2 = 1) (hk1pos : 0 < k1) (hk12 : k1 < k2) (hk23 : k2 < k3) (hE0 : E1 + E2 + E3 = E0) (hH0 : (s1 * k1) * E1 + (s2 * k2) * E2 + (s3 * k3) * E3 = H0) : let sig1 := s1 * k1 let sig2 := s2 * k2 let sig3 := s3 * k3 let dE1 := (sig3 - sig2) * J let dE2 := (sig1 - sig3) * J let dE3 := (sig2 - sig1) * J (dE1 + dE2 + dE3 = 0) ∧ (sig1 * dE1 + sig2 * dE2 + sig3 * dE3 = 0) ∧ (k1 ^ 2 * dE1 + k2 ^ 2 * dE2 + k3 ^ 2 * dE3 = (sig1 - sig2) * (sig2 - sig3) * (sig3 - sig1) * J) ∧ (sig3 ≠ sig1 → k1 ^ 2 * E1 + k2 ^ 2 * E2 + k3 ^ 2 * E3 = (sig1 + sig3) * H0 - sig1 * sig3 * E0 - (sig2 - sig1) * (sig3 - sig2) * E2) ∧ ((s1 = s2 ∧ s2 = s3) → 0 ≤ E2 → k1 ^ 2 * E1 + k2 ^ 2 * E2 + k3 ^ 2 * E3 ≤ (k1 + k3) * (s1 * H0) - k1 * k3 * E0) ∧ (s1 = 1 ∧ s2 = -1 ∧ s3 = 1 → H0 = k1 * E0 → E1 = 0 → k1 ^ 2 * E1 + k2 ^ 2 * E2 + k3 ^ 2 * E3 - k1 ^ 2 * E0 = (k3 - k1) * (k2 + k1) * E0) ∧ (s1 = 1 ∧ s2 = 1 ∧ s3 = -1 → H0 = k1 * E0 → E1 = 0 → k1 ^ 2 * E1 + k2 ^ 2 * E2 + k3 ^ 2 * E3 - k1 ^ 2 * E0 = (k3 + k1) * (k2 - k1) * E0) := by dsimp only have hsq1 : (s1 * k1) ^ 2 = k1 ^ 2 := by rw [mul_pow, hs1, one_mul] have hsq2 : (s2 * k2) ^ 2 = k2 ^ 2 := by rw [mul_pow, hs2, one_mul] have hsq3 : (s3 * k3) ^ 2 = k3 ^ 2 := by rw [mul_pow, hs3, one_mul] have haff : ∀ _ : s3 * k3 ≠ s1 * k1, k1 ^ 2 * E1 + k2 ^ 2 * E2 + k3 ^ 2 * E3 = (s1 * k1 + s3 * k3) * H0 - (s1 * k1) * (s3 * k3) * E0 - (s2 * k2 - s1 * k1) * (s3 * k3 - s2 * k2) * E2 := by intro _ rw [← hsq1, ← hsq2, ← hsq3, ← hE0, ← hH0] ring refine ⟨by ring, by ring, ?_, haff, ?_, ?_, ?_⟩ · rw [← hsq1, ← hsq2, ← hsq3]; ring · rintro ⟨rfl, rfl⟩ hE2 have hcoeff : 0 ≤ (k2 - k1) * (k3 - k2) * E2 := by have h1 : 0 < k2 - k1 := by linarith have h2 : 0 < k3 - k2 := by linarith positivity have hid : k1 ^ 2 * E1 + k2 ^ 2 * E2 + k3 ^ 2 * E3 = (k1 + k3) * (s1 * H0) - k1 * k3 * E0 - (k2 - k1) * (k3 - k2) * E2 := by rw [← hE0, ← hH0] have hsub : (k1 + k3) * (s1 * (s1 * k1 * E1 + s1 * k2 * E2 + s1 * k3 * E3)) - k1 * k3 * (E1 + E2 + E3) - (k2 - k1) * (k3 - k2) * E2 = (k1 + k3) * (s1 ^ 2 * (k1 * E1 + k2 * E2 + k3 * E3)) - k1 * k3 * (E1 + E2 + E3) - (k2 - k1) * (k3 - k2) * E2 := by ring rw [hsub, hs1] ring linarith · rintro ⟨rfl, rfl, rfl⟩ hH hE1 have hsum : E2 + E3 = E0 := by rw [hE1, zero_add] at hE0; exact hE0 have hhel : -k2 * E2 + k3 * E3 = k1 * E0 := by rw [hE1, hH] at hH0; linarith have hden : k3 + k2 ≠ 0 := by linarith have hE2_eq : (k3 + k2) * E2 = (k3 - k1) * E0 := by have : (k3 + k2) * E2 = k3 * (E2 + E3) - (-k2 * E2 + k3 * E3) := by ring rw [this, hsum, hhel]; ring have hE3_eq : (k3 + k2) * E3 = (k2 + k1) * E0 := by have : (k3 + k2) * E3 = k2 * (E2 + E3) + (-k2 * E2 + k3 * E3) := by ring rw [this, hsum, hhel]; ring have hmul : (k3 + k2) * (k1 ^ 2 * E1 + k2 ^ 2 * E2 + k3 ^ 2 * E3 - k1 ^ 2 * E0) = (k3 + k2) * ((k3 - k1) * (k2 + k1) * E0) := by rw [hE1] have h1 : (k3 + k2) * (k1 ^ 2 * 0 + k2 ^ 2 * E2 + k3 ^ 2 * E3 - k1 ^ 2 * E0) = k2 ^ 2 * ((k3 + k2) * E2) + k3 ^ 2 * ((k3 + k2) * E3) - (k3 + k2) * k1 ^ 2 * E0 := by ring rw [h1, hE2_eq, hE3_eq]; ring exact mul_left_cancel₀ hden hmul · rintro ⟨rfl, rfl, rfl⟩ hH hE1 have hsum : E2 + E3 = E0 := by rw [hE1, zero_add] at hE0; exact hE0 have hhel : k2 * E2 - k3 * E3 = k1 * E0 := by rw [hE1, hH] at hH0; linarith have hden : k3 + k2 ≠ 0 := by linarith have hE2_eq : (k3 + k2) * E2 = (k3 + k1) * E0 := by have : (k3 + k2) * E2 = k3 * (E2 + E3) + (k2 * E2 - k3 * E3) := by ring rw [this, hsum, hhel]; ring have hE3_eq : (k3 + k2) * E3 = (k2 - k1) * E0 := by have : (k3 + k2) * E3 = k2 * (E2 + E3) - (k2 * E2 - k3 * E3) := by ring rw [this, hsum, hhel]; ring have hmul : (k3 + k2) * (k1 ^ 2 * E1 + k2 ^ 2 * E2 + k3 ^ 2 * E3 - k1 ^ 2 * E0) = (k3 + k2) * ((k3 + k1) * (k2 - k1) * E0) := by rw [hE1] have h1 : (k3 + k2) * (k1 ^ 2 * 0 + k2 ^ 2 * E2 + k3 ^ 2 * E3 - k1 ^ 2 * E0) = k2 ^ 2 * ((k3 + k2) * E2) + k3 ^ 2 * ((k3 + k2) * E3) - (k3 + k2) * k1 ^ 2 * E0 := by ring rw [h1, hE2_eq, hE3_eq]; ring exact mul_left_cancel₀ hden hmul /-- Matrix form of the 3D Leray projector `P_k = I - (1 / |k|²) k kᵀ`. -/ def lerayProjMat (k : Vec3) : Mat3 := (1 : Mat3) - (1 / vecSqNorm k) • outer k /-- General rank-1 outer product `a bᵀ` of two vectors in `ℝ³`. -/ def matOuter (a b : Vec3) : Mat3 := Matrix.of fun i j => a i * b j /-- **Theorem 2 (`triad_covariance_coplanar_eigenvalue_identity`)**: For any coplanar 3-wave vorticity covariance `Ξ = (e₁/2) P_{k₁} + (e₂/2) P_{k₂} + (e₃/2) P_{k₃}` with common triad normal `n_⊥`: 1. `tr(Ξ) = e₁ + e₂ + e₃`. 2. `Ξ n_⊥ = ((e₁ + e₂ + e₃) / 2) n_⊥` and `n_⊥ᵀ Ξ n_⊥ = tr(Ξ) / 2`. 3. Every unit vector satisfies `vᵀ Ξ v ≤ tr(Ξ) / 2`. 4. The trace-free deviator `Ξ₀ = Ξ - (tr(Ξ) / 3) I` satisfies `tr(Ξ₀) = 0` and `n_⊥ᵀ Ξ₀ n_⊥ = tr(Ξ) / 6`. -/ theorem triad_covariance_coplanar_eigenvalue_identity (k1 k2 k3 nperp v : Vec3) (e1 e2 e3 : ℝ) (hk1 : vecSqNorm k1 ≠ 0) (hk2 : vecSqNorm k2 ≠ 0) (hk3 : vecSqNorm k3 ≠ 0) (hn : vecSqNorm nperp = 1) (hv : vecSqNorm v = 1) (hc1 : vecDot k1 nperp = 0) (hc2 : vecDot k2 nperp = 0) (hc3 : vecDot k3 nperp = 0) (he1 : 0 ≤ e1) (he2 : 0 ≤ e2) (he3 : 0 ≤ e3) : let Xi : Mat3 := (e1 / 2) • lerayProjMat k1 + (e2 / 2) • lerayProjMat k2 + (e3 / 2) • lerayProjMat k3 let Xi0 : Mat3 := Xi - (Xi.trace / 3) • (1 : Mat3) Xi.trace = e1 + e2 + e3 ∧ Xi *ᵥ nperp = ((e1 + e2 + e3) / 2) • nperp ∧ nperp ⬝ᵥ (Xi *ᵥ nperp) = Xi.trace / 2 ∧ v ⬝ᵥ (Xi *ᵥ v) ≤ Xi.trace / 2 ∧ Xi0.trace = 0 ∧ nperp ⬝ᵥ (Xi0 *ᵥ nperp) = Xi.trace / 6 := by dsimp only have htrP : ∀ k : Vec3, vecSqNorm k ≠ 0 → (lerayProjMat k).trace = 2 := by intro k hk have h0 : (lerayProjMat k).trace = 3 - vecSqNorm k / vecSqNorm k := by simp only [lerayProjMat, outer, vecSqNorm, Matrix.trace, Matrix.diag, Matrix.sub_apply, Matrix.smul_apply, Matrix.one_apply, Matrix.of_apply, smul_eq_mul, Fin.sum_univ_three] norm_num ring rw [h0, div_self hk] norm_num have hXi_tr : ((e1 / 2) • lerayProjMat k1 + (e2 / 2) • lerayProjMat k2 + (e3 / 2) • lerayProjMat k3).trace = e1 + e2 + e3 := by simp only [Matrix.trace_add, Matrix.trace_smul, smul_eq_mul, htrP k1 hk1, htrP k2 hk2, htrP k3 hk3] ring have hsmul_mv : ∀ (a : ℝ) (M : Mat3) (x : Vec3), (a • M) *ᵥ x = a • (M *ᵥ x) := by intro a M x funext i simp only [Matrix.mulVec, dotProduct, Matrix.smul_apply, Pi.smul_apply, smul_eq_mul, Fin.sum_univ_three] ring have hPmul : ∀ k : Vec3, vecDot k nperp = 0 → lerayProjMat k *ᵥ nperp = nperp := by intro k hkn funext i have hid : (lerayProjMat k *ᵥ nperp) i = nperp i - (1 / vecSqNorm k) * k i * vecDot k nperp := by revert i refine fin3_forall ?_ ?_ ?_ <;> (simp only [lerayProjMat, outer, vecDot, Matrix.mulVec, dotProduct, Matrix.sub_apply, Matrix.smul_apply, Matrix.one_apply, Matrix.of_apply, smul_eq_mul, Fin.sum_univ_three]; norm_num; ring) rw [hid, hkn, mul_zero, sub_zero] have hXi_mul : ((e1 / 2) • lerayProjMat k1 + (e2 / 2) • lerayProjMat k2 + (e3 / 2) • lerayProjMat k3) *ᵥ nperp = ((e1 + e2 + e3) / 2) • nperp := by rw [Matrix.add_mulVec, Matrix.add_mulVec, hsmul_mv, hsmul_mv, hsmul_mv, hPmul k1 hc1, hPmul k2 hc2, hPmul k3 hc3] funext i simp only [Pi.add_apply, Pi.smul_apply, smul_eq_mul] ring have hrayP : ∀ k : Vec3, v ⬝ᵥ (lerayProjMat k *ᵥ v) = vecSqNorm v - (vecDot k v) ^ 2 / vecSqNorm k := by intro k simp only [lerayProjMat, outer, vecSqNorm, vecDot, Matrix.mulVec, dotProduct, Matrix.sub_apply, Matrix.smul_apply, Matrix.one_apply, Matrix.of_apply, smul_eq_mul, Fin.sum_univ_three] norm_num ring have hP_le : ∀ k : Vec3, vecSqNorm k ≠ 0 → v ⬝ᵥ (lerayProjMat k *ᵥ v) ≤ 1 := by intro k hk rw [hrayP k, hv] have hkn : 0 ≤ vecSqNorm k := by simp only [vecSqNorm, Fin.sum_univ_three]; positivity have hkp : 0 < vecSqNorm k := lt_of_le_of_ne hkn (Ne.symm hk) have hq : 0 ≤ (vecDot k v) ^ 2 / vecSqNorm k := div_nonneg (sq_nonneg _) (le_of_lt hkp) linarith have hndot : nperp ⬝ᵥ nperp = 1 := by simpa only [vecSqNorm, dotProduct, Fin.sum_univ_three, sq] using hn refine ⟨hXi_tr, hXi_mul, ?_, ?_, ?_, ?_⟩ · rw [hXi_mul, hXi_tr, dotProduct_smul, smul_eq_mul, hndot, mul_one] · rw [hXi_tr, Matrix.add_mulVec, Matrix.add_mulVec, hsmul_mv, hsmul_mv, hsmul_mv, dotProduct_add, dotProduct_add, dotProduct_smul, dotProduct_smul, dotProduct_smul, smul_eq_mul, smul_eq_mul, smul_eq_mul] have h1 := hP_le k1 hk1 have h2 := hP_le k2 hk2 have h3 := hP_le k3 hk3 nlinarith · simp only [Matrix.trace_sub, Matrix.trace_smul, Matrix.trace_one, Fintype.card_fin, Nat.cast_ofNat, smul_eq_mul] ring · rw [Matrix.sub_mulVec, hsmul_mv, Matrix.one_mulVec, dotProduct_sub, dotProduct_smul, smul_eq_mul, hXi_mul, dotProduct_smul, smul_eq_mul, hndot, hXi_tr] ring /-- **Theorem 3 (`lamb_vector_u_perp_and_green_square_recombination`)**: Exact Lamb-vector identities for `u_⊥ = P_n u` and exact pointwise algebraic recombination of the three squares in `eq:direct-joint-green-squares`. -/ theorem lamb_vector_u_perp_and_green_square_recombination (ω u gphi : Vec3) (grad_n : Mat3) (r phi ν : ℝ) (hr : 0 < r) (hphi : 0 < phi) (hν : 0 < ν) (hω : vecSqNorm ω = r ^ 2) : let n : Vec3 := (1 / r) • ω let u_perp : Vec3 := u - vecDot u n • n let P_n_gphi : Vec3 := gphi - vecDot gphi n • n let ngradn : Vec3 := grad_n *ᵥ n vecSqNorm n = 1 ∧ vecDot u_perp n = 0 ∧ vCross (vCross ω u) ω = (r ^ 2) • u_perp ∧ vecSqNorm (vCross ω u) = r ^ 2 * vecSqNorm u_perp ∧ hsNormSq (matOuter u_perp n) = vecSqNorm u_perp ∧ hsInner grad_n (matOuter u_perp n) = vecDot u_perp ngradn ∧ (-2 * ν * phi * r * hsNormSq (grad_n + (1 / (2 * ν)) • matOuter u_perp n) - 2 * ν * (r / phi) * vecSqNorm P_n_gphi + (1 / (2 * ν)) * phi * r * vecSqNorm (u_perp + (2 * ν / phi) • P_n_gphi) = -2 * ν * phi * r * hsNormSq grad_n - 2 * phi * r * vecDot u_perp ngradn + 2 * r * vecDot u_perp gphi) := by dsimp only have hr_ne : r ≠ 0 := ne_of_gt hr have hphi_ne : phi ≠ 0 := ne_of_gt hphi have hν_ne : ν ≠ 0 := ne_of_gt hν set n : Vec3 := (1 / r) • ω set u_perp : Vec3 := u - vecDot u n • n set P_n_gphi : Vec3 := gphi - vecDot gphi n • n set ngradn : Vec3 := grad_n *ᵥ n have hn_sq : vecSqNorm n = 1 := by have hid : vecSqNorm n = vecSqNorm ω / r ^ 2 := by simp only [n, vecSqNorm, Pi.smul_apply, smul_eq_mul, Fin.sum_univ_three] field_simp [hr_ne] rw [hid, hω, div_self (pow_ne_zero 2 hr_ne)] have hu_orth : vecDot u_perp n = 0 := by have hid : vecDot u_perp n = vecDot u n * (1 - vecSqNorm n) := by simp only [u_perp, vecDot, vecSqNorm, Pi.sub_apply, Pi.smul_apply, smul_eq_mul, Fin.sum_univ_three] ring rw [hid, hn_sq]; ring have hdot_un : vecDot u n = vecDot u ω / r := by simp only [n, vecDot, Pi.smul_apply, smul_eq_mul, Fin.sum_univ_three] field_simp [hr_ne] have htriple : vCross (vCross ω u) ω = (r ^ 2) • u_perp := by funext i have h1 : vCross (vCross ω u) ω i = vecSqNorm ω * u i - vecDot u ω * ω i := by revert i refine fin3_forall ?_ ?_ ?_ <;> (simp only [vCross, vecSqNorm, vecDot, Fin.sum_univ_three]; ring) have h2 : ((r ^ 2) • u_perp) i = r ^ 2 * u i - vecDot u ω * ω i := by simp only [u_perp, Pi.smul_apply, Pi.sub_apply, smul_eq_mul, hdot_un, n] field_simp [hr_ne] rw [h1, hω, h2] have hlamb_sq : vecSqNorm (vCross ω u) = r ^ 2 * vecSqNorm u_perp := by have h1 : vecSqNorm (vCross ω u) = vecSqNorm ω * vecSqNorm u - (vecDot u ω) ^ 2 := by simp only [vCross, vecSqNorm, vecDot, Fin.sum_univ_three]; ring have h2 : vecSqNorm u_perp = vecSqNorm u - (vecDot u n) ^ 2 * (2 - vecSqNorm n) := by simp only [u_perp, vecSqNorm, vecDot, Pi.sub_apply, Pi.smul_apply, smul_eq_mul, Fin.sum_univ_three]; ring rw [h1, hω, h2, hn_sq, hdot_un] field_simp [hr_ne]; ring have houter_sq : hsNormSq (matOuter u_perp n) = vecSqNorm u_perp := by have hid : hsNormSq (matOuter u_perp n) = vecSqNorm u_perp * vecSqNorm n := by simp only [hsNormSq, hsInner, matOuter, vecSqNorm, Matrix.trace, Matrix.diag, Matrix.mul_apply, Matrix.transpose_apply, Matrix.of_apply, Fin.sum_univ_three] ring rw [hid, hn_sq, mul_one] have hinner : hsInner grad_n (matOuter u_perp n) = vecDot u_perp ngradn := by simp only [hsInner, matOuter, ngradn, vecDot, Matrix.trace, Matrix.diag, Matrix.mul_apply, Matrix.transpose_apply, Matrix.of_apply, Matrix.mulVec, dotProduct, Fin.sum_univ_three] ring have hu_gphi : vecDot u_perp P_n_gphi = vecDot u_perp gphi := by have hid : vecDot u_perp P_n_gphi = vecDot u_perp gphi - vecDot gphi n * vecDot u_perp n := by simp only [P_n_gphi, vecDot, Pi.sub_apply, Pi.smul_apply, smul_eq_mul, Fin.sum_univ_three] ring rw [hid, hu_orth, mul_zero, sub_zero] have hsq1_exp : hsNormSq (grad_n + (1 / (2 * ν)) • matOuter u_perp n) = hsNormSq grad_n + (1 / ν) * hsInner grad_n (matOuter u_perp n) + (1 / (4 * ν ^ 2)) * hsNormSq (matOuter u_perp n) := by simp only [hsNormSq, hsInner, Matrix.trace, Matrix.diag, Matrix.mul_apply, Matrix.transpose_apply, Matrix.add_apply, Matrix.smul_apply, smul_eq_mul, Fin.sum_univ_three] field_simp [hν_ne]; ring have hsq3_exp : vecSqNorm (u_perp + (2 * ν / phi) • P_n_gphi) = vecSqNorm u_perp + (4 * ν / phi) * vecDot u_perp P_n_gphi + (4 * ν ^ 2 / phi ^ 2) * vecSqNorm P_n_gphi := by simp only [vecSqNorm, vecDot, Pi.add_apply, Pi.smul_apply, smul_eq_mul, Fin.sum_univ_three] field_simp [hphi_ne]; ring refine ⟨hn_sq, hu_orth, htriple, hlamb_sq, houter_sq, hinner, ?_⟩ rw [hsq1_exp, hsq3_exp, houter_sq, hinner, hu_gphi] field_simp [hν_ne, hphi_ne] ring /-- **Theorem 4 (`beltrami_and_planar_vortex_green_square_obstruction`)**: 1. Pure Beltrami fields (`ω = lam • u`) force `u_⊥ = 0` and exact cancellation `𝒢₊ = -Sq₂`. 2. Steady planar 2D Euler vortices (`u = A(-y f, x f, 0)`, `n = e₃`, radial `∇φ`) satisfy `u_⊥ = u`, `u · ∇φ = 0`, and exact cancellation `Sq₁ + Sq₂ + 𝒢₊ = 0`, yet the isolated positive Green square diverges as `A⁴ / (2 ν)` via the irrotational Bernoulli Lamb vector. -/ theorem beltrami_and_planar_vortex_green_square_obstruction (u gphi : Vec3) (r phi ν lam A r0 phi0 f x y gx0 gy0 : ℝ) (hr : 0 < r) (hphi : 0 < phi) (hν : 0 < ν) (hA : 0 < A) (hr0 : 0 < r0) (hphi0 : 0 < phi0) : (∀ (ω : Vec3), vecSqNorm ω = r ^ 2 → ω = lam • u → let n := (1 / r) • ω let u_perp := u - vecDot u n • n let P_n_gphi := gphi - vecDot gphi n • n u_perp = 0 ∧ (1 / (2 * ν)) * phi * r * vecSqNorm (u_perp + (2 * ν / phi) • P_n_gphi) = 2 * ν * (r / phi) * vecSqNorm P_n_gphi) ∧ (let u2d : Vec3 := ![-A * y * f, A * x * f, 0] let n3 : Vec3 := ![0, 0, 1] let gphi2d : Vec3 := ![A * gx0, A * gy0, 0] let rA := A * r0 let phiA := A * phi0 x * gy0 - y * gx0 = 0 → (u2d - vecDot u2d n3 • n3 = u2d) ∧ (vecDot u2d gphi2d = 0) ∧ (-(1 / (2 * ν)) * phiA * rA * vecSqNorm u2d - 2 * ν * (rA / phiA) * vecSqNorm gphi2d + (1 / (2 * ν)) * phiA * rA * vecSqNorm (u2d + (2 * ν / phiA) • gphi2d) = 0) ∧ (A ^ 4 * (phi0 * r0 * f ^ 2 * (x ^ 2 + y ^ 2)) / (2 * ν) ≤ (1 / (2 * ν)) * phiA * rA * vecSqNorm (u2d + (2 * ν / phiA) • gphi2d))) := by have hr_ne : r ≠ 0 := ne_of_gt hr have hphi_ne : phi ≠ 0 := ne_of_gt hphi have hν_ne : ν ≠ 0 := ne_of_gt hν constructor · intro ω hω hbel have hlam_sq_u : lam ^ 2 * vecSqNorm u = r ^ 2 := by have hid : vecSqNorm (lam • u) = lam ^ 2 * vecSqNorm u := by simp only [vecSqNorm, Pi.smul_apply, smul_eq_mul, Fin.sum_univ_three]; ring rw [← hbel, hω] at hid exact hid.symm have hup0 : u - vecDot u ((1 / r) • ω) • ((1 / r) • ω) = 0 := by funext i have hdot : vecDot u ((1 / r) • ω) = (lam / r) * vecSqNorm u := by rw [hbel] simp only [vecDot, vecSqNorm, Pi.smul_apply, smul_eq_mul, Fin.sum_univ_three] field_simp [hr_ne] have hi : (u - vecDot u ((1 / r) • ω) • ((1 / r) • ω)) i = u i * (1 - (lam ^ 2 * vecSqNorm u) / r ^ 2) := by simp only [Pi.sub_apply, Pi.smul_apply, smul_eq_mul] rw [hdot, hbel] simp only [Pi.smul_apply, smul_eq_mul] field_simp [hr_ne] rw [hi, hlam_sq_u, div_self (pow_ne_zero 2 hr_ne)] simp only [Pi.zero_apply] ring refine ⟨hup0, ?_⟩ rw [hup0, zero_add] have hsc : vecSqNorm ((2 * ν / phi) • (gphi - vecDot gphi ((1 / r) • ω) • ((1 / r) • ω))) = (2 * ν / phi) ^ 2 * vecSqNorm (gphi - vecDot gphi ((1 / r) • ω) • ((1 / r) • ω)) := by simp only [vecSqNorm, Pi.smul_apply, smul_eq_mul, Fin.sum_univ_three]; ring rw [hsc] field_simp [hν_ne, hphi_ne] · dsimp only intro hrad have hphiA_pos : 0 < A * phi0 := mul_pos hA hphi0 have hphiA_ne : A * phi0 ≠ 0 := ne_of_gt hphiA_pos have hrA_pos : 0 < A * r0 := mul_pos hA hr0 have hproj : (![-A * y * f, A * x * f, 0] : Vec3) - vecDot ![-A * y * f, A * x * f, 0] ![0, 0, 1] • ![0, 0, 1] = ![-A * y * f, A * x * f, 0] := by funext i revert i refine fin3_forall ?_ ?_ ?_ <;> (simp only [vecDot, Pi.sub_apply, Pi.smul_apply, smul_eq_mul, Fin.sum_univ_three, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_two, Matrix.head_cons, Matrix.tail_cons]; ring) have hdot0 : vecDot ![-A * y * f, A * x * f, 0] ![A * gx0, A * gy0, 0] = 0 := by have hid : vecDot ![-A * y * f, A * x * f, 0] ![A * gx0, A * gy0, 0] = A ^ 2 * f * (x * gy0 - y * gx0) := by simp only [vecDot, Fin.sum_univ_three, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_two, Matrix.head_cons, Matrix.tail_cons]; ring rw [hid, hrad, mul_zero] have hsq_exp : vecSqNorm (![-A * y * f, A * x * f, 0] + (2 * ν / (A * phi0)) • (![A * gx0, A * gy0, 0] : Vec3)) = vecSqNorm ![-A * y * f, A * x * f, 0] + (4 * ν / (A * phi0)) * vecDot ![-A * y * f, A * x * f, 0] ![A * gx0, A * gy0, 0] + (4 * ν ^ 2 / (A * phi0) ^ 2) * vecSqNorm ![A * gx0, A * gy0, 0] := by simp only [vecSqNorm, vecDot, Pi.add_apply, Pi.smul_apply, smul_eq_mul, Fin.sum_univ_three, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_two, Matrix.head_cons, Matrix.tail_cons] field_simp [hphiA_ne]; ring have hu2d_sq : vecSqNorm ![-A * y * f, A * x * f, 0] = A ^ 2 * f ^ 2 * (x ^ 2 + y ^ 2) := by simp only [vecSqNorm, Fin.sum_univ_three, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_two, Matrix.head_cons, Matrix.tail_cons]; ring have hcancel : -(1 / (2 * ν)) * (A * phi0) * (A * r0) * vecSqNorm ![-A * y * f, A * x * f, 0] - 2 * ν * (A * r0 / (A * phi0)) * vecSqNorm ![A * gx0, A * gy0, 0] + (1 / (2 * ν)) * (A * phi0) * (A * r0) * vecSqNorm (![-A * y * f, A * x * f, 0] + (2 * ν / (A * phi0)) • (![A * gx0, A * gy0, 0] : Vec3)) = 0 := by rw [hsq_exp, hdot0] field_simp [hν_ne, hphiA_ne]; ring refine ⟨hproj, hdot0, hcancel, ?_⟩ have hg_nonneg : 0 ≤ 2 * ν * (A * r0 / (A * phi0)) * vecSqNorm ![A * gx0, A * gy0, 0] := by have hv : 0 ≤ vecSqNorm ![A * gx0, A * gy0, 0] := by simp only [vecSqNorm, Fin.sum_univ_three, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_two, Matrix.head_cons, Matrix.tail_cons]; positivity positivity have hterm : (1 / (2 * ν)) * (A * phi0) * (A * r0) * vecSqNorm ![-A * y * f, A * x * f, 0] = A ^ 4 * (phi0 * r0 * f ^ 2 * (x ^ 2 + y ^ 2)) / (2 * ν) := by rw [hu2d_sq]; field_simp [hν_ne] linarith /-- **Theorem 5 (`two_wave_reflection_vanishing_and_cubic_scaling`)**: 1. Any orthogonal reflection `R` (`Rᵀ R = I`) acting evenly on `(u, n)` and oddly on `(∇φ, (n · ∇)u)` flips the pointwise Green integrand sign identically (enforcing `𝒩[u₁ + u₂] = 0` for all 2-wave helical superpositions). 2. Cubic-vs-quadratic scaling forces `2 A³ N₀ - A² D₀ > 0` whenever `A > D₀ / (2 N₀)`. -/ theorem two_wave_reflection_vanishing_and_cubic_scaling (R : Mat3) (u n gphi ngradu : Vec3) (r phi N0 D0 A : ℝ) (hR : Rᵀ * R = 1) (hN0 : 0 < N0) (hD0 : 0 ≤ D0) (hA : D0 / (2 * N0) < A) : let u' := R *ᵥ u let n' := R *ᵥ n let gphi' := -(R *ᵥ gphi) let ngradu' := -(R *ᵥ ngradu) (r * (vecDot u' gphi' + vecDot n' ngradu' * phi) = -(r * (vecDot u gphi + vecDot n ngradu * phi))) ∧ (0 < 2 * (A ^ 3 * N0) - A ^ 2 * D0) := by dsimp only have horth : ∀ a b : Vec3, vecDot (R *ᵥ a) (R *ᵥ b) = vecDot a b := by intro a b change (R *ᵥ a) ⬝ᵥ (R *ᵥ b) = a ⬝ᵥ b rw [← Matrix.vecMul_transpose, Matrix.dotProduct_mulVec, Matrix.vecMul_vecMul, hR, Matrix.vecMul_one] have hneg : ∀ a b : Vec3, vecDot a (-b) = -vecDot a b := by intro a b simp only [vecDot, Pi.neg_apply, Fin.sum_univ_three]; ring constructor · rw [hneg, hneg, horth u gphi, horth n ngradu]; ring · have hA_pos : 0 < A := by have h0 : 0 ≤ D0 / (2 * N0) := by positivity linarith have hmul : D0 < 2 * N0 * A := by have h2N : 0 < 2 * N0 := by positivity have := (div_lt_iff₀ h2N).mp hA linarith have hA2 : 0 < A ^ 2 := sq_pos_of_pos hA_pos nlinarith /-! ## Part II: Unforced Breakdown Test (Stretched Core, NRS Obstruction & Cascades) -/ /-- **Theorem 6 (`anisotropic_stretched_vortex_origin_jet_cancellation`)**: For the divergence-free triaxial stretched Gaussian profile `U(y) = A(-y₂, y₁, 0) e^{-|y|²} + curl((-B₁ y₂ y₃, B₂ y₁ y₃, 0) e^{-|y|²})`: 1. `div U ≡ 0` identically at every `y ∈ ℝ³`. 2. Origin curl residual equals `τ⁻² A (2 + 20 ν - 2 (B₁ + B₂)) e₃`, vanishing identically at `B₁ + B₂ = 1 + 10 ν` (`B_* = 1/2 + 5 ν` in the axisymmetric case), strictly bypassing Module 20's collapsing Gaussian swirl obstruction. 3. Even at `B = 1/2 + 5 ν`, the `O(|y|²)` curvature of `(curl L[U])₃` stays strictly positive away from `y = 0`. -/ theorem anisotropic_stretched_vortex_origin_jet_cancellation (A B1 B2 ν τ y1 y2 y3 : ℝ) (_hτ : 0 < τ) : let E := Real.exp (-(y1 ^ 2 + y2 ^ 2 + y3 ^ 2)) let du1_dy1 := (-B2 * (1 - 2 * y3 ^ 2) - 2 * y1 * (-A * y2 - B2 * y1 * (1 - 2 * y3 ^ 2))) * E let du2_dy2 := (-B1 * (1 - 2 * y3 ^ 2) - 2 * y2 * (A * y1 - B1 * y2 * (1 - 2 * y3 ^ 2))) * E let du3_dy3 := ((B1 * (1 - 2 * y2 ^ 2) + B2 * (1 - 2 * y1 ^ 2)) - 2 * y3 ^ 2 * (B1 * (1 - 2 * y2 ^ 2) + B2 * (1 - 2 * y1 ^ 2))) * E (du1_dy1 + du2_dy2 + du3_dy3 = 0) ∧ (τ ^ (-(2 : ℤ)) * (2 * A - 2 * A * (B1 + B2) - ν * (-20 * A)) = τ ^ (-(2 : ℤ)) * A * (2 + 20 * ν - 2 * (B1 + B2))) ∧ (B1 + B2 = 1 + 10 * ν → τ ^ (-(2 : ℤ)) * (2 * A - 2 * A * (B1 + B2) - ν * (-20 * A)) = 0) ∧ (0 < A → 0 < ν → y1 ^ 2 + y2 ^ 2 + y3 ^ 2 ≠ 0 → 0 < 4 * A * (y1 ^ 2 + y2 ^ 2) + A * ν * (64 * (y1 ^ 2 + y2 ^ 2) + 12 * y3 ^ 2)) := by dsimp only refine ⟨by ring, by ring, ?_, ?_⟩ · intro hB; rw [hB]; ring · intro hA hν hy have hnn : 0 ≤ y1 ^ 2 + y2 ^ 2 + y3 ^ 2 := by positivity have hpos : 0 < y1 ^ 2 + y2 ^ 2 + y3 ^ 2 := lt_of_le_of_ne hnn (Ne.symm hy) have hAν : 0 < A * ν := mul_pos hA hν have h12 : 0 ≤ y1 ^ 2 + y2 ^ 2 := by positivity nlinarith [sq_nonneg y1, sq_nonneg y2, sq_nonneg y3, hAν, h12] /-- **Theorem 7 (`nrs_bernoulli_head_elliptic_identity_and_barrier`)**: Exact pointwise Nečas–Růžička–Šverák (NRS) Bernoulli head elliptic identity for any exact Type-I self-similar Leray profile (`Π = ½|U|² + P + ½ y · U`) and exact positivity of the exterior NRS barrier `L(|y|⁻²) = 2 r⁻² (ν r⁻² + 1/2 + ⟨U, y⟩ / r²) > 0`. -/ theorem nrs_bernoulli_head_elliptic_identity_and_barrier (ν : ℝ) (y U lapU gradP : Vec3) (G : Mat3) (lapP r : ℝ) (hdiv : G 0 0 + G 1 1 + G 2 2 = 0) (hlapP : lapP = -(Matrix.trace (G * G))) (hpde : ∀ i : Fin 3, gradP i = ν * lapU i - (1 / 2 : ℝ) * U i - (1 / 2 : ℝ) * (∑ j : Fin 3, G i j * y j) - (∑ j : Fin 3, G i j * U j)) : let Ω : Vec3 := ![G 2 1 - G 1 2, G 0 2 - G 2 0, G 1 0 - G 0 1] let gradPi : Vec3 := fun i => (∑ j : Fin 3, U j * G j i) + gradP i + (1 / 2 : ℝ) * U i + (1 / 2 : ℝ) * (∑ j : Fin 3, y j * G j i) let lapPi : ℝ := hsNormSq G + vecDot U lapU + lapP + (G 0 0 + G 1 1 + G 2 2) + (1 / 2 : ℝ) * vecDot y lapU let W : Vec3 := fun i => U i + (1 / 2 : ℝ) * y i (hsNormSq G - Matrix.trace (G * G) = vecSqNorm Ω) ∧ (vecDot W gradPi = ν * vecDot W lapU) ∧ (-ν * lapPi + vecDot W gradPi = -ν * vecSqNorm Ω) ∧ (0 < ν → 0 < r → -(r ^ 2 / 4) ≤ vecDot U y → 0 < 2 * r ^ (-(2 : ℤ)) * (ν * r ^ (-(2 : ℤ)) + 1 / 2 + vecDot U y / r ^ 2)) := by dsimp only have hcurlsq : hsNormSq G - Matrix.trace (G * G) = vecSqNorm ![G 2 1 - G 1 2, G 0 2 - G 2 0, G 1 0 - G 0 1] := by simp only [hsNormSq, hsInner, Matrix.trace, Matrix.diag, Matrix.mul_apply, Matrix.transpose_apply, vecSqNorm, Fin.sum_univ_three, Matrix.cons_val_zero, Matrix.cons_val_one, Matrix.cons_val_two, Matrix.head_cons, Matrix.tail_cons] ring have hWgrad : vecDot (fun i => U i + (1 / 2 : ℝ) * y i) (fun i => (∑ j : Fin 3, U j * G j i) + gradP i + (1 / 2 : ℝ) * U i + (1 / 2 : ℝ) * (∑ j : Fin 3, y j * G j i)) = ν * vecDot (fun i => U i + (1 / 2 : ℝ) * y i) lapU := by simp only [vecDot, Fin.sum_univ_three, hpde 0, hpde 1, hpde 2] ring have hnrs : -ν * (hsNormSq G + vecDot U lapU + lapP + (G 0 0 + G 1 1 + G 2 2) + (1 / 2 : ℝ) * vecDot y lapU) + vecDot (fun i => U i + (1 / 2 : ℝ) * y i) (fun i => (∑ j : Fin 3, U j * G j i) + gradP i + (1 / 2 : ℝ) * U i + (1 / 2 : ℝ) * (∑ j : Fin 3, y j * G j i)) = -ν * vecSqNorm ![G 2 1 - G 1 2, G 0 2 - G 2 0, G 1 0 - G 0 1] := by rw [hWgrad, hlapP, hdiv] have hlap_id : hsNormSq G + vecDot U lapU + -(Matrix.trace (G * G)) + 0 + (1 / 2 : ℝ) * vecDot y lapU = vecSqNorm ![G 2 1 - G 1 2, G 0 2 - G 2 0, G 1 0 - G 0 1] + vecDot (fun i => U i + (1 / 2 : ℝ) * y i) lapU := by rw [← hcurlsq] simp only [vecDot, Fin.sum_univ_three] ring rw [hlap_id] ring refine ⟨hcurlsq, hWgrad, hnrs, ?_⟩ intro hν hr hU have hr2 : 0 < r ^ 2 := sq_pos_of_pos hr have hdiv_ge : -(1 / 4 : ℝ) ≤ vecDot U y / r ^ 2 := by rw [le_div_iff₀ hr2] linarith have h1 : 0 < ν * r ^ (-(2 : ℤ)) := mul_pos hν (zpow_pos hr _) have h2 : 0 < ν * r ^ (-(2 : ℤ)) + 1 / 2 + vecDot U y / r ^ 2 := by linarith have h3 : 0 < 2 * r ^ (-(2 : ℤ)) := mul_pos two_pos (zpow_pos hr _) exact mul_pos h3 h2 /-- **Theorem 8 (`waleffe_helical_triad_instability_dichotomy`)**: Sharp homochiral high-wavenumber ceiling `E₃ ≤ (H_homo - k₁ E) / (k₃ - k₁)` and linear instability sign dichotomy separating homochiral `(+,+,+)` (`k₁, k₃` stable) from heterochiral `(+,+,-)` and `(+,-,+)` (`k₁` strictly unstable). -/ theorem waleffe_helical_triad_instability_dichotomy (k1 k2 k3 E1 E2 E3 : ℝ) (hk1 : 0 < k1) (hk12 : k1 < k2) (hk23 : k2 < k3) (hE1 : 0 ≤ E1) (hE2 : 0 ≤ E2) (hE3 : 0 ≤ E3) : let E := E1 + E2 + E3 let H_homo := k1 * E1 + k2 * E2 + k3 * E3 (0 ≤ H_homo ∧ E3 ≤ (H_homo - k1 * E) / (k3 - k1)) ∧ ((k3 - k1) * (k1 - k2) < 0 ∧ (k2 - k3) * (k3 - k1) < 0) ∧ (0 < (-k3 - k1) * (k1 - k2) ∧ 0 < (k3 - k1) * (k1 + k2)) := by dsimp only have hk2 : 0 < k2 := by linarith have hk3 : 0 < k3 := by linarith have hk13 : 0 < k3 - k1 := by linarith refine ⟨⟨by positivity, ?_⟩, ⟨?_, ?_⟩, ⟨?_, ?_⟩⟩ · rw [le_div_iff₀ hk13] nlinarith · exact mul_neg_of_pos_of_neg (by linarith) (by linarith) · exact mul_neg_of_neg_of_pos (by linarith) (by linarith) · exact mul_pos_of_neg_of_neg (by linarith) (by linarith) · exact mul_pos (by linarith) (by linarith) /-- **Theorem 9 (`three_wave_noncollinear_leray_nonclosure`)**: Real `Vec3` Leray non-closure mechanism at the secondary difference mode `q = k₁ - k₂`. -/ theorem three_wave_noncollinear_leray_nonclosure (k1 k2 h1 h2 : Vec3) (_hq : vecSqNorm (fun i => k1 i - k2 i) ≠ 0) (hk1h1 : vecDot k1 h1 = 0) (hk2h1 : vecDot k2 h1 ≠ 0) (hcross_ne : vCross h1 h2 ≠ 0) : lerayProj (fun i => k1 i - k2 i) (vCross h1 h2) ≠ 0 := by intro hzero set q : Vec3 := fun i => k1 i - k2 i set c : Vec3 := vCross h1 h2 have hc_orth : vecDot c h1 = 0 := by simp only [c, vCross, vecDot, Fin.sum_univ_three]; ring have hqh1 : vecDot q h1 = -vecDot k2 h1 := by simp only [q, vecDot, Fin.sum_univ_three] at hk1h1 ⊢; linarith have hdot_eq : vecDot (lerayProj q c) h1 = 0 := by rw [hzero]; simp [vecDot] have hproj_dot : vecDot (lerayProj q c) h1 = vecDot c h1 - (vecDot q c / vecSqNorm q) * vecDot q h1 := by simp only [lerayProj, vecDot, Fin.sum_univ_three]; ring rw [hdot_eq, hc_orth, hqh1] at hproj_dot have hlam : vecDot q c / vecSqNorm q = 0 := by have hmul : (vecDot q c / vecSqNorm q) * vecDot k2 h1 = 0 := by linarith exact (mul_eq_zero.mp hmul).resolve_right hk2h1 apply hcross_ne funext i have hi := congrFun hzero i simp only [lerayProj, Pi.zero_apply] at hi rw [hlam, zero_mul, sub_zero] at hi exact hi /-- Complex 3-vector represented as `(Re v, Im v)` over `Vec3 = Fin 3 → ℝ`. -/ abbrev CVec3 := Vec3 × Vec3 def cMul (z w : ℝ × ℝ) : ℝ × ℝ := (z.1 * w.1 - z.2 * w.2, z.1 * w.2 + z.2 * w.1) def cSMul (z : ℝ × ℝ) (v : CVec3) : CVec3 := (fun i => z.1 * v.1 i - z.2 * v.2 i, fun i => z.1 * v.2 i + z.2 * v.1 i) def cDot (u v : CVec3) : ℝ × ℝ := (vecDot u.1 v.1 - vecDot u.2 v.2, vecDot u.1 v.2 + vecDot u.2 v.1) def cCross (u v : CVec3) : CVec3 := (fun i => vCross u.1 v.1 i - vCross u.2 v.2 i, fun i => vCross u.1 v.2 i + vCross u.2 v.1 i) def cConj (u : CVec3) : CVec3 := (u.1, fun i => -u.2 i) def cLerayProj (q : Vec3) (w : CVec3) : CVec3 := (lerayProj q w.1, lerayProj q w.2) /-- **Theorem 10 (`three_wave_helical_complex_leray_nonclosure`)**: Full complex `ℂ³` helical eigenvector non-closure: for genuine helical eigenvectors `h₁ = (e₁ + i s₁ e₂)/√2` and `h₂ = (f₁ + i s₂ f₂)/√2`, non-collinearity `k₁ × k₂ ≠ 0` and complex isotropy `h₁ · h₁ = 0` automatically force `k₂ · h₁ ≠ 0`, `h₁ × h₂* ≠ 0`, and nonzero Leray-projected secondary force `P_{k₁ - k₂}(h₁ × h₂*) ≠ 0`. -/ theorem three_wave_helical_complex_leray_nonclosure (k1 k2 e1 e2 f1 f2 : Vec3) (s1 s2 : ℝ) (_hq : vecSqNorm (fun i => k1 i - k2 i) ≠ 0) (hkcross : vCross k1 k2 ≠ 0) (hs1 : s1 ^ 2 = 1) (hs2 : s2 ^ 2 = 1) (hk1e1 : vecDot k1 e1 = 0) (hk1e2 : vecDot k1 e2 = 0) (he1 : vecSqNorm e1 = 1) (he2 : vecSqNorm e2 = 1) (he12 : vecDot e1 e2 = 0) (hk2f1 : vecDot k2 f1 = 0) (hk2f2 : vecDot k2 f2 = 0) (hf1 : vecSqNorm f1 = 1) (hf2 : vecSqNorm f2 = 1) (_hf12 : vecDot f1 f2 = 0) : let c : ℝ := 1 / Real.sqrt 2 let h1 : CVec3 := (fun i => c * e1 i, fun i => c * s1 * e2 i) let h2 : CVec3 := (fun i => c * f1 i, fun i => c * s2 * f2 i) let q : Vec3 := fun i => k1 i - k2 i cDot (k1, 0) h1 = (0, 0) ∧ cDot h1 h1 = (0, 0) ∧ cDot (k2, 0) h1 ≠ (0, 0) ∧ cCross h1 (cConj h2) ≠ (0, 0) ∧ cLerayProj q (cCross h1 (cConj h2)) ≠ (0, 0) := by dsimp only set c : ℝ := 1 / Real.sqrt 2 set h1 : CVec3 := (fun i => c * e1 i, fun i => c * s1 * e2 i) set h2 : CVec3 := (fun i => c * f1 i, fun i => c * s2 * f2 i) set q : Vec3 := fun i => k1 i - k2 i have hc_pos : 0 < c := by positivity have hc_ne : c ≠ 0 := ne_of_gt hc_pos have hs1_ne : s1 ≠ 0 := by intro h; rw [h] at hs1; norm_num at hs1 have hc2 : 2 * c ^ 2 = 1 := by dsimp only [c]; rw [div_pow, one_pow, Real.sq_sqrt (by norm_num)]; norm_num have hk1h1 : cDot (k1, 0) h1 = (0, 0) := by apply Prod.ext · have h0 : vecDot k1 (fun i => c * e1 i) = c * vecDot k1 e1 := by simp only [vecDot, Fin.sum_univ_three]; ring simp only [cDot, h1] rw [h0, hk1e1] simp only [vecDot, Pi.zero_apply, Fin.sum_univ_three]; ring · have h0 : vecDot k1 (fun i => c * s1 * e2 i) = (c * s1) * vecDot k1 e2 := by simp only [vecDot, Fin.sum_univ_three]; ring simp only [cDot, h1] rw [h0, hk1e2] simp only [vecDot, Pi.zero_apply, Fin.sum_univ_three]; ring have hh1_iso : cDot h1 h1 = (0, 0) := by apply Prod.ext · have hsub : vecDot h1.1 h1.1 - vecDot h1.2 h1.2 = c ^ 2 * vecSqNorm e1 - c ^ 2 * s1 ^ 2 * vecSqNorm e2 := by simp only [h1, vecDot, vecSqNorm, Fin.sum_univ_three]; ring simp only [cDot] at hsub ⊢ rw [hsub, he1, he2, hs1]; ring · have hadd : vecDot h1.1 h1.2 + vecDot h1.2 h1.1 = 2 * c ^ 2 * s1 * vecDot e1 e2 := by simp only [h1, vecDot, Fin.sum_univ_three]; ring simp only [cDot] at hadd ⊢ rw [hadd, he12]; ring have hk2h1 : cDot (k2, 0) h1 ≠ (0, 0) := by intro hzero have hf1_eq : c * vecDot k2 e1 = 0 := by have hfst := congrArg Prod.fst hzero simp only [cDot, h1, vecDot, Pi.zero_apply, Fin.sum_univ_three] at hfst ⊢ linarith have hf2_eq : (c * s1) * vecDot k2 e2 = 0 := by have hsnd := congrArg Prod.snd hzero simp only [cDot, h1, vecDot, Pi.zero_apply, Fin.sum_univ_three] at hsnd ⊢ linarith have hk2e1 : vecDot k2 e1 = 0 := (mul_eq_zero.mp hf1_eq).resolve_left hc_ne have hk2e2 : vecDot k2 e2 = 0 := (mul_eq_zero.mp hf2_eq).resolve_left (mul_ne_zero hc_ne hs1_ne) set n1 : Vec3 := vCross e1 e2 have hn1_sq : vecSqNorm n1 = 1 := by have hid : vecSqNorm n1 = vecSqNorm e1 * vecSqNorm e2 - (vecDot e1 e2) ^ 2 := by simp only [n1, vCross, vecSqNorm, vecDot, Fin.sum_univ_three]; ring rw [hid, he1, he2, he12]; ring have h_align : ∀ u : Vec3, vecDot u e1 = 0 → vecDot u e2 = 0 → ∀ i : Fin 3, u i = vecDot n1 u * n1 i := by intro u hu1 hu2 i have hcross_u : vCross u n1 = fun j => vecDot u e2 * e1 j - vecDot u e1 * e2 j := by funext j revert j refine fin3_forall ?_ ?_ ?_ <;> (simp only [n1, vCross, vecDot, Fin.sum_univ_three]; ring) have hcross0 : vCross u n1 = 0 := by funext j; rw [hcross_u, hu1, hu2]; simp have hbac : vCross n1 (vCross u n1) i = vecSqNorm n1 * u i - vecDot n1 u * n1 i := by revert i refine fin3_forall ?_ ?_ ?_ <;> (simp only [vCross, vecSqNorm, vecDot, Fin.sum_univ_three]; ring) have hlhs0 : vCross n1 (vCross u n1) i = 0 := by rw [hcross0] revert i refine fin3_forall ?_ ?_ ?_ <;> simp [vCross] rw [hlhs0, hn1_sq, one_mul] at hbac linarith have hk1_eq := h_align k1 hk1e1 hk1e2 have hk2_eq := h_align k2 hk2e1 hk2e2 apply hkcross funext i revert i refine fin3_forall ?_ ?_ ?_ <;> (simp only [vCross, Pi.zero_apply, hk1_eq, hk2_eq]; ring) have hcross_ne : cCross h1 (cConj h2) ≠ (0, 0) := by intro hzero have hk2h2 : cDot (k2, 0) (cConj h2) = (0, 0) := by apply Prod.ext · have h0 : vecDot k2 (cConj h2).1 = c * vecDot k2 f1 := by simp only [cConj, h2, vecDot, Fin.sum_univ_three]; ring simp only [cDot] rw [h0, hk2f1] simp only [vecDot, Pi.zero_apply, Fin.sum_univ_three]; ring · have h0 : vecDot k2 (cConj h2).2 = -(c * s2) * vecDot k2 f2 := by simp only [cConj, h2, vecDot, Fin.sum_univ_three]; ring simp only [cDot] rw [h0, hk2f2] simp only [vecDot, Pi.zero_apply, Fin.sum_univ_three]; ring have hh2_norm : cDot (cConj h2) h2 = (1, 0) := by apply Prod.ext · have hre : vecDot (cConj h2).1 h2.1 - vecDot (cConj h2).2 h2.2 = c ^ 2 * vecSqNorm f1 + c ^ 2 * s2 ^ 2 * vecSqNorm f2 := by simp only [cConj, h2, vecDot, vecSqNorm, Fin.sum_univ_three]; ring simp only [cDot] at hre ⊢ rw [hre, hf1, hf2, hs2]; linarith [hc2] · have him : vecDot (cConj h2).1 h2.2 + vecDot (cConj h2).2 h2.1 = 0 := by simp only [cConj, h2, vecDot, Fin.sum_univ_three]; ring simp only [cDot]; linarith [him] have hbac_c : cCross (k2, 0) (cCross h1 (cConj h2)) = (fun i => (cSMul (cDot (k2, 0) (cConj h2)) h1).1 i - (cSMul (cDot (k2, 0) h1) (cConj h2)).1 i, fun i => (cSMul (cDot (k2, 0) (cConj h2)) h1).2 i - (cSMul (cDot (k2, 0) h1) (cConj h2)).2 i) := by apply Prod.ext <;> (funext i; revert i; refine fin3_forall ?_ ?_ ?_ <;> (simp only [cCross, cSMul, cDot, vCross, vecDot, Pi.zero_apply, Fin.sum_univ_three]; ring)) have hsmul0 : cSMul (cDot (k2, 0) h1) (cConj h2) = (0, 0) := by have hlhs0 : cCross (k2, 0) (cCross h1 (cConj h2)) = (0, 0) := by rw [hzero] apply Prod.ext <;> (funext i; revert i; refine fin3_forall ?_ ?_ ?_ <;> simp [cCross, vCross]) rw [hlhs0, hk2h2] at hbac_c apply Prod.ext <;> funext i · have hi := congrArg (fun p : CVec3 => p.1 i) hbac_c simp only [cSMul, Pi.zero_apply, zero_mul, sub_zero] at hi ⊢ linarith · have hi := congrArg (fun p : CVec3 => p.2 i) hbac_c simp only [cSMul, Pi.zero_apply, zero_mul, add_zero] at hi ⊢ linarith have hdot_smul : cDot (cSMul (cDot (k2, 0) h1) (cConj h2)) h2 = cMul (cDot (k2, 0) h1) (cDot (cConj h2) h2) := by apply Prod.ext <;> (simp only [cDot, cSMul, cMul, vecDot, Fin.sum_univ_three]; ring) rw [hsmul0, hh2_norm] at hdot_smul apply hk2h1 apply Prod.ext · have hf := congrArg Prod.fst hdot_smul simp only [cDot, cMul, vecDot, Pi.zero_apply, Fin.sum_univ_three, mul_zero, mul_one, sub_zero] at hf ⊢ linarith · have hs := congrArg Prod.snd hdot_smul simp only [cDot, cMul, vecDot, Pi.zero_apply, Fin.sum_univ_three, mul_zero, add_zero, zero_mul, mul_one] at hs ⊢ linarith refine ⟨hk1h1, hh1_iso, hk2h1, hcross_ne, ?_⟩ intro hzero set w : CVec3 := cCross h1 (cConj h2) set lam : ℝ × ℝ := (vecDot q w.1 / vecSqNorm q, vecDot q w.2 / vecSqNorm q) have hw_eq : w = cSMul lam (q, 0) := by apply Prod.ext <;> funext i · have hi := congrArg (fun p : CVec3 => p.1 i) hzero simp only [cLerayProj, lerayProj, Pi.zero_apply] at hi simp only [cSMul, lam, Pi.zero_apply, mul_zero, sub_zero] linarith · have hi := congrArg (fun p : CVec3 => p.2 i) hzero simp only [cLerayProj, lerayProj, Pi.zero_apply] at hi simp only [cSMul, lam, Pi.zero_apply, mul_zero, zero_add] linarith have hw_orth : cDot w h1 = (0, 0) := by apply Prod.ext <;> (simp only [w, cDot, cCross, vCross, vecDot, Fin.sum_univ_three]; ring) have hdot_lam : cDot (cSMul lam (q, 0)) h1 = cMul lam (cDot (q, 0) h1) := by apply Prod.ext <;> (simp only [cDot, cSMul, cMul, vecDot, Pi.zero_apply, Fin.sum_univ_three]; ring) have hqh1 : cDot (q, 0) h1 = (-(cDot (k2, 0) h1).1, -(cDot (k2, 0) h1).2) := by apply Prod.ext · have hf := congrArg Prod.fst hk1h1 simp only [cDot, q, vecDot, Pi.zero_apply, Fin.sum_univ_three] at hf ⊢ linarith · have hs := congrArg Prod.snd hk1h1 simp only [cDot, q, vecDot, Pi.zero_apply, Fin.sum_univ_three] at hs ⊢ linarith rw [← hw_eq, hw_orth, hqh1] at hdot_lam set z := cDot (k2, 0) h1 have hmul_zero : cMul lam (-z.1, -z.2) = (0, 0) := hdot_lam.symm have hsq_zero : (lam.1 ^ 2 + lam.2 ^ 2) * (z.1 ^ 2 + z.2 ^ 2) = 0 := by have hfst := congrArg Prod.fst hmul_zero have hsnd := congrArg Prod.snd hmul_zero have hid : (lam.1 ^ 2 + lam.2 ^ 2) * (z.1 ^ 2 + z.2 ^ 2) = (cMul lam (-z.1, -z.2)).1 ^ 2 + (cMul lam (-z.1, -z.2)).2 ^ 2 := by simp only [cMul]; ring rw [hid, hfst, hsnd]; ring have hz_sq_pos : 0 < z.1 ^ 2 + z.2 ^ 2 := by by_contra hle have h0 : z.1 ^ 2 + z.2 ^ 2 = 0 := by nlinarith [sq_nonneg z.1, sq_nonneg z.2] have hz1 : z.1 = 0 := by nlinarith [sq_nonneg z.1, sq_nonneg z.2] have hz2 : z.2 = 0 := by nlinarith [sq_nonneg z.1, sq_nonneg z.2] exact hk2h1 (Prod.ext hz1 hz2) have hlam_sq : lam.1 ^ 2 + lam.2 ^ 2 = 0 := (mul_eq_zero.mp hsq_zero).resolve_right (ne_of_gt hz_sq_pos) have hlam1 : lam.1 = 0 := by nlinarith [sq_nonneg lam.1, sq_nonneg lam.2] have hlam2 : lam.2 = 0 := by nlinarith [sq_nonneg lam.1, sq_nonneg lam.2] apply hcross_ne rw [hw_eq] apply Prod.ext <;> (funext i; simp only [cSMul, hlam1, hlam2, Pi.zero_apply]; ring) /-- **Theorem 11 (`dyadic_heterochiral_energy_conservation_and_typeII_rate`)**: Exact telescoping nonlinear energy conservation `∑_{n=0}^{N-1} Ė_n^{NL} = 0` for the 3-submode heterochiral burst cascade and exact Type-II blowup scaling compatibility `1/2 < (2 - 2 β) / (5/2 - β) < 4/5` for `β ∈ (0, 1/2)`. -/ theorem dyadic_heterochiral_energy_conservation_and_typeII_rate (N : ℕ) (a b x d : ℕ → ℝ) (c_hold c_b c_out δ β : ℝ) (hβ0 : 0 < β) (hβhalf : β < 1 / 2) : let E_nl_dot : ℕ → ℝ := fun n => a n * ((if n = 0 then 0 else c_out * d (n - 1) * x (n - 1) ^ 2) - d n * a n * b n + c_hold * d n * x n ^ 2) + b n * (d n * a n ^ 2 - δ * d n * b n * x n - c_b * d n * x n ^ 2) + x n * (δ * d n * b n ^ 2 + d n * (c_b * b n - c_hold * a n) * x n - (if n + 1 < N then c_out * d n * x n * a (n + 1) else 0)) (∑ n ∈ Finset.range N, E_nl_dot n = 0) ∧ (1 / 2 < (2 - 2 * β) / (5 / 2 - β) ∧ (2 - 2 * β) / (5 / 2 - β) < 4 / 5) := by dsimp only have hsum : ∀ M : ℕ, ∑ n ∈ Finset.range M, (a n * ((if n = 0 then 0 else c_out * d (n - 1) * x (n - 1) ^ 2) - d n * a n * b n + c_hold * d n * x n ^ 2) + b n * (d n * a n ^ 2 - δ * d n * b n * x n - c_b * d n * x n ^ 2) + x n * (δ * d n * b n ^ 2 + d n * (c_b * b n - c_hold * a n) * x n - (if n + 1 < M then c_out * d n * x n * a (n + 1) else 0))) = 0 := by intro M have hsplit : ∀ n ∈ Finset.range M, a n * ((if n = 0 then 0 else c_out * d (n - 1) * x (n - 1) ^ 2) - d n * a n * b n + c_hold * d n * x n ^ 2) + b n * (d n * a n ^ 2 - δ * d n * b n * x n - c_b * d n * x n ^ 2) + x n * (δ * d n * b n ^ 2 + d n * (c_b * b n - c_hold * a n) * x n - (if n + 1 < M then c_out * d n * x n * a (n + 1) else 0)) = (if n = 0 then 0 else c_out * d (n - 1) * x (n - 1) ^ 2 * a n) - (if n + 1 < M then c_out * d n * x n ^ 2 * a (n + 1) else 0) := by intro n _; split_ifs <;> ring rw [Finset.sum_congr rfl hsplit] cases M with | zero => simp | succ K => let f : ℕ → ℝ := fun n => if n = 0 then 0 else c_out * d (n - 1) * x (n - 1) ^ 2 * a n have ht : ∀ n ∈ Finset.range (K + 1), (if n = 0 then 0 else c_out * d (n - 1) * x (n - 1) ^ 2 * a n) - (if n + 1 < K + 1 then c_out * d n * x n ^ 2 * a (n + 1) else 0) = f n - f (n + 1) + (if n = K then f (K + 1) else 0) := by intro n hn have hnlt : n < K + 1 := Finset.mem_range.mp hn by_cases hnk : n = K · subst hnk; simp [f] · have h1 : n + 1 < K + 1 := by omega simp [f, hnk, h1] rw [Finset.sum_congr rfl ht, Finset.sum_add_distrib, Finset.sum_range_sub' f (K + 1)] simp [f] refine ⟨hsum N, ?_⟩ have hden : 0 < 5 / 2 - β := by linarith refine ⟨?_, ?_⟩ · rw [lt_div_iff₀ hden]; linarith · rw [div_lt_iff₀ hden]; linarith end end F02NavierStokes.CrossHelicalTriadsAndBreakdownFrontier