import F02NavierStokes.LinearAlgebra3D import F02NavierStokes.RawConcentrationAndEnvelope import Mathlib.Analysis.SpecialFunctions.Pow.Real import Mathlib.Analysis.SpecialFunctions.ExpDeriv import Mathlib.Analysis.SpecialFunctions.Log.Basic import Mathlib.Analysis.Calculus.Deriv.Inv 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 /-! # Option B Frontier: Viscous Dyadic Shell Blowup, Axisymmetric Swirl Stretching, 3D Waleffe Helical Leray Ceilings, and Mixed-Helicity Escape Machine-checked Lean 4.35.0 formalization of our three-attack, independently audited investigation of the **Option B** (unforced 3D Navier–Stokes finite-time blowup) frontier: ## Part I — Attack 1: Viscous Dyadic Shell Blowup & Tao Delayed-Pump Critical Threshold (`η_crit = 1/2`) 1. `dyadic_shell_telescoping_energy_balance`: exact telescoping energy dissipation identity for any finite truncation `N`, arbitrary couplings `d`, and arbitrary viscous rates `v`. 2. `riccati_superlinear_finite_time_blowup_bound`: real-calculus ODE blowup bound showing that any positive continuous solution on `[0, T]` with `V' ≥ κ V √V` on `(0, T)` satisfies `T < 2 / (κ √(V 0))`. 3. `cheskidov_bilinear_pointwise_absorption`: exact bilinear Lyapunov decomposition `V(a) = ∑ r^n (a_n² + c a_n a_{n+1})`, elementary AM–GM & quadratic absorption of `N₁, N₂`, cubic viscous absorption (`α > 3 θ`), and discrete Hölder bound `V'(a) ≥ κ_V V √V - K_ν` on finitely-supported nonnegative sequences. 4. `tao_delayed_pump_sharp_half_threshold`: exact two-sided dichotomy at exact 3D NS scaling (`α = 5/2, θ = 1`): - **Part A (`1/2 < η ≤ 1`):** supercritical finite-time `H¹` enstrophy blowup (`4^n E_n → ∞` in uniformly bounded total cascade time `∑ dt_k < ∞`). - **Part B (`0 < η ≤ 1/2`, including `η = 1/2`):** unconditional viscous arrest (`4^n E_n → 0` for every `ν > 0, E₀ > 0, C₀ > 0`). ## Part II — Attack 2: Axisymmetric Swirling 3D Navier–Stokes Geometry & Viscous Arrest 5. `axisymmetric_swirl_shear_cancellation`: exact pointwise cylindrical swirl-shear cancellation `ωᵀ S ω = ωᵀ G ω = (ω_r² a + ω_z² e + ω_r ω_z (b + d)) + c ω_θ² - 2 s ω_r ω_θ` (unconstrained). 6. `axisymmetric_traceless_strain_ceiling_and_viscous_arrest`: sharp traceless bound `ωᵀ S ω ≤ √(2/3) ‖S‖_F |ω|²` under `a + c + e = 0` plus exact viscous-arrest equivalence `P_stretch - ν D_ω ≤ 0 ↔ S_ratio ≤ 1`. ## Part III — Attack 3 & Adversarial Discovery: 3D Waleffe Helical Leray Ceilings vs. Mixed-Helicity Escape 7. `helical_basis_free_lemmas`: basis-free `ℂ³` helical mode isotropy, self-cross, overlap norms (singularity-free via `Mᵀ M = I₃` + 3D Binet–Cauchy), and longitudinal Leray projections. 8. `waleffe_leray_exact_norms`: exact closed-form Leray-projected norms squared for both `k₊ = k₁ + k₂` and `k₋ = k₁ - k₂`. 9. `waleffe_forward_helicity_split`: exact forward-mode `(+)`/`(-)` helicity decomposition. 10. `heterochiral_same_shell_exact_balance`: exact `C_cross / (4 κ⁴)` equality of both channels, exact `50%` efficiency lock `η_fwd = 1/2`, and exact `50/50` forward helicity split (`25%` single-helicity share). 11. `homochiral_same_shell_beltrami_zero`: exact Beltrami prefactor annihilation `s₁ κ - s₂ κ = 0`. 12. `general_rational_helical_efficiency_bound`: universal octave-jump ceiling `η_fwd ≤ 1/2`, universal higher-wavenumber ceiling `≤ 1/2`, homochiral octave ceiling `175 / 382`, and homochiral weak-forward ceiling `15 / 22` via exact positive-coefficient polynomial witnesses. 13. `mixed_helicity_zero_backscatter_escape`: exact counterexample proving that two real divergence-free **mixed-helicity** plane waves annihilate self-interactions and make `lerayProj (k₁ - k₂) B₋ = 0` identically while `lerayProj (k₁ + k₂) B₊ ≠ 0` (`100%` forward efficiency `η_fwd = 1`), strictly delineating the scope of single-helicity no-go bounds. Zero `sorry`, zero custom axioms, `-DautoImplicit=false`. -/ namespace F02NavierStokes.OptionB_DyadicBlowupAndLerayObstruction open scoped Matrix BigOperators open Matrix F02NavierStokes.LinearAlgebra3D 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: Attack 1 — Viscous Dyadic Shell Blowup & Tao Delayed-Pump Sharp `1/2` Threshold -/ /-- Closed `N`-shell Katz–Pavlović–Cheskidov dyadic shell RHS (shells `0, ..., N`). -/ def dyadicRhs (N : ℕ) (d v a : ℕ → ℝ) (n : ℕ) : ℝ := (if 0 < n then d (n - 1) * (a (n - 1)) ^ 2 else 0) - (if n < N then d n * a n * a (n + 1) else 0) - v n * a n /-- **Theorem 1 (`dyadic_shell_telescoping_energy_balance`)**: Exact telescoping energy dissipation identity for any finite shell truncation `N`, arbitrary nonlinear couplings `d`, arbitrary viscous rates `v`, and arbitrary signed state `a : ℕ → ℝ`: `∑_{n=0}^N a_n * dyadicRhs N d v a n = - ∑_{n=0}^N v_n * a_n^2`. -/ theorem dyadic_shell_telescoping_energy_balance (N : ℕ) (d v a : ℕ → ℝ) : ∑ n ∈ Finset.range (N + 1), a n * dyadicRhs N d v a n = - ∑ n ∈ Finset.range (N + 1), v n * (a n) ^ 2 := by induction N with | zero => simp [dyadicRhs] ring | succ N ih => rw [Finset.sum_range_succ (f := fun n => a n * dyadicRhs (N + 1) d v a n), Finset.sum_range_succ (f := fun n => v n * (a n) ^ 2)] have hsplit : ∑ n ∈ Finset.range (N + 1), a n * dyadicRhs (N + 1) d v a n = (∑ n ∈ Finset.range (N + 1), a n * dyadicRhs N d v a n) - d N * (a N) ^ 2 * a (N + 1) := by rw [Finset.sum_range_succ (f := fun n => a n * dyadicRhs (N + 1) d v a n), Finset.sum_range_succ (f := fun n => a n * dyadicRhs N d v a n)] have hlt : ∑ n ∈ Finset.range N, a n * dyadicRhs (N + 1) d v a n = ∑ n ∈ Finset.range N, a n * dyadicRhs N d v a n := by refine Finset.sum_congr rfl fun n hn => ?_ have hnN : n < N := Finset.mem_range.mp hn have hnN1 : n < N + 1 := Nat.lt_succ_of_lt hnN simp [dyadicRhs, hnN, hnN1] rw [hlt] have hNlt : N < N + 1 := Nat.lt_succ_self N have hNnot : ¬ (N < N) := Nat.lt_irrefl N simp only [dyadicRhs, hNlt, hNnot, ↓reduceIte] ring rw [hsplit, ih] have hpos : 0 < N + 1 := Nat.succ_pos N have hnot : ¬ (N + 1 < N + 1) := Nat.lt_irrefl (N + 1) simp only [dyadicRhs, hpos, hnot, ↓reduceIte, Nat.add_sub_cancel] ring /-- **Theorem 2 (`riccati_superlinear_finite_time_blowup_bound`)**: Any positive continuous function `V` on `[0, T]` (`0 ≤ T`) with derivative `V'(t) ≥ κ V(t) √(V(t))` on `(0, T)` (`κ > 0`) satisfies `κ T ≤ 2 / √(V 0) - 2 / √(V T)` and hence cannot exist up to the explicit finite blowup horizon `T* = 2 / (κ √(V 0))`. -/ theorem riccati_superlinear_finite_time_blowup_bound {V V' : ℝ → ℝ} {κ T : ℝ} (hκ : 0 < κ) (hT : 0 ≤ T) (hcont : ContinuousOn V (Set.Icc 0 T)) (hpos : ∀ t ∈ Set.Icc 0 T, 0 < V t) (hderiv : ∀ t ∈ Set.Ioo 0 T, HasDerivAt V (V' t) t ∧ κ * V t * Real.sqrt (V t) ≤ V' t) : κ * T ≤ 2 / Real.sqrt (V 0) - 2 / Real.sqrt (V T) ∧ T < 2 / (κ * Real.sqrt (V 0)) := by let g : ℝ → ℝ := fun t => -2 * (V t) ^ (-(1 / 2 : ℝ)) - κ * t have hsqrt_inv : ∀ t ∈ Set.Icc 0 T, (V t) ^ (-(1 / 2 : ℝ)) = (Real.sqrt (V t))⁻¹ := by intro t ht rw [Real.rpow_neg (le_of_lt (hpos t ht)), Real.sqrt_eq_rpow] have hg_cont : ContinuousOn g (Set.Icc 0 T) := by have hcont' : ContinuousOn (fun t => -2 * (Real.sqrt (V t))⁻¹ - κ * t) (Set.Icc 0 T) := by have hsqrt_cont : ContinuousOn (fun t => Real.sqrt (V t)) (Set.Icc 0 T) := Real.continuous_sqrt.comp_continuousOn hcont have hne : ∀ t ∈ Set.Icc 0 T, Real.sqrt (V t) ≠ 0 := fun t ht => ne_of_gt (Real.sqrt_pos.mpr (hpos t ht)) exact (continuousOn_const.mul (hsqrt_cont.inv₀ hne)).sub (continuousOn_const.mul continuousOn_id) exact hcont'.congr fun t ht => by dsimp only [g]; rw [hsqrt_inv t ht] let g' : ℝ → ℝ := fun t => V' t / (V t * Real.sqrt (V t)) - κ have hg_deriv : ∀ t ∈ Set.Ioo 0 T, HasDerivAt g (g' t) t := by intro t ht have ht_icc : t ∈ Set.Icc 0 T := ⟨le_of_lt ht.1, le_of_lt ht.2⟩ have hVt : 0 < V t := hpos t ht_icc have hsqt : 0 < Real.sqrt (V t) := Real.sqrt_pos.mpr hVt obtain ⟨hVd, _⟩ := hderiv t ht have hrpow_d : HasDerivAt (fun s => (V s) ^ (-(1 / 2 : ℝ))) ((-(1 / 2 : ℝ)) * (V t) ^ (-(1 / 2 : ℝ) - 1) * V' t) t := by simpa [Function.comp_def] using (F02NavierStokes.RawConcentrationAndEnvelope.hasDerivAt_rpow_const_pos (p := -(1 / 2 : ℝ)) hVt).comp t hVd have hmul_d : HasDerivAt (fun s => -2 * (V s) ^ (-(1 / 2 : ℝ))) (-2 * ((-(1 / 2 : ℝ)) * (V t) ^ (-(1 / 2 : ℝ) - 1) * V' t)) t := hrpow_d.const_mul (-2 : ℝ) have hlin_d : HasDerivAt (fun s => κ * s) κ t := by simpa using (hasDerivAt_id t).const_mul κ have hpow_val : (V t) ^ (-(1 / 2 : ℝ) - 1) = (V t * Real.sqrt (V t))⁻¹ := by have hexp : -(1 / 2 : ℝ) - 1 = -(3 / 2 : ℝ) := by norm_num rw [hexp, Real.rpow_neg (le_of_lt hVt)] congr 1 have h32 : (3 / 2 : ℝ) = 1 + 1 / 2 := by norm_num rw [h32, Real.rpow_add hVt, Real.rpow_one, Real.sqrt_eq_rpow] have hval : -2 * ((-(1 / 2 : ℝ)) * (V t) ^ (-(1 / 2 : ℝ) - 1) * V' t) = V' t / (V t * Real.sqrt (V t)) := by rw [hpow_val, div_eq_mul_inv]; ring rw [hval] at hmul_d exact hmul_d.sub hlin_d have hle : g 0 ≤ g T := by rcases eq_or_lt_of_le hT with rfl | hTpos · exact le_rfl · have hge_eps : ∀ ε : ℝ, 0 < ε → ε < T → g ε ≤ g T := by intro ε hε0 hεT have hsub : Set.Icc ε T ⊆ Set.Icc 0 T := fun s hs => ⟨by linarith [hs.1], hs.2⟩ have hcont_eps : ContinuousOn (fun s => -g s) (Set.Icc ε T) := (hg_cont.mono hsub).neg have hstep := image_le_of_deriv_right_le_deriv_boundary hcont_eps (f' := fun s => -g' s) (fun s hs => (hg_deriv s ⟨by linarith [hs.1], hs.2⟩).neg.hasDerivWithinAt) (B := fun _ => -g ε) (B' := fun _ => 0) le_rfl continuousOn_const (fun s _ => hasDerivWithinAt_const s (Set.Ici s) (-g ε)) (fun s hs => by have hs_ioo : s ∈ Set.Ioo 0 T := ⟨by linarith [hs.1], hs.2⟩ have hs_icc : s ∈ Set.Icc 0 T := ⟨le_of_lt hs_ioo.1, le_of_lt hs_ioo.2⟩ have hVs : 0 < V s := hpos s hs_icc have hden : 0 < V s * Real.sqrt (V s) := mul_pos hVs (Real.sqrt_pos.mpr hVs) have hge : κ * V s * Real.sqrt (V s) ≤ V' s := (hderiv s hs_ioo).2 have hdiv : κ ≤ V' s / (V s * Real.sqrt (V s)) := by rw [le_div_iff₀ hden]; linarith dsimp only [g']; linarith) ⟨le_of_lt hεT, le_refl T⟩ linarith have hseq_tend : Filter.Tendsto (fun n : ℕ => T / ((n : ℝ) + 2)) Filter.atTop (nhds 0) := by have h1 : Filter.Tendsto (fun n : ℕ => T / (n : ℝ)) Filter.atTop (nhds 0) := tendsto_const_div_atTop_nhds_zero_nat T exact (h1.comp (Filter.tendsto_add_atTop_nat 2)).congr (fun n => by simp [Function.comp, Nat.cast_add]) have hmem : ∀ n : ℕ, T / ((n : ℝ) + 2) ∈ Set.Icc 0 T := fun n => ⟨by positivity, div_le_self (le_of_lt hTpos) (by linarith [Nat.cast_nonneg (α := ℝ) n])⟩ have hg_tend : Filter.Tendsto (fun n : ℕ => g (T / ((n : ℝ) + 2))) Filter.atTop (nhds (g 0)) := by have hc0 : ContinuousWithinAt g (Set.Icc 0 T) 0 := hg_cont 0 ⟨le_refl 0, le_of_lt hTpos⟩ exact hc0.tendsto.comp (tendsto_nhdsWithin_of_tendsto_nhds_of_eventually_within _ hseq_tend (Filter.Eventually.of_forall hmem)) exact le_of_tendsto hg_tend (Filter.Eventually.of_forall fun n => hge_eps _ (div_pos hTpos (by positivity)) (div_lt_self hTpos (by linarith [Nat.cast_nonneg (α := ℝ) n]))) have hbound : κ * T ≤ 2 / Real.sqrt (V 0) - 2 / Real.sqrt (V T) := by dsimp only [g] at hle rw [hsqrt_inv 0 ⟨le_refl 0, hT⟩, hsqrt_inv T ⟨hT, le_refl T⟩] at hle simp only [mul_zero, sub_zero, div_eq_mul_inv] at hle ⊢ linarith refine ⟨hbound, ?_⟩ have hVT_pos : 0 < 2 / Real.sqrt (V T) := div_pos two_pos (Real.sqrt_pos.mpr (hpos T ⟨hT, le_refl T⟩)) have hlt : κ * T < 2 / Real.sqrt (V 0) := by linarith have hsq0 : 0 < Real.sqrt (V 0) := Real.sqrt_pos.mpr (hpos 0 ⟨le_refl 0, hT⟩) rw [lt_div_iff₀ (mul_pos hκ hsq0)] have hmul := mul_lt_mul_of_pos_right hlt hsq0 rw [div_mul_cancel₀ _ (ne_of_gt hsq0)] at hmul linarith /-- Elementary cubic AM–GM inequality `3 x y z ≤ x³ + y³ + z³` for nonnegative reals. -/ private lemma am_gm_three_cube {x y z : ℝ} (hx : 0 ≤ x) (hy : 0 ≤ y) (hz : 0 ≤ z) : 3 * x * y * z ≤ x ^ 3 + y ^ 3 + z ^ 3 := by have hfac : x ^ 3 + y ^ 3 + z ^ 3 - 3 * x * y * z = (x + y + z) * ((x - y) ^ 2 + (y - z) ^ 2 + (z - x) ^ 2) / 2 := by ring have hnn : 0 ≤ (x + y + z) * ((x - y) ^ 2 + (y - z) ^ 2 + (z - x) ^ 2) / 2 := by have h1 : 0 ≤ x + y + z := by linarith have h2 : 0 ≤ (x - y) ^ 2 + (y - z) ^ 2 + (z - x) ^ 2 := by positivity positivity linarith /-- Elementary cubic viscous penalty inequality: for `A > 0`, `B ≥ 0`, `x ≥ 0`, `B x² ≤ A x³ + (4 / 27) B³ / A²`. -/ private lemma cubic_viscous_penalty {A B x : ℝ} (hA : 0 < A) (hB : 0 ≤ B) (hx : 0 ≤ x) : B * x ^ 2 ≤ A * x ^ 3 + (4 / 27 : ℝ) * B ^ 3 / A ^ 2 := by have hA2 : A ^ 2 ≠ 0 := ne_of_gt (sq_pos_of_pos hA) have hfac : A * x ^ 3 + (4 / 27 : ℝ) * B ^ 3 / A ^ 2 - B * x ^ 2 = (3 * A * x + B) * (3 * A * x - 2 * B) ^ 2 / (27 * A ^ 2) := by field_simp [hA2] ring have hnn : 0 ≤ (3 * A * x + B) * (3 * A * x - 2 * B) ^ 2 / (27 * A ^ 2) := by have h1 : 0 ≤ 3 * A * x + B := by positivity have h2 : 0 ≤ (3 * A * x - 2 * B) ^ 2 := sq_nonneg _ have h3 : 0 < 27 * A ^ 2 := by positivity positivity linarith /-- Infinite-system dyadic shell RHS (used on finitely supported sequences `a : ℕ → ℝ`). -/ def infDyadicRhs (lam α θ ν : ℝ) (a : ℕ → ℝ) (n : ℕ) : ℝ := (if 0 < n then (lam ^ α) ^ (n - 1) * (a (n - 1)) ^ 2 else 0) - (lam ^ α) ^ n * a n * a (n + 1) - ν * (lam ^ (2 * θ)) ^ n * a n /-- Cheskidov bilinear Lyapunov functional `V(a) = ∑_{n < N+2} r^n (a_n² + c a_n a_{n+1})`. -/ def cheskidovV (r c : ℝ) (N : ℕ) (a : ℕ → ℝ) : ℝ := ∑ n ∈ Finset.range (N + 2), r ^ n * ((a n) ^ 2 + c * a n * a (n + 1)) /-- Exact time derivative of Cheskidov's bilinear functional along `infDyadicRhs`. -/ def cheskidovDV (lam α θ ν r c : ℝ) (N : ℕ) (a : ℕ → ℝ) : ℝ := ∑ n ∈ Finset.range (N + 2), r ^ n * (2 * a n * infDyadicRhs lam α θ ν a n + c * (infDyadicRhs lam α θ ν a n * a (n + 1) + a n * infDyadicRhs lam α θ ν a (n + 1))) /-- Finite geometric series upper bound `∑_{n < N} ρ^n ≤ 1 / (1 - ρ)` for `0 ≤ ρ < 1`. -/ private lemma sum_geom_le_inv (ρ : ℝ) (h0 : 0 ≤ ρ) (h1 : ρ < 1) (N : ℕ) : ∑ n ∈ Finset.range N, ρ ^ n ≤ (1 - ρ)⁻¹ := by have hpos : 0 < 1 - ρ := by linarith rw [geom_sum_eq (ne_of_lt h1)] have h1m : (ρ ^ N - 1) / (ρ - 1) = (1 - ρ ^ N) / (1 - ρ) := by have hne : 1 - ρ ≠ 0 := ne_of_gt hpos have hne' : ρ - 1 ≠ 0 := by linarith field_simp [hne, hne'] ring rw [h1m, div_le_iff₀ hpos] have hpow : 0 ≤ ρ ^ N := pow_nonneg h0 N have hinv : (1 - ρ)⁻¹ * (1 - ρ) = 1 := inv_mul_cancel₀ (ne_of_gt hpos) linarith /-- Viscous absorption helper for Cheskidov's bilinear Lyapunov functional (`α > 3 θ`). -/ private lemma cheskidov_visc_absorb (lam α θ ν r C_v κ_cub : ℝ) (N : ℕ) (a : ℕ → ℝ) (hlam : 1 < lam) (hr1 : 1 < r) (hr_visc : r < lam ^ (2 * α - 6 * θ)) (hCv_nn : 0 ≤ C_v) (hκ_pos : 0 < κ_cub) (hν : 0 ≤ ν) (hann : ∀ n, 0 ≤ a n) : let w : ℕ → ℝ := fun n => r ^ n let d : ℕ → ℝ := fun n => (lam ^ α) ^ n let v : ℕ → ℝ := fun n => ν * (lam ^ (2 * θ)) ^ n let ρ_visc : ℝ := r * lam ^ (6 * θ - 2 * α) C_v * (∑ n ∈ Finset.range N, w n * v n * (a n) ^ 2) ≤ (κ_cub / 2) * (∑ n ∈ Finset.range N, w n * d n * (a n) ^ 3) + (16 * C_v ^ 3 * ν ^ 3) / (27 * κ_cub ^ 2 * (1 - ρ_visc)) := by dsimp only have hlam_pos : 0 < lam := by linarith have hr_pos : 0 < r := by linarith have hd_pos : 0 < lam ^ α := Real.rpow_pos_of_pos hlam_pos α have hlam2t_pos : 0 < lam ^ (2 * θ) := Real.rpow_pos_of_pos hlam_pos (2 * θ) let w : ℕ → ℝ := fun n => r ^ n let d : ℕ → ℝ := fun n => (lam ^ α) ^ n let v : ℕ → ℝ := fun n => ν * (lam ^ (2 * θ)) ^ n let ρ_visc : ℝ := r * lam ^ (6 * θ - 2 * α) have hρ_visc_nn : 0 ≤ ρ_visc := by positivity have hρ_visc_lt : ρ_visc < 1 := by have hmul := mul_lt_mul_of_pos_right hr_visc (Real.rpow_pos_of_pos hlam_pos (6 * θ - 2 * α)) have hcancel : lam ^ (2 * α - 6 * θ) * lam ^ (6 * θ - 2 * α) = 1 := by rw [← Real.rpow_add hlam_pos]; norm_num dsimp only [ρ_visc]; linarith have hpt : ∀ n ∈ Finset.range N, C_v * (w n * v n * (a n) ^ 2) ≤ (κ_cub / 2) * (w n * d n * (a n) ^ 3) + ((16 * C_v ^ 3 * ν ^ 3) / (27 * κ_cub ^ 2)) * ρ_visc ^ n := by intro n _ have hA_pos : 0 < (κ_cub / 2) * d n := mul_pos (by positivity) (pow_pos hd_pos n) have hB_nn : 0 ≤ C_v * v n := mul_nonneg hCv_nn (mul_nonneg hν (pow_nonneg (le_of_lt hlam2t_pos) n)) have hpen := cubic_viscous_penalty hA_pos hB_nn (hann n) have hmul := mul_le_mul_of_nonneg_left hpen (pow_nonneg (le_of_lt hr_pos) n) have hratio : w n * ((4 / 27 : ℝ) * (C_v * v n) ^ 3 / ((κ_cub / 2) * d n) ^ 2) = ((16 * C_v ^ 3 * ν ^ 3) / (27 * κ_cub ^ 2)) * ρ_visc ^ n := by have hpow_id : (lam ^ (2 * θ)) ^ (3 * n) / (lam ^ α) ^ (2 * n) = (lam ^ (6 * θ - 2 * α)) ^ n := by rw [← Real.rpow_natCast (lam ^ (2 * θ)), ← Real.rpow_natCast (lam ^ α), ← Real.rpow_natCast (lam ^ (6 * θ - 2 * α)), ← Real.rpow_mul (le_of_lt hlam_pos), ← Real.rpow_mul (le_of_lt hlam_pos), ← Real.rpow_mul (le_of_lt hlam_pos), ← Real.rpow_sub hlam_pos] congr 1 push_cast; ring have hbase : w n * ((v n) ^ 3 / (d n) ^ 2) = ν ^ 3 * ρ_visc ^ n := by dsimp only [w, v, d, ρ_visc] rw [mul_pow, mul_pow, ← pow_mul, ← pow_mul] have h1 : r ^ n * (ν ^ 3 * (lam ^ (2 * θ)) ^ (n * 3) / (lam ^ α) ^ (n * 2)) = ν ^ 3 * (r ^ n * ((lam ^ (2 * θ)) ^ (3 * n) / (lam ^ α) ^ (2 * n))) := by rw [mul_comm n 3, mul_comm n 2]; ring rw [h1, hpow_id] have hdn_ne : d n ≠ 0 := ne_of_gt (pow_pos hd_pos n) have hκ_ne : κ_cub ≠ 0 := ne_of_gt hκ_pos calc w n * ((4 / 27 : ℝ) * (C_v * v n) ^ 3 / ((κ_cub / 2) * d n) ^ 2) = ((16 * C_v ^ 3) / (27 * κ_cub ^ 2)) * (w n * ((v n) ^ 3 / (d n) ^ 2)) := by field_simp [hdn_ne, hκ_ne]; ring _ = ((16 * C_v ^ 3) / (27 * κ_cub ^ 2)) * (ν ^ 3 * ρ_visc ^ n) := by rw [hbase] _ = ((16 * C_v ^ 3 * ν ^ 3) / (27 * κ_cub ^ 2)) * ρ_visc ^ n := by ring have hmul_exp : w n * (C_v * v n * (a n) ^ 2) = C_v * (w n * v n * (a n) ^ 2) ∧ w n * ((κ_cub / 2) * d n * (a n) ^ 3 + (4 / 27 : ℝ) * (C_v * v n) ^ 3 / ((κ_cub / 2) * d n) ^ 2) = (κ_cub / 2) * (w n * d n * (a n) ^ 3) + w n * ((4 / 27 : ℝ) * (C_v * v n) ^ 3 / ((κ_cub / 2) * d n) ^ 2) := by constructor <;> ring linarith only [hmul, hmul_exp.1, hmul_exp.2, hratio] have hsum := Finset.sum_le_sum hpt rw [← Finset.mul_sum, Finset.sum_add_distrib, ← Finset.mul_sum, ← Finset.mul_sum] at hsum have hgeom := sum_geom_le_inv ρ_visc hρ_visc_nn hρ_visc_lt N have hfac_nn : 0 ≤ (16 * C_v ^ 3 * ν ^ 3) / (27 * κ_cub ^ 2) := by positivity have hle' := mul_le_mul_of_nonneg_left hgeom hfac_nn have hdiv_eq : (16 * C_v ^ 3 * ν ^ 3) / (27 * κ_cub ^ 2) * (1 - ρ_visc)⁻¹ = (16 * C_v ^ 3 * ν ^ 3) / (27 * κ_cub ^ 2 * (1 - ρ_visc)) := by have hden1 : κ_cub ≠ 0 := ne_of_gt hκ_pos have hden2 : 1 - ρ_visc ≠ 0 := ne_of_gt (sub_pos.mpr hρ_visc_lt) field_simp [hden1, hden2] linarith only [hsum, hle', hdiv_eq] /-- Discrete Hölder helper for Cheskidov's bilinear Lyapunov functional: `W √W ≤ √S_H * S₃` where `W = ∑ r^n a_n²`, `S₃ = ∑ r^n λ^(α n) a_n³`, `S_H = (1 - r / λ^(2α))⁻¹`. -/ private lemma cheskidov_holder_bound (lam α r : ℝ) (N : ℕ) (a : ℕ → ℝ) (hlam : 1 < lam) (hr1 : 1 < r) (hr_lt : r < lam ^ (2 * α)) (hann : ∀ n, 0 ≤ a n) : let w : ℕ → ℝ := fun n => r ^ n let d : ℕ → ℝ := fun n => (lam ^ α) ^ n let W : ℝ := ∑ n ∈ Finset.range N, w n * (a n) ^ 2 let S3 : ℝ := ∑ n ∈ Finset.range N, w n * d n * (a n) ^ 3 let S_H : ℝ := (1 - r / lam ^ (2 * α))⁻¹ W * Real.sqrt W ≤ Real.sqrt S_H * S3 := by dsimp only have hlam_pos : 0 < lam := by linarith have hr_pos : 0 < r := by linarith have hd_pos : 0 < lam ^ α := Real.rpow_pos_of_pos hlam_pos α let w : ℕ → ℝ := fun n => r ^ n let d : ℕ → ℝ := fun n => (lam ^ α) ^ n let W : ℝ := ∑ n ∈ Finset.range N, w n * (a n) ^ 2 let S3 : ℝ := ∑ n ∈ Finset.range N, w n * d n * (a n) ^ 3 let ρ_H : ℝ := r / lam ^ (2 * α) let S_H : ℝ := (1 - ρ_H)⁻¹ have hW_nn : 0 ≤ W := Finset.sum_nonneg fun n _ => by have : 0 ≤ w n := pow_nonneg (le_of_lt hr_pos) n; positivity have hS3_nn : 0 ≤ S3 := Finset.sum_nonneg fun n _ => by have : 0 ≤ w n := pow_nonneg (le_of_lt hr_pos) n have : 0 ≤ d n := pow_nonneg (le_of_lt hd_pos) n have : 0 ≤ a n := hann n positivity have hρ_H_nn : 0 ≤ ρ_H := by positivity have hρ_H_lt : ρ_H < 1 := (div_lt_one (Real.rpow_pos_of_pos hlam_pos (2 * α))).mpr hr_lt have hSH_pos : 0 < S_H := inv_pos.mpr (by linarith) change W * Real.sqrt W ≤ Real.sqrt S_H * S3 by_cases hS3z : S3 = 0 · have hzero : ∀ n ∈ Finset.range N, a n = 0 := by intro n hn have hterm0 : w n * d n * (a n) ^ 3 = 0 := (Finset.sum_eq_zero_iff_of_nonneg fun k _ => by have : 0 ≤ w k := pow_nonneg (le_of_lt hr_pos) k have : 0 ≤ d k := pow_nonneg (le_of_lt hd_pos) k have : 0 ≤ a k := hann k positivity).mp hS3z n hn have hwd_pos : 0 < w n * d n := mul_pos (pow_pos hr_pos n) (pow_pos hd_pos n) have ha3 : (a n) ^ 3 = 0 := (mul_eq_zero.mp hterm0).resolve_left (ne_of_gt hwd_pos) exact eq_zero_of_pow_eq_zero ha3 have hW0 : W = 0 := Finset.sum_eq_zero fun n hn => by rw [hzero n hn]; ring rw [hW0, hS3z]; simp · have hS3_pos : 0 < S3 := lt_of_le_of_ne hS3_nn (Ne.symm hS3z) let c3 : ℝ := S3 ^ (-(1 / 3 : ℝ)) let cH : ℝ := S_H ^ (-(1 / 3 : ℝ)) have hc3_pos : 0 < c3 := Real.rpow_pos_of_pos hS3_pos _ have hcH_pos : 0 < cH := Real.rpow_pos_of_pos hSH_pos _ have hc3_3 : c3 ^ 3 = S3⁻¹ := by dsimp only [c3] rw [← Real.rpow_natCast, ← Real.rpow_mul (le_of_lt hS3_pos)] norm_num [Real.rpow_neg_one] have hcH_3 : cH ^ 3 = S_H⁻¹ := by dsimp only [cH] rw [← Real.rpow_natCast, ← Real.rpow_mul (le_of_lt hSH_pos)] norm_num [Real.rpow_neg_one] have hpt : ∀ n ∈ Finset.range N, 3 * (c3 ^ 2 * cH) * (w n * (a n) ^ 2) ≤ 2 * S3⁻¹ * (w n * d n * (a n) ^ 3) + S_H⁻¹ * ρ_H ^ n := by intro n _ let x : ℝ := c3 * (w n * d n) ^ (1 / 3 : ℝ) * a n let z : ℝ := cH * (ρ_H ^ n) ^ (1 / 3 : ℝ) have hx_nn : 0 ≤ x := by have : 0 ≤ (w n * d n) ^ (1 / 3 : ℝ) := Real.rpow_nonneg (by have : 0 ≤ w n := pow_nonneg (le_of_lt hr_pos) n have : 0 ≤ d n := pow_nonneg (le_of_lt hd_pos) n positivity) _ have := hann n; positivity have hz_nn : 0 ≤ z := by have : 0 ≤ (ρ_H ^ n) ^ (1 / 3 : ℝ) := Real.rpow_nonneg (pow_nonneg hρ_H_nn n) _ positivity have ham := am_gm_three_cube hx_nn hx_nn hz_nn have hwd_pos : 0 < w n * d n := mul_pos (pow_pos hr_pos n) (pow_pos hd_pos n) have hρn_pos : 0 < ρ_H ^ n := pow_pos (div_pos hr_pos (Real.rpow_pos_of_pos hlam_pos _)) n have hprod_id : ((w n * d n) ^ (1 / 3 : ℝ)) ^ 2 * (ρ_H ^ n) ^ (1 / 3 : ℝ) = w n := by have hbase : (w n * d n) ^ 2 * ρ_H ^ n = (w n) ^ 3 := by dsimp only [w, d, ρ_H] rw [mul_pow, div_pow, ← pow_mul, ← pow_mul] have h2a : (lam ^ α) ^ (n * 2) = (lam ^ (2 * α)) ^ n := by rw [← Real.rpow_natCast (lam ^ α), ← Real.rpow_natCast (lam ^ (2 * α)), ← Real.rpow_mul (le_of_lt hlam_pos), ← Real.rpow_mul (le_of_lt hlam_pos)] congr 1; push_cast; ring rw [h2a] have hne : (lam ^ (2 * α)) ^ n ≠ 0 := ne_of_gt (pow_pos (Real.rpow_pos_of_pos hlam_pos _) n) calc r ^ (n * 2) * (lam ^ (2 * α)) ^ n * (r ^ n / (lam ^ (2 * α)) ^ n) = (r ^ (n * 2) * r ^ n) * ((lam ^ (2 * α)) ^ n / (lam ^ (2 * α)) ^ n) := by ring _ = r ^ (n * 2) * r ^ n * 1 := by rw [div_self hne] _ = r ^ (n * 2 + n) := by rw [mul_one, ← pow_add] _ = r ^ (n * 3) := rfl _ = (r ^ n) ^ 3 := by rw [pow_mul] have hcube : (((w n * d n) ^ (1 / 3 : ℝ)) ^ 2 * (ρ_H ^ n) ^ (1 / 3 : ℝ)) ^ 3 = (w n) ^ 3 := by have hwd3 : ((w n * d n) ^ (1 / 3 : ℝ)) ^ 3 = w n * d n := by rw [← Real.rpow_natCast, ← Real.rpow_mul (le_of_lt hwd_pos)]; norm_num have hρ3 : ((ρ_H ^ n) ^ (1 / 3 : ℝ)) ^ 3 = ρ_H ^ n := by rw [← Real.rpow_natCast, ← Real.rpow_mul (le_of_lt hρn_pos)]; norm_num calc (((w n * d n) ^ (1 / 3 : ℝ)) ^ 2 * (ρ_H ^ n) ^ (1 / 3 : ℝ)) ^ 3 = (((w n * d n) ^ (1 / 3 : ℝ)) ^ 3) ^ 2 * ((ρ_H ^ n) ^ (1 / 3 : ℝ)) ^ 3 := by ring _ = (w n * d n) ^ 2 * ρ_H ^ n := by rw [hwd3, hρ3] _ = (w n) ^ 3 := hbase have hL_nn : 0 ≤ ((w n * d n) ^ (1 / 3 : ℝ)) ^ 2 * (ρ_H ^ n) ^ (1 / 3 : ℝ) := by positivity have hR_nn : 0 ≤ w n := pow_nonneg (le_of_lt hr_pos) n by_contra hne rcases lt_or_gt_of_ne hne with hlt | hgt · have hsq_lt : (((w n * d n) ^ (1 / 3 : ℝ)) ^ 2 * (ρ_H ^ n) ^ (1 / 3 : ℝ)) ^ 2 < (w n) ^ 2 := by nlinarith only [hlt, hL_nn, hR_nn] have hcu_lt : (((w n * d n) ^ (1 / 3 : ℝ)) ^ 2 * (ρ_H ^ n) ^ (1 / 3 : ℝ)) ^ 3 < (w n) ^ 3 := by nlinarith only [hlt, hL_nn, hR_nn, hsq_lt] linarith only [hcube, hcu_lt] · have hsq_gt : (w n) ^ 2 < (((w n * d n) ^ (1 / 3 : ℝ)) ^ 2 * (ρ_H ^ n) ^ (1 / 3 : ℝ)) ^ 2 := by nlinarith only [hgt, hL_nn, hR_nn] have hcu_gt : (w n) ^ 3 < (((w n * d n) ^ (1 / 3 : ℝ)) ^ 2 * (ρ_H ^ n) ^ (1 / 3 : ℝ)) ^ 3 := by nlinarith only [hgt, hL_nn, hR_nn, hsq_gt] linarith only [hcube, hcu_gt] have hL : 3 * x * x * z = 3 * (c3 ^ 2 * cH) * (w n * (a n) ^ 2) := by dsimp only [x, z] calc 3 * (c3 * (w n * d n) ^ (1 / 3 : ℝ) * a n) * (c3 * (w n * d n) ^ (1 / 3 : ℝ) * a n) * (cH * (ρ_H ^ n) ^ (1 / 3 : ℝ)) = 3 * (c3 ^ 2 * cH) * ((((w n * d n) ^ (1 / 3 : ℝ)) ^ 2 * (ρ_H ^ n) ^ (1 / 3 : ℝ)) * (a n) ^ 2) := by ring _ = 3 * (c3 ^ 2 * cH) * (w n * (a n) ^ 2) := by rw [hprod_id] have hR : x ^ 3 + x ^ 3 + z ^ 3 = 2 * S3⁻¹ * (w n * d n * (a n) ^ 3) + S_H⁻¹ * ρ_H ^ n := by dsimp only [x, z] have hx3 : ((w n * d n) ^ (1 / 3 : ℝ)) ^ 3 = w n * d n := by rw [← Real.rpow_natCast, ← Real.rpow_mul (le_of_lt hwd_pos)]; norm_num have hz3 : ((ρ_H ^ n) ^ (1 / 3 : ℝ)) ^ 3 = ρ_H ^ n := by rw [← Real.rpow_natCast, ← Real.rpow_mul (le_of_lt hρn_pos)]; norm_num calc (c3 * (w n * d n) ^ (1 / 3 : ℝ) * a n) ^ 3 + (c3 * (w n * d n) ^ (1 / 3 : ℝ) * a n) ^ 3 + (cH * (ρ_H ^ n) ^ (1 / 3 : ℝ)) ^ 3 = 2 * c3 ^ 3 * (((w n * d n) ^ (1 / 3 : ℝ)) ^ 3 * (a n) ^ 3) + cH ^ 3 * ((ρ_H ^ n) ^ (1 / 3 : ℝ)) ^ 3 := by ring _ = 2 * S3⁻¹ * (w n * d n * (a n) ^ 3) + S_H⁻¹ * ρ_H ^ n := by rw [hc3_3, hcH_3, hx3, hz3] linarith only [ham, hL, hR] have hsum := Finset.sum_le_sum hpt rw [← Finset.mul_sum, Finset.sum_add_distrib, ← Finset.mul_sum, ← Finset.mul_sum] at hsum have hgeomH := sum_geom_le_inv ρ_H hρ_H_nn hρ_H_lt N have hSH_mul : S_H⁻¹ * (∑ n ∈ Finset.range N, ρ_H ^ n) ≤ 1 := by have h1 := mul_le_mul_of_nonneg_left hgeomH (le_of_lt (inv_pos.mpr hSH_pos)) have h2 : S_H⁻¹ * (1 - ρ_H)⁻¹ = 1 := inv_mul_cancel₀ (ne_of_gt hSH_pos) linarith only [h1, h2] have hS3_mul : 2 * S3⁻¹ * S3 = 2 := by rw [mul_assoc, inv_mul_cancel₀ (ne_of_gt hS3_pos), mul_one] have hW_scaled : (c3 ^ 2 * cH) * W ≤ 1 := by dsimp only [W, S3] at hsum hS3_mul ⊢ linarith only [hsum, hSH_mul, hS3_mul] have hW3 : W ^ 3 ≤ S3 ^ 2 * S_H := by have hpow3 : ((c3 ^ 2 * cH) * W) ^ 3 ≤ 1 ^ 3 := by have hnn : 0 ≤ (c3 ^ 2 * cH) * W := by positivity have hsq1 : ((c3 ^ 2 * cH) * W) ^ 2 ≤ 1 := by nlinarith only [hnn, hW_scaled] nlinarith only [hnn, hW_scaled, hsq1] have hleft : ((c3 ^ 2 * cH) * W) ^ 3 = (S3 ^ 2 * S_H)⁻¹ * W ^ 3 := by calc ((c3 ^ 2 * cH) * W) ^ 3 = (c3 ^ 3) ^ 2 * cH ^ 3 * W ^ 3 := by ring _ = (S3⁻¹) ^ 2 * S_H⁻¹ * W ^ 3 := by rw [hc3_3, hcH_3] _ = (S3 ^ 2 * S_H)⁻¹ * W ^ 3 := by rw [mul_inv, inv_pow] rw [hleft] at hpow3 have hden : 0 < S3 ^ 2 * S_H := by positivity have hmul := mul_le_mul_of_nonneg_left hpow3 (le_of_lt hden) rw [← mul_assoc, mul_inv_cancel₀ (ne_of_gt hden), one_mul] at hmul linarith only [hmul] have hsq : (W * Real.sqrt W) ^ 2 ≤ (Real.sqrt S_H * S3) ^ 2 := by rw [mul_pow, mul_pow, Real.sq_sqrt hW_nn, Real.sq_sqrt (le_of_lt hSH_pos)] nlinarith only [hW3] have hL_nn : 0 ≤ W * Real.sqrt W := by positivity have hR_nn : 0 ≤ Real.sqrt S_H * S3 := by positivity nlinarith only [hsq, hL_nn, hR_nn] /-- Exact finite-sum derivative decomposition of `cheskidovDV` for finitely supported states. -/ private lemma cheskidov_dv_decomp (lam α θ ν r c : ℝ) (N : ℕ) (a : ℕ → ℝ) (hsupp : ∀ n, N ≤ n → a n = 0) : let d : ℕ → ℝ := fun n => (lam ^ α) ^ n let v : ℕ → ℝ := fun n => ν * (lam ^ (2 * θ)) ^ n let w : ℕ → ℝ := fun n => r ^ n cheskidovDV lam α θ ν r c N a = 2 * (r - 1) * (∑ n ∈ Finset.range N, w n * d n * (a n) ^ 2 * a (n + 1)) + c * (∑ n ∈ Finset.range N, w n * d n * (a n) ^ 3) + c * (∑ n ∈ Finset.range N, if 0 < n then w n * d (n - 1) * (a (n - 1)) ^ 2 * a (n + 1) else 0) - c * (∑ n ∈ Finset.range N, w n * d n * a n * (a (n + 1)) ^ 2) - c * (∑ n ∈ Finset.range N, w n * d (n + 1) * a n * a (n + 1) * a (n + 2)) - 2 * (∑ n ∈ Finset.range N, w n * v n * (a n) ^ 2) - c * (∑ n ∈ Finset.range N, w n * (v n + v (n + 1)) * a n * a (n + 1)) := by dsimp only let d : ℕ → ℝ := fun n => (lam ^ α) ^ n let v : ℕ → ℝ := fun n => ν * (lam ^ (2 * θ)) ^ n let w : ℕ → ℝ := fun n => r ^ n let da : ℕ → ℝ := infDyadicRhs lam α θ ν a have ha_zero_ge : ∀ n, N ≤ n → a n = 0 := hsupp have hda_N1 : da (N + 1) = 0 := by have hN1 : 0 < N + 1 := Nat.succ_pos N simp [da, infDyadicRhs, hN1, ha_zero_ge N le_rfl, ha_zero_ge (N + 1) (Nat.le_succ N)] have hda_N2 : da (N + 2) = 0 := by have hN2 : 0 < N + 2 := Nat.succ_pos (N + 1) simp [da, infDyadicRhs, hN2, ha_zero_ge (N + 1) (Nat.le_succ N), ha_zero_ge (N + 2) (by omega)] have hquad_part : ∑ n ∈ Finset.range (N + 2), w n * (2 * a n * da n) = 2 * (r - 1) * (∑ n ∈ Finset.range N, w n * d n * (a n) ^ 2 * a (n + 1)) - 2 * (∑ n ∈ Finset.range N, w n * v n * (a n) ^ 2) := by have hterm_N1 : w (N + 1) * (2 * a (N + 1) * da (N + 1)) = 0 := by rw [ha_zero_ge (N + 1) (Nat.le_succ N)]; ring have hterm_N : w N * (2 * a N * da N) = 0 := by rw [ha_zero_ge N le_rfl]; ring rw [Finset.sum_range_succ, hterm_N1, add_zero, Finset.sum_range_succ, hterm_N, add_zero] have hexpand : ∑ n ∈ Finset.range N, w n * (2 * a n * da n) = (∑ n ∈ Finset.range N, if 0 < n then 2 * w n * d (n - 1) * (a (n - 1)) ^ 2 * a n else 0) - (∑ n ∈ Finset.range N, 2 * w n * d n * (a n) ^ 2 * a (n + 1)) - (∑ n ∈ Finset.range N, 2 * w n * v n * (a n) ^ 2) := by rw [← Finset.sum_sub_distrib, ← Finset.sum_sub_distrib] refine Finset.sum_congr rfl fun n _ => ?_ dsimp only [da, infDyadicRhs, d, v] split_ifs <;> ring rw [hexpand] have hshift : (∑ n ∈ Finset.range N, if 0 < n then 2 * w n * d (n - 1) * (a (n - 1)) ^ 2 * a n else 0) = 2 * r * (∑ n ∈ Finset.range N, w n * d n * (a n) ^ 2 * a (n + 1)) := by cases N with | zero => simp | succ M => rw [Finset.sum_range_succ'] simp only [lt_self_iff_false, ↓reduceIte, add_zero] rw [Finset.mul_sum, Finset.sum_range_succ] have hlast : 2 * r * (w M * d M * (a M) ^ 2 * a (M + 1)) = 0 := by rw [ha_zero_ge (M + 1) le_rfl]; ring rw [hlast, add_zero] refine Finset.sum_congr rfl fun k _ => ?_ have hk : 0 < k + 1 := Nat.succ_pos k simp only [hk, ↓reduceIte, Nat.add_sub_cancel, w, pow_succ] ring have hpull1 : ∑ n ∈ Finset.range N, 2 * w n * d n * (a n) ^ 2 * a (n + 1) = 2 * ∑ n ∈ Finset.range N, w n * d n * (a n) ^ 2 * a (n + 1) := by rw [Finset.mul_sum]; refine Finset.sum_congr rfl fun _ _ => by ring have hpull2 : ∑ n ∈ Finset.range N, 2 * w n * v n * (a n) ^ 2 = 2 * ∑ n ∈ Finset.range N, w n * v n * (a n) ^ 2 := by rw [Finset.mul_sum]; refine Finset.sum_congr rfl fun _ _ => by ring rw [hshift, hpull1, hpull2] ring have hbilin_part : ∑ n ∈ Finset.range (N + 2), w n * (c * (da n * a (n + 1) + a n * da (n + 1))) = c * (∑ n ∈ Finset.range N, w n * d n * (a n) ^ 3) + c * (∑ n ∈ Finset.range N, if 0 < n then w n * d (n - 1) * (a (n - 1)) ^ 2 * a (n + 1) else 0) - c * (∑ n ∈ Finset.range N, w n * d n * a n * (a (n + 1)) ^ 2) - c * (∑ n ∈ Finset.range N, w n * d (n + 1) * a n * a (n + 1) * a (n + 2)) - c * (∑ n ∈ Finset.range N, w n * (v n + v (n + 1)) * a n * a (n + 1)) := by have hterm_N1 : w (N + 1) * (c * (da (N + 1) * a (N + 2) + a (N + 1) * da (N + 2))) = 0 := by rw [hda_N1, hda_N2]; ring have hterm_N : w N * (c * (da N * a (N + 1) + a N * da (N + 1))) = 0 := by rw [ha_zero_ge N le_rfl, ha_zero_ge (N + 1) (Nat.le_succ N)]; ring rw [Finset.sum_range_succ, hterm_N1, add_zero, Finset.sum_range_succ, hterm_N, add_zero] simp only [Finset.mul_sum] rw [← Finset.sum_add_distrib, ← Finset.sum_sub_distrib, ← Finset.sum_sub_distrib, ← Finset.sum_sub_distrib] refine Finset.sum_congr rfl fun n _ => ?_ have hn1 : 0 < n + 1 := Nat.succ_pos n dsimp only [da, infDyadicRhs, d, v] simp only [hn1, ↓reduceIte, Nat.add_sub_cancel] split_ifs <;> ring have hsplit : cheskidovDV lam α θ ν r c N a = (∑ n ∈ Finset.range (N + 2), w n * (2 * a n * da n)) + (∑ n ∈ Finset.range (N + 2), w n * (c * (da n * a (n + 1) + a n * da (n + 1)))) := by dsimp only [cheskidovDV, w, da] rw [← Finset.sum_add_distrib] refine Finset.sum_congr rfl fun n _ => by ring rw [hsplit, hquad_part, hbilin_part] ring /-- Nonlinear pointwise absorption `P₁ + P₂ + P₃ - N₁ - N₂ ≥ κ_cub * S₃` for Cheskidov's functional. -/ private lemma cheskidov_nonlin_absorb (lam α r c : ℝ) (N : ℕ) (a : ℕ → ℝ) (hlam : 1 < lam) (hr1 : 1 < r) (hc : 0 < c) (hadm : 27 * ((1 - 1 / r) / 4) * ((1 - 1 / r) * (r * lam ^ α) / 4) ^ 2 ≥ 4 ∨ c ≤ 4 * (r - 1) * (1 - 1 / r) * (r * lam ^ α)) (hann : ∀ n, 0 ≤ a n) (hsupp : ∀ n, N ≤ n → a n = 0) : let d : ℕ → ℝ := fun n => (lam ^ α) ^ n let w : ℕ → ℝ := fun n => r ^ n let S3 : ℝ := ∑ n ∈ Finset.range N, w n * d n * (a n) ^ 3 ((1 - 1 / r) / 2) * c * S3 ≤ 2 * (r - 1) * (∑ n ∈ Finset.range N, w n * d n * (a n) ^ 2 * a (n + 1)) + c * S3 + c * (∑ n ∈ Finset.range N, if 0 < n then w n * d (n - 1) * (a (n - 1)) ^ 2 * a (n + 1) else 0) - c * (∑ n ∈ Finset.range N, w n * d n * a n * (a (n + 1)) ^ 2) - c * (∑ n ∈ Finset.range N, w n * d (n + 1) * a n * a (n + 1) * a (n + 2)) := by dsimp only have hlam_pos : 0 < lam := by linarith have hr_pos : 0 < r := by linarith have hd_pos : 0 < lam ^ α := Real.rpow_pos_of_pos hlam_pos α have hrem_pos : 0 < 1 - 1 / r := by have : 1 / r < 1 := (div_lt_one hr_pos).mpr hr1 linarith have hκ_pos : 0 < (1 - 1 / r) / 2 * c := by positivity have hq_pos : 0 < r * lam ^ α := mul_pos hr_pos hd_pos let d : ℕ → ℝ := fun n => (lam ^ α) ^ n let w : ℕ → ℝ := fun n => r ^ n let S3 : ℝ := ∑ n ∈ Finset.range N, w n * d n * (a n) ^ 3 have ha_zero_ge : ∀ n, N ≤ n → a n = 0 := hsupp have hP3_nn : 0 ≤ c * (∑ n ∈ Finset.range N, if 0 < n then w n * d (n - 1) * (a (n - 1)) ^ 2 * a (n + 1) else 0) := by refine mul_nonneg (le_of_lt hc) (Finset.sum_nonneg fun n _ => ?_) split_ifs · have : 0 ≤ w n := pow_nonneg (le_of_lt hr_pos) n have : 0 ≤ d (n - 1) := pow_nonneg (le_of_lt hd_pos) (n - 1) have : 0 ≤ a (n - 1) := hann (n - 1) have : 0 ≤ a (n + 1) := hann (n + 1) positivity · exact le_rfl have hshift1 : ∑ n ∈ Finset.range N, w (n + 1) * d (n + 1) * (a (n + 1)) ^ 3 ≤ S3 := by have hsub : ∑ n ∈ Finset.range N, w (n + 1) * d (n + 1) * (a (n + 1)) ^ 3 = ∑ n ∈ Finset.range (N + 1), w n * d n * (a n) ^ 3 - w 0 * d 0 * (a 0) ^ 3 := by rw [Finset.sum_range_succ']; ring rw [hsub, Finset.sum_range_succ, ha_zero_ge N le_rfl] have h0nn : 0 ≤ w 0 * d 0 * (a 0) ^ 3 := by have := hann 0; simp [w, d]; positivity dsimp only [S3]; ring_nf; linarith have hN2_le : c * (∑ n ∈ Finset.range N, w n * d (n + 1) * a n * a (n + 1) * a (n + 2)) ≤ (1 / r) * (c * S3) := by let u : ℝ := (r * lam ^ α) ^ (1 / 3 : ℝ) have hu_pos : 0 < u := Real.rpow_pos_of_pos hq_pos (1 / 3 : ℝ) have hu3 : u ^ 3 = r * lam ^ α := by dsimp only [u] rw [← Real.rpow_natCast, ← Real.rpow_mul (le_of_lt hq_pos)] norm_num have hpt : ∀ n ∈ Finset.range N, w n * d (n + 1) * a n * a (n + 1) * a (n + 2) ≤ (1 / (3 * r)) * (w n * d n * (a n) ^ 3 + w (n + 1) * d (n + 1) * (a (n + 1)) ^ 3 + w (n + 2) * d (n + 2) * (a (n + 2)) ^ 3) := by intro n _ have ham := am_gm_three_cube (hann n) (mul_nonneg (le_of_lt hu_pos) (hann (n + 1))) (mul_nonneg (sq_nonneg u) (hann (n + 2))) have hlhs : 3 * a n * (u * a (n + 1)) * (u ^ 2 * a (n + 2)) = 3 * (r * lam ^ α) * (a n * a (n + 1) * a (n + 2)) := by calc 3 * a n * (u * a (n + 1)) * (u ^ 2 * a (n + 2)) = 3 * u ^ 3 * (a n * a (n + 1) * a (n + 2)) := by ring _ = 3 * (r * lam ^ α) * (a n * a (n + 1) * a (n + 2)) := by rw [hu3] have hrhs : (a n) ^ 3 + (u * a (n + 1)) ^ 3 + (u ^ 2 * a (n + 2)) ^ 3 = (a n) ^ 3 + (r * lam ^ α) * (a (n + 1)) ^ 3 + (r * lam ^ α) ^ 2 * (a (n + 2)) ^ 3 := by calc (a n) ^ 3 + (u * a (n + 1)) ^ 3 + (u ^ 2 * a (n + 2)) ^ 3 = (a n) ^ 3 + u ^ 3 * (a (n + 1)) ^ 3 + (u ^ 3) ^ 2 * (a (n + 2)) ^ 3 := by ring _ = (a n) ^ 3 + (r * lam ^ α) * (a (n + 1)) ^ 3 + (r * lam ^ α) ^ 2 * (a (n + 2)) ^ 3 := by rw [hu3] rw [hlhs, hrhs] at ham have hwd_nn : 0 ≤ w n * d n / (3 * r) := by have : 0 ≤ w n := pow_nonneg (le_of_lt hr_pos) n have : 0 ≤ d n := pow_nonneg (le_of_lt hd_pos) n positivity have hmul := mul_le_mul_of_nonneg_left ham hwd_nn have hL : w n * d n / (3 * r) * (3 * (r * lam ^ α) * (a n * a (n + 1) * a (n + 2))) = w n * d (n + 1) * a n * a (n + 1) * a (n + 2) := by dsimp only [d]; rw [pow_succ]; field_simp [ne_of_gt hr_pos] have hR : w n * d n / (3 * r) * ((a n) ^ 3 + r * lam ^ α * (a (n + 1)) ^ 3 + (r * lam ^ α) ^ 2 * (a (n + 2)) ^ 3) = (1 / (3 * r)) * (w n * d n * (a n) ^ 3 + w (n + 1) * d (n + 1) * (a (n + 1)) ^ 3 + w (n + 2) * d (n + 2) * (a (n + 2)) ^ 3) := by dsimp only [w, d]; simp only [pow_succ]; field_simp [ne_of_gt hr_pos] linarith have hsum := Finset.sum_le_sum hpt rw [← Finset.mul_sum, Finset.sum_add_distrib, Finset.sum_add_distrib] at hsum have hshift2 : ∑ n ∈ Finset.range N, w (n + 2) * d (n + 2) * (a (n + 2)) ^ 3 ≤ S3 := by have hsub1 : ∑ n ∈ Finset.range N, w (n + 2) * d (n + 2) * (a (n + 2)) ^ 3 = ∑ n ∈ Finset.range (N + 1), w (n + 1) * d (n + 1) * (a (n + 1)) ^ 3 - w 1 * d 1 * (a 1) ^ 3 := by rw [Finset.sum_range_succ']; ring rw [hsub1, Finset.sum_range_succ, ha_zero_ge (N + 1) (Nat.le_succ N)] have h1nn : 0 ≤ w 1 * d 1 * (a 1) ^ 3 := by have := hann 1; simp [w, d]; positivity linarith have hcomb : ∑ n ∈ Finset.range N, w n * d (n + 1) * a n * a (n + 1) * a (n + 2) ≤ (1 / r) * S3 := by have h3 : (1 / (3 * r)) * (S3 + S3 + S3) = (1 / r) * S3 := by field_simp [ne_of_gt hr_pos]; ring have h13 : 0 ≤ 1 / (3 * r) := by positivity have hsum_le : S3 + (∑ n ∈ Finset.range N, w (n + 1) * d (n + 1) * (a (n + 1)) ^ 3) + (∑ n ∈ Finset.range N, w (n + 2) * d (n + 2) * (a (n + 2)) ^ 3) ≤ S3 + S3 + S3 := add_le_add (add_le_add le_rfl hshift1) hshift2 have hle' := mul_le_mul_of_nonneg_left hsum_le h13 dsimp only [S3] at hsum hle' h3 ⊢ linarith only [hsum, hle', h3] have := mul_le_mul_of_nonneg_left hcomb (le_of_lt hc) linarith have hN1_le : c * (∑ n ∈ Finset.range N, w n * d n * a n * (a (n + 1)) ^ 2) ≤ 2 * (r - 1) * (∑ n ∈ Finset.range N, w n * d n * (a n) ^ 2 * a (n + 1)) + ((1 - 1 / r) / 2) * (c * S3) := by rcases hadm with hpure | hp1 · let rem : ℝ := 1 - 1 / r let q : ℝ := r * lam ^ α let u1 : ℝ := (rem / 4) ^ (1 / 3 : ℝ) let u2 : ℝ := (rem * q / 8) ^ (1 / 3 : ℝ) have hu1_pos : 0 < u1 := Real.rpow_pos_of_pos (by positivity) _ have hu2_pos : 0 < u2 := Real.rpow_pos_of_pos (by positivity) _ have hu1_3 : u1 ^ 3 = rem / 4 := by dsimp only [u1]; rw [← Real.rpow_natCast, ← Real.rpow_mul (by positivity)]; norm_num have hu2_3 : u2 ^ 3 = rem * q / 8 := by dsimp only [u2]; rw [← Real.rpow_natCast, ← Real.rpow_mul (by positivity)]; norm_num have h3prod : 1 ≤ 3 * u1 * u2 ^ 2 := by have hcube : (1 : ℝ) ^ 3 ≤ (3 * u1 * u2 ^ 2) ^ 3 := by calc (1 : ℝ) ^ 3 = 1 := by norm_num _ ≤ (27 * (rem / 4) * (rem * q / 4) ^ 2) / 4 := by linarith _ = 27 * (rem / 4) * (rem * q / 8) ^ 2 := by ring _ = 27 * u1 ^ 3 * (u2 ^ 3) ^ 2 := by rw [hu1_3, hu2_3] _ = (3 * u1 * u2 ^ 2) ^ 3 := by ring by_contra hlt push Not at hlt have hpos_p : 0 < 3 * u1 * u2 ^ 2 := by positivity have hsq_p : (3 * u1 * u2 ^ 2) ^ 2 < 1 := by nlinarith only [hlt, hpos_p] have : (3 * u1 * u2 ^ 2) ^ 3 < 1 ^ 3 := by nlinarith only [hlt, hpos_p, hsq_p] linarith only [hcube, this] have hpt : ∀ n ∈ Finset.range N, w n * d n * a n * (a (n + 1)) ^ 2 ≤ (rem / 4) * (w n * d n * (a n) ^ 3 + w (n + 1) * d (n + 1) * (a (n + 1)) ^ 3) := by intro n _ have ham := am_gm_three_cube (mul_nonneg (le_of_lt hu1_pos) (hann n)) (mul_nonneg (le_of_lt hu2_pos) (hann (n + 1))) (mul_nonneg (le_of_lt hu2_pos) (hann (n + 1))) have hL : a n * (a (n + 1)) ^ 2 ≤ 3 * (u1 * a n) * (u2 * a (n + 1)) * (u2 * a (n + 1)) := by have ha_nn : 0 ≤ a n * (a (n + 1)) ^ 2 := by have := hann n; have := hann (n + 1); positivity have : 3 * (u1 * a n) * (u2 * a (n + 1)) * (u2 * a (n + 1)) = (3 * u1 * u2 ^ 2) * (a n * (a (n + 1)) ^ 2) := by ring rw [this] nlinarith have hR : (u1 * a n) ^ 3 + (u2 * a (n + 1)) ^ 3 + (u2 * a (n + 1)) ^ 3 = (rem / 4) * ((a n) ^ 3 + q * (a (n + 1)) ^ 3) := by calc (u1 * a n) ^ 3 + (u2 * a (n + 1)) ^ 3 + (u2 * a (n + 1)) ^ 3 = u1 ^ 3 * (a n) ^ 3 + 2 * u2 ^ 3 * (a (n + 1)) ^ 3 := by ring _ = (rem / 4) * (a n) ^ 3 + 2 * (rem * q / 8) * (a (n + 1)) ^ 3 := by rw [hu1_3, hu2_3] _ = (rem / 4) * ((a n) ^ 3 + q * (a (n + 1)) ^ 3) := by ring have hwd_nn : 0 ≤ w n * d n := mul_nonneg (pow_nonneg (le_of_lt hr_pos) n) (pow_nonneg (le_of_lt hd_pos) n) have hstep := mul_le_mul_of_nonneg_left (hL.trans (ham.trans (le_of_eq hR))) hwd_nn have hR2 : w n * d n * ((rem / 4) * ((a n) ^ 3 + q * (a (n + 1)) ^ 3)) = (rem / 4) * (w n * d n * (a n) ^ 3 + w (n + 1) * d (n + 1) * (a (n + 1)) ^ 3) := by dsimp only [w, d, q]; simp only [pow_succ]; ring linarith have hsum := Finset.sum_le_sum hpt rw [← Finset.mul_sum, Finset.sum_add_distrib] at hsum have hP1_nn : 0 ≤ 2 * (r - 1) * (∑ n ∈ Finset.range N, w n * d n * (a n) ^ 2 * a (n + 1)) := by refine mul_nonneg (by linarith) (Finset.sum_nonneg fun n _ => ?_) have : 0 ≤ w n := pow_nonneg (le_of_lt hr_pos) n have : 0 ≤ d n := pow_nonneg (le_of_lt hd_pos) n have : 0 ≤ a n := hann n have : 0 ≤ a (n + 1) := hann (n + 1) positivity have hcomb : ∑ n ∈ Finset.range N, w n * d n * a n * (a (n + 1)) ^ 2 ≤ (rem / 2) * S3 := by have hrem4 : 0 ≤ rem / 4 := by positivity have hsum_le : S3 + (∑ n ∈ Finset.range N, w (n + 1) * d (n + 1) * (a (n + 1)) ^ 3) ≤ S3 + S3 := add_le_add le_rfl hshift1 have hle' := mul_le_mul_of_nonneg_left hsum_le hrem4 dsimp only [S3] at hsum hle' ⊢ linarith only [hsum, hle'] have := mul_le_mul_of_nonneg_left hcomb (le_of_lt hc) linarith · have hpt : ∀ n ∈ Finset.range N, c * (w n * d n * a n * (a (n + 1)) ^ 2) ≤ 2 * (r - 1) * (w n * d n * (a n) ^ 2 * a (n + 1)) + ((1 - 1 / r) / 2) * c * (w (n + 1) * d (n + 1) * (a (n + 1)) ^ 3) := by intro n _ have hwd_nn : 0 ≤ w n * d n * a (n + 1) := by have : 0 ≤ w n := pow_nonneg (le_of_lt hr_pos) n have : 0 ≤ d n := pow_nonneg (le_of_lt hd_pos) n have : 0 ≤ a (n + 1) := hann (n + 1) positivity have hquad : 0 ≤ 2 * (r - 1) * (a n) ^ 2 - c * a n * a (n + 1) + ((1 - 1 / r) / 2) * c * (r * lam ^ α) * (a (n + 1)) ^ 2 := by have h2r : 0 < 2 * (r - 1) := by linarith have hcomp : 2 * (r - 1) * (2 * (r - 1) * (a n) ^ 2 - c * a n * a (n + 1) + ((1 - 1 / r) / 2) * c * (r * lam ^ α) * (a (n + 1)) ^ 2) = (2 * (r - 1) * a n - (c / 2) * a (n + 1)) ^ 2 + (c / 4) * (4 * (r - 1) * (1 - 1 / r) * (r * lam ^ α) - c) * (a (n + 1)) ^ 2 := by ring have hrhs_nn : 0 ≤ (2 * (r - 1) * a n - (c / 2) * a (n + 1)) ^ 2 + (c / 4) * (4 * (r - 1) * (1 - 1 / r) * (r * lam ^ α) - c) * (a (n + 1)) ^ 2 := by have hdisc : 0 ≤ 4 * (r - 1) * (1 - 1 / r) * (r * lam ^ α) - c := by linarith positivity nlinarith only [h2r, hcomp, hrhs_nn] have hmul := mul_nonneg hwd_nn hquad have hexp : w n * d n * a (n + 1) * (2 * (r - 1) * (a n) ^ 2 - c * a n * a (n + 1) + ((1 - 1 / r) / 2) * c * (r * lam ^ α) * (a (n + 1)) ^ 2) = 2 * (r - 1) * (w n * d n * (a n) ^ 2 * a (n + 1)) + ((1 - 1 / r) / 2) * c * (w (n + 1) * d (n + 1) * (a (n + 1)) ^ 3) - c * (w n * d n * a n * (a (n + 1)) ^ 2) := by dsimp only [w, d]; simp only [pow_succ]; ring linarith have hsum := Finset.sum_le_sum hpt rw [← Finset.mul_sum, Finset.sum_add_distrib, ← Finset.mul_sum, ← Finset.mul_sum] at hsum have hle' := mul_le_mul_of_nonneg_left hshift1 (le_of_lt hκ_pos) linarith dsimp only [S3] at hN2_le hN1_le ⊢ linarith only [hP3_nn, hN2_le, hN1_le] /-- **Theorem 3 (`cheskidov_bilinear_pointwise_absorption`)**: For `λ > 1`, `0 ≤ θ`, `3 θ < α`, `1 < r < λ^(2α - 6θ)`, `c > 0`, `ν ≥ 0`, assuming either the pure-`P₂` cubic absorption condition `27 (rem / 4) (rem · q / 4)² ≥ 4` OR the `P₁ + P₂` quadratic condition `c ≤ 4 (r - 1) rem · q` (where `rem = 1 - 1 / r` and `q = r λ^α`), every finitely supported nonnegative state `a : ℕ → ℝ` (`∀ n ≥ N, a n = 0`) obeys the exact Cheskidov differential inequality: `cheskidovDV lam α θ ν r c N a ≥ κ_V * V(a) * √(V(a)) - K_ν`. -/ theorem cheskidov_bilinear_pointwise_absorption (lam α θ ν r c : ℝ) (N : ℕ) (a : ℕ → ℝ) (hlam : 1 < lam) (hθ : 0 ≤ θ) (hgap : 3 * θ < α) (hr1 : 1 < r) (hr_visc : r < lam ^ (2 * α - 6 * θ)) (hc : 0 < c) (hν : 0 ≤ ν) (hadm : 27 * ((1 - 1 / r) / 4) * ((1 - 1 / r) * (r * lam ^ α) / 4) ^ 2 ≥ 4 ∨ c ≤ 4 * (r - 1) * (1 - 1 / r) * (r * lam ^ α)) (hann : ∀ n, 0 ≤ a n) (hsupp : ∀ n, N ≤ n → a n = 0) : let rem : ℝ := 1 - 1 / r let κ_cub : ℝ := (rem / 2) * c let C_eq : ℝ := 1 + (c / 2) * (1 + 1 / r) let lam2t : ℝ := lam ^ (2 * θ) let C_v : ℝ := 2 + (c / 2) * ((1 + lam2t) + (1 + 1 / lam2t) / r) let ρ_visc : ℝ := r * lam ^ (6 * θ - 2 * α) let K_ν : ℝ := (16 * C_v ^ 3 * ν ^ 3) / (27 * κ_cub ^ 2 * (1 - ρ_visc)) let ρ_H : ℝ := r / lam ^ (2 * α) let S_H : ℝ := (1 - ρ_H)⁻¹ let κ_V : ℝ := (κ_cub / 2) * (Real.sqrt S_H)⁻¹ * (C_eq * Real.sqrt C_eq)⁻¹ κ_V * cheskidovV r c N a * Real.sqrt (cheskidovV r c N a) - K_ν ≤ cheskidovDV lam α θ ν r c N a := by have _ : 3 * θ < α := hgap dsimp only have hlam_pos : 0 < lam := by linarith have hr_pos : 0 < r := by linarith have hlam2t_pos : 0 < lam ^ (2 * θ) := Real.rpow_pos_of_pos hlam_pos (2 * θ) have hrem_pos : 0 < 1 - 1 / r := by have : 1 / r < 1 := (div_lt_one hr_pos).mpr hr1 linarith have hκ_pos : 0 < (1 - 1 / r) / 2 * c := by positivity let d : ℕ → ℝ := fun n => (lam ^ α) ^ n let v : ℕ → ℝ := fun n => ν * (lam ^ (2 * θ)) ^ n let w : ℕ → ℝ := fun n => r ^ n let S3 : ℝ := ∑ n ∈ Finset.range N, w n * d n * (a n) ^ 3 let κ_cub : ℝ := ((1 - 1 / r) / 2) * c let C_v : ℝ := 2 + (c / 2) * ((1 + lam ^ (2 * θ)) + (1 + 1 / lam ^ (2 * θ)) / r) let ρ_visc : ℝ := r * lam ^ (6 * θ - 2 * α) let W : ℝ := ∑ n ∈ Finset.range N, w n * (a n) ^ 2 let C_eq : ℝ := 1 + (c / 2) * (1 + 1 / r) let ρ_H : ℝ := r / lam ^ (2 * α) let S_H : ℝ := (1 - ρ_H)⁻¹ have hdV_eq := cheskidov_dv_decomp lam α θ ν r c N a hsupp have hnonlin := cheskidov_nonlin_absorb lam α r c N a hlam hr1 hc hadm hann hsupp have hCv_nn : 0 ≤ C_v := by positivity have hD_bound : 2 * (∑ n ∈ Finset.range N, w n * v n * (a n) ^ 2) + c * (∑ n ∈ Finset.range N, w n * (v n + v (n + 1)) * a n * a (n + 1)) ≤ C_v * (∑ n ∈ Finset.range N, w n * v n * (a n) ^ 2) := by have hshift_v : ∑ n ∈ Finset.range N, w (n + 1) * v (n + 1) * (a (n + 1)) ^ 2 ≤ ∑ n ∈ Finset.range N, w n * v n * (a n) ^ 2 := by have hsub : ∑ n ∈ Finset.range N, w (n + 1) * v (n + 1) * (a (n + 1)) ^ 2 = ∑ n ∈ Finset.range (N + 1), w n * v n * (a n) ^ 2 - w 0 * v 0 * (a 0) ^ 2 := by rw [Finset.sum_range_succ']; ring rw [hsub, Finset.sum_range_succ, hsupp N le_rfl] have h0nn : 0 ≤ w 0 * v 0 * (a 0) ^ 2 := by have := hann 0; simp [w, v]; positivity ring_nf; linarith have hpt : ∀ n ∈ Finset.range N, w n * (v n + v (n + 1)) * a n * a (n + 1) ≤ (1 / 2) * (1 + lam ^ (2 * θ)) * (w n * v n * (a n) ^ 2) + (1 / 2) * ((1 + 1 / lam ^ (2 * θ)) / r) * (w (n + 1) * v (n + 1) * (a (n + 1)) ^ 2) := by intro n _ have h2ab : 2 * a n * a (n + 1) ≤ (a n) ^ 2 + (a (n + 1)) ^ 2 := by nlinarith [sq_nonneg (a n - a (n + 1))] have hcoeff_nn : 0 ≤ w n * (v n + v (n + 1)) / 2 := by have : 0 ≤ w n := pow_nonneg (le_of_lt hr_pos) n have : 0 ≤ v n := mul_nonneg hν (pow_nonneg (le_of_lt hlam2t_pos) n) have : 0 ≤ v (n + 1) := mul_nonneg hν (pow_nonneg (le_of_lt hlam2t_pos) (n + 1)) positivity have hmul := mul_le_mul_of_nonneg_left h2ab hcoeff_nn have hL : w n * (v n + v (n + 1)) / 2 * (2 * a n * a (n + 1)) = w n * (v n + v (n + 1)) * a n * a (n + 1) := by ring have hR : w n * (v n + v (n + 1)) / 2 * ((a n) ^ 2 + (a (n + 1)) ^ 2) = (1 / 2) * (1 + lam ^ (2 * θ)) * (w n * v n * (a n) ^ 2) + (1 / 2) * ((1 + 1 / lam ^ (2 * θ)) / r) * (w (n + 1) * v (n + 1) * (a (n + 1)) ^ 2) := by dsimp only [w, v]; simp only [pow_succ] field_simp [ne_of_gt hr_pos, ne_of_gt hlam2t_pos]; ring linarith have hsum := Finset.sum_le_sum hpt rw [Finset.sum_add_distrib, ← Finset.mul_sum, ← Finset.mul_sum] at hsum have hcoeff2_nn : 0 ≤ (1 / 2) * ((1 + 1 / lam ^ (2 * θ)) / r) := by positivity have hle' := mul_le_mul_of_nonneg_left hshift_v hcoeff2_nn have hc_le := mul_le_mul_of_nonneg_left (hsum.trans (add_le_add le_rfl hle')) (le_of_lt hc) dsimp only [C_v]; linarith have hD_absorb : C_v * (∑ n ∈ Finset.range N, w n * v n * (a n) ^ 2) ≤ (κ_cub / 2) * S3 + (16 * C_v ^ 3 * ν ^ 3) / (27 * κ_cub ^ 2 * (1 - ρ_visc)) := cheskidov_visc_absorb lam α θ ν r C_v κ_cub N a hlam hr1 hr_visc hCv_nn hκ_pos hν hann have hCeq_pos : 0 < C_eq := by positivity have hV_le_W : cheskidovV r c N a ≤ C_eq * W := by have hterm_N1 : w (N + 1) * ((a (N + 1)) ^ 2 + c * a (N + 1) * a (N + 2)) = 0 := by rw [hsupp (N + 1) (Nat.le_succ N)]; ring have hterm_N : w N * ((a N) ^ 2 + c * a N * a (N + 1)) = 0 := by rw [hsupp N le_rfl]; ring dsimp only [cheskidovV] rw [Finset.sum_range_succ, hterm_N1, add_zero, Finset.sum_range_succ, hterm_N, add_zero] have hshift_w : ∑ n ∈ Finset.range N, w (n + 1) * (a (n + 1)) ^ 2 ≤ W := by have hsub : ∑ n ∈ Finset.range N, w (n + 1) * (a (n + 1)) ^ 2 = ∑ n ∈ Finset.range (N + 1), w n * (a n) ^ 2 - w 0 * (a 0) ^ 2 := by rw [Finset.sum_range_succ']; ring rw [hsub, Finset.sum_range_succ, hsupp N le_rfl] have h0nn : 0 ≤ w 0 * (a 0) ^ 2 := by simp [w]; positivity dsimp only [W]; ring_nf; linarith have hpt : ∀ n ∈ Finset.range N, w n * ((a n) ^ 2 + c * a n * a (n + 1)) ≤ (1 + c / 2) * (w n * (a n) ^ 2) + (c / (2 * r)) * (w (n + 1) * (a (n + 1)) ^ 2) := by intro n _ have h2ab : 2 * a n * a (n + 1) ≤ (a n) ^ 2 + (a (n + 1)) ^ 2 := by nlinarith only [sq_nonneg (a n - a (n + 1))] have hcwn : 0 ≤ (c / 2) * w n := mul_nonneg (by positivity) (pow_nonneg (le_of_lt hr_pos) n) have hmul := mul_le_mul_of_nonneg_left h2ab hcwn have hR : (c / (2 * r)) * (w (n + 1) * (a (n + 1)) ^ 2) = (c / 2) * w n * (a (n + 1)) ^ 2 := by dsimp only [w]; rw [pow_succ]; field_simp [ne_of_gt hr_pos] linarith only [hmul, hR] have hsum := Finset.sum_le_sum hpt rw [Finset.sum_add_distrib, ← Finset.mul_sum, ← Finset.mul_sum] at hsum have hle' := mul_le_mul_of_nonneg_left hshift_w (by positivity : 0 ≤ c / (2 * r)) have hcombine : (1 + c / 2) * W + c / (2 * r) * W = C_eq * W := by dsimp only [C_eq]; ring dsimp only [W, w] at hsum hle' hcombine ⊢ linarith only [hsum, hle', hcombine] have hr_lt_2a : r < lam ^ (2 * α) := by have hle_exp : 2 * α - 6 * θ ≤ 2 * α := by linarith only [hθ] have hmono : lam ^ (2 * α - 6 * θ) ≤ lam ^ (2 * α) := Real.rpow_le_rpow_of_exponent_le (le_of_lt hlam) hle_exp exact lt_of_lt_of_le hr_visc hmono have hρ_H_lt : ρ_H < 1 := (div_lt_one (Real.rpow_pos_of_pos hlam_pos (2 * α))).mpr hr_lt_2a have hSH_pos : 0 < S_H := inv_pos.mpr (by linarith only [hρ_H_lt]) have hHolder : W * Real.sqrt W ≤ Real.sqrt S_H * S3 := cheskidov_holder_bound lam α r N a hlam hr1 hr_lt_2a hann have hV32 : cheskidovV r c N a * Real.sqrt (cheskidovV r c N a) ≤ (C_eq * Real.sqrt C_eq) * (Real.sqrt S_H * S3) := by have hsqrt_le : Real.sqrt (cheskidovV r c N a) ≤ Real.sqrt C_eq * Real.sqrt W := by rw [← Real.sqrt_mul (le_of_lt hCeq_pos)] exact Real.sqrt_le_sqrt hV_le_W have hW_nn : 0 ≤ W := Finset.sum_nonneg fun n _ => by have : 0 ≤ w n := pow_nonneg (le_of_lt hr_pos) n; positivity calc cheskidovV r c N a * Real.sqrt (cheskidovV r c N a) ≤ (C_eq * W) * (Real.sqrt C_eq * Real.sqrt W) := mul_le_mul hV_le_W hsqrt_le (Real.sqrt_nonneg _) (by positivity) _ = (C_eq * Real.sqrt C_eq) * (W * Real.sqrt W) := by ring _ ≤ (C_eq * Real.sqrt C_eq) * (Real.sqrt S_H * S3) := mul_le_mul_of_nonneg_left hHolder (by positivity) have hfinal_S3 : (κ_cub / 2) * (Real.sqrt S_H)⁻¹ * (C_eq * Real.sqrt C_eq)⁻¹ * cheskidovV r c N a * Real.sqrt (cheskidovV r c N a) ≤ (κ_cub / 2) * S3 := by have hcoeff_nn : 0 ≤ (κ_cub / 2) * (Real.sqrt S_H)⁻¹ * (C_eq * Real.sqrt C_eq)⁻¹ := by have : 0 < Real.sqrt S_H := Real.sqrt_pos.mpr hSH_pos have : 0 < Real.sqrt C_eq := Real.sqrt_pos.mpr hCeq_pos positivity have hmul := mul_le_mul_of_nonneg_left hV32 hcoeff_nn have hSH_ne : Real.sqrt S_H ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr hSH_pos) have hCeq_ne : C_eq * Real.sqrt C_eq ≠ 0 := ne_of_gt (mul_pos hCeq_pos (Real.sqrt_pos.mpr hCeq_pos)) have hsimp : (κ_cub / 2) * (Real.sqrt S_H)⁻¹ * (C_eq * Real.sqrt C_eq)⁻¹ * ((C_eq * Real.sqrt C_eq) * (Real.sqrt S_H * S3)) = (κ_cub / 2) * S3 := by field_simp [hSH_ne, hCeq_ne] linarith only [hmul, hsimp] change (κ_cub / 2) * (Real.sqrt S_H)⁻¹ * (C_eq * Real.sqrt C_eq)⁻¹ * cheskidovV r c N a * Real.sqrt (cheskidovV r c N a) - (16 * C_v ^ 3 * ν ^ 3) / (27 * κ_cub ^ 2 * (1 - ρ_visc)) ≤ cheskidovDV lam α θ ν r c N a dsimp only [S3, w, d, v] at hdV_eq hnonlin hD_bound hD_absorb hfinal_S3 change κ_cub * _ ≤ _ at hnonlin linarith only [hdV_eq, hnonlin, hD_bound, hD_absorb, hfinal_S3] /-- Tao delayed-pump energy sequence at exact 3D Navier–Stokes scaling (`α = 5/2, θ = 1`): `E₀ = E0`, `Δt_n = C₀ * (4 √2)^(-n) / √(E_n)`, `E_{n+1} = η E_n exp(-2 ν 4^(n+1) Δt_n)`. -/ def taoEnergy (ν E₀ C₀ η : ℝ) : ℕ → ℝ | 0 => E₀ | n + 1 => let En := taoEnergy ν E₀ C₀ η n let dt := C₀ * ((4 * Real.sqrt 2)⁻¹) ^ n / Real.sqrt En η * En * Real.exp (-(2 * ν * 4 ^ (n + 1) * dt)) /-- Octave jump duration `Δt_n = C₀ * 2^(-5n/2) / √(E_n)` at exact 3D NS scaling. -/ def taoDt (ν E₀ C₀ η : ℝ) (n : ℕ) : ℝ := C₀ * ((4 * Real.sqrt 2)⁻¹) ^ n / Real.sqrt (taoEnergy ν E₀ C₀ η n) private lemma sqrt_pow_of_nonneg {x : ℝ} (hx : 0 ≤ x) (n : ℕ) : Real.sqrt (x ^ n) = (Real.sqrt x) ^ n := by induction n with | zero => simp | succ n ih => rw [pow_succ, pow_succ, Real.sqrt_mul (pow_nonneg hx n), ih] private lemma taoEnergy_pos {ν E₀ C₀ η : ℝ} (hE₀ : 0 < E₀) (hη : 0 < η) (n : ℕ) : 0 < taoEnergy ν E₀ C₀ η n := by induction n with | zero => exact hE₀ | succ n ih => simp only [taoEnergy] exact mul_pos (mul_pos hη ih) (Real.exp_pos _) /-- Exact algebraic simplification of the Tao viscous argument at exact 3D NS scaling: `2 ν 4^(n+1) (C₀ (4 √2)^(-n) / √E) = (8 ν C₀ / √E) * (√2)^(-n)`. -/ private lemma tao_visc_arg_eq (ν C₀ E : ℝ) (n : ℕ) : 2 * ν * 4 ^ (n + 1) * (C₀ * ((4 * Real.sqrt 2)⁻¹) ^ n / Real.sqrt E) = (8 * ν * C₀ / Real.sqrt E) * ((Real.sqrt 2)⁻¹) ^ n := by have h4pow : (4 : ℝ) ^ (n + 1) * ((4 * Real.sqrt 2)⁻¹) ^ n = 4 * ((Real.sqrt 2)⁻¹) ^ n := by rw [pow_succ', mul_assoc, ← mul_pow] congr 1 congr 1 rw [mul_inv, ← mul_assoc, mul_inv_cancel₀ (by norm_num : (4 : ℝ) ≠ 0), one_mul] calc 2 * ν * 4 ^ (n + 1) * (C₀ * ((4 * Real.sqrt 2)⁻¹) ^ n / Real.sqrt E) = (2 * ν * C₀ / Real.sqrt E) * (4 ^ (n + 1) * ((4 * Real.sqrt 2)⁻¹) ^ n) := by ring _ = (2 * ν * C₀ / Real.sqrt E) * (4 * ((Real.sqrt 2)⁻¹) ^ n) := by rw [h4pow] _ = (8 * ν * C₀ / Real.sqrt E) * ((Real.sqrt 2)⁻¹) ^ n := by ring /-- **Theorem 4 (`tao_delayed_pump_sharp_half_threshold`)**: Exact sharp phase transition at `η_crit = 1/2` for Tao's delayed-pump energy cascade at exact 3D Navier–Stokes scaling (`α = 5/2, θ = 1`, `ν > 0, E₀ > 0, C₀ > 0, 0 < η ≤ 1`): - **Part A (Supercritical Blowup for `1/2 < η ≤ 1`):** If `E₀` exceeds the explicit supercritical threshold `(8 √2 ν C₀ / ((1 - (√(2η))⁻¹) log 2))²`, then for every `n : ℕ`: 1. `E_n ≥ (1/2) η^n E₀` (viscous survival), 2. `4^n E_n ≥ (1/2) (4η)^n E₀` with `4^n E_n → +∞` (exponential `H¹` enstrophy blowup), 3. `∑_{k < n} Δt_k ≤ (√2 C₀ / √E₀) / (1 - (√(32 η))⁻¹)` (strictly finite blowup time `T* < ∞`). - **Part B (Unconditional Viscous Arrest for `0 < η ≤ 1/2`, INCLUDING `η = 1/2`):** For EVERY `ν > 0, E₀ > 0, C₀ > 0`, letting `γ = 8 ν C₀ / √E₀ > 0`: 1. `E_n ≤ η^n E₀ exp(-γ n)` for all `n : ℕ`, 2. For every `n₀ : ℕ` with `2 log 2 ≤ γ (1 + γ n₀ / 2)` and every `n ≥ n₀`, `4^(n+1) E_{n+1} ≤ (1/2) (4^n E_n)`, 3. `4^n E_n → 0` as `n → ∞` (unconditional viscous arrest!). -/ theorem tao_delayed_pump_sharp_half_threshold (ν E₀ C₀ η : ℝ) (hν : 0 < ν) (hE₀ : 0 < E₀) (hC₀ : 0 < C₀) (hη0 : 0 < η) (_hη1 : η ≤ 1) : (1 / 2 < η → (8 * Real.sqrt 2 * ν * C₀ / ((1 - (Real.sqrt (2 * η))⁻¹) * Real.log 2)) ^ 2 ≤ E₀ → (∀ n : ℕ, (1 / 2 : ℝ) * η ^ n * E₀ ≤ taoEnergy ν E₀ C₀ η n) ∧ (∀ n : ℕ, (1 / 2 : ℝ) * (4 * η) ^ n * E₀ ≤ 4 ^ n * taoEnergy ν E₀ C₀ η n) ∧ Filter.Tendsto (fun n : ℕ => 4 ^ n * taoEnergy ν E₀ C₀ η n) Filter.atTop Filter.atTop ∧ (∀ n : ℕ, ∑ k ∈ Finset.range n, taoDt ν E₀ C₀ η k ≤ (Real.sqrt 2 * C₀ / Real.sqrt E₀) * (1 - (Real.sqrt (32 * η))⁻¹)⁻¹)) ∧ (η ≤ 1 / 2 → let γ : ℝ := 8 * ν * C₀ / Real.sqrt E₀ (∀ n : ℕ, taoEnergy ν E₀ C₀ η n ≤ η ^ n * E₀ * Real.exp (-(γ * (n : ℝ)))) ∧ (∀ n₀ : ℕ, 2 * Real.log 2 ≤ γ * (1 + γ * (n₀ : ℝ) / 2) → ∀ n : ℕ, n₀ ≤ n → 4 ^ (n + 1) * taoEnergy ν E₀ C₀ η (n + 1) ≤ (1 / 2 : ℝ) * (4 ^ n * taoEnergy ν E₀ C₀ η n)) ∧ Filter.Tendsto (fun n : ℕ => 4 ^ n * taoEnergy ν E₀ C₀ η n) Filter.atTop (nhds 0)) := by constructor · -- Part A: Supercritical Blowup (1/2 < η ≤ 1) intro hη_gt hE_sup let q : ℝ := (Real.sqrt (2 * η))⁻¹ have h2η_gt1 : 1 < 2 * η := by linarith have hsq2η_gt1 : 1 < Real.sqrt (2 * η) := by rw [← Real.sqrt_one]; exact Real.sqrt_lt_sqrt zero_le_one h2η_gt1 have hq_pos : 0 < q := inv_pos.mpr (by linarith) have hq_lt1 : q < 1 := inv_lt_one_of_one_lt₀ hsq2η_gt1 have h1mq_pos : 0 < 1 - q := by linarith have hlog2_pos : 0 < Real.log 2 := Real.log_pos (by norm_num) have hE_lin : 8 * Real.sqrt 2 * ν * C₀ / Real.sqrt E₀ * (1 - q)⁻¹ ≤ Real.log 2 := by have hnum_pos : 0 < 8 * Real.sqrt 2 * ν * C₀ / ((1 - q) * Real.log 2) := by positivity have hsq_le : 8 * Real.sqrt 2 * ν * C₀ / ((1 - q) * Real.log 2) ≤ Real.sqrt E₀ := by rw [← Real.sqrt_sq (le_of_lt hnum_pos)] exact Real.sqrt_le_sqrt hE_sup have hsqE_pos : 0 < Real.sqrt E₀ := Real.sqrt_pos.mpr hE₀ rw [div_le_iff₀ (mul_pos h1mq_pos hlog2_pos)] at hsq_le have h1 : 8 * Real.sqrt 2 * ν * C₀ / Real.sqrt E₀ ≤ (1 - q) * Real.log 2 := by rw [div_le_iff₀ hsqE_pos]; linarith have h2 := mul_le_mul_of_nonneg_right h1 (le_of_lt (inv_pos.mpr h1mq_pos)) have hcancel : (1 - q) * Real.log 2 * (1 - q)⁻¹ = Real.log 2 := by rw [mul_comm (1 - q), mul_assoc, mul_inv_cancel₀ (ne_of_gt h1mq_pos), mul_one] linarith -- Strong induction: track exact product representation E_n = η^n E₀ exp(-S_n) with S_n ≤ log 2 have hsurv_strong : ∀ n : ℕ, ∃ S : ℝ, taoEnergy ν E₀ C₀ η n = η ^ n * E₀ * Real.exp (-S) ∧ S ≤ (8 * Real.sqrt 2 * ν * C₀ / Real.sqrt E₀) * (∑ k ∈ Finset.range n, q ^ k) := by intro n induction n with | zero => refine ⟨0, by simp [taoEnergy], by simp⟩ | succ n ih => obtain ⟨S, hEn, hSle⟩ := ih have hS_log2 : S ≤ Real.log 2 := by have hgeom := sum_geom_le_inv q (le_of_lt hq_pos) hq_lt1 n have hfac_nn : 0 ≤ 8 * Real.sqrt 2 * ν * C₀ / Real.sqrt E₀ := by positivity exact hSle.trans ((mul_le_mul_of_nonneg_left hgeom hfac_nn).trans hE_lin) have hEn_lb : (1 / 2 : ℝ) * η ^ n * E₀ ≤ taoEnergy ν E₀ C₀ η n := by rw [hEn] have hexp_lb : (1 / 2 : ℝ) ≤ Real.exp (-S) := by have : Real.exp (-Real.log 2) ≤ Real.exp (-S) := Real.exp_le_exp.mpr (by linarith) rw [Real.exp_neg, Real.exp_log two_pos] at this simpa [one_div] using this have hηE_nn : 0 ≤ η ^ n * E₀ := by positivity nlinarith let varg : ℝ := 2 * ν * 4 ^ (n + 1) * (C₀ * ((4 * Real.sqrt 2)⁻¹) ^ n / Real.sqrt (taoEnergy ν E₀ C₀ η n)) have hvarg_le : varg ≤ (8 * Real.sqrt 2 * ν * C₀ / Real.sqrt E₀) * q ^ n := by dsimp only [varg] rw [tao_visc_arg_eq] have hsq_lb : Real.sqrt (1 / 2 * η ^ n * E₀) ≤ Real.sqrt (taoEnergy ν E₀ C₀ η n) := Real.sqrt_le_sqrt hEn_lb have hsq_pos : 0 < Real.sqrt (1 / 2 * η ^ n * E₀) := Real.sqrt_pos.mpr (by positivity) have hinv_le : (Real.sqrt (taoEnergy ν E₀ C₀ η n))⁻¹ ≤ (Real.sqrt (1 / 2 * η ^ n * E₀))⁻¹ := (inv_le_inv₀ (Real.sqrt_pos.mpr (taoEnergy_pos hE₀ hη0 n)) hsq_pos).mpr hsq_lb have hstep : (8 * ν * C₀ / Real.sqrt (taoEnergy ν E₀ C₀ η n)) * ((Real.sqrt 2)⁻¹) ^ n ≤ (8 * ν * C₀ / Real.sqrt (1 / 2 * η ^ n * E₀)) * ((Real.sqrt 2)⁻¹) ^ n := by simp only [div_eq_mul_inv] exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hinv_le (by positivity)) (by positivity) have hident : (8 * ν * C₀ / Real.sqrt (1 / 2 * η ^ n * E₀)) * ((Real.sqrt 2)⁻¹) ^ n = (8 * Real.sqrt 2 * ν * C₀ / Real.sqrt E₀) * q ^ n := by have hsq_split : Real.sqrt (1 / 2 * η ^ n * E₀) = (Real.sqrt 2)⁻¹ * (Real.sqrt η) ^ n * Real.sqrt E₀ := by rw [Real.sqrt_mul (by positivity), Real.sqrt_mul (by positivity), one_div, Real.sqrt_inv, sqrt_pow_of_nonneg (le_of_lt hη0)] have hq_split : q = (Real.sqrt 2)⁻¹ * (Real.sqrt η)⁻¹ := by dsimp only [q] rw [Real.sqrt_mul two_pos.le, mul_inv] rw [hsq_split, hq_split, mul_pow, inv_pow, inv_pow] have hsq2_ne : Real.sqrt 2 ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr two_pos) have hsqη_ne : (Real.sqrt η) ^ n ≠ 0 := ne_of_gt (pow_pos (Real.sqrt_pos.mpr hη0) n) have hsqE_ne : Real.sqrt E₀ ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr hE₀) field_simp [hsq2_ne, hsqη_ne, hsqE_ne] linarith refine ⟨S + varg, ?_, ?_⟩ · change η * taoEnergy ν E₀ C₀ η n * Real.exp (-varg) = η ^ (n + 1) * E₀ * Real.exp (-(S + varg)) rw [hEn] have hexp_mul : Real.exp (-S) * Real.exp (-varg) = Real.exp (-(S + varg)) := by rw [← Real.exp_add]; congr 1; ring calc η * (η ^ n * E₀ * Real.exp (-S)) * Real.exp (-varg) = η ^ (n + 1) * E₀ * (Real.exp (-S) * Real.exp (-varg)) := by rw [pow_succ]; ring _ = η ^ (n + 1) * E₀ * Real.exp (-(S + varg)) := by rw [hexp_mul] · rw [Finset.sum_range_succ, mul_add] linarith have hsurv : ∀ n : ℕ, (1 / 2 : ℝ) * η ^ n * E₀ ≤ taoEnergy ν E₀ C₀ η n := by intro n obtain ⟨S, hEn, hSle⟩ := hsurv_strong n have hS_log2 : S ≤ Real.log 2 := by have hgeom := sum_geom_le_inv q (le_of_lt hq_pos) hq_lt1 n exact hSle.trans ((mul_le_mul_of_nonneg_left hgeom (by positivity)).trans hE_lin) rw [hEn] have hexp_lb : (1 / 2 : ℝ) ≤ Real.exp (-S) := by have : Real.exp (-Real.log 2) ≤ Real.exp (-S) := Real.exp_le_exp.mpr (by linarith) rw [Real.exp_neg, Real.exp_log two_pos] at this simpa [one_div] using this have hηE_nn : 0 ≤ η ^ n * E₀ := by positivity nlinarith have henst : ∀ n : ℕ, (1 / 2 : ℝ) * (4 * η) ^ n * E₀ ≤ 4 ^ n * taoEnergy ν E₀ C₀ η n := by intro n have h := mul_le_mul_of_nonneg_left (hsurv n) (by positivity : (0 : ℝ) ≤ 4 ^ n) rw [mul_pow] linarith have htend : Filter.Tendsto (fun n : ℕ => 4 ^ n * taoEnergy ν E₀ C₀ η n) Filter.atTop Filter.atTop := by have hbase : 1 < 4 * η := by linarith have ht1 : Filter.Tendsto (fun n : ℕ => (4 * η) ^ n) Filter.atTop Filter.atTop := tendsto_pow_atTop_atTop_of_one_lt hbase have ht2 : Filter.Tendsto (fun n : ℕ => ((1 / 2 : ℝ) * E₀) * (4 * η) ^ n) Filter.atTop Filter.atTop := Filter.Tendsto.const_mul_atTop (by positivity) ht1 exact Filter.tendsto_atTop_mono (fun n => by linarith [henst n]) ht2 have htime : ∀ n : ℕ, ∑ k ∈ Finset.range n, taoDt ν E₀ C₀ η k ≤ (Real.sqrt 2 * C₀ / Real.sqrt E₀) * (1 - (Real.sqrt (32 * η))⁻¹)⁻¹ := by intro n let r_t : ℝ := (Real.sqrt (32 * η))⁻¹ have h32η : 1 < 32 * η := by linarith have hrt_nn : 0 ≤ r_t := by positivity have hrt_lt1 : r_t < 1 := inv_lt_one_of_one_lt₀ (by rw [← Real.sqrt_one]; exact Real.sqrt_lt_sqrt zero_le_one h32η) have hpt : ∀ k ∈ Finset.range n, taoDt ν E₀ C₀ η k ≤ (Real.sqrt 2 * C₀ / Real.sqrt E₀) * r_t ^ k := by intro k _ dsimp only [taoDt] have hsq_lb : Real.sqrt (1 / 2 * η ^ k * E₀) ≤ Real.sqrt (taoEnergy ν E₀ C₀ η k) := Real.sqrt_le_sqrt (hsurv k) have hsq_pos : 0 < Real.sqrt (1 / 2 * η ^ k * E₀) := Real.sqrt_pos.mpr (by positivity) have hinv_le : (Real.sqrt (taoEnergy ν E₀ C₀ η k))⁻¹ ≤ (Real.sqrt (1 / 2 * η ^ k * E₀))⁻¹ := (inv_le_inv₀ (Real.sqrt_pos.mpr (taoEnergy_pos hE₀ hη0 k)) hsq_pos).mpr hsq_lb have hstep : C₀ * ((4 * Real.sqrt 2)⁻¹) ^ k / Real.sqrt (taoEnergy ν E₀ C₀ η k) ≤ C₀ * ((4 * Real.sqrt 2)⁻¹) ^ k / Real.sqrt (1 / 2 * η ^ k * E₀) := by simp only [div_eq_mul_inv] exact mul_le_mul_of_nonneg_left hinv_le (by positivity) have hid : C₀ * ((4 * Real.sqrt 2)⁻¹) ^ k / Real.sqrt (1 / 2 * η ^ k * E₀) = (Real.sqrt 2 * C₀ / Real.sqrt E₀) * r_t ^ k := by have hsq_split : Real.sqrt (1 / 2 * η ^ k * E₀) = (Real.sqrt 2)⁻¹ * (Real.sqrt η) ^ k * Real.sqrt E₀ := by rw [Real.sqrt_mul (by positivity), Real.sqrt_mul (by positivity), one_div, Real.sqrt_inv, sqrt_pow_of_nonneg (le_of_lt hη0)] have hrt_eq : r_t = (4 * Real.sqrt 2)⁻¹ * (Real.sqrt η)⁻¹ := by dsimp only [r_t] have h32 : Real.sqrt 32 = 4 * Real.sqrt 2 := by have : (32 : ℝ) = 4 ^ 2 * 2 := by norm_num rw [this, Real.sqrt_mul (by positivity), Real.sqrt_sq (by norm_num)] rw [Real.sqrt_mul (by positivity), h32, mul_inv] rw [hsq_split, hrt_eq, mul_pow, inv_pow, inv_pow] have hsq2_ne : Real.sqrt 2 ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr two_pos) have hsqη_ne : (Real.sqrt η) ^ k ≠ 0 := ne_of_gt (pow_pos (Real.sqrt_pos.mpr hη0) k) have hsqE_ne : Real.sqrt E₀ ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr hE₀) field_simp [hsq2_ne, hsqη_ne, hsqE_ne] linarith have hsum := Finset.sum_le_sum hpt rw [← Finset.mul_sum] at hsum have hgeom := sum_geom_le_inv r_t hrt_nn hrt_lt1 n exact hsum.trans (mul_le_mul_of_nonneg_left hgeom (by positivity)) exact ⟨hsurv, henst, htend, htime⟩ · -- Part B: Unconditional Viscous Arrest (0 < η ≤ 1/2, INCLUDING η = 1/2!) intro hη_le dsimp only let γ : ℝ := 8 * ν * C₀ / Real.sqrt E₀ have hγ_pos : 0 < γ := by positivity have h2η_le1 : 2 * η ≤ 1 := by linarith have hsq2η_le1 : Real.sqrt (2 * η) ≤ 1 := by rw [← Real.sqrt_one]; exact Real.sqrt_le_sqrt h2η_le1 have hq_ge1 : 1 ≤ (Real.sqrt (2 * η))⁻¹ := (one_le_inv₀ (Real.sqrt_pos.mpr (by positivity))).mpr hsq2η_le1 -- Step B1: Trivial bound E_n ≤ η^n E₀ by induction, then exponential decay E_n ≤ η^n E₀ exp(-γ n) have hE_triv : ∀ n : ℕ, taoEnergy ν E₀ C₀ η n ≤ η ^ n * E₀ := by intro n induction n with | zero => simp [taoEnergy] | succ n ih => simp only [taoEnergy] have hv_nn : 0 ≤ 2 * ν * 4 ^ (n + 1) * (C₀ * ((4 * Real.sqrt 2)⁻¹) ^ n / Real.sqrt (taoEnergy ν E₀ C₀ η n)) := by have : 0 < taoEnergy ν E₀ C₀ η n := taoEnergy_pos hE₀ hη0 n; positivity have hexp_le1 : Real.exp (-(2 * ν * 4 ^ (n + 1) * (C₀ * ((4 * Real.sqrt 2)⁻¹) ^ n / Real.sqrt (taoEnergy ν E₀ C₀ η n)))) ≤ 1 := Real.exp_le_one_iff.mpr (by linarith) have hEn_pos : 0 < taoEnergy ν E₀ C₀ η n := taoEnergy_pos hE₀ hη0 n calc η * taoEnergy ν E₀ C₀ η n * Real.exp _ ≤ η * taoEnergy ν E₀ C₀ η n * 1 := mul_le_mul_of_nonneg_left hexp_le1 (by positivity) _ = η * taoEnergy ν E₀ C₀ η n := mul_one _ _ ≤ η * (η ^ n * E₀) := mul_le_mul_of_nonneg_left ih (le_of_lt hη0) _ = η ^ (n + 1) * E₀ := by rw [pow_succ]; ring have hE_exp : ∀ n : ℕ, taoEnergy ν E₀ C₀ η n ≤ η ^ n * E₀ * Real.exp (-(γ * (n : ℝ))) := by intro n induction n with | zero => simp [taoEnergy] | succ n ih => simp only [taoEnergy] have hv_ge : γ ≤ 2 * ν * 4 ^ (n + 1) * (C₀ * ((4 * Real.sqrt 2)⁻¹) ^ n / Real.sqrt (taoEnergy ν E₀ C₀ η n)) := by rw [tao_visc_arg_eq] have hsq_le : Real.sqrt (taoEnergy ν E₀ C₀ η n) ≤ (Real.sqrt η) ^ n * Real.sqrt E₀ := by rw [← sqrt_pow_of_nonneg (le_of_lt hη0), ← Real.sqrt_mul (by positivity)] exact Real.sqrt_le_sqrt (hE_triv n) have hsq_pos : 0 < Real.sqrt (taoEnergy ν E₀ C₀ η n) := Real.sqrt_pos.mpr (taoEnergy_pos hE₀ hη0 n) have hinv_ge : ((Real.sqrt η) ^ n * Real.sqrt E₀)⁻¹ ≤ (Real.sqrt (taoEnergy ν E₀ C₀ η n))⁻¹ := (inv_le_inv₀ (by positivity) hsq_pos).mpr hsq_le have hstep : (8 * ν * C₀ / ((Real.sqrt η) ^ n * Real.sqrt E₀)) * ((Real.sqrt 2)⁻¹) ^ n ≤ (8 * ν * C₀ / Real.sqrt (taoEnergy ν E₀ C₀ η n)) * ((Real.sqrt 2)⁻¹) ^ n := by simp only [div_eq_mul_inv] exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hinv_ge (by positivity)) (by positivity) have hpow_ge1 : (1 : ℝ) ≤ ((Real.sqrt (2 * η))⁻¹) ^ n := one_le_pow₀ hq_ge1 have hid : (8 * ν * C₀ / ((Real.sqrt η) ^ n * Real.sqrt E₀)) * ((Real.sqrt 2)⁻¹) ^ n = γ * ((Real.sqrt (2 * η))⁻¹) ^ n := by dsimp only [γ] rw [Real.sqrt_mul two_pos.le, mul_inv, mul_pow, inv_pow, inv_pow] have hsq2_ne : (Real.sqrt 2) ^ n ≠ 0 := ne_of_gt (pow_pos (Real.sqrt_pos.mpr two_pos) n) have hsqη_ne : (Real.sqrt η) ^ n ≠ 0 := ne_of_gt (pow_pos (Real.sqrt_pos.mpr hη0) n) have hsqE_ne : Real.sqrt E₀ ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr hE₀) field_simp [hsq2_ne, hsqη_ne, hsqE_ne] have hγ_le : γ ≤ γ * ((Real.sqrt (2 * η))⁻¹) ^ n := by nlinarith linarith have hexp_le : Real.exp (-(2 * ν * 4 ^ (n + 1) * (C₀ * ((4 * Real.sqrt 2)⁻¹) ^ n / Real.sqrt (taoEnergy ν E₀ C₀ η n)))) ≤ Real.exp (-γ) := Real.exp_le_exp.mpr (by linarith) have hEn_pos : 0 < taoEnergy ν E₀ C₀ η n := taoEnergy_pos hE₀ hη0 n calc η * taoEnergy ν E₀ C₀ η n * Real.exp _ ≤ η * (η ^ n * E₀ * Real.exp (-(γ * (n : ℝ)))) * Real.exp (-γ) := mul_le_mul (mul_le_mul_of_nonneg_left ih (le_of_lt hη0)) hexp_le (Real.exp_pos _).le (by positivity) _ = η ^ (n + 1) * E₀ * (Real.exp (-(γ * (n : ℝ))) * Real.exp (-γ)) := by rw [pow_succ]; ring _ = η ^ (n + 1) * E₀ * Real.exp (-(γ * ((n + 1 : ℕ) : ℝ))) := by rw [← Real.exp_add]; congr 1; congr 1; push_cast; ring -- Step B2: Feedback gives geometric halving 4^(n+1) E_{n+1} ≤ (1/2) (4^n E_n) for n ≥ n₀! have hhalve : ∀ n₀ : ℕ, 2 * Real.log 2 ≤ γ * (1 + γ * (n₀ : ℝ) / 2) → ∀ n : ℕ, n₀ ≤ n → 4 ^ (n + 1) * taoEnergy ν E₀ C₀ η (n + 1) ≤ (1 / 2 : ℝ) * (4 ^ n * taoEnergy ν E₀ C₀ η n) := by intro n₀ hn₀ n hle have hv_ge : 2 * Real.log 2 ≤ 2 * ν * 4 ^ (n + 1) * (C₀ * ((4 * Real.sqrt 2)⁻¹) ^ n / Real.sqrt (taoEnergy ν E₀ C₀ η n)) := by rw [tao_visc_arg_eq] have hsq_le : Real.sqrt (taoEnergy ν E₀ C₀ η n) ≤ (Real.sqrt η) ^ n * Real.sqrt E₀ * Real.exp (-(γ * (n : ℝ) / 2)) := by have hexp_sq : Real.sqrt (Real.exp (-(γ * (n : ℝ)))) = Real.exp (-(γ * (n : ℝ) / 2)) := by rw [← Real.exp_half]; congr 1; ring rw [← hexp_sq, ← sqrt_pow_of_nonneg (le_of_lt hη0), ← Real.sqrt_mul (by positivity), ← Real.sqrt_mul (by positivity)] exact Real.sqrt_le_sqrt (hE_exp n) have hsq_pos : 0 < Real.sqrt (taoEnergy ν E₀ C₀ η n) := Real.sqrt_pos.mpr (taoEnergy_pos hE₀ hη0 n) have hinv_ge : ((Real.sqrt η) ^ n * Real.sqrt E₀ * Real.exp (-(γ * (n : ℝ) / 2)))⁻¹ ≤ (Real.sqrt (taoEnergy ν E₀ C₀ η n))⁻¹ := (inv_le_inv₀ (by positivity) hsq_pos).mpr hsq_le have hstep : (8 * ν * C₀ / ((Real.sqrt η) ^ n * Real.sqrt E₀ * Real.exp (-(γ * (n : ℝ) / 2)))) * ((Real.sqrt 2)⁻¹) ^ n ≤ (8 * ν * C₀ / Real.sqrt (taoEnergy ν E₀ C₀ η n)) * ((Real.sqrt 2)⁻¹) ^ n := by simp only [div_eq_mul_inv] exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hinv_ge (by positivity)) (by positivity) have hid : (8 * ν * C₀ / ((Real.sqrt η) ^ n * Real.sqrt E₀ * Real.exp (-(γ * (n : ℝ) / 2)))) * ((Real.sqrt 2)⁻¹) ^ n = γ * ((Real.sqrt (2 * η))⁻¹) ^ n * Real.exp (γ * (n : ℝ) / 2) := by have hinv_exp : (Real.exp (-(γ * (n : ℝ) / 2)))⁻¹ = Real.exp (γ * (n : ℝ) / 2) := by rw [← Real.exp_neg, neg_neg] rw [div_eq_mul_inv, mul_inv, mul_inv, hinv_exp, Real.sqrt_mul two_pos.le, mul_inv, mul_pow, inv_pow, inv_pow] dsimp only [γ] have hsq2_ne : (Real.sqrt 2) ^ n ≠ 0 := ne_of_gt (pow_pos (Real.sqrt_pos.mpr two_pos) n) have hsqη_ne : (Real.sqrt η) ^ n ≠ 0 := ne_of_gt (pow_pos (Real.sqrt_pos.mpr hη0) n) have hsqE_ne : Real.sqrt E₀ ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr hE₀) field_simp [hsq2_ne, hsqη_ne, hsqE_ne] have hpow_ge1 : (1 : ℝ) ≤ ((Real.sqrt (2 * η))⁻¹) ^ n := one_le_pow₀ hq_ge1 have hexp_ge : 1 + γ * (n : ℝ) / 2 ≤ Real.exp (γ * (n : ℝ) / 2) := by linarith [Real.add_one_le_exp (γ * (n : ℝ) / 2)] have hmono : (n₀ : ℝ) ≤ (n : ℝ) := Nat.cast_le.mpr hle have hlin : γ * (1 + γ * (n₀ : ℝ) / 2) ≤ γ * (1 + γ * (n : ℝ) / 2) := by have h1 : γ * (n₀ : ℝ) / 2 ≤ γ * (n : ℝ) / 2 := by nlinarith only [hγ_pos, hmono] nlinarith only [hγ_pos, h1] have hmid : γ * (1 + γ * (n : ℝ) / 2) ≤ γ * ((Real.sqrt (2 * η))⁻¹) ^ n * Real.exp (γ * (n : ℝ) / 2) := by have h1 : γ * (1 + γ * (n : ℝ) / 2) ≤ γ * Real.exp (γ * (n : ℝ) / 2) := mul_le_mul_of_nonneg_left hexp_ge (le_of_lt hγ_pos) have h2 : γ * Real.exp (γ * (n : ℝ) / 2) ≤ γ * ((Real.sqrt (2 * η))⁻¹) ^ n * Real.exp (γ * (n : ℝ) / 2) := by have := mul_le_mul_of_nonneg_left hpow_ge1 (le_of_lt hγ_pos) nlinarith [Real.exp_pos (γ * (n : ℝ) / 2)] linarith linarith have hexp_le : Real.exp (-(2 * ν * 4 ^ (n + 1) * (C₀ * ((4 * Real.sqrt 2)⁻¹) ^ n / Real.sqrt (taoEnergy ν E₀ C₀ η n)))) ≤ (1 / 4 : ℝ) := by have h1 : Real.exp (-(2 * ν * 4 ^ (n + 1) * (C₀ * ((4 * Real.sqrt 2)⁻¹) ^ n / Real.sqrt (taoEnergy ν E₀ C₀ η n)))) ≤ Real.exp (-(2 * Real.log 2)) := Real.exp_le_exp.mpr (by linarith) have h2 : Real.exp (-(2 * Real.log 2)) = (1 / 4 : ℝ) := by rw [show -(2 * Real.log 2) = -(Real.log 2 + Real.log 2) by ring, Real.exp_neg, Real.exp_add, Real.exp_log two_pos] norm_num linarith simp only [taoEnergy] have h4η_le2 : 4 * η ≤ 2 := by linarith have hEn_pos : 0 < taoEnergy ν E₀ C₀ η n := taoEnergy_pos hE₀ hη0 n have h4n_pos : (0 : ℝ) < 4 ^ n := by positivity calc 4 ^ (n + 1) * (η * taoEnergy ν E₀ C₀ η n * Real.exp _) = (4 * η) * Real.exp _ * (4 ^ n * taoEnergy ν E₀ C₀ η n) := by rw [pow_succ]; ring _ ≤ 2 * (1 / 4 : ℝ) * (4 ^ n * taoEnergy ν E₀ C₀ η n) := by have hmul := mul_le_mul h4η_le2 hexp_le (Real.exp_pos _).le (by norm_num) exact mul_le_mul_of_nonneg_right hmul (by positivity) _ = (1 / 2 : ℝ) * (4 ^ n * taoEnergy ν E₀ C₀ η n) := by ring -- Step B3: Existence of n₀ + squeeze theorem gives 4^n E_n → 0! have htend0 : Filter.Tendsto (fun n : ℕ => 4 ^ n * taoEnergy ν E₀ C₀ η n) Filter.atTop (nhds 0) := by obtain ⟨n₀, hn₀_gt⟩ := exists_nat_gt (4 * Real.log 2 / γ ^ 2) have hn₀_cond : 2 * Real.log 2 ≤ γ * (1 + γ * (n₀ : ℝ) / 2) := by have h1 : 4 * Real.log 2 < γ ^ 2 * (n₀ : ℝ) := by rw [div_lt_iff₀ (sq_pos_of_pos hγ_pos)] at hn₀_gt; linarith nlinarith let M : ℝ := 4 ^ n₀ * taoEnergy ν E₀ C₀ η n₀ have hgeom_decay : ∀ k : ℕ, 4 ^ (n₀ + k) * taoEnergy ν E₀ C₀ η (n₀ + k) ≤ (1 / 2 : ℝ) ^ k * M := by intro k induction k with | zero => simp [M] | succ k ih => have hstep := hhalve n₀ hn₀_cond (n₀ + k) (Nat.le_add_right n₀ k) rw [Nat.add_assoc] at hstep calc 4 ^ (n₀ + (k + 1)) * taoEnergy ν E₀ C₀ η (n₀ + (k + 1)) ≤ (1 / 2 : ℝ) * (4 ^ (n₀ + k) * taoEnergy ν E₀ C₀ η (n₀ + k)) := hstep _ ≤ (1 / 2 : ℝ) * ((1 / 2 : ℝ) ^ k * M) := mul_le_mul_of_nonneg_left ih (by norm_num) _ = (1 / 2 : ℝ) ^ (k + 1) * M := by rw [pow_succ]; ring have hshift_tend : Filter.Tendsto (fun k : ℕ => 4 ^ (n₀ + k) * taoEnergy ν E₀ C₀ η (n₀ + k)) Filter.atTop (nhds 0) := by refine squeeze_zero (fun k => mul_nonneg (by positivity) (taoEnergy_pos hE₀ hη0 (n₀ + k)).le) hgeom_decay ?_ simpa using (tendsto_pow_atTop_nhds_zero_of_lt_one (by norm_num : (0 : ℝ) ≤ 1 / 2) (by norm_num : (1 / 2 : ℝ) < 1)).mul_const M exact (Filter.tendsto_add_atTop_iff_nat n₀).mp (by simpa [Nat.add_comm] using hshift_tend) exact ⟨hE_exp, hhalve, htend0⟩ /-! ## Part II: Attack 2 — Axisymmetric Swirling 3D Navier–Stokes Geometry & Viscous Arrest -/ /-- Cylindrical velocity gradient matrix `G` at `r > 0` for an axisymmetric swirling flow. -/ def axiGrad (a b c d e s gθ hθ : ℝ) : Mat3 := !![a, -s, b; gθ, c, hθ; d, 0, e] /-- Cylindrical vorticity vector `ω = (-h_θ, b - d, g_θ + s)`. -/ def axiOmega (b d s gθ hθ : ℝ) : Vec3 := ![-hθ, b - d, gθ + s] /-- **Theorem 5 (`axisymmetric_swirl_shear_cancellation`)**: Unconstrained pointwise cylindrical swirl-shear cancellation identity (no incompressibility needed): the off-diagonal swirl shear terms `-g_θ h_θ + h_θ g_θ = 0` cancel identically, isolating meridional strain stretching, ring-expansion stretching `c ω_θ²`, and swirl-torque production `-2 s ω_r ω_θ`. -/ theorem axisymmetric_swirl_shear_cancellation (a b c d e s gθ hθ : ℝ) : let G := axiGrad a b c d e s gθ hθ let S := symPart G let ω := axiOmega b d s gθ hθ ω ⬝ᵥ (S *ᵥ ω) = ω ⬝ᵥ (G *ᵥ ω) ∧ ω ⬝ᵥ (S *ᵥ ω) = ((ω 0) ^ 2 * a + (ω 2) ^ 2 * e + ω 0 * ω 2 * (b + d)) + c * (ω 1) ^ 2 - 2 * s * ω 0 * ω 1 := by dsimp only constructor <;> · simp [axiGrad, axiOmega, symPart, dotProduct, Matrix.mulVec, Fin.sum_univ_three] ring /-- **Theorem 6 (`axisymmetric_traceless_strain_ceiling_and_viscous_arrest`)**: Under incompressibility `a + c + e = 0`: 1. The cylindrical rate-of-strain tensor `S = symPart G` obeys the sharp traceless ceiling `ωᵀ S ω ≤ √(2/3) ‖S‖_F |ω|²` (via `LinearAlgebra3D.traceless_sym_quadratic_bound`). 2. Global enstrophy balance `P_merid + P_ring + P_swirl - ν D_ω = ν D_ω (S_ratio - 1)` gives the exact viscous-arrest equivalence `P_stretch - ν D_ω ≤ 0 ↔ S_ratio ≤ 1`. -/ theorem axisymmetric_traceless_strain_ceiling_and_viscous_arrest (a b c d e s gθ hθ : ℝ) (hdiv : a + c + e = 0) (P_merid P_ring P_swirl ν Dω : ℝ) (hν : 0 < ν) (hDω : 0 < Dω) : let S := symPart (axiGrad a b c d e s gθ hθ) let ω := axiOmega b d s gθ hθ let P_tot := P_merid + P_ring + P_swirl let S_ratio := P_tot / (ν * Dω) (ω ⬝ᵥ (S *ᵥ ω) ≤ Real.sqrt (2 / 3 : ℝ) * Real.sqrt (hsNormSq S) * vecSqNorm ω) ∧ (P_tot - ν * Dω = ν * Dω * (S_ratio - 1)) ∧ (P_tot - ν * Dω ≤ 0 ↔ S_ratio ≤ 1) := by dsimp only have hSsym : (symPart (axiGrad a b c d e s gθ hθ))ᵀ = symPart (axiGrad a b c d e s gθ hθ) := symPart_transpose _ have hStr : (symPart (axiGrad a b c d e s gθ hθ)).trace = 0 := by simp [symPart, axiGrad, Matrix.trace, Matrix.diag, Fin.sum_univ_three] linarith have hνD : 0 < ν * Dω := mul_pos hν hDω refine ⟨traceless_sym_quadratic_bound _ hSsym hStr _, ?_, ?_⟩ · field_simp [ne_of_gt hνD] · rw [div_le_one hνD] constructor <;> intro h <;> linarith /-! ## Part III: Attack 3 & Adversarial Discovery — 3D Waleffe Helical Leray Ceilings vs. Mixed-Helicity Escape -/ abbrev Vec3C := Fin 3 → ℂ /-- Complex bilinear dot product `∑_i u_i v_i`. -/ def dotC (u v : Vec3C) : ℂ := ∑ i : Fin 3, u i * v i /-- Hermitian inner product `∑_i star(u_i) v_i`. -/ def innerC (u v : Vec3C) : ℂ := ∑ i : Fin 3, star (u i) * v i /-- Complex 3D cross product `u × v`. -/ def crossC (u v : Vec3C) : Vec3C | 0 => u 1 * v 2 - u 2 * v 1 | 1 => u 2 * v 0 - u 0 * v 2 | 2 => u 0 * v 1 - u 1 * v 0 /-- Embed a real 3-vector `k : Vec3` into `Vec3C`. -/ def ofReal3 (k : Vec3) : Vec3C := fun i => (k i : ℂ) /-- Squared Euclidean norm in `ℂ³`: `∑_i |w_i|²`. -/ def normSqC (w : Vec3C) : ℝ := ∑ i : Fin 3, Complex.normSq (w i) /-- Fourier-space Leray projector `P_k(w) = w - ((k · w) / |k|²) k` on `ℂ³`. -/ def lerayProjC (k : Vec3) (w : Vec3C) : Vec3C := fun i => w i - (dotC (ofReal3 k) w / ((vecDot k k : ℝ) : ℂ)) * (k i : ℂ) /-- Real 3D cross product on `Vec3`. -/ def crossR (u v : Vec3) : Vec3 | 0 => u 1 * v 2 - u 2 * v 1 | 1 => u 2 * v 0 - u 0 * v 2 | 2 => u 0 * v 1 - u 1 * v 0 /-- Basis-free definition of a normalized 3D helical eigenmode `h^s(k) ∈ ℂ³`: `|k| = κ > 0`, `s ∈ {±1}`, `|h|² = 1`, `k · h = 0`, and `i (k × h) = (s κ) h`. -/ def IsHelicalMode (k : Vec3) (κ s : ℝ) (h : Vec3C) : Prop := 0 < κ ∧ vecDot k k = κ ^ 2 ∧ s ^ 2 = 1 ∧ normSqC h = 1 ∧ dotC (ofReal3 k) h = 0 ∧ Complex.I • crossC (ofReal3 k) h = ((s * κ : ℝ) : ℂ) • h /-- Real-and-imaginary decomposition of a helical mode `h = u + i v`: `k · u = 0`, `k · v = 0`, `k × u = (s κ) v`, `k × v = -(s κ) u`, `|u|² = |v|² = 1/2`, `u · v = 0`, and `u × v = (s / (2 κ)) k`. -/ private lemma helical_re_im_props {k : Vec3} {κ s : ℝ} {h : Vec3C} (hh : IsHelicalMode k κ s h) : let u : Vec3 := fun i => (h i).re let v : Vec3 := fun i => (h i).im (vecDot k u = 0) ∧ (vecDot k v = 0) ∧ (∀ i, crossR k u i = s * κ * v i) ∧ (∀ i, crossR k v i = -(s * κ) * u i) ∧ (vecDot u v = 0) ∧ (vecSqNorm u = 1 / 2) ∧ (vecSqNorm v = 1 / 2) ∧ (∀ i, crossR u v i = (s / (2 * κ)) * k i) := by rcases hh with ⟨hκ, hkk, hs, hnorm, hdiv, heig⟩ dsimp only let u : Vec3 := fun i => (h i).re let v : Vec3 := fun i => (h i).im have hku : vecDot k u = 0 := by have := congrArg Complex.re hdiv simpa [dotC, ofReal3, vecDot, u, Fin.sum_univ_three] using this have hkv : vecDot k v = 0 := by have := congrArg Complex.im hdiv simpa [dotC, ofReal3, vecDot, v, Fin.sum_univ_three] using this have hcross_u : ∀ i, crossR k u i = s * κ * v i := by intro i have hi := congrArg (fun f : Vec3C => (f i).im) heig fin_cases i <;> · simp only [Pi.smul_apply, smul_eq_mul, crossC, ofReal3, crossR, Complex.mul_im, Complex.I_re, Complex.I_im, Complex.sub_re, Complex.sub_im, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im] at hi ⊢ dsimp only [u, v] linarith have hcross_v : ∀ i, crossR k v i = -(s * κ) * u i := by intro i have hi := congrArg (fun f : Vec3C => (f i).re) heig fin_cases i <;> · simp only [Pi.smul_apply, smul_eq_mul, crossC, ofReal3, crossR, Complex.mul_re, Complex.I_re, Complex.I_im, Complex.sub_re, Complex.sub_im, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im] at hi ⊢ dsimp only [u, v] linarith have huv_zero : vecDot u v = 0 := by have hperp : vecDot u (crossR k u) = 0 := by simp [vecDot, crossR, Fin.sum_univ_three]; ring have hmul : vecDot u (crossR k u) = s * κ * vecDot u v := by simp only [vecDot, Fin.sum_univ_three, hcross_u]; ring have hsκ_ne : s * κ ≠ 0 := mul_ne_zero (by intro h0; rw [h0] at hs; norm_num at hs) (ne_of_gt hκ) exact (mul_eq_zero.mp (by linarith)).resolve_left hsκ_ne have hsum_uv : vecSqNorm u + vecSqNorm v = 1 := by rw [← hnorm] simp [normSqC, vecSqNorm, Complex.normSq_apply, u, v, Fin.sum_univ_three, pow_two] ring have hlagr : vecSqNorm (crossR k u) = vecDot k k * vecSqNorm u - (vecDot k u) ^ 2 := by simp [vecSqNorm, vecDot, crossR, Fin.sum_univ_three]; ring have hcu_sq : vecSqNorm (crossR k u) = (s * κ) ^ 2 * vecSqNorm v := by simp only [vecSqNorm, Fin.sum_univ_three, hcross_u]; ring have hu_eq_v : vecSqNorm u = vecSqNorm v := by have h1 : κ ^ 2 * vecSqNorm u = κ ^ 2 * vecSqNorm v := by rw [hkk, hku] at hlagr have hsk2 : (s * κ) ^ 2 = κ ^ 2 := by rw [mul_pow, hs, one_mul] rw [hsk2] at hcu_sq linarith exact mul_left_cancel₀ (ne_of_gt (sq_pos_of_pos hκ)) h1 have hu_half : vecSqNorm u = 1 / 2 := by linarith have hv_half : vecSqNorm v = 1 / 2 := by linarith have huxv : ∀ i, crossR u v i = (s / (2 * κ)) * k i := by have hbac : ∀ i, crossR (crossR k u) u i = vecDot k u * u i - vecSqNorm u * k i := by intro i; fin_cases i <;> simp [crossR, vecDot, vecSqNorm, Fin.sum_univ_three] <;> ring have hcu_fun : crossR k u = fun j => s * κ * v j := funext hcross_u have hsk_uxv : ∀ i, -(s * κ) * crossR u v i = -(1 / 2 : ℝ) * k i := by intro i have h1 := hbac i rw [hku, hu_half] at h1 have h2 : crossR (crossR k u) u i = -(s * κ) * crossR u v i := by rw [hcu_fun] fin_cases i <;> simp [crossR] <;> ring linarith intro i have h3 := hsk_uxv i have hκne : κ ≠ 0 := ne_of_gt hκ have hmul : s * (-(s * κ) * crossR u v i) = s * (-(1 / 2 : ℝ) * k i) := congrArg (fun x => s * x) h3 have hL : s * (-(s * κ) * crossR u v i) = -κ * crossR u v i := by calc s * (-(s * κ) * crossR u v i) = -(s ^ 2) * κ * crossR u v i := by ring _ = -1 * κ * crossR u v i := by rw [hs] _ = -κ * crossR u v i := by ring rw [hL] at hmul field_simp [hκne] linarith exact ⟨hku, hkv, hcross_u, hcross_v, huv_zero, hu_half, hv_half, huxv⟩ /-- Completeness identity for the real orthonormal frame `(√2 u, √2 v, k / κ)` associated with a helical mode: for every real vector `w : Vec3`, `2 (w · u)² + 2 (w · v)² + (w · k)² / κ² = |w|²`. Proved in 5 lines from `w × (u × v) = (w · v) u - (w · u) v` and `u × v = (s / (2 κ)) k`! -/ private lemma helical_real_completeness {k : Vec3} {κ s : ℝ} {h : Vec3C} (hh : IsHelicalMode k κ s h) (w : Vec3) : 2 * (vecDot w (fun i => (h i).re)) ^ 2 + 2 * (vecDot w (fun i => (h i).im)) ^ 2 + (vecDot w k) ^ 2 / κ ^ 2 = vecSqNorm w := by have hκ : 0 < κ := hh.1 have hkk : vecDot k k = κ ^ 2 := hh.2.1 have hs : s ^ 2 = 1 := hh.2.2.1 obtain ⟨_, _, _, _, huv, hu2, hv2, huxv⟩ := helical_re_im_props hh let u : Vec3 := fun i => (h i).re let v : Vec3 := fun i => (h i).im have hbac : ∀ i, crossR w (crossR u v) i = vecDot w v * u i - vecDot w u * v i := by intro i; fin_cases i <;> simp [crossR, vecDot, Fin.sum_univ_three] <;> ring have huxv_fun : crossR u v = fun j => (s / (2 * κ)) * k j := funext huxv have hlhs_eq : ∀ i, crossR w (crossR u v) i = (s / (2 * κ)) * crossR w k i := by intro i; rw [huxv_fun]; fin_cases i <;> simp [crossR] <;> ring have hsq_eq : vecSqNorm (fun i => (s / (2 * κ)) * crossR w k i) = vecSqNorm (fun i => vecDot w v * u i - vecDot w u * v i) := by congr 1; funext i; rw [← hlhs_eq i, hbac i] have hL : vecSqNorm (fun i => (s / (2 * κ)) * crossR w k i) = (vecSqNorm w * κ ^ 2 - (vecDot w k) ^ 2) / (4 * κ ^ 2) := by have hlagr : vecSqNorm (crossR w k) = vecSqNorm w * vecDot k k - (vecDot w k) ^ 2 := by simp [vecSqNorm, vecDot, crossR, Fin.sum_univ_three]; ring have hscale : vecSqNorm (fun i => (s / (2 * κ)) * crossR w k i) = (s / (2 * κ)) ^ 2 * vecSqNorm (crossR w k) := by simp [vecSqNorm, Fin.sum_univ_three]; ring rw [hscale, hlagr, hkk] have hκne : κ ≠ 0 := ne_of_gt hκ have hs2 : (s / (2 * κ)) ^ 2 = s ^ 2 / (4 * κ ^ 2) := by ring rw [hs2, hs]; field_simp [hκne] have hR : vecSqNorm (fun i => vecDot w v * u i - vecDot w u * v i) = ((vecDot w v) ^ 2 + (vecDot w u) ^ 2) / 2 := by have hexp : vecSqNorm (fun i => vecDot w v * u i - vecDot w u * v i) = (vecDot w v) ^ 2 * vecSqNorm u - 2 * vecDot w v * vecDot w u * vecDot u v + (vecDot w u) ^ 2 * vecSqNorm v := by simp [vecSqNorm, vecDot, Fin.sum_univ_three]; ring rw [hexp, hu2, hv2, huv]; ring rw [hL, hR] at hsq_eq have hκ2 : κ ^ 2 ≠ 0 := ne_of_gt (sq_pos_of_pos hκ) have hmul : (vecSqNorm w * κ ^ 2 - (vecDot w k) ^ 2) = 2 * κ ^ 2 * ((vecDot w v) ^ 2 + (vecDot w u) ^ 2) := by have h4 := congrArg (fun x => 4 * κ ^ 2 * x) hsq_eq field_simp [hκ2] at h4 linarith have hdiv : (vecDot w k) ^ 2 / κ ^ 2 = vecSqNorm w - 2 * (vecDot w u) ^ 2 - 2 * (vecDot w v) ^ 2 := by rw [div_eq_iff hκ2]; linarith linarith /-- Completeness identity on `ℂ³`: for any helical mode `h^s(k)` and any `w : Vec3C`, `|innerC h w|² + |dotC h w|² + |dotC k w|² / κ² = ∑ |w_i|²`. -/ private lemma helical_complex_completeness {k : Vec3} {κ s : ℝ} {h : Vec3C} (hh : IsHelicalMode k κ s h) (w : Vec3C) : Complex.normSq (innerC h w) + Complex.normSq (dotC h w) + Complex.normSq (dotC (ofReal3 k) w) / κ ^ 2 = normSqC w := by let wr : Vec3 := fun i => (w i).re let wi : Vec3 := fun i => (w i).im have hr := helical_real_completeness hh wr have hi := helical_real_completeness hh wi have hsum : Complex.normSq (innerC h w) + Complex.normSq (dotC h w) = 2 * ((vecDot wr (fun i => (h i).re)) ^ 2 + (vecDot wr (fun i => (h i).im)) ^ 2 + (vecDot wi (fun i => (h i).re)) ^ 2 + (vecDot wi (fun i => (h i).im)) ^ 2) := by simp [innerC, dotC, vecDot, wr, wi, Complex.normSq_apply, Fin.sum_univ_three] ring have hkw : Complex.normSq (dotC (ofReal3 k) w) = (vecDot wr k) ^ 2 + (vecDot wi k) ^ 2 := by simp [dotC, ofReal3, vecDot, wr, wi, Complex.normSq_apply, Fin.sum_univ_three] ring have hwn : normSqC w = vecSqNorm wr + vecSqNorm wi := by simp [normSqC, vecSqNorm, wr, wi, Complex.normSq_apply, Fin.sum_univ_three, pow_two] ring rw [hsum, hkw, hwn, add_div] linarith /-- Helical polarization difference identity on `ℂ³`: for any helical mode `h^s(k)` and `w : Vec3C`, `|innerC h w|² - |dotC h w|² = (2 s / κ) * k · (Re w × Im w)`. -/ private lemma helical_complex_helicity_diff {k : Vec3} {κ s : ℝ} {h : Vec3C} (hh : IsHelicalMode k κ s h) (w : Vec3C) : Complex.normSq (innerC h w) - Complex.normSq (dotC h w) = (2 * s / κ) * vecDot k (crossR (fun i => (w i).re) (fun i => (w i).im)) := by obtain ⟨_, _, _, _, _, _, _, huxv⟩ := helical_re_im_props hh have hbc : Complex.normSq (innerC h w) - Complex.normSq (dotC h w) = 4 * vecDot (crossR (fun i => (h i).re) (fun i => (h i).im)) (crossR (fun i => (w i).re) (fun i => (w i).im)) := by simp [innerC, dotC, vecDot, crossR, Complex.normSq_apply, Fin.sum_univ_three] ring rw [hbc] simp only [vecDot, Fin.sum_univ_three, huxv] have hκne : κ ≠ 0 := ne_of_gt hh.1 field_simp [hκne] ring /-- Complex 3D Lagrange identity: `∑ |a × b|² = (∑ |a|²)(∑ |b|²) - |innerC a b|²`. -/ private lemma normSqC_crossC (a b : Vec3C) : normSqC (crossC a b) = normSqC a * normSqC b - Complex.normSq (innerC a b) := by simp [normSqC, crossC, innerC, Complex.normSq_apply, Fin.sum_univ_three] ring /-- Complex Leray projector Pythagorean norm identity: `∑ |P_k w|² = ∑ |w|² - |k · w|² / |k|²` for `|k|² ≠ 0`. -/ private lemma normSqC_lerayProjC {k : Vec3} (hk : vecDot k k ≠ 0) (w : Vec3C) : normSqC (lerayProjC k w) = normSqC w - Complex.normSq (dotC (ofReal3 k) w) / vecDot k k := by have hkC : ((vecDot k k : ℝ) : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hk have hsplit : ∀ i : Fin 3, Complex.normSq (lerayProjC k w i) = Complex.normSq (w i) - 2 * (k i / vecDot k k) * ((dotC (ofReal3 k) w).re * (w i).re + (dotC (ofReal3 k) w).im * (w i).im) + (k i) ^ 2 * Complex.normSq (dotC (ofReal3 k) w) / (vecDot k k) ^ 2 := by intro i dsimp only [lerayProjC] simp only [Complex.normSq_apply, Complex.sub_re, Complex.sub_im, Complex.mul_re, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, Complex.div_ofReal_re, Complex.div_ofReal_im] field_simp [hk] ring simp only [normSqC, Fin.sum_univ_three, hsplit] have hdot_re : (dotC (ofReal3 k) w).re = k 0 * (w 0).re + k 1 * (w 1).re + k 2 * (w 2).re := by simp [dotC, ofReal3, Fin.sum_univ_three] have hdot_im : (dotC (ofReal3 k) w).im = k 0 * (w 0).im + k 1 * (w 1).im + k 2 * (w 2).im := by simp [dotC, ofReal3, Fin.sum_univ_three] have hnorm_kw : Complex.normSq (dotC (ofReal3 k) w) = (dotC (ofReal3 k) w).re ^ 2 + (dotC (ofReal3 k) w).im ^ 2 := by simp [Complex.normSq_apply, pow_two] have hkk : k 0 * k 0 + k 1 * k 1 + k 2 * k 2 = vecDot k k := by simp [vecDot, Fin.sum_univ_three] field_simp [hk] rw [hnorm_kw, hdot_re, hdot_im] nlinarith [hkk] /-- **Theorem 7 (`helical_basis_free_lemmas`)**: Exact basis-free `ℂ³` identities for any two helical modes `IsHelicalMode k₁ κ₁ s₁ h₁` and `IsHelicalMode k₂ κ₂ s₂ h₂` (with zero collinear singularities): 1. Isotropy: `dotC h₁ h₁ = 0`; 2. Self-cross: `crossC h₁ (star h₁) = (-I * (s₁ / κ₁)) • k₁`; 3. Exact overlap norms squared: `|innerC h₁ h₂|² = (κ₁ κ₂ + s₁ s₂ (k₁ · k₂))² / (4 κ₁² κ₂²)` and `|dotC h₁ h₂|² = (κ₁ κ₂ - s₁ s₂ (k₁ · k₂))² / (4 κ₁² κ₂²)`; 4. Exact longitudinal projections removed by Leray projection on `k₁ ± k₂`. -/ theorem helical_basis_free_lemmas {k₁ k₂ : Vec3} {κ₁ κ₂ s₁ s₂ : ℝ} {h₁ h₂ : Vec3C} (hh₁ : IsHelicalMode k₁ κ₁ s₁ h₁) (hh₂ : IsHelicalMode k₂ κ₂ s₂ h₂) : (dotC h₁ h₁ = 0) ∧ (crossC h₁ (star h₁) = (-Complex.I * ((s₁ / κ₁ : ℝ) : ℂ)) • ofReal3 k₁) ∧ (Complex.normSq (innerC h₁ h₂) = ((κ₁ * κ₂ + (s₁ * s₂) * vecDot k₁ k₂) ^ 2) / (4 * κ₁ ^ 2 * κ₂ ^ 2)) ∧ (Complex.normSq (dotC h₁ h₂) = ((κ₁ * κ₂ - (s₁ * s₂) * vecDot k₁ k₂) ^ 2) / (4 * κ₁ ^ 2 * κ₂ ^ 2)) ∧ (dotC (ofReal3 (k₁ + k₂)) (crossC h₁ h₂) = Complex.I * ((s₂ * κ₂ - s₁ * κ₁ : ℝ) : ℂ) * dotC h₁ h₂) ∧ (dotC (ofReal3 (k₁ - k₂)) (crossC h₁ (star h₂)) = Complex.I * ((s₂ * κ₂ - s₁ * κ₁ : ℝ) : ℂ) * dotC h₁ (star h₂)) := by obtain ⟨_, _, _, _, huv₁, hu1, hv1, huxv₁⟩ := helical_re_im_props hh₁ obtain ⟨_, _, _, _, _, _, _, huxv₂⟩ := helical_re_im_props hh₂ have hiso : dotC h₁ h₁ = 0 := by apply Complex.ext · simp only [dotC, Fin.sum_univ_three, Complex.add_re, Complex.mul_re, Complex.zero_re] simp only [vecSqNorm, Fin.sum_univ_three] at hu1 hv1 linarith · simp only [dotC, Fin.sum_univ_three, Complex.add_im, Complex.mul_im, Complex.zero_im] simp only [vecDot, Fin.sum_univ_three] at huv₁ linarith have hself : crossC h₁ (star h₁) = (-Complex.I * ((s₁ / κ₁ : ℝ) : ℂ)) • ofReal3 k₁ := by funext i have hi := huxv₁ i have hκ1ne : κ₁ ≠ 0 := ne_of_gt hh₁.1 apply Complex.ext <;> · fin_cases i <;> · simp only [Pi.smul_apply, smul_eq_mul, crossC, ofReal3, Pi.star_apply, Complex.star_def, Complex.conj_re, Complex.conj_im, Complex.sub_re, Complex.sub_im, Complex.mul_re, Complex.mul_im, Complex.neg_re, Complex.neg_im, Complex.I_re, Complex.I_im, Complex.ofReal_re, Complex.ofReal_im] simp only [crossR] at hi field_simp [hκ1ne] at hi ⊢ linarith -- Compute |innerC h₁ h₂|² ± |dotC h₁ h₂|² via completeness + Binet–Cauchy! have hcomp := helical_complex_completeness hh₁ h₂ have hdiff := helical_complex_helicity_diff hh₁ h₂ have hk1h2 : Complex.normSq (dotC (ofReal3 k₁) h₂) = (κ₁ ^ 2 * κ₂ ^ 2 - (vecDot k₁ k₂) ^ 2) / (2 * κ₂ ^ 2) := by have hcomp2 := helical_real_completeness hh₂ k₁ have hnorm : Complex.normSq (dotC (ofReal3 k₁) h₂) = (vecDot k₁ (fun i => (h₂ i).re)) ^ 2 + (vecDot k₁ (fun i => (h₂ i).im)) ^ 2 := by simp [dotC, ofReal3, vecDot, Complex.normSq_apply, Fin.sum_univ_three]; ring rw [hnorm] have hkk1 : vecSqNorm k₁ = κ₁ ^ 2 := by rw [vecSqNorm_eq_dotProduct, ← vecDot_eq_dotProduct]; exact hh₁.2.1 rw [hkk1] at hcomp2 have hκ2ne : κ₂ ^ 2 ≠ 0 := ne_of_gt (sq_pos_of_pos hh₂.1) rw [eq_div_iff (mul_ne_zero two_ne_zero hκ2ne)] have hmul := congrArg (fun x => κ₂ ^ 2 * x) hcomp2 rw [mul_add, mul_div_cancel₀ _ hκ2ne] at hmul linarith have hsum_ov : Complex.normSq (innerC h₁ h₂) + Complex.normSq (dotC h₁ h₂) = (κ₁ ^ 2 * κ₂ ^ 2 + (vecDot k₁ k₂) ^ 2) / (2 * κ₁ ^ 2 * κ₂ ^ 2) := by rw [hh₂.2.2.2.1, hk1h2] at hcomp have hκ1ne : κ₁ ^ 2 ≠ 0 := ne_of_gt (sq_pos_of_pos hh₁.1) have hκ2ne : κ₂ ^ 2 ≠ 0 := ne_of_gt (sq_pos_of_pos hh₂.1) have hden : 2 * κ₁ ^ 2 * κ₂ ^ 2 ≠ 0 := by positivity rw [eq_div_iff hden] have hmul := congrArg (fun x => 2 * κ₁ ^ 2 * κ₂ ^ 2 * x) hcomp have hdiv_simp : 2 * κ₁ ^ 2 * κ₂ ^ 2 * ((κ₁ ^ 2 * κ₂ ^ 2 - (vecDot k₁ k₂) ^ 2) / (2 * κ₂ ^ 2) / κ₁ ^ 2) = κ₁ ^ 2 * κ₂ ^ 2 - (vecDot k₁ k₂) ^ 2 := by have h1 : κ₁ ≠ 0 := ne_of_gt hh₁.1 have h2 : κ₂ ≠ 0 := ne_of_gt hh₂.1 field_simp [h1, h2] rw [mul_add, hdiv_simp] at hmul linarith have hdiff_ov : Complex.normSq (innerC h₁ h₂) - Complex.normSq (dotC h₁ h₂) = (s₁ * s₂ * vecDot k₁ k₂) / (κ₁ * κ₂) := by rw [hdiff] have hdot : vecDot k₁ (crossR (fun i => (h₂ i).re) (fun i => (h₂ i).im)) = (s₂ / (2 * κ₂)) * vecDot k₁ k₂ := by simp only [vecDot, Fin.sum_univ_three, huxv₂]; ring rw [hdot] have hκ1ne : κ₁ ≠ 0 := ne_of_gt hh₁.1 have hκ2ne : κ₂ ≠ 0 := ne_of_gt hh₂.1 field_simp [hκ1ne, hκ2ne] have hs12 : (s₁ * s₂) ^ 2 = 1 := by rw [mul_pow, hh₁.2.2.1, hh₂.2.2.1, one_mul] have hov1 : Complex.normSq (innerC h₁ h₂) = ((κ₁ * κ₂ + (s₁ * s₂) * vecDot k₁ k₂) ^ 2) / (4 * κ₁ ^ 2 * κ₂ ^ 2) := by have hκ1ne : κ₁ ≠ 0 := ne_of_gt hh₁.1 have hκ2ne : κ₂ ≠ 0 := ne_of_gt hh₂.1 have havg : Complex.normSq (innerC h₁ h₂) = ((Complex.normSq (innerC h₁ h₂) + Complex.normSq (dotC h₁ h₂)) + (Complex.normSq (innerC h₁ h₂) - Complex.normSq (dotC h₁ h₂))) / 2 := by ring rw [havg, hsum_ov, hdiff_ov] have hexp : ((κ₁ * κ₂ + s₁ * s₂ * vecDot k₁ k₂) ^ 2) = κ₁ ^ 2 * κ₂ ^ 2 + 2 * κ₁ * κ₂ * (s₁ * s₂ * vecDot k₁ k₂) + (vecDot k₁ k₂) ^ 2 := by have : (s₁ * s₂ * vecDot k₁ k₂) ^ 2 = (s₁ * s₂) ^ 2 * (vecDot k₁ k₂) ^ 2 := by ring rw [add_sq, this, hs12, one_mul]; ring rw [hexp] field_simp [hκ1ne, hκ2ne] ring have hov2 : Complex.normSq (dotC h₁ h₂) = ((κ₁ * κ₂ - (s₁ * s₂) * vecDot k₁ k₂) ^ 2) / (4 * κ₁ ^ 2 * κ₂ ^ 2) := by have hκ1ne : κ₁ ≠ 0 := ne_of_gt hh₁.1 have hκ2ne : κ₂ ≠ 0 := ne_of_gt hh₂.1 have havg : Complex.normSq (dotC h₁ h₂) = ((Complex.normSq (innerC h₁ h₂) + Complex.normSq (dotC h₁ h₂)) - (Complex.normSq (innerC h₁ h₂) - Complex.normSq (dotC h₁ h₂))) / 2 := by ring rw [havg, hsum_ov, hdiff_ov] have hexp : ((κ₁ * κ₂ - s₁ * s₂ * vecDot k₁ k₂) ^ 2) = κ₁ ^ 2 * κ₂ ^ 2 - 2 * κ₁ * κ₂ * (s₁ * s₂ * vecDot k₁ k₂) + (vecDot k₁ k₂) ^ 2 := by have : (s₁ * s₂ * vecDot k₁ k₂) ^ 2 = (s₁ * s₂) ^ 2 * (vecDot k₁ k₂) ^ 2 := by ring rw [sub_sq, this, hs12, one_mul]; ring rw [hexp] field_simp [hκ1ne, hκ2ne] ring -- Longitudinal projections via scalar triple product + eigenmode equation have hkx1 : crossC (ofReal3 k₁) h₁ = (-Complex.I * ((s₁ * κ₁ : ℝ) : ℂ)) • h₁ := by funext i have hi := congrArg (fun f : Vec3C => -Complex.I * f i) hh₁.2.2.2.2.2 simp only [Pi.smul_apply, smul_eq_mul] at hi ⊢ have hI2 : -Complex.I * Complex.I = 1 := by simp [Complex.I_mul_I] calc crossC (ofReal3 k₁) h₁ i = (-Complex.I * Complex.I) * crossC (ofReal3 k₁) h₁ i := by rw [hI2, one_mul] _ = -Complex.I * (Complex.I * crossC (ofReal3 k₁) h₁ i) := by ring _ = -Complex.I * (((s₁ * κ₁ : ℝ) : ℂ) * h₁ i) := hi _ = (-Complex.I * ((s₁ * κ₁ : ℝ) : ℂ)) * h₁ i := by ring have hkx2 : crossC (ofReal3 k₂) h₂ = (-Complex.I * ((s₂ * κ₂ : ℝ) : ℂ)) • h₂ := by funext i have hi := congrArg (fun f : Vec3C => -Complex.I * f i) hh₂.2.2.2.2.2 simp only [Pi.smul_apply, smul_eq_mul] at hi ⊢ have hI2 : -Complex.I * Complex.I = 1 := by simp [Complex.I_mul_I] calc crossC (ofReal3 k₂) h₂ i = (-Complex.I * Complex.I) * crossC (ofReal3 k₂) h₂ i := by rw [hI2, one_mul] _ = -Complex.I * (Complex.I * crossC (ofReal3 k₂) h₂ i) := by ring _ = -Complex.I * (((s₂ * κ₂ : ℝ) : ℂ) * h₂ i) := hi _ = (-Complex.I * ((s₂ * κ₂ : ℝ) : ℂ)) * h₂ i := by ring have hkx2_conj : crossC (ofReal3 k₂) (star h₂) = (Complex.I * ((s₂ * κ₂ : ℝ) : ℂ)) • star h₂ := by funext i have hi := congrArg (fun f : Vec3C => star (f i)) hkx2 fin_cases i <;> · simp only [Pi.smul_apply, smul_eq_mul, Pi.star_apply, crossC, ofReal3, star_sub, star_mul, Complex.star_def, Complex.conj_ofReal, star_neg, Complex.conj_I, neg_neg] at hi ⊢ linear_combination hi have hlong_p : dotC (ofReal3 (k₁ + k₂)) (crossC h₁ h₂) = Complex.I * ((s₂ * κ₂ - s₁ * κ₁ : ℝ) : ℂ) * dotC h₁ h₂ := by have htriple : dotC (ofReal3 (k₁ + k₂)) (crossC h₁ h₂) = dotC (crossC (ofReal3 k₁) h₁) h₂ - dotC (crossC (ofReal3 k₂) h₂) h₁ := by simp [dotC, ofReal3, crossC, Fin.sum_univ_three]; ring rw [htriple, hkx1, hkx2] simp only [dotC, Pi.smul_apply, smul_eq_mul, Fin.sum_univ_three, Complex.ofReal_sub, Complex.ofReal_mul] ring have hlong_m : dotC (ofReal3 (k₁ - k₂)) (crossC h₁ (star h₂)) = Complex.I * ((s₂ * κ₂ - s₁ * κ₁ : ℝ) : ℂ) * dotC h₁ (star h₂) := by have htriple : dotC (ofReal3 (k₁ - k₂)) (crossC h₁ (star h₂)) = dotC (crossC (ofReal3 k₁) h₁) (star h₂) + dotC (crossC (ofReal3 k₂) (star h₂)) h₁ := by simp [dotC, ofReal3, crossC, Fin.sum_univ_three]; ring rw [htriple, hkx1, hkx2_conj] simp only [dotC, Pi.smul_apply, smul_eq_mul, Fin.sum_univ_three, Complex.ofReal_sub, Complex.ofReal_mul] ring exact ⟨hiso, hself, hov1, hov2, hlong_p, hlong_m⟩ /-- **Theorem 8 (`waleffe_leray_exact_norms`)**: Exact closed-form Leray-projected norms squared for both the forward sum channel `k₊ = k₁ + k₂` and the parasitic difference channel `k₋ = k₁ - k₂`: `‖P_{k±}(h₁ × h₂^{±})‖² = (C_cross / (4 κ₁² κ₂²)) * (1 + (s₁ κ₁ + s₂ κ₂)² / |k±|²)`. -/ theorem waleffe_leray_exact_norms {k₁ k₂ : Vec3} {κ₁ κ₂ s₁ s₂ : ℝ} {h₁ h₂ : Vec3C} (hh₁ : IsHelicalMode k₁ κ₁ s₁ h₁) (hh₂ : IsHelicalMode k₂ κ₂ s₂ h₂) (hp : vecDot (k₁ + k₂) (k₁ + k₂) ≠ 0) (hm : vecDot (k₁ - k₂) (k₁ - k₂) ≠ 0) : let C_cross := κ₁ ^ 2 * κ₂ ^ 2 - (vecDot k₁ k₂) ^ 2 let Dp := vecDot (k₁ + k₂) (k₁ + k₂) let Dm := vecDot (k₁ - k₂) (k₁ - k₂) normSqC (lerayProjC (k₁ + k₂) (crossC h₁ h₂)) = (C_cross / (4 * κ₁ ^ 2 * κ₂ ^ 2)) * (1 + (s₁ * κ₁ + s₂ * κ₂) ^ 2 / Dp) ∧ normSqC (lerayProjC (k₁ - k₂) (crossC h₁ (star h₂))) = (C_cross / (4 * κ₁ ^ 2 * κ₂ ^ 2)) * (1 + (s₁ * κ₁ + s₂ * κ₂) ^ 2 / Dm) := by dsimp only obtain ⟨_, _, hov1, hov2, hlong_p, hlong_m⟩ := helical_basis_free_lemmas hh₁ hh₂ have hDp : vecDot (k₁ + k₂) (k₁ + k₂) = κ₁ ^ 2 + κ₂ ^ 2 + 2 * vecDot k₁ k₂ := by have : vecDot (k₁ + k₂) (k₁ + k₂) = vecDot k₁ k₁ + vecDot k₂ k₂ + 2 * vecDot k₁ k₂ := by simp [vecDot, Fin.sum_univ_three]; ring rw [this, hh₁.2.1, hh₂.2.1] have hDm : vecDot (k₁ - k₂) (k₁ - k₂) = κ₁ ^ 2 + κ₂ ^ 2 - 2 * vecDot k₁ k₂ := by have : vecDot (k₁ - k₂) (k₁ - k₂) = vecDot k₁ k₁ + vecDot k₂ k₂ - 2 * vecDot k₁ k₂ := by simp [vecDot, Fin.sum_univ_three]; ring rw [this, hh₁.2.1, hh₂.2.1] have hκ1 : κ₁ ≠ 0 := ne_of_gt hh₁.1 have hκ2 : κ₂ ≠ 0 := ne_of_gt hh₂.1 have hs1 : s₁ ^ 2 = 1 := hh₁.2.2.1 have hs2 : s₂ ^ 2 = 1 := hh₂.2.2.1 constructor · rw [normSqC_lerayProjC hp, normSqC_crossC, hh₁.2.2.2.1, hh₂.2.2.2.1, one_mul, hlong_p, Complex.normSq_mul, Complex.normSq_mul, Complex.normSq_I, one_mul, Complex.normSq_ofReal, hov1, hov2] field_simp [hp, hκ1, hκ2] rw [hDp] have hpoly : (κ₁ ^ 2 * κ₂ ^ 2 * 4 - (κ₁ * κ₂ + s₁ * s₂ * vecDot k₁ k₂) ^ 2) * (κ₁ ^ 2 + κ₂ ^ 2 + 2 * vecDot k₁ k₂) - (s₂ * κ₂ - s₁ * κ₁) ^ 2 * (κ₁ * κ₂ - s₁ * s₂ * vecDot k₁ k₂) ^ 2 = (κ₁ ^ 2 * κ₂ ^ 2 - (vecDot k₁ k₂) ^ 2) * (κ₁ ^ 2 + κ₂ ^ 2 + 2 * vecDot k₁ k₂ + (s₁ * κ₁ + s₂ * κ₂) ^ 2) := by have hs1_cases : s₁ = 1 ∨ s₁ = -1 := sq_eq_one_iff.mp hs1 have hs2_cases : s₂ = 1 ∨ s₂ = -1 := sq_eq_one_iff.mp hs2 rcases hs1_cases with rfl | rfl <;> rcases hs2_cases with rfl | rfl <;> ring linarith [hpoly] · have hstar_norm : normSqC (star h₂) = 1 := by simpa [normSqC, Pi.star_apply, Complex.star_def, Complex.normSq_conj] using hh₂.2.2.2.1 have hinner_star : Complex.normSq (innerC h₁ (star h₂)) = Complex.normSq (dotC h₁ h₂) := by have : innerC h₁ (star h₂) = star (dotC h₁ h₂) := by simp [innerC, dotC, Fin.sum_univ_three] rw [this, Complex.star_def, Complex.normSq_conj] have hdot_star : Complex.normSq (dotC h₁ (star h₂)) = Complex.normSq (innerC h₁ h₂) := by have : dotC h₁ (star h₂) = star (innerC h₁ h₂) := by simp [innerC, dotC, Fin.sum_univ_three] rw [this, Complex.star_def, Complex.normSq_conj] rw [normSqC_lerayProjC hm, normSqC_crossC, hh₁.2.2.2.1, hstar_norm, one_mul, hlong_m, Complex.normSq_mul, Complex.normSq_mul, Complex.normSq_I, one_mul, Complex.normSq_ofReal, hinner_star, hdot_star, hov1, hov2] field_simp [hm, hκ1, hκ2] rw [hDm] have hs1_cases : s₁ = 1 ∨ s₁ = -1 := sq_eq_one_iff.mp hs1 have hs2_cases : s₂ = 1 ∨ s₂ = -1 := sq_eq_one_iff.mp hs2 rcases hs1_cases with rfl | rfl <;> rcases hs2_cases with rfl | rfl <;> ring /-- Vector quadruple identity in `ℂ³`: for `C = h₁ × h₂`, `2 * k₊ · (Re(P_{k₊} C) × Im(P_{k₊} C)) = (C_cross / (2 κ₁² κ₂²)) * (s₁ κ₁ + s₂ κ₂)`. -/ private lemma forward_helicity_triple_identity {k₁ k₂ : Vec3} {κ₁ κ₂ s₁ s₂ : ℝ} {h₁ h₂ : Vec3C} (hh₁ : IsHelicalMode k₁ κ₁ s₁ h₁) (hh₂ : IsHelicalMode k₂ κ₂ s₂ h₂) (_hp : vecDot (k₁ + k₂) (k₁ + k₂) ≠ 0) : let w := lerayProjC (k₁ + k₂) (crossC h₁ h₂) let C_cross := κ₁ ^ 2 * κ₂ ^ 2 - (vecDot k₁ k₂) ^ 2 2 * vecDot (k₁ + k₂) (crossR (fun i => (w i).re) (fun i => (w i).im)) = (C_cross / (2 * κ₁ ^ 2 * κ₂ ^ 2)) * (s₁ * κ₁ + s₂ * κ₂) := by dsimp only -- First show projecting along k₊ doesn't change k₊ · (Re w × Im w)! have hproj_inv : vecDot (k₁ + k₂) (crossR (fun i => (lerayProjC (k₁ + k₂) (crossC h₁ h₂) i).re) (fun i => (lerayProjC (k₁ + k₂) (crossC h₁ h₂) i).im)) = vecDot (k₁ + k₂) (crossR (fun i => (crossC h₁ h₂ i).re) (fun i => (crossC h₁ h₂ i).im)) := by let α : ℂ := dotC (ofReal3 (k₁ + k₂)) (crossC h₁ h₂) / ((vecDot (k₁ + k₂) (k₁ + k₂) : ℝ) : ℂ) have hw_re : ∀ i, (lerayProjC (k₁ + k₂) (crossC h₁ h₂) i).re = (crossC h₁ h₂ i).re - α.re * (k₁ + k₂) i := fun i => by simp [lerayProjC, α] have hw_im : ∀ i, (lerayProjC (k₁ + k₂) (crossC h₁ h₂) i).im = (crossC h₁ h₂ i).im - α.im * (k₁ + k₂) i := fun i => by simp [lerayProjC, α] simp only [vecDot, crossR, Fin.sum_univ_three, hw_re, hw_im] ring rw [hproj_inv] -- Complex quadruple identity: 2 * k · (Re(a × b) × Im(a × b)) = Re(i * (...)) have hquad_re : ∀ (k : Vec3) (a b : Vec3C), 2 * vecDot k (crossR (fun i => (crossC a b i).re) (fun i => (crossC a b i).im)) = (Complex.I * (dotC (crossC a b) (star b) * dotC (ofReal3 k) (star a) - dotC (crossC a b) (star a) * dotC (ofReal3 k) (star b))).re := by intro k a b simp [dotC, crossC, ofReal3, vecDot, crossR, Fin.sum_univ_three, Complex.mul_re, Complex.mul_im] ring have hre := hquad_re (k₁ + k₂) h₁ h₂ obtain ⟨_, hself₁, _, _, _, _⟩ := helical_basis_free_lemmas hh₁ hh₂ obtain ⟨_, hself₂, _, _, _, _⟩ := helical_basis_free_lemmas hh₂ hh₁ have htr1 : dotC (crossC h₁ h₂) (star h₂) = dotC h₁ (crossC h₂ (star h₂)) := by simp [dotC, crossC, Fin.sum_univ_three]; ring have htr2 : dotC (crossC h₁ h₂) (star h₁) = -dotC h₂ (crossC h₁ (star h₁)) := by simp [dotC, crossC, Fin.sum_univ_three]; ring rw [htr1, htr2, hself₁, hself₂] at hre have hdot_smul : ∀ (c : ℂ) (u v : Vec3C), dotC u (c • v) = c * dotC u v := fun c u v => by simp [dotC, Fin.sum_univ_three]; ring rw [hdot_smul, hdot_smul] at hre have hk1_s1 : dotC (ofReal3 k₁) (star h₁) = 0 := by have : dotC (ofReal3 k₁) (star h₁) = star (dotC (ofReal3 k₁) h₁) := by simp [dotC, ofReal3, Fin.sum_univ_three] rw [this, hh₁.2.2.2.2.1, star_zero] have hk2_s2 : dotC (ofReal3 k₂) (star h₂) = 0 := by have : dotC (ofReal3 k₂) (star h₂) = star (dotC (ofReal3 k₂) h₂) := by simp [dotC, ofReal3, Fin.sum_univ_three] rw [this, hh₂.2.2.2.2.1, star_zero] have hkp1 : dotC (ofReal3 (k₁ + k₂)) (star h₁) = star (dotC h₁ (ofReal3 k₂)) := by have hadd : dotC (ofReal3 (k₁ + k₂)) (star h₁) = dotC (ofReal3 k₁) (star h₁) + dotC (ofReal3 k₂) (star h₁) := by simp [dotC, ofReal3, Fin.sum_univ_three]; ring rw [hadd, hk1_s1, zero_add] simp [dotC, ofReal3, Fin.sum_univ_three, mul_comm] have hkp2 : dotC (ofReal3 (k₁ + k₂)) (star h₂) = star (dotC h₂ (ofReal3 k₁)) := by have hadd : dotC (ofReal3 (k₁ + k₂)) (star h₂) = dotC (ofReal3 k₁) (star h₂) + dotC (ofReal3 k₂) (star h₂) := by simp [dotC, ofReal3, Fin.sum_univ_three]; ring rw [hadd, hk2_s2, add_zero] simp [dotC, ofReal3, Fin.sum_univ_three, mul_comm] rw [hkp1, hkp2] at hre have hnorm_prod : ∀ z : ℂ, (z * star z).re = Complex.normSq z := fun z => by simp [Complex.normSq_apply] have hre_rhs : (Complex.I * (-Complex.I * ((s₂ / κ₂ : ℝ) : ℂ) * dotC h₁ (ofReal3 k₂) * star (dotC h₁ (ofReal3 k₂)) - -(-Complex.I * ((s₁ / κ₁ : ℝ) : ℂ) * dotC h₂ (ofReal3 k₁)) * star (dotC h₂ (ofReal3 k₁)))).re = (s₂ / κ₂) * Complex.normSq (dotC h₁ (ofReal3 k₂)) + (s₁ / κ₁) * Complex.normSq (dotC h₂ (ofReal3 k₁)) := by have hI2 : Complex.I * (-Complex.I) = 1 := by simp [Complex.I_mul_I] have hsimp : Complex.I * (-Complex.I * ((s₂ / κ₂ : ℝ) : ℂ) * dotC h₁ (ofReal3 k₂) * star (dotC h₁ (ofReal3 k₂)) - -(-Complex.I * ((s₁ / κ₁ : ℝ) : ℂ) * dotC h₂ (ofReal3 k₁)) * star (dotC h₂ (ofReal3 k₁))) = ((s₂ / κ₂ : ℝ) : ℂ) * (dotC h₁ (ofReal3 k₂) * star (dotC h₁ (ofReal3 k₂))) + ((s₁ / κ₁ : ℝ) : ℂ) * (dotC h₂ (ofReal3 k₁) * star (dotC h₂ (ofReal3 k₁))) := by calc Complex.I * (-Complex.I * ((s₂ / κ₂ : ℝ) : ℂ) * dotC h₁ (ofReal3 k₂) * star (dotC h₁ (ofReal3 k₂)) - -(-Complex.I * ((s₁ / κ₁ : ℝ) : ℂ) * dotC h₂ (ofReal3 k₁)) * star (dotC h₂ (ofReal3 k₁))) = (Complex.I * (-Complex.I)) * ((s₂ / κ₂ : ℝ) : ℂ) * (dotC h₁ (ofReal3 k₂) * star (dotC h₁ (ofReal3 k₂))) + (Complex.I * (-Complex.I)) * ((s₁ / κ₁ : ℝ) : ℂ) * (dotC h₂ (ofReal3 k₁) * star (dotC h₂ (ofReal3 k₁))) := by ring _ = _ := by rw [hI2, one_mul, one_mul] rw [hsimp, Complex.add_re, Complex.re_ofReal_mul, Complex.re_ofReal_mul, hnorm_prod, hnorm_prod] rw [hre_rhs] at hre -- Substitute |h₁ · k₂|² = C_cross / (2 κ₁²) and |h₂ · k₁|² = C_cross / (2 κ₂²) have hk2h1 : Complex.normSq (dotC h₁ (ofReal3 k₂)) = (κ₁ ^ 2 * κ₂ ^ 2 - (vecDot k₁ k₂) ^ 2) / (2 * κ₁ ^ 2) := by have hcomp1 := helical_real_completeness hh₁ k₂ have hnorm : Complex.normSq (dotC h₁ (ofReal3 k₂)) = (vecDot k₂ (fun i => (h₁ i).re)) ^ 2 + (vecDot k₂ (fun i => (h₁ i).im)) ^ 2 := by simp [dotC, ofReal3, vecDot, Complex.normSq_apply, Fin.sum_univ_three]; ring rw [hnorm] have hkk2 : vecSqNorm k₂ = κ₂ ^ 2 := by rw [vecSqNorm_eq_dotProduct, ← vecDot_eq_dotProduct]; exact hh₂.2.1 rw [hkk2, vecDot_comm k₂ k₁] at hcomp1 have hκ1ne : κ₁ ^ 2 ≠ 0 := ne_of_gt (sq_pos_of_pos hh₁.1) rw [eq_div_iff (mul_ne_zero two_ne_zero hκ1ne)] have hmul := congrArg (fun x => κ₁ ^ 2 * x) hcomp1 rw [mul_add, mul_div_cancel₀ _ hκ1ne] at hmul linarith have hk1h2 : Complex.normSq (dotC h₂ (ofReal3 k₁)) = (κ₁ ^ 2 * κ₂ ^ 2 - (vecDot k₁ k₂) ^ 2) / (2 * κ₂ ^ 2) := by have hcomp2 := helical_real_completeness hh₂ k₁ have hnorm : Complex.normSq (dotC h₂ (ofReal3 k₁)) = (vecDot k₁ (fun i => (h₂ i).re)) ^ 2 + (vecDot k₁ (fun i => (h₂ i).im)) ^ 2 := by simp [dotC, ofReal3, vecDot, Complex.normSq_apply, Fin.sum_univ_three]; ring rw [hnorm] have hkk1 : vecSqNorm k₁ = κ₁ ^ 2 := by rw [vecSqNorm_eq_dotProduct, ← vecDot_eq_dotProduct]; exact hh₁.2.1 rw [hkk1] at hcomp2 have hκ2ne : κ₂ ^ 2 ≠ 0 := ne_of_gt (sq_pos_of_pos hh₂.1) rw [eq_div_iff (mul_ne_zero two_ne_zero hκ2ne)] have hmul := congrArg (fun x => κ₂ ^ 2 * x) hcomp2 rw [mul_add, mul_div_cancel₀ _ hκ2ne] at hmul linarith rw [hk2h1, hk1h2] at hre have hκ1ne : κ₁ ≠ 0 := ne_of_gt hh₁.1 have hκ2ne : κ₂ ≠ 0 := ne_of_gt hh₂.1 rw [hre] field_simp [hκ1ne, hκ2ne] ring /-- **Theorem 9 (`waleffe_forward_helicity_split`)**: Exact projection of the forward Leray channel `P_{k₊}(h₁ × h₂)` onto any helical eigenmode `hp_mode` at `k₊ = k₁ + k₂` with helicity `sp ∈ {±1}`: `|⟨hp_mode, P_{k₊}(h₁ × h₂)⟩|² = (C_cross / (8 κ₁² κ₂² D₊)) * (s₁ κ₁ + s₂ κ₂ + sp κp)²`. -/ theorem waleffe_forward_helicity_split {k₁ k₂ : Vec3} {κ₁ κ₂ κp s₁ s₂ sp : ℝ} {h₁ h₂ hp_mode : Vec3C} (hh₁ : IsHelicalMode k₁ κ₁ s₁ h₁) (hh₂ : IsHelicalMode k₂ κ₂ s₂ h₂) (hhp : IsHelicalMode (k₁ + k₂) κp sp hp_mode) (hm : vecDot (k₁ - k₂) (k₁ - k₂) ≠ 0) : let C_cross := κ₁ ^ 2 * κ₂ ^ 2 - (vecDot k₁ k₂) ^ 2 let Dp := vecDot (k₁ + k₂) (k₁ + k₂) Complex.normSq (innerC hp_mode (lerayProjC (k₁ + k₂) (crossC h₁ h₂))) = (C_cross / (8 * κ₁ ^ 2 * κ₂ ^ 2 * Dp)) * (s₁ * κ₁ + s₂ * κ₂ + sp * κp) ^ 2 := by dsimp only have hp : vecDot (k₁ + k₂) (k₁ + k₂) ≠ 0 := by rw [hhp.2.1]; exact ne_of_gt (sq_pos_of_pos hhp.1) let w := lerayProjC (k₁ + k₂) (crossC h₁ h₂) have hkw : dotC (ofReal3 (k₁ + k₂)) w = 0 := by dsimp only [w, lerayProjC] have hkkC : ((vecDot (k₁ + k₂) (k₁ + k₂) : ℝ) : ℂ) ≠ 0 := Complex.ofReal_ne_zero.mpr hp have hsum : dotC (ofReal3 (k₁ + k₂)) (ofReal3 (k₁ + k₂)) = ((vecDot (k₁ + k₂) (k₁ + k₂) : ℝ) : ℂ) := by simp [dotC, ofReal3, vecDot, Fin.sum_univ_three] calc dotC (ofReal3 (k₁ + k₂)) (fun i => crossC h₁ h₂ i - (dotC (ofReal3 (k₁ + k₂)) (crossC h₁ h₂) / ((vecDot (k₁ + k₂) (k₁ + k₂) : ℝ) : ℂ)) * ((k₁ + k₂) i : ℂ)) = dotC (ofReal3 (k₁ + k₂)) (crossC h₁ h₂) - (dotC (ofReal3 (k₁ + k₂)) (crossC h₁ h₂) / ((vecDot (k₁ + k₂) (k₁ + k₂) : ℝ) : ℂ)) * dotC (ofReal3 (k₁ + k₂)) (ofReal3 (k₁ + k₂)) := by simp [dotC, ofReal3, Fin.sum_univ_three]; ring _ = 0 := by rw [hsum, div_mul_cancel₀ _ hkkC, sub_self] have hcomp := helical_complex_completeness hhp w rw [hkw, Complex.normSq_zero, zero_div, add_zero] at hcomp have hnorm_w := (waleffe_leray_exact_norms hh₁ hh₂ hp hm).1 have hdiff := helical_complex_helicity_diff hhp w have htr := forward_helicity_triple_identity hh₁ hh₂ hp have hDp : vecDot (k₁ + k₂) (k₁ + k₂) = κp ^ 2 := hhp.2.1 have hsp : sp ^ 2 = 1 := hhp.2.2.1 have hκ1 : κ₁ ≠ 0 := ne_of_gt hh₁.1 have hκ2 : κ₂ ≠ 0 := ne_of_gt hh₂.1 have hκp : κp ≠ 0 := ne_of_gt hhp.1 have hdiff_simp : Complex.normSq (innerC hp_mode w) - Complex.normSq (dotC hp_mode w) = (sp / κp) * (((κ₁ ^ 2 * κ₂ ^ 2 - (vecDot k₁ k₂) ^ 2) / (2 * κ₁ ^ 2 * κ₂ ^ 2)) * (s₁ * κ₁ + s₂ * κ₂)) := by have hmul : (2 * sp / κp) * vecDot (k₁ + k₂) (crossR (fun i => (w i).re) (fun i => (w i).im)) = (sp / κp) * (2 * vecDot (k₁ + k₂) (crossR (fun i => (w i).re) (fun i => (w i).im))) := by ring rw [hdiff, hmul, htr] dsimp only [w] at hcomp hdiff_simp rw [hnorm_w, hDp] at hcomp have havg : Complex.normSq (innerC hp_mode (lerayProjC (k₁ + k₂) (crossC h₁ h₂))) = ((Complex.normSq (innerC hp_mode (lerayProjC (k₁ + k₂) (crossC h₁ h₂))) + Complex.normSq (dotC hp_mode (lerayProjC (k₁ + k₂) (crossC h₁ h₂)))) + (Complex.normSq (innerC hp_mode (lerayProjC (k₁ + k₂) (crossC h₁ h₂))) - Complex.normSq (dotC hp_mode (lerayProjC (k₁ + k₂) (crossC h₁ h₂))))) / 2 := by ring rw [havg, hcomp, hdiff_simp, hDp] have hexp : (s₁ * κ₁ + s₂ * κ₂ + sp * κp) ^ 2 = (s₁ * κ₁ + s₂ * κ₂) ^ 2 + 2 * sp * κp * (s₁ * κ₁ + s₂ * κ₂) + sp ^ 2 * κp ^ 2 := by ring rw [hexp, hsp, one_mul] field_simp [hκ1, hκ2, hκp] ring /-- **Theorem 10 (`heterochiral_same_shell_exact_balance`)**: For any same-shell heterochiral pair (`κ₁ = κ₂ = κ > 0`, `s₁ + s₂ = 0`, `k₁ ± k₂ ≠ 0`): 1. Exact equality of forward and parasitic Leray-projected channels for EVERY angle: `‖P_{k₊}(h₁ × h₂)‖² = ‖P_{k₋}(h₁ × h̄₂)‖² = C_cross / (4 κ⁴) = ε (2 - ε) / 4 ≤ ε / 2` (where `ε = 1 - (k₁ · k₂) / κ²`), vanishing as `ε → 0` while raw `‖h₁ × h₂‖² = 1 - ε²/4 → 1`! 2. Exact 50% efficiency lock: whenever `C_cross > 0`, `N₊ / (N₊ + N₋) = 1 / 2`. 3. Exact 50/50 helicity split inside `k₊`: for any `(+)` and `(-)` helical modes `h_p, h_m` at `k₊`, both projections equal `C_cross / (8 κ⁴)` (leaving at most 25% in a single forward helicity!). -/ theorem heterochiral_same_shell_exact_balance {k₁ k₂ : Vec3} {κ s₁ s₂ : ℝ} {h₁ h₂ : Vec3C} (hh₁ : IsHelicalMode k₁ κ s₁ h₁) (hh₂ : IsHelicalMode k₂ κ s₂ h₂) (hhet : s₁ + s₂ = 0) (hp : vecDot (k₁ + k₂) (k₁ + k₂) ≠ 0) (hm : vecDot (k₁ - k₂) (k₁ - k₂) ≠ 0) : let C_cross := κ ^ 4 - (vecDot k₁ k₂) ^ 2 let ε := 1 - vecDot k₁ k₂ / κ ^ 2 let Np := normSqC (lerayProjC (k₁ + k₂) (crossC h₁ h₂)) let Nm := normSqC (lerayProjC (k₁ - k₂) (crossC h₁ (star h₂))) (Np = C_cross / (4 * κ ^ 4)) ∧ (Nm = C_cross / (4 * κ ^ 4)) ∧ (C_cross / (4 * κ ^ 4) = ε * (2 - ε) / 4) ∧ (normSqC (crossC h₁ h₂) = 1 - ε ^ 2 / 4) ∧ (0 < C_cross → Np / (Np + Nm) = 1 / 2) ∧ (∀ (κp : ℝ) (h_p h_m : Vec3C), IsHelicalMode (k₁ + k₂) κp 1 h_p → IsHelicalMode (k₁ + k₂) κp (-1) h_m → Complex.normSq (innerC h_p (lerayProjC (k₁ + k₂) (crossC h₁ h₂))) = C_cross / (8 * κ ^ 4) ∧ Complex.normSq (innerC h_m (lerayProjC (k₁ + k₂) (crossC h₁ h₂))) = C_cross / (8 * κ ^ 4)) := by dsimp only have hsum0 : s₁ * κ + s₂ * κ = 0 := by calc s₁ * κ + s₂ * κ = (s₁ + s₂) * κ := by ring _ = 0 := by rw [hhet, zero_mul] have hs12 : s₁ * s₂ = -1 := by have h2 : s₂ = -s₁ := by linarith rw [h2] nlinarith [hh₁.2.2.1] have hκ : κ ≠ 0 := ne_of_gt hh₁.1 have hnorms := waleffe_leray_exact_norms hh₁ hh₂ hp hm have hNp : normSqC (lerayProjC (k₁ + k₂) (crossC h₁ h₂)) = (κ ^ 4 - (vecDot k₁ k₂) ^ 2) / (4 * κ ^ 4) := by rw [hnorms.1, hsum0] field_simp [hκ] ring have hNm : normSqC (lerayProjC (k₁ - k₂) (crossC h₁ (star h₂))) = (κ ^ 4 - (vecDot k₁ k₂) ^ 2) / (4 * κ ^ 4) := by rw [hnorms.2, hsum0] field_simp [hκ] ring have heps : (κ ^ 4 - (vecDot k₁ k₂) ^ 2) / (4 * κ ^ 4) = (1 - vecDot k₁ k₂ / κ ^ 2) * (2 - (1 - vecDot k₁ k₂ / κ ^ 2)) / 4 := by field_simp [hκ] ring have hraw : normSqC (crossC h₁ h₂) = 1 - (1 - vecDot k₁ k₂ / κ ^ 2) ^ 2 / 4 := by obtain ⟨_, _, hov1, _, _, _⟩ := helical_basis_free_lemmas hh₁ hh₂ rw [normSqC_crossC, hh₁.2.2.2.1, hh₂.2.2.2.1, one_mul, hov1, hs12] field_simp [hκ] ring refine ⟨hNp, hNm, heps, hraw, ?_, ?_⟩ · intro hCpos rw [hNp, hNm] have hden : (κ ^ 4 - (vecDot k₁ k₂) ^ 2) / (4 * κ ^ 4) ≠ 0 := ne_of_gt (div_pos hCpos (by positivity)) field_simp [hden] ring · intro κp h_p h_m hhp hhm have h1 := waleffe_forward_helicity_split hh₁ hh₂ hhp hm have h2 := waleffe_forward_helicity_split hh₁ hh₂ hhm hm rw [hsum0, hhp.2.1] at h1 rw [hsum0, hhm.2.1] at h2 have hκp : κp ≠ 0 := ne_of_gt hhp.1 constructor · rw [h1]; field_simp [hκ, hκp]; ring · rw [h2]; field_simp [hκ, hκp]; ring /-- **Theorem 11 (`homochiral_same_shell_beltrami_zero`)**: For any same-shell homochiral pair (`κ₁ = κ₂ = κ`, `s₁ = s₂`), the Waleffe prefactor `s₁ κ - s₂ κ` vanishes identically (exact Beltrami annihilation of both channels). -/ theorem homochiral_same_shell_beltrami_zero {k₁ k₂ : Vec3} {κ s₁ s₂ : ℝ} {h₁ h₂ : Vec3C} (_hh₁ : IsHelicalMode k₁ κ s₁ h₁) (_hh₂ : IsHelicalMode k₂ κ s₂ h₂) (hhom : s₁ = s₂) : s₁ * κ - s₂ * κ = 0 := by rw [hhom, sub_self] /-- Rational-parameterized forward efficiency `η_fwd(r, c, σ)` for two single-helicity plane waves. -/ def rationalAplus (r c σ : ℝ) : ℝ := 1 + (1 + σ * r) ^ 2 / (1 + r ^ 2 + 2 * r * c) def rationalAminus (r c σ : ℝ) : ℝ := 1 + (1 + σ * r) ^ 2 / (1 + r ^ 2 - 2 * r * c) def rationalEtaFwd (r c σ : ℝ) : ℝ := rationalAplus r c σ / (rationalAplus r c σ + rationalAminus r c σ) /-- **Theorem 12 (`general_rational_helical_efficiency_bound`)**: Exact global ceilings for two single-helicity 3D plane waves (`r > 0`, `c ∈ (-1, 1)`, `σ ∈ {±1}`): 1. **Universal Octave-Jump Ceiling (`η_fwd ≤ 1/2`):** Whenever `2 max(1, r²) ≤ 1 + r² + 2 r c` (covering every octave jump `|k₊| ≥ √2 max(|k₁|, |k₂|)` and `|k₊| ≥ 1.5 max`), `0 ≤ c`, `η_fwd ≤ 1/2`, with equality iff `c = 0 ∨ (r = 1 ∧ σ = -1)`. 2. **Higher-Wavenumber Universal Ceiling:** `0 ≤ c → η_fwd ≤ 1/2` and `c ≤ 0 → 1 - η_fwd ≤ 1/2`. 3. **Homochiral Octave-Jump Ceiling (`175 / 382`):** For `σ = 1, r ≤ 1, 9/4 ≤ 1 + r² + 2 r c`, `η_fwd ≤ 175 / 382` via the exact positive-coefficient polynomial witness `72 (1 - r) (92 r³ + 276 r² + 301 r + 103) ≥ 0`. 4. **Homochiral Weak-Forward Ceiling (`15 / 22`):** For `σ = 1, r ≤ 1, 1 ≤ 1 + r² + 2 r c`, `η_fwd ≤ 15 / 22` via `2 (1 - r) (7 r³ + 21 r² + 16 r + 8) ≥ 0`. -/ theorem general_rational_helical_efficiency_bound (r c σ : ℝ) (hr : 0 < r) (hc1 : -1 < c) (hc2 : c < 1) (hσ : σ = 1 ∨ σ = -1) : let η := rationalEtaFwd r c σ (2 * max 1 (r ^ 2) ≤ 1 + r ^ 2 + 2 * r * c → 0 ≤ c ∧ η ≤ 1 / 2 ∧ (η = 1 / 2 ↔ c = 0 ∨ (r = 1 ∧ σ = -1))) ∧ ((0 ≤ c → η ≤ 1 / 2) ∧ (c ≤ 0 → 1 - η ≤ 1 / 2)) ∧ (σ = 1 → r ≤ 1 → (9 / 4 : ℝ) ≤ 1 + r ^ 2 + 2 * r * c → η ≤ 175 / 382) ∧ (σ = 1 → r ≤ 1 → 1 ≤ 1 + r ^ 2 + 2 * r * c → η ≤ 15 / 22) := by dsimp only have hDp_pos : 0 < 1 + r ^ 2 + 2 * r * c := by have h1 : (1 - r) ^ 2 < 1 + r ^ 2 + 2 * r * c := by nlinarith nlinarith [sq_nonneg (1 - r)] have hDm_pos : 0 < 1 + r ^ 2 - 2 * r * c := by have h1 : (1 - r) ^ 2 < 1 + r ^ 2 - 2 * r * c := by nlinarith nlinarith [sq_nonneg (1 - r)] have hAp_pos : 0 < rationalAplus r c σ := by dsimp only [rationalAplus]; positivity have hAm_pos : 0 < rationalAminus r c σ := by dsimp only [rationalAminus]; positivity have htot_pos : 0 < rationalAplus r c σ + rationalAminus r c σ := add_pos hAp_pos hAm_pos have hiff_half : rationalEtaFwd r c σ ≤ 1 / 2 ↔ rationalAplus r c σ ≤ rationalAminus r c σ := by dsimp only [rationalEtaFwd] rw [div_le_iff₀ htot_pos] constructor <;> intro h <;> linarith have heq_half : rationalEtaFwd r c σ = 1 / 2 ↔ rationalAplus r c σ = rationalAminus r c σ := by dsimp only [rationalEtaFwd] rw [div_eq_iff (ne_of_gt htot_pos)] constructor <;> intro h <;> linarith have hdiff_A : rationalAminus r c σ - rationalAplus r c σ = 4 * r * c * (1 + σ * r) ^ 2 / ((1 + r ^ 2 + 2 * r * c) * (1 + r ^ 2 - 2 * r * c)) := by dsimp only [rationalAplus, rationalAminus] rw [add_sub_add_left_eq_sub, div_sub_div _ _ (ne_of_gt hDm_pos) (ne_of_gt hDp_pos)] have hnum : (1 + σ * r) ^ 2 * (1 + r ^ 2 + 2 * r * c) - (1 + r ^ 2 - 2 * r * c) * (1 + σ * r) ^ 2 = 4 * r * c * (1 + σ * r) ^ 2 := by ring have hden : (1 + r ^ 2 - 2 * r * c) * (1 + r ^ 2 + 2 * r * c) = (1 + r ^ 2 + 2 * r * c) * (1 + r ^ 2 - 2 * r * c) := by ring rw [hnum, hden] have hpart2 : (0 ≤ c → rationalEtaFwd r c σ ≤ 1 / 2) ∧ (c ≤ 0 → 1 - rationalEtaFwd r c σ ≤ 1 / 2) := by constructor · intro hc_nn rw [hiff_half] have hnn : 0 ≤ rationalAminus r c σ - rationalAplus r c σ := by rw [hdiff_A]; positivity linarith · intro hc_np have hle : rationalAminus r c σ ≤ rationalAplus r c σ := by have hnp : rationalAminus r c σ - rationalAplus r c σ ≤ 0 := by rw [hdiff_A] have hden : 0 < (1 + r ^ 2 + 2 * r * c) * (1 + r ^ 2 - 2 * r * c) := mul_pos hDp_pos hDm_pos have hnum : 4 * r * c * (1 + σ * r) ^ 2 ≤ 0 := by have h1 : 4 * r * c ≤ 0 := by nlinarith have h2 : 0 ≤ (1 + σ * r) ^ 2 := sq_nonneg _ nlinarith exact div_nonpos_of_nonpos_of_nonneg hnum (le_of_lt hden) linarith dsimp only [rationalEtaFwd] have hsub : 1 - rationalAplus r c σ / (rationalAplus r c σ + rationalAminus r c σ) = rationalAminus r c σ / (rationalAplus r c σ + rationalAminus r c σ) := by field_simp [ne_of_gt htot_pos]; ring rw [hsub, div_le_iff₀ htot_pos] linarith -- Monotonicity of rationalEtaFwd r c 1 in c (decreasing in c for r > 0!) have hmono_c : ∀ c₁ c₂ : ℝ, -1 < c₁ → c₁ ≤ c₂ → c₂ < 1 → rationalEtaFwd r c₂ 1 ≤ rationalEtaFwd r c₁ 1 := by intro c₁ c₂ h1_lo h12 h2_hi have hDp1 : 0 < 1 + r ^ 2 + 2 * r * c₁ := by nlinarith [sq_nonneg (1 - r)] have hDm1 : 0 < 1 + r ^ 2 - 2 * r * c₁ := by nlinarith [sq_nonneg (1 - r)] have hDp2 : 0 < 1 + r ^ 2 + 2 * r * c₂ := by nlinarith [sq_nonneg (1 - r)] have hDm2 : 0 < 1 + r ^ 2 - 2 * r * c₂ := by nlinarith [sq_nonneg (1 - r)] have hAp_le : rationalAplus r c₂ 1 ≤ rationalAplus r c₁ 1 := by dsimp only [rationalAplus] have hsub : (1 + (1 + 1 * r) ^ 2 / (1 + r ^ 2 + 2 * r * c₁)) - (1 + (1 + 1 * r) ^ 2 / (1 + r ^ 2 + 2 * r * c₂)) = 2 * r * (c₂ - c₁) * (1 + r) ^ 2 / ((1 + r ^ 2 + 2 * r * c₁) * (1 + r ^ 2 + 2 * r * c₂)) := by rw [add_sub_add_left_eq_sub, div_sub_div _ _ (ne_of_gt hDp1) (ne_of_gt hDp2)] congr 1; ring have hnn : 0 ≤ 2 * r * (c₂ - c₁) * (1 + r) ^ 2 / ((1 + r ^ 2 + 2 * r * c₁) * (1 + r ^ 2 + 2 * r * c₂)) := by have : 0 ≤ c₂ - c₁ := by linarith positivity linarith have hAm_le : rationalAminus r c₁ 1 ≤ rationalAminus r c₂ 1 := by dsimp only [rationalAminus] have hsub : (1 + (1 + 1 * r) ^ 2 / (1 + r ^ 2 - 2 * r * c₂)) - (1 + (1 + 1 * r) ^ 2 / (1 + r ^ 2 - 2 * r * c₁)) = 2 * r * (c₂ - c₁) * (1 + r) ^ 2 / ((1 + r ^ 2 - 2 * r * c₁) * (1 + r ^ 2 - 2 * r * c₂)) := by rw [add_sub_add_left_eq_sub, div_sub_div _ _ (ne_of_gt hDm2) (ne_of_gt hDm1)] congr 1 <;> ring have hnn : 0 ≤ 2 * r * (c₂ - c₁) * (1 + r) ^ 2 / ((1 + r ^ 2 - 2 * r * c₁) * (1 + r ^ 2 - 2 * r * c₂)) := by have : 0 ≤ c₂ - c₁ := by linarith positivity linarith have hAp1 : 0 < rationalAplus r c₁ 1 := by dsimp [rationalAplus]; positivity have hAm1 : 0 < rationalAminus r c₁ 1 := by dsimp [rationalAminus]; positivity have hAp2 : 0 < rationalAplus r c₂ 1 := by dsimp [rationalAplus]; positivity have hAm2 : 0 < rationalAminus r c₂ 1 := by dsimp [rationalAminus]; positivity dsimp only [rationalEtaFwd] rw [div_le_div_iff₀ (add_pos hAp2 hAm2) (add_pos hAp1 hAm1)] nlinarith refine ⟨?_, hpart2, ?_, ?_⟩ · -- (1) Universal octave-jump ceiling intro hoct have hc_nn : 0 ≤ c := by have h1 : 1 + r ^ 2 ≤ 2 * max 1 (r ^ 2) := by rcases le_total 1 (r ^ 2) with h | h · rw [max_eq_right h]; linarith · rw [max_eq_left h]; linarith nlinarith refine ⟨hc_nn, hpart2.1 hc_nn, ?_⟩ rw [heq_half] have hdiff_zero : rationalAplus r c σ = rationalAminus r c σ ↔ 4 * r * c * (1 + σ * r) ^ 2 = 0 := by have hden_ne : (1 + r ^ 2 + 2 * r * c) * (1 + r ^ 2 - 2 * r * c) ≠ 0 := ne_of_gt (mul_pos hDp_pos hDm_pos) constructor · intro heq have hz : rationalAminus r c σ - rationalAplus r c σ = 0 := by linarith rw [hdiff_A, div_eq_zero_iff] at hz exact hz.resolve_right hden_ne · intro hz have h0 : rationalAminus r c σ - rationalAplus r c σ = 0 := by rw [hdiff_A, hz, zero_div] linarith rw [hdiff_zero] constructor · intro hz rcases mul_eq_zero.mp hz with h4rc | hsq · rcases mul_eq_zero.mp h4rc with h4r | hc0 · exfalso; linarith · exact Or.inl hc0 · have h1sr : 1 + σ * r = 0 := eq_zero_of_pow_eq_zero hsq rcases hσ with rfl | rfl · exfalso; linarith · exact Or.inr ⟨by linarith, rfl⟩ · rintro (rfl | ⟨rfl, rfl⟩) <;> ring · -- (3) Homochiral octave-jump ceiling 175 / 382 rintro rfl hr1 hoct have hr_gt_half : 1 / 2 < r := by have : (9 / 4 : ℝ) < (1 + r) ^ 2 := by nlinarith nlinarith let c₀ : ℝ := (5 / 4 - r ^ 2) / (2 * r) have hc0_le_c : c₀ ≤ c := by dsimp only [c₀] rw [div_le_iff₀ (by positivity)] linarith have hc0_gt : -1 < c₀ := by dsimp only [c₀] rw [lt_div_iff₀ (by positivity)] nlinarith have hc0_lt : c₀ < 1 := by dsimp only [c₀] rw [div_lt_iff₀ (by positivity)] nlinarith have hstep1 : rationalEtaFwd r c 1 ≤ rationalEtaFwd r c₀ 1 := hmono_c c₀ c hc0_gt hc0_le_c hc2 have hDp0 : 1 + r ^ 2 + 2 * r * c₀ = 9 / 4 := by dsimp only [c₀]; field_simp [ne_of_gt hr]; ring have hDm0 : 1 + r ^ 2 - 2 * r * c₀ = (8 * r ^ 2 - 1) / 4 := by dsimp only [c₀]; field_simp [ne_of_gt hr]; ring have h8r2 : 0 < 8 * r ^ 2 - 1 := by nlinarith have hbound0 : rationalEtaFwd r c₀ 1 ≤ 175 / 382 := by have hAp0 : rationalAplus r c₀ 1 = (9 + 4 * (1 + r) ^ 2) / 9 := by dsimp only [rationalAplus]; rw [hDp0]; field_simp have hAm0 : rationalAminus r c₀ 1 = (8 * r ^ 2 - 1 + 4 * (1 + r) ^ 2) / (8 * r ^ 2 - 1) := by dsimp only [rationalAminus]; rw [hDm0] rw [eq_div_iff (ne_of_gt h8r2), add_mul, one_mul, div_div_eq_mul_div, div_mul_cancel₀ _ (ne_of_gt h8r2)] ring have hAp0_pos : 0 < rationalAplus r c₀ 1 := by rw [hAp0]; positivity have hAm0_pos : 0 < rationalAminus r c₀ 1 := by rw [hAm0]; positivity dsimp only [rationalEtaFwd] rw [div_le_iff₀ (add_pos hAp0_pos hAm0_pos)] have htarget : 207 * rationalAplus r c₀ 1 ≤ 175 * rationalAminus r c₀ 1 := by rw [hAp0, hAm0, ← mul_div_assoc, ← mul_div_assoc, div_le_div_iff₀ (by norm_num) h8r2] have hpoly : 175 * 9 * (8 * r ^ 2 - 1 + 4 * (1 + r) ^ 2) - 207 * (8 * r ^ 2 - 1) * (9 + 4 * (1 + r) ^ 2) = 72 * (1 - r) * (92 * r ^ 3 + 276 * r ^ 2 + 301 * r + 103) := by ring have hnn : 0 ≤ 72 * (1 - r) * (92 * r ^ 3 + 276 * r ^ 2 + 301 * r + 103) := by have : 0 ≤ 1 - r := by linarith positivity linarith linarith exact hstep1.trans hbound0 · -- (4) Homochiral weak-forward ceiling 15 / 22 rintro rfl hr1 hweak let c₀ : ℝ := -r / 2 have hc0_le_c : c₀ ≤ c := by dsimp only [c₀] have : -r ^ 2 ≤ 2 * r * c := by linarith have hmul : 2 * r * (-r / 2) ≤ 2 * r * c := by linarith nlinarith have hc0_gt : -1 < c₀ := by dsimp only [c₀]; linarith have hc0_lt : c₀ < 1 := by dsimp only [c₀]; linarith have hstep1 : rationalEtaFwd r c 1 ≤ rationalEtaFwd r c₀ 1 := hmono_c c₀ c hc0_gt hc0_le_c hc2 have hDp0 : 1 + r ^ 2 + 2 * r * c₀ = 1 := by dsimp only [c₀]; ring have hDm0 : 1 + r ^ 2 - 2 * r * c₀ = 1 + 2 * r ^ 2 := by dsimp only [c₀]; ring have h12r2 : 0 < 1 + 2 * r ^ 2 := by positivity have hbound0 : rationalEtaFwd r c₀ 1 ≤ 15 / 22 := by have hAp0 : rationalAplus r c₀ 1 = 1 + (1 + r) ^ 2 := by dsimp only [rationalAplus]; rw [hDp0]; ring have hAm0 : rationalAminus r c₀ 1 = (1 + 2 * r ^ 2 + (1 + r) ^ 2) / (1 + 2 * r ^ 2) := by dsimp only [rationalAminus]; rw [hDm0] rw [eq_div_iff (ne_of_gt h12r2), add_mul, one_mul, div_mul_cancel₀ _ (ne_of_gt h12r2)] ring have hAp0_pos : 0 < rationalAplus r c₀ 1 := by rw [hAp0]; positivity have hAm0_pos : 0 < rationalAminus r c₀ 1 := by rw [hAm0]; positivity dsimp only [rationalEtaFwd] rw [div_le_iff₀ (add_pos hAp0_pos hAm0_pos)] have htarget : 7 * rationalAplus r c₀ 1 ≤ 15 * rationalAminus r c₀ 1 := by rw [hAp0, hAm0, ← mul_div_assoc, le_div_iff₀ h12r2] have hpoly : 15 * (1 + 2 * r ^ 2 + (1 + r) ^ 2) - 7 * (1 + 2 * r ^ 2) * (1 + (1 + r) ^ 2) = 2 * (1 - r) * (7 * r ^ 3 + 21 * r ^ 2 + 16 * r + 8) := by ring have hnn : 0 ≤ 2 * (1 - r) * (7 * r ^ 3 + 21 * r ^ 2 + 16 * r + 8) := by have : 0 ≤ 1 - r := by linarith positivity linarith linarith exact hstep1.trans hbound0 /-- Real Fourier-space Leray projector `P_k(v) = v - ((k · v) / |k|²) k` on `Vec3`. -/ def lerayProjR (k v : Vec3) : Vec3 := fun i => v i - (vecDot k v / vecDot k k) * k i /-- **Theorem 13 (`mixed_helicity_zero_backscatter_escape`)**: Adversarial counterexample delineating the exact scope of Theorems 8–12: For ANY two equal-magnitude non-collinear wavevectors `k₁, k₂ : Vec3` (`|k₁|² = |k₂|² = κ² > 0`, `e := k₁ × k₂ ≠ 0`, `k₁ ± k₂ ≠ 0`), defining the real **mixed-helicity** polarizations `v₁ := k₁ × e + κ e` and `v₂ := k₂ × e - κ e`: 1. Both modes are strictly divergence-free (`k₁ · v₁ = 0`, `k₂ · v₂ = 0`), hence both nonlinear self-interactions `(u_j · ∇) u_j` vanish identically! 2. The difference-channel forcing `Bm = (v₁ · k₂) v₂ - (v₂ · k₁) v₁` is a 100% pure gradient along `k₁ - k₂`, so **`lerayProjR (k₁ - k₂) Bm = 0` IDENTICALLY** (zero parasitic backscatter!). 3. The forward sum-channel projection equals **`lerayProjR (k₁ + k₂) Bp = (2 κ |e|²) • e`** with strictly positive energy **`4 κ² |e|⁶ > 0`**, achieving **`η_fwd = 1` (100% forward pumping)** — strictly escaping the single-helicity `1/2` ceiling and exceeding Tao's `η_crit = 1/2`! -/ theorem mixed_helicity_zero_backscatter_escape (k₁ k₂ : Vec3) (κ : ℝ) (hκ : 0 < κ) (hk₁ : vecDot k₁ k₁ = κ ^ 2) (hk₂ : vecDot k₂ k₂ = κ ^ 2) (he_pos : 0 < vecSqNorm (crossR k₁ k₂)) (hp : vecDot (k₁ + k₂) (k₁ + k₂) ≠ 0) (hm : vecDot (k₁ - k₂) (k₁ - k₂) ≠ 0) : let e : Vec3 := crossR k₁ k₂ let v₁ : Vec3 := fun i => crossR k₁ e i + κ * e i let v₂ : Vec3 := fun i => crossR k₂ e i - κ * e i let Bp : Vec3 := fun i => vecDot v₁ k₂ * v₂ i + vecDot v₂ k₁ * v₁ i let Bm : Vec3 := fun i => vecDot v₁ k₂ * v₂ i - vecDot v₂ k₁ * v₁ i (vecDot k₁ v₁ = 0) ∧ (vecDot k₂ v₂ = 0) ∧ (lerayProjR (k₁ - k₂) Bm = 0) ∧ (lerayProjR (k₁ + k₂) Bp = fun i => (2 * κ * vecSqNorm e) * e i) ∧ (vecSqNorm (lerayProjR (k₁ + k₂) Bp) = 4 * κ ^ 2 * (vecSqNorm e) ^ 3) ∧ (0 < vecSqNorm (lerayProjR (k₁ + k₂) Bp)) ∧ (vecSqNorm (lerayProjR (k₁ + k₂) Bp) / (vecSqNorm (lerayProjR (k₁ + k₂) Bp) + vecSqNorm (lerayProjR (k₁ - k₂) Bm)) = 1) := by dsimp only let e : Vec3 := crossR k₁ k₂ let v₁ : Vec3 := fun i => crossR k₁ e i + κ * e i let v₂ : Vec3 := fun i => crossR k₂ e i - κ * e i let Bp : Vec3 := fun i => vecDot v₁ k₂ * v₂ i + vecDot v₂ k₁ * v₁ i let Bm : Vec3 := fun i => vecDot v₁ k₂ * v₂ i - vecDot v₂ k₁ * v₁ i have hdiv1 : vecDot k₁ v₁ = 0 := by simp [v₁, e, vecDot, crossR, Fin.sum_univ_three]; ring have hdiv2 : vecDot k₂ v₂ = 0 := by simp [v₂, e, vecDot, crossR, Fin.sum_univ_three]; ring have hv1k2 : vecDot v₁ k₂ = -vecSqNorm e := by simp [v₁, e, vecDot, vecSqNorm, crossR, Fin.sum_univ_three]; ring have hv2k1 : vecDot v₂ k₁ = vecSqNorm e := by simp [v₂, e, vecDot, vecSqNorm, crossR, Fin.sum_univ_three]; ring have hv12_sum : ∀ i : Fin 3, v₁ i + v₂ i = (κ ^ 2 + vecDot k₁ k₂) * (k₁ - k₂) i := by have hbac : ∀ i : Fin 3, crossR k₁ e i + crossR k₂ e i = (vecDot k₁ k₂ + vecDot k₂ k₂) * k₁ i - (vecDot k₁ k₁ + vecDot k₁ k₂) * k₂ i := by intro i; fin_cases i <;> simp [e, crossR, vecDot, Fin.sum_univ_three] <;> ring intro i have h1 := hbac i rw [hk₁, hk₂] at h1 dsimp only [v₁, v₂] simp only [Pi.sub_apply] linarith only [h1] have hv12_diff : ∀ i : Fin 3, v₁ i - v₂ i = (vecDot k₁ k₂ - κ ^ 2) * (k₁ + k₂) i + 2 * κ * e i := by have hbac : ∀ i : Fin 3, crossR k₁ e i - crossR k₂ e i = (vecDot k₁ k₂ - vecDot k₂ k₂) * k₁ i - (vecDot k₁ k₁ - vecDot k₁ k₂) * k₂ i := by intro i; fin_cases i <;> simp [e, crossR, vecDot, Fin.sum_univ_three] <;> ring intro i have h1 := hbac i rw [hk₁, hk₂] at h1 dsimp only [v₁, v₂] simp only [Pi.add_apply] linarith only [h1] have hBm_eq : ∀ i : Fin 3, Bm i = -(vecSqNorm e * (κ ^ 2 + vecDot k₁ k₂)) * (k₁ - k₂) i := by intro i dsimp only [Bm] rw [hv1k2, hv2k1] have h1 := hv12_sum i calc -vecSqNorm e * v₂ i - vecSqNorm e * v₁ i = -vecSqNorm e * (v₁ i + v₂ i) := by ring _ = -vecSqNorm e * ((κ ^ 2 + vecDot k₁ k₂) * (k₁ - k₂) i) := by rw [h1] _ = -(vecSqNorm e * (κ ^ 2 + vecDot k₁ k₂)) * (k₁ - k₂) i := by ring have hleray_m : lerayProjR (k₁ - k₂) Bm = 0 := by funext i dsimp only [lerayProjR] have hdot_m : vecDot (k₁ - k₂) Bm = -(vecSqNorm e * (κ ^ 2 + vecDot k₁ k₂)) * vecDot (k₁ - k₂) (k₁ - k₂) := by simp only [vecDot, Fin.sum_univ_three, hBm_eq]; ring rw [hBm_eq i, hdot_m, mul_div_cancel_right₀ _ hm, sub_self] rfl have hBp_eq : ∀ i : Fin 3, Bp i = vecSqNorm e * (vecDot k₁ k₂ - κ ^ 2) * (k₁ + k₂) i + (2 * κ * vecSqNorm e) * e i := by intro i dsimp only [Bp] rw [hv1k2, hv2k1] have h1 := hv12_diff i calc -vecSqNorm e * v₂ i + vecSqNorm e * v₁ i = vecSqNorm e * (v₁ i - v₂ i) := by ring _ = vecSqNorm e * ((vecDot k₁ k₂ - κ ^ 2) * (k₁ + k₂) i + 2 * κ * e i) := by rw [h1] _ = vecSqNorm e * (vecDot k₁ k₂ - κ ^ 2) * (k₁ + k₂) i + (2 * κ * vecSqNorm e) * e i := by ring have hkpe : vecDot (k₁ + k₂) e = 0 := by simp [e, vecDot, crossR, Fin.sum_univ_three]; ring have hleray_p : lerayProjR (k₁ + k₂) Bp = fun i => (2 * κ * vecSqNorm e) * e i := by funext i dsimp only [lerayProjR] have hdot_p : vecDot (k₁ + k₂) Bp = vecSqNorm e * (vecDot k₁ k₂ - κ ^ 2) * vecDot (k₁ + k₂) (k₁ + k₂) := by have hsum : vecDot (k₁ + k₂) Bp = vecSqNorm e * (vecDot k₁ k₂ - κ ^ 2) * vecDot (k₁ + k₂) (k₁ + k₂) + (2 * κ * vecSqNorm e) * vecDot (k₁ + k₂) e := by simp only [vecDot, Fin.sum_univ_three, hBp_eq]; ring rw [hsum, hkpe, mul_zero, add_zero] rw [hBp_eq i, hdot_p, mul_div_cancel_right₀ _ hp] ring have hnorm_p : vecSqNorm (lerayProjR (k₁ + k₂) Bp) = 4 * κ ^ 2 * (vecSqNorm e) ^ 3 := by rw [hleray_p] simp only [vecSqNorm, Fin.sum_univ_three] ring have hnorm_p_pos : 0 < vecSqNorm (lerayProjR (k₁ + k₂) Bp) := by rw [hnorm_p]; positivity have hnorm_m_zero : vecSqNorm (lerayProjR (k₁ - k₂) Bm) = 0 := by rw [hleray_m]; simp [vecSqNorm] refine ⟨hdiv1, hdiv2, hleray_m, hleray_p, hnorm_p, hnorm_p_pos, ?_⟩ rw [hnorm_m_zero, add_zero, div_self (ne_of_gt hnorm_p_pos)] end end F02NavierStokes.OptionB_DyadicBlowupAndLerayObstruction