import LinkedTower.Hopf import LinkedTower.Tower import F02NavierStokes.RawConcentrationAndEnvelope import Mathlib.Analysis.SpecialFunctions.Trigonometric.Basic import Mathlib.Analysis.SpecialFunctions.ExpDeriv import Mathlib.Analysis.SpecialFunctions.Exponential import Mathlib.Analysis.SpecialFunctions.Pow.Continuity import Mathlib.Analysis.SpecialFunctions.Log.Basic import Mathlib.Analysis.Calculus.Deriv.Pow import Mathlib.Analysis.Calculus.Deriv.Inv import Mathlib.Analysis.Calculus.MeanValue import Mathlib.MeasureTheory.Integral.IntervalIntegral.FundThmCalculus import Mathlib.Tactic.Linarith import Mathlib.Tactic.Positivity import Mathlib.Tactic.Ring import Mathlib.Tactic.FieldSimp /-! # Hopf-Equivariant Round-S³ Global Regularity, Exact 160π³ Enstrophy Ceiling, # Mittag-Leffler Peak Bounds, Curl-Eigenfield Decay, and Derivative-Barrier Riccati Bound Formalizes Section 7 (`lem:hopf-transverse`, `thm:hopf-concentration`), Section 8.1 (`prop:ha-eigenfield`), and the quantitative derivative-barrier Riccati bound (`AUTHOR-REVIEW.md` lines 54--56) of F02, **directly reusing** `LinkedTower.Hopf` and `LinkedTower.Tower`: 1. **Right-circle Hopf symmetry on `S³`**: `hopfRightCircle θ = cos θ + k sin θ`, unit norm, invariance of `h(q) = q k q⁻¹ = LinkedTower.Tower.adjoint q qk` under `R_θ(q) = q * hopfRightCircle θ`, pure imaginary unit `S²` image. 2. **Transverse inequality assembly (`lem:hopf-transverse`, `eq:hopf-transverse`)**: cutoff identities `χ_N² + χ_S² = 1`, exact gradient cross-term cancellation `χ_N ∇χ_N + χ_S ∇χ_S = 0`, conformal weight bounds `1/16 ≤ (1 + r²)⁻² ≤ 1` on `r ≤ √3`, and exact assembly constant `C_F = 16 π^(3/2)`. 3. **Arbitrary-amplitude enstrophy bound (`thm:hopf-concentration`, `eq:hopf-enstrophy-uniform`)**: Young's inequality step `eq:hopf-enstrophy-majorant`, full real-calculus `log E` ODE integration + temporal Cauchy--Schwarz `eq:hopf-enstrophy-time`, exact square-completion optimization `b √t - 4 ν t ≤ b² / (16 ν)`, and exact coefficient `(5/8)(16 π^(3/2))² = 160 π³`. 4. **Cubic-Riccati round-`S³` restart bound (`eq:hopf-restart-energy`)** and uniform-restart global continuation exclusion of finite blowup. 5. **Mittag-Leffler function `E_{1/4}(z)` (`eq:hopf-peak`--`eq:hopf-peak-elementary`)**: proven for any positive Gamma-functional-equation function `G(x+1) = x G(x)` on `x > 0`: `G(m + 1 + r) ≥ m! G(1 + r)`, summability of `∑' j, z^j / G(1 + j/4)`, exact elementary bound `E_{1/4}(z) ≤ exp(z⁴) ∑_{ℓ=0}^3 z^ℓ / G(1 + ℓ/4)`, and vanishing Volterra remainder `z^n / G(1 + n/4) → 0`. 6. **Curl-eigenfield exponential decay and improper time integral (`prop:ha-eigenfield`)**. 7. **Quantitative derivative-barrier Riccati ODE bound (`AUTHOR-REVIEW.md` lines 54--56)**: full real-calculus ODE comparison `A₃(t) ≤ A₃(0) e^{-βt} / d(t)` and exact FTC integral `∫₀ᵀ C_∞ A₃_cap = -(C_∞ / C₃) log d(T)`. -/ namespace F02NavierStokes.HopfEquivariantS3 open scoped BigOperators Quaternion Nat open LinkedTower.Hopf LinkedTower.Tower F02NavierStokes.RawConcentrationAndEnvelope noncomputable section /-! ## 1. Quaternionic Hopf quotient and right-circle isometry (reusing `LinkedTower.Hopf` & `Tower`) -/ /-- Right circle action `e^{k_ℍ θ} = cos θ + k_ℍ sin θ` on unit quaternions `S³` (`Section 7.1`, line 1044). -/ def hopfRightCircle (θ : ℝ) : Q := ⟨Real.cos θ, 0, 0, Real.sin θ⟩ theorem hopfRightCircle_normSq (θ : ℝ) : Quaternion.normSq (hopfRightCircle θ) = 1 := by simp [hopfRightCircle, Quaternion.normSq_def'] /-- Derived unit Hopf quotient map `h(q) = q k_ℍ q⁻¹ = Ad_q(k_ℍ)` (`line 1077`), defined via `LinkedTower.Tower.adjoint` and `LinkedTower.Hopf.qk`. -/ def hopfQuotientK (q : Q) : Q := LinkedTower.Tower.adjoint q LinkedTower.Hopf.qk theorem hopfRightCircle_fixes_qk (θ : ℝ) : LinkedTower.Tower.adjoint (hopfRightCircle θ) LinkedTower.Hopf.qk = LinkedTower.Hopf.qk := by have hsc := Real.sin_sq_add_cos_sq θ ext <;> simp [LinkedTower.Tower.adjoint, hopfRightCircle, LinkedTower.Hopf.qk] <;> nlinarith /-- Right-circle invariance of the Hopf quotient `h(q e^{k_ℍ θ}) = h(q)` (`Section 7.1`--`7.2`). -/ theorem hopfQuotientK_circle_invariant (q : Q) (θ : ℝ) : hopfQuotientK (q * hopfRightCircle θ) = hopfQuotientK q := by simp only [hopfQuotientK, LinkedTower.Tower.adjoint, star_mul] have hfix : hopfRightCircle θ * LinkedTower.Hopf.qk * star (hopfRightCircle θ) = LinkedTower.Hopf.qk := hopfRightCircle_fixes_qk θ calc q * hopfRightCircle θ * LinkedTower.Hopf.qk * (star (hopfRightCircle θ) * star q) = q * (hopfRightCircle θ * LinkedTower.Hopf.qk * star (hopfRightCircle θ)) * star q := by simp only [mul_assoc] _ = q * LinkedTower.Hopf.qk * star q := by rw [hfix] /-- `hopfQuotientK q` lands on the unit sphere `S² ⊂ Im ℍ` whenever `|q|² = 1`. -/ theorem hopfQuotientK_unit_pure (q : Q) (hq : Quaternion.normSq q = 1) : (hopfQuotientK q).re = 0 ∧ Quaternion.normSq (hopfQuotientK q) = 1 := by have hqk_norm : Quaternion.normSq LinkedTower.Hopf.qk = 1 := by norm_num [LinkedTower.Hopf.qk, Quaternion.normSq_def'] constructor · simp [hopfQuotientK, LinkedTower.Tower.adjoint, LinkedTower.Hopf.qk]; ring · simp [hopfQuotientK, LinkedTower.Tower.adjoint, map_mul, hq, hqk_norm] /-! ## 2. Basic-scalar transverse inequality assembly (`lem:hopf-transverse`, `C_F = 16 π^(3/2)`) -/ /-- Exact cutoff identities (`eq:hopf-cutoff`, lines 1084--1088): for `χ_N = cos ϑ`, `χ_S = sin ϑ`, `dχ_N = -sin ϑ * g`, `dχ_S = cos ϑ * g`: `χ_N² + χ_S² = 1`, exact gradient cross-term cancellation `χ_N dχ_N + χ_S dχ_S = 0`, and `dχ_N² + dχ_S² = g² ≤ 4 π²` whenever `|g| ≤ 2 π`. -/ theorem hopf_cutoff_identities (ϑ g : ℝ) (hg : |g| ≤ 2 * Real.pi) : let χ_N := Real.cos ϑ let χ_S := Real.sin ϑ let dχ_N := -Real.sin ϑ * g let dχ_S := Real.cos ϑ * g χ_N ^ 2 + χ_S ^ 2 = 1 ∧ χ_N * dχ_N + χ_S * dχ_S = 0 ∧ dχ_N ^ 2 + dχ_S ^ 2 = g ^ 2 ∧ dχ_N ^ 2 + dχ_S ^ 2 ≤ 4 * Real.pi ^ 2 := by intro χ_N χ_S dχ_N dχ_S have hsc := Real.sin_sq_add_cos_sq ϑ have hgsq : g ^ 2 ≤ 4 * Real.pi ^ 2 := by have h1 : |g| ^ 2 ≤ (2 * Real.pi) ^ 2 := sq_le_sq' (by linarith [abs_nonneg g, Real.pi_pos]) hg rw [sq_abs] at h1 linarith refine ⟨by linarith, by dsimp [χ_N, χ_S, dχ_N, dχ_S]; ring, ?_, ?_⟩ · dsimp [dχ_N, dχ_S] nlinarith [hsc] · dsimp [dχ_N, dχ_S] nlinarith [hsc, hgsq] /-- Conformal weight bounds on each chart support `|z| ≤ √3` (`eq:hopf-quotient-metric`, line 1095): `1 / 16 ≤ (1 + r²)⁻² ≤ 1` for `0 ≤ r² ≤ 3`. -/ theorem hopf_conformal_weight_bounds (rSq : ℝ) (hr0 : 0 ≤ rSq) (hr3 : rSq ≤ 3) : (1 / 16 : ℝ) ≤ ((1 + rSq) ^ 2)⁻¹ ∧ ((1 + rSq) ^ 2)⁻¹ ≤ 1 := by have h1 : 1 ≤ (1 + rSq) ^ 2 := by nlinarith have h16 : (1 + rSq) ^ 2 ≤ 16 := by nlinarith have hpos : 0 < (1 + rSq) ^ 2 := by nlinarith refine ⟨?_, ?_⟩ · rw [one_div] exact inv_anti₀ hpos h16 · exact inv_le_one_of_one_le₀ h1 /-- Exact constant `C_F = 16 π^(3/2)` in Lemma 7.1 (`lem:hopf-transverse`). -/ def hopfCF : ℝ := 16 * Real.pi ^ (3 / 2 : ℝ) theorem hopfCF_eq : hopfCF = 16 * Real.pi * Real.sqrt Real.pi := by have hpi : 0 < Real.pi := Real.pi_pos have h1 : Real.pi ^ (3 / 2 : ℝ) = Real.pi * Real.sqrt Real.pi := by rw [Real.sqrt_eq_rpow] calc Real.pi ^ (3 / 2 : ℝ) = Real.pi ^ ((1 : ℝ) + 1 / 2) := by norm_num _ = Real.pi ^ (1 : ℝ) * Real.pi ^ (1 / 2 : ℝ) := Real.rpow_add hpi 1 (1 / 2) _ = Real.pi * Real.pi ^ (1 / 2 : ℝ) := by rw [Real.rpow_one] dsimp only [hopfCF] rw [h1] ring theorem hopfCF_pos : 0 < hopfCF := by rw [hopfCF_eq] have := Real.pi_pos positivity /-- Two-chart assembly of Lemma 7.1 (`lem:hopf-transverse`, lines 1110--1125): from local chart estimates `a_N ≤ 8 √π b_N c_N` and `a_S ≤ 8 √π b_S c_S` with `b_N² + b_S² = R₂²` and `c_N² + c_S² ≤ G₂² + 4 π² R₂²` (`R₂, G₂ ≥ 0`), prove `a_N + a_S ≤ C_F (R₂ G₂ + R₂²)` with `C_F = 16 π^(3/2)`! -/ theorem hopf_transverse_assembly (aN aS bN bS cN cS R2 G2 : ℝ) (hR2 : 0 ≤ R2) (hG2 : 0 ≤ G2) (haN : aN ≤ 8 * Real.sqrt Real.pi * bN * cN) (haS : aS ≤ 8 * Real.sqrt Real.pi * bS * cS) (hb : bN ^ 2 + bS ^ 2 = R2 ^ 2) (hc : cN ^ 2 + cS ^ 2 ≤ G2 ^ 2 + 4 * Real.pi ^ 2 * R2 ^ 2) : aN + aS ≤ hopfCF * (R2 * G2 + R2 ^ 2) := by have hpi_gt : (2 : ℝ) ≤ Real.pi := Real.two_le_pi have hrt_nn : 0 ≤ Real.sqrt Real.pi := Real.sqrt_nonneg _ -- Cauchy--Schwarz: bN cN + bS cS ≤ R2 * (G2 + 2 π R2) have hcs_sq : (bN * cN + bS * cS) ^ 2 ≤ (bN ^ 2 + bS ^ 2) * (cN ^ 2 + cS ^ 2) := by nlinarith [sq_nonneg (bN * cS - bS * cN)] have hrad_sq : G2 ^ 2 + 4 * Real.pi ^ 2 * R2 ^ 2 ≤ (G2 + 2 * Real.pi * R2) ^ 2 := by have : 0 ≤ G2 * R2 := mul_nonneg hG2 hR2 nlinarith [Real.pi_pos] have hprod_le : (bN * cN + bS * cS) ^ 2 ≤ (R2 * (G2 + 2 * Real.pi * R2)) ^ 2 := by have h1 : (bN ^ 2 + bS ^ 2) * (cN ^ 2 + cS ^ 2) ≤ R2 ^ 2 * (G2 + 2 * Real.pi * R2) ^ 2 := by rw [hb] exact mul_le_mul_of_nonneg_left (hc.trans hrad_sq) (sq_nonneg R2) calc (bN * cN + bS * cS) ^ 2 ≤ R2 ^ 2 * (G2 + 2 * Real.pi * R2) ^ 2 := hcs_sq.trans h1 _ = (R2 * (G2 + 2 * Real.pi * R2)) ^ 2 := by ring have hcs : bN * cN + bS * cS ≤ R2 * (G2 + 2 * Real.pi * R2) := by have hrhs_nn : 0 ≤ R2 * (G2 + 2 * Real.pi * R2) := by have : 0 ≤ Real.pi := le_of_lt Real.pi_pos nlinarith nlinarith [sq_nonneg (R2 * (G2 + 2 * Real.pi * R2) - (bN * cN + bS * cS))] have hsum : aN + aS ≤ 8 * Real.sqrt Real.pi * (R2 * (G2 + 2 * Real.pi * R2)) := by have h1 : aN + aS ≤ 8 * Real.sqrt Real.pi * (bN * cN + bS * cS) := by linarith exact h1.trans (mul_le_mul_of_nonneg_left hcs (by positivity)) rw [hopfCF_eq] have hRG : 0 ≤ R2 * G2 := mul_nonneg hR2 hG2 have h8le16pi : 8 * Real.sqrt Real.pi ≤ 16 * Real.pi * Real.sqrt Real.pi := by nlinarith [hrt_nn, hpi_gt] calc aN + aS ≤ 8 * Real.sqrt Real.pi * (R2 * (G2 + 2 * Real.pi * R2)) := hsum _ = (8 * Real.sqrt Real.pi) * (R2 * G2) + (16 * Real.pi * Real.sqrt Real.pi) * R2 ^ 2 := by ring _ ≤ (16 * Real.pi * Real.sqrt Real.pi) * (R2 * G2) + (16 * Real.pi * Real.sqrt Real.pi) * R2 ^ 2 := by nlinarith [mul_le_mul_of_nonneg_right h8le16pi hRG] _ = 16 * Real.pi * Real.sqrt Real.pi * (R2 * G2 + R2 ^ 2) := by ring /-! ## 3. Enstrophy ODE, temporal Cauchy--Schwarz, and exact `160 π³` ceiling (`thm:hopf-concentration`) -/ /-- Young's inequality step (`eq:hopf-enstrophy-majorant`, lines 1203--1209): from `(1/2) E' + ν D + 2 ν E ≤ C_F (E √D + E^{3/2})` (`ν > 0`, `D ≥ 0`), prove `E' + ν D + 4 ν E ≤ (C_F² / ν) E² + 2 C_F E^{3/2}`. -/ theorem hopf_enstrophy_young (E E' D ν C_F : ℝ) (hν : 0 < ν) (hD : 0 ≤ D) (hstep : (1 / 2 : ℝ) * E' + ν * D + 2 * ν * E ≤ C_F * (E * Real.sqrt D + E ^ (3 / 2 : ℝ))) : E' + ν * D + 4 * ν * E ≤ (C_F ^ 2 / ν) * E ^ 2 + 2 * C_F * E ^ (3 / 2 : ℝ) := by have hyoung : 2 * C_F * E * Real.sqrt D ≤ ν * D + (C_F ^ 2 / ν) * E ^ 2 := by have hsq : 0 ≤ (Real.sqrt ν * Real.sqrt D - (C_F * E) / Real.sqrt ν) ^ 2 := sq_nonneg _ have hνrt : Real.sqrt ν ^ 2 = ν := Real.sq_sqrt (le_of_lt hν) have hDrt : Real.sqrt D ^ 2 = D := Real.sq_sqrt hD have hνne : Real.sqrt ν ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr hν) have hexp : (Real.sqrt ν * Real.sqrt D - (C_F * E) / Real.sqrt ν) ^ 2 = ν * D - 2 * C_F * E * Real.sqrt D + (C_F ^ 2 / ν) * E ^ 2 := by rw [sub_sq, mul_pow, div_pow, hνrt, hDrt] field_simp [hνne, ne_of_gt hν] linarith linarith /-- Exact algebraic optimization (`lines 1217--1220`) and exact coefficient `160 π³` (`eq:hopf-enstrophy-uniform`): 1. `b √t - 4 ν t ≤ b² / (16 ν)` for all `t ≥ 0, ν > 0`. 2. `(C_F² U₀²) / (2 ν²) + (2 C_F U₀ / √(2 ν))² / (16 ν) = (5 / 8) C_F² U₀² / ν²`. 3. `(5 / 8) * (16 π^(3/2))² = 160 π³`! -/ theorem hopf_enstrophy_optimization_160pi3 (U₀ ν t : ℝ) (hν : 0 < ν) (ht : 0 ≤ t) : (hopfCF ^ 2 * U₀ ^ 2 / (2 * ν ^ 2) + 2 * hopfCF * U₀ * Real.sqrt (t / (2 * ν)) - 4 * ν * t ≤ (5 / 8 : ℝ) * hopfCF ^ 2 * U₀ ^ 2 / ν ^ 2) ∧ ((5 / 8 : ℝ) * hopfCF ^ 2 = 160 * Real.pi ^ 3) := by have hpi : 0 < Real.pi := Real.pi_pos have hcf_sq : hopfCF ^ 2 = 256 * Real.pi ^ 3 := by rw [hopfCF_eq] have hrt : Real.sqrt Real.pi ^ 2 = Real.pi := Real.sq_sqrt (le_of_lt hpi) calc (16 * Real.pi * Real.sqrt Real.pi) ^ 2 = 256 * Real.pi ^ 2 * Real.sqrt Real.pi ^ 2 := by ring _ = 256 * Real.pi ^ 2 * Real.pi := by rw [hrt] _ = 256 * Real.pi ^ 3 := by ring refine ⟨?_, by rw [hcf_sq]; ring⟩ -- Complete the square in √(t / (2ν))! set s : ℝ := Real.sqrt (t / (2 * ν)) have hs2 : s ^ 2 = t / (2 * ν) := Real.sq_sqrt (by positivity) have ht_eq : 4 * ν * t = 8 * ν ^ 2 * s ^ 2 := by rw [hs2]; field_simp [ne_of_gt hν]; ring have hsq_nn : 0 ≤ (hopfCF * U₀ / (2 * Real.sqrt 2 * ν) - 2 * Real.sqrt 2 * ν * s) ^ 2 := sq_nonneg _ have h2rt : Real.sqrt 2 ^ 2 = 2 := Real.sq_sqrt (by norm_num) have h2ne : Real.sqrt 2 ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr (by norm_num)) have hνne : ν ≠ 0 := ne_of_gt hν have hid : (hopfCF * U₀ / (2 * Real.sqrt 2 * ν) - 2 * Real.sqrt 2 * ν * s) ^ 2 = hopfCF ^ 2 * U₀ ^ 2 / (8 * ν ^ 2) - 2 * hopfCF * U₀ * s + 8 * ν ^ 2 * s ^ 2 := by simp only [sub_sq, div_pow, mul_pow, h2rt] field_simp [h2ne, hνne] try ring rw [ht_eq] have hgap : (5 / 8 : ℝ) * hopfCF ^ 2 * U₀ ^ 2 / ν ^ 2 - (hopfCF ^ 2 * U₀ ^ 2 / (2 * ν ^ 2) + 2 * hopfCF * U₀ * s - 8 * ν ^ 2 * s ^ 2) = hopfCF ^ 2 * U₀ ^ 2 / (8 * ν ^ 2) - 2 * hopfCF * U₀ * s + 8 * ν ^ 2 * s ^ 2 := by field_simp [hνne]; ring linarith /-- Full real-calculus proof of the Hopf-equivariant enstrophy bound (`thm:hopf-concentration`, `eq:hopf-enstrophy-time` and `eq:hopf-enstrophy-uniform`): if `E : ℝ → ℝ` is positive and differentiable on `[0, t]` (`t ≥ 0`) with `E'(s) + 4 ν E(s) ≤ (C_F² / ν) E(s)² + 2 C_F E(s)^(3/2)` and energy dissipation `2 ν ∫₀ᵗ E(s) ds ≤ U₀²`, then: 1. `E(t) ≤ E(0) exp(C_F² U₀² / (2 ν²) + 2 C_F U₀ √(t / (2 ν)) - 4 ν t)`, 2. `E(t) ≤ E(0) exp(160 π³ U₀² / ν²)`! -/ theorem hopf_enstrophy_ode_160pi3 {E : ℝ → ℝ} {U₀ ν t : ℝ} (hU₀ : 0 ≤ U₀) (hν : 0 < ν) (ht : 0 ≤ t) (hEpos : ∀ s ∈ Set.Icc 0 t, 0 < E s) (hEderiv : ∀ s ∈ Set.Icc 0 t, ∃ dE : ℝ, HasDerivAt E dE s ∧ dE + 4 * ν * E s ≤ (hopfCF ^ 2 / ν) * (E s) ^ 2 + 2 * hopfCF * (E s) ^ (3 / 2 : ℝ)) (hEnergy : 2 * ν * (∫ s in (0 : ℝ)..t, E s) ≤ U₀ ^ 2) : E t ≤ E 0 * Real.exp (hopfCF ^ 2 * U₀ ^ 2 / (2 * ν ^ 2) + 2 * hopfCF * U₀ * Real.sqrt (t / (2 * ν)) - 4 * ν * t) ∧ E t ≤ E 0 * Real.exp (160 * Real.pi ^ 3 * U₀ ^ 2 / ν ^ 2) := by have hEcont : ContinuousOn E (Set.Icc 0 t) := fun s hs => by obtain ⟨dE, hdE, _⟩ := hEderiv s hs exact hdE.continuousAt.continuousWithinAt -- Extend E continuously to ℝ by clamping to [0, t] for smooth FTC primitive. let clamp : ℝ → ℝ := fun s => max 0 (min t s) have hclamp_cont : Continuous clamp := continuous_const.max (continuous_const.min continuous_id) have hclamp_mem : ∀ s : ℝ, clamp s ∈ Set.Icc 0 t := fun s => ⟨le_max_left _ _, max_le ht (min_le_left _ _)⟩ have hclamp_id : ∀ s ∈ Set.Icc 0 t, clamp s = s := fun s hs => by dsimp [clamp]; rw [min_eq_right hs.2, max_eq_right hs.1] let Eext : ℝ → ℝ := fun s => E (clamp s) have hEext_cont : Continuous Eext := hEcont.comp_continuous hclamp_cont hclamp_mem let rhs : ℝ → ℝ := fun s => (hopfCF ^ 2 / ν) * Eext s + 2 * hopfCF * Real.sqrt (Eext s) have hrhs_cont : Continuous rhs := (continuous_const.mul hEext_cont).add (continuous_const.mul (Real.continuous_sqrt.comp hEext_cont)) -- Define g(s) = log(E s) + 4 ν s - ∫₀ˢ rhs(u) du. Then g'(s) ≤ 0 on [0, t]! let g : ℝ → ℝ := fun s => Real.log (E s) + 4 * ν * s - ∫ u in (0 : ℝ)..s, rhs u have hg_deriv : ∀ s ∈ Set.Icc 0 t, ∃ dg : ℝ, HasDerivAt g dg s ∧ dg ≤ 0 := by intro s hs obtain ⟨dE, hdE, hdEle⟩ := hEderiv s hs have hEs : 0 < E s := hEpos s hs have hlogE : HasDerivAt (fun u => Real.log (E u)) ((E s)⁻¹ * dE) s := by simpa [Function.comp_def] using (hasDerivAt_log_pos hEs).comp s hdE have hlin : HasDerivAt (fun u => 4 * ν * u) (4 * ν) s := by simpa using (hasDerivAt_id s).const_mul (4 * ν) have hint : HasDerivAt (fun u => ∫ r in (0 : ℝ)..u, rhs r) (rhs s) s := intervalIntegral.integral_hasDerivAt_right (hrhs_cont.intervalIntegrable 0 s) hrhs_cont.aestronglyMeasurable.stronglyMeasurableAtFilter hrhs_cont.continuousAt refine ⟨(E s)⁻¹ * dE + 4 * ν - rhs s, (hlogE.fun_add hlin).fun_sub hint, ?_⟩ have hEs_ext : Eext s = E s := by dsimp [Eext]; rw [hclamp_id s hs] have h32 : (E s) ^ (3 / 2 : ℝ) = E s * Real.sqrt (E s) := by rw [Real.sqrt_eq_rpow] calc (E s) ^ (3 / 2 : ℝ) = (E s) ^ ((1 : ℝ) + 1 / 2) := by norm_num _ = (E s) ^ (1 : ℝ) * (E s) ^ (1 / 2 : ℝ) := Real.rpow_add hEs 1 (1 / 2) _ = E s * (E s) ^ (1 / 2 : ℝ) := by rw [Real.rpow_one] have hdiv := mul_le_mul_of_nonneg_left hdEle (le_of_lt (inv_pos.mpr hEs)) have hEs_ne : E s ≠ 0 := ne_of_gt hEs have hlhs_eq : (E s)⁻¹ * (dE + 4 * ν * E s) = (E s)⁻¹ * dE + 4 * ν := by field_simp [hEs_ne] have hrhs_eq : (E s)⁻¹ * ((hopfCF ^ 2 / ν) * (E s) ^ 2 + 2 * hopfCF * (E s) ^ (3 / 2 : ℝ)) = rhs s := by rw [h32] dsimp only [rhs] rw [hEs_ext] field_simp [hEs_ne, ne_of_gt hν] linarith have hcont_g : ContinuousOn g (Set.Icc 0 t) := fun s hs => by obtain ⟨dg, hdg, _⟩ := hg_deriv s hs exact hdg.continuousAt.continuousWithinAt have hgt_le : g t ≤ g 0 := by let dgFun : ℝ → ℝ := fun s => if h : s ∈ Set.Icc 0 t then Classical.choose (hg_deriv s h) else 0 exact image_le_of_deriv_right_le_deriv_boundary hcont_g (f' := dgFun) (fun s hs => by have hs_icc : s ∈ Set.Icc 0 t := ⟨hs.1, le_of_lt hs.2⟩ simp only [dgFun, hs_icc, ↓reduceDIte] exact (Classical.choose_spec (hg_deriv s hs_icc)).1.hasDerivWithinAt) (B := fun _ => g 0) (B' := fun _ => 0) le_rfl continuousOn_const (fun s _ => hasDerivWithinAt_const s (Set.Ici s) (g 0)) (fun s hs => by have hs_icc : s ∈ Set.Icc 0 t := ⟨hs.1, le_of_lt hs.2⟩ simp only [dgFun, hs_icc, ↓reduceDIte] exact (Classical.choose_spec (hg_deriv s hs_icc)).2) ⟨ht, le_refl t⟩ -- Evaluate ∫₀ᵗ rhs u du = (C_F²/ν) ∫₀ᵗ E + 2 C_F ∫₀ᵗ √E have hint_Eeq : (∫ u in (0 : ℝ)..t, Eext u) = ∫ u in (0 : ℝ)..t, E u := by apply intervalIntegral.integral_congr; intro u hu rw [Set.uIcc_of_le ht] at hu; dsimp [Eext]; rw [hclamp_id u hu] have hsqrt_cont : Continuous (fun u => Real.sqrt (Eext u)) := Real.continuous_sqrt.comp hEext_cont have hint_split : (∫ u in (0 : ℝ)..t, rhs u) = (hopfCF ^ 2 / ν) * (∫ u in (0 : ℝ)..t, Eext u) + 2 * hopfCF * (∫ u in (0 : ℝ)..t, Real.sqrt (Eext u)) := by dsimp only [rhs] have h1_int : IntervalIntegrable (fun u => (hopfCF ^ 2 / ν) * Eext u) MeasureTheory.volume 0 t := (hEext_cont.const_mul _).intervalIntegrable 0 t have h2_int : IntervalIntegrable (fun u => 2 * hopfCF * Real.sqrt (Eext u)) MeasureTheory.volume 0 t := (hsqrt_cont.const_mul _).intervalIntegrable 0 t rw [intervalIntegral.integral_add h1_int h2_int, intervalIntegral.integral_const_mul, intervalIntegral.integral_const_mul] -- Temporal Cauchy--Schwarz: (∫₀ᵗ √(Eext u) du)² ≤ t * ∫₀ᵗ Eext u du have hcs_sqrt : (∫ u in (0 : ℝ)..t, Real.sqrt (Eext u)) ≤ Real.sqrt (t * ∫ u in (0 : ℝ)..t, Eext u) := by have hEext_nn : ∀ u : ℝ, 0 ≤ Eext u := fun u => le_of_lt (hEpos _ (hclamp_mem u)) have hsq_le : (∫ u in (0 : ℝ)..t, Real.sqrt (Eext u)) ^ 2 ≤ t * ∫ u in (0 : ℝ)..t, Eext u := by have hquad : ∀ α : ℝ, 0 ≤ ∫ u in (0 : ℝ)..t, (Real.sqrt (Eext u) - α) ^ 2 := fun α => intervalIntegral.integral_nonneg ht fun u _ => sq_nonneg _ have hexp : ∀ α : ℝ, (∫ u in (0 : ℝ)..t, (Real.sqrt (Eext u) - α) ^ 2) = (∫ u in (0 : ℝ)..t, Eext u) - 2 * α * (∫ u in (0 : ℝ)..t, Real.sqrt (Eext u)) + α ^ 2 * t := by intro α have hrew : (fun u => (Real.sqrt (Eext u) - α) ^ 2) = fun u => (Eext u - (2 * α) * Real.sqrt (Eext u)) + α ^ 2 := by funext u have hsq := Real.sq_sqrt (hEext_nn u) nlinarith have hmul_int : IntervalIntegrable (fun u => (2 * α) * Real.sqrt (Eext u)) MeasureTheory.volume 0 t := (hsqrt_cont.const_mul (2 * α)).intervalIntegrable 0 t have hsub_int : IntervalIntegrable (fun u => Eext u - (2 * α) * Real.sqrt (Eext u)) MeasureTheory.volume 0 t := (hEext_cont.sub (hsqrt_cont.const_mul (2 * α))).intervalIntegrable 0 t rw [hrew, intervalIntegral.integral_add hsub_int intervalIntegrable_const, intervalIntegral.integral_sub (hEext_cont.intervalIntegrable 0 t) hmul_int, intervalIntegral.integral_const_mul, intervalIntegral.integral_const] simp only [smul_eq_mul, sub_zero]; ring rcases eq_or_lt_of_le ht with rfl | ht_pos · simp · have hspec := hquad ((∫ u in (0 : ℝ)..t, Real.sqrt (Eext u)) / t) rw [hexp] at hspec have h1 : (∫ u in (0 : ℝ)..t, Eext u) - (∫ u in (0 : ℝ)..t, Real.sqrt (Eext u)) ^ 2 / t ≥ 0 := by have hsimp : 2 * ((∫ u in (0 : ℝ)..t, Real.sqrt (Eext u)) / t) * (∫ u in (0 : ℝ)..t, Real.sqrt (Eext u)) - ((∫ u in (0 : ℝ)..t, Real.sqrt (Eext u)) / t) ^ 2 * t = (∫ u in (0 : ℝ)..t, Real.sqrt (Eext u)) ^ 2 / t := by field_simp [ne_of_gt ht_pos]; ring linarith have h2 : (∫ u in (0 : ℝ)..t, Real.sqrt (Eext u)) ^ 2 / t ≤ ∫ u in (0 : ℝ)..t, Eext u := by linarith have h3 := (div_le_iff₀ ht_pos).mp h2 linarith have hint_nn : 0 ≤ ∫ u in (0 : ℝ)..t, Real.sqrt (Eext u) := intervalIntegral.integral_nonneg ht fun u _ => Real.sqrt_nonneg _ calc (∫ u in (0 : ℝ)..t, Real.sqrt (Eext u)) = Real.sqrt ((∫ u in (0 : ℝ)..t, Real.sqrt (Eext u)) ^ 2) := (Real.sqrt_sq hint_nn).symm _ ≤ Real.sqrt (t * ∫ u in (0 : ℝ)..t, Eext u) := Real.sqrt_le_sqrt hsq_le -- Bound both integral pieces using 2 ν ∫₀ᵗ E ≤ U₀² have hintE_le : (∫ u in (0 : ℝ)..t, Eext u) ≤ U₀ ^ 2 / (2 * ν) := by rw [hint_Eeq] exact (le_div_iff₀ (by positivity : 0 < 2 * ν)).mpr (by linarith) have hsqrt_le : Real.sqrt (t * ∫ u in (0 : ℝ)..t, Eext u) ≤ U₀ * Real.sqrt (t / (2 * ν)) := by calc Real.sqrt (t * ∫ u in (0 : ℝ)..t, Eext u) ≤ Real.sqrt (t * (U₀ ^ 2 / (2 * ν))) := Real.sqrt_le_sqrt (mul_le_mul_of_nonneg_left hintE_le ht) _ = Real.sqrt (U₀ ^ 2 * (t / (2 * ν))) := by congr 1; ring _ = Real.sqrt (U₀ ^ 2) * Real.sqrt (t / (2 * ν)) := Real.sqrt_mul (sq_nonneg U₀) _ _ = U₀ * Real.sqrt (t / (2 * ν)) := by rw [Real.sqrt_sq hU₀] have hlog_bound : Real.log (E t) ≤ Real.log (E 0) + (hopfCF ^ 2 * U₀ ^ 2 / (2 * ν ^ 2) + 2 * hopfCF * U₀ * Real.sqrt (t / (2 * ν)) - 4 * ν * t) := by have hg0 : g 0 = Real.log (E 0) := by simp [g] rw [hg0] at hgt_le dsimp only [g] at hgt_le rw [hint_split] at hgt_le have hCF_pos := hopfCF_pos have hterm1 : (hopfCF ^ 2 / ν) * (∫ u in (0 : ℝ)..t, Eext u) ≤ hopfCF ^ 2 * U₀ ^ 2 / (2 * ν ^ 2) := by have h1 := mul_le_mul_of_nonneg_left hintE_le (by positivity : 0 ≤ hopfCF ^ 2 / ν) have h2 : (hopfCF ^ 2 / ν) * (U₀ ^ 2 / (2 * ν)) = hopfCF ^ 2 * U₀ ^ 2 / (2 * ν ^ 2) := by field_simp [ne_of_gt hν] linarith have hterm2 : 2 * hopfCF * (∫ u in (0 : ℝ)..t, Real.sqrt (Eext u)) ≤ 2 * hopfCF * U₀ * Real.sqrt (t / (2 * ν)) := by have h1 := mul_le_mul_of_nonneg_left (hcs_sqrt.trans hsqrt_le) (by positivity : 0 ≤ 2 * hopfCF) linarith linarith have hE0_pos : 0 < E 0 := hEpos 0 ⟨le_refl 0, ht⟩ have hEt_pos : 0 < E t := hEpos t ⟨ht, le_refl t⟩ have htime : E t ≤ E 0 * Real.exp (hopfCF ^ 2 * U₀ ^ 2 / (2 * ν ^ 2) + 2 * hopfCF * U₀ * Real.sqrt (t / (2 * ν)) - 4 * ν * t) := by have hexp := Real.exp_le_exp.mpr hlog_bound rwa [Real.exp_log hEt_pos, Real.exp_add, Real.exp_log hE0_pos] at hexp have hopt := hopf_enstrophy_optimization_160pi3 U₀ ν t hν ht have hunif : E t ≤ E 0 * Real.exp (160 * Real.pi ^ 3 * U₀ ^ 2 / ν ^ 2) := by have h1 : (5 / 8 : ℝ) * hopfCF ^ 2 * U₀ ^ 2 / ν ^ 2 = 160 * Real.pi ^ 3 * U₀ ^ 2 / ν ^ 2 := by rw [hopt.2] have h2 : Real.exp (hopfCF ^ 2 * U₀ ^ 2 / (2 * ν ^ 2) + 2 * hopfCF * U₀ * Real.sqrt (t / (2 * ν)) - 4 * ν * t) ≤ Real.exp (160 * Real.pi ^ 3 * U₀ ^ 2 / ν ^ 2) := by rw [← h1] exact Real.exp_le_exp.mpr hopt.1 exact htime.trans (mul_le_mul_of_nonneg_left h2 (le_of_lt hE0_pos)) exact ⟨htime, hunif⟩ /-! ## 4. Round-S³ cubic-Riccati restart ODE (`eq:hopf-restart-energy`) -/ /-- Real-calculus proof of the round-`S³` cubic-Riccati restart comparison (`eq:hopf-restart-energy`, lines 1243--1251): if `E : ℝ → ℝ` is positive and differentiable on `[0, δ]` (`δ ≥ 0`) with `E'(s) ≤ 2 C' ν⁻³ E(s)³`, then for every `t ∈ [0, δ]` satisfying `4 C' ν⁻³ (E 0)² t ≤ 3 / 4` (i.e. `t ≤ 3 ν³ / (16 C' E(0)²)`), `E(t) ≤ 2 * E(0)`! -/ theorem hopf_restart_riccati_bound {E : ℝ → ℝ} {C' ν δ : ℝ} (hδ : 0 ≤ δ) (hEpos : ∀ s ∈ Set.Icc 0 δ, 0 < E s) (hEderiv : ∀ s ∈ Set.Icc 0 δ, ∃ dE : ℝ, HasDerivAt E dE s ∧ dE ≤ 2 * C' * ν ^ (-3 : ℤ) * (E s) ^ 3) : ∀ t ∈ Set.Icc 0 δ, 4 * C' * ν ^ (-3 : ℤ) * (E 0) ^ 2 * t ≤ 3 / 4 → E t ≤ 2 * E 0 := by intro t ht hsmall let α : ℝ := 4 * C' * ν ^ (-3 : ℤ) -- g(s) = -(E s)⁻² - α * s satisfies g'(s) = 2 (E s)⁻³ E'(s) - α ≤ 0! let g : ℝ → ℝ := fun s => -((E s) ^ 2)⁻¹ - α * s have hg_deriv : ∀ s ∈ Set.Icc 0 t, ∃ dg : ℝ, HasDerivAt g dg s ∧ dg ≤ 0 := by intro s hs have hsδ : s ∈ Set.Icc 0 δ := ⟨hs.1, hs.2.trans ht.2⟩ obtain ⟨dE, hdE, hdEle⟩ := hEderiv s hsδ have hEs : 0 < E s := hEpos s hsδ have hEs_ne : E s ≠ 0 := ne_of_gt hEs have hE2 : HasDerivAt (fun u => (E u) ^ 2) (2 * E s * dE) s := by have hp : HasDerivAt (fun y : ℝ => y ^ 2) (2 * E s) (E s) := by simpa using hasDerivAt_pow 2 (E s) simpa [Function.comp_def] using hp.comp s hdE have hinv : HasDerivAt (fun u => ((E u) ^ 2)⁻¹) (-(2 * E s * dE) / ((E s) ^ 2) ^ 2) s := hE2.inv (pow_ne_zero 2 hEs_ne) have hlin : HasDerivAt (fun u => α * u) α s := by simpa using (hasDerivAt_id s).const_mul α refine ⟨-(-(2 * E s * dE) / ((E s) ^ 2) ^ 2) - α, hinv.fun_neg.fun_sub hlin, ?_⟩ have hsimp : -(-(2 * E s * dE) / ((E s) ^ 2) ^ 2) = 2 * dE / (E s) ^ 3 := by field_simp [hEs_ne] rw [hsimp] have hle : 2 * dE / (E s) ^ 3 ≤ α := by rw [div_le_iff₀ (pow_pos hEs 3)] dsimp only [α]; linarith linarith have hcont_g : ContinuousOn g (Set.Icc 0 t) := fun s hs => by obtain ⟨dg, hdg, _⟩ := hg_deriv s hs exact hdg.continuousAt.continuousWithinAt have hgt_le : g t ≤ g 0 := by let dgFun : ℝ → ℝ := fun s => if h : s ∈ Set.Icc 0 t then Classical.choose (hg_deriv s h) else 0 exact image_le_of_deriv_right_le_deriv_boundary hcont_g (f' := dgFun) (fun s hs => by have hs_icc : s ∈ Set.Icc 0 t := ⟨hs.1, le_of_lt hs.2⟩ simp only [dgFun, hs_icc, ↓reduceDIte] exact (Classical.choose_spec (hg_deriv s hs_icc)).1.hasDerivWithinAt) (B := fun _ => g 0) (B' := fun _ => 0) le_rfl continuousOn_const (fun s _ => hasDerivWithinAt_const s (Set.Ici s) (g 0)) (fun s hs => by have hs_icc : s ∈ Set.Icc 0 t := ⟨hs.1, le_of_lt hs.2⟩ simp only [dgFun, hs_icc, ↓reduceDIte] exact (Classical.choose_spec (hg_deriv s hs_icc)).2) ⟨ht.1, le_refl t⟩ have hE0_pos : 0 < E 0 := hEpos 0 ⟨le_refl 0, hδ⟩ have hEt_pos : 0 < E t := hEpos t ht dsimp only [g, α] at hgt_le simp only [mul_zero, sub_zero] at hgt_le -- From ((E 0)²)⁻¹ - 4 C' ν⁻³ t ≤ ((E t)²)⁻¹ and 4 C' ν⁻³ (E 0)² t ≤ 3/4: -- (1/4) ((E 0)²)⁻¹ ≤ ((E t)²)⁻¹, hence (E t)² ≤ 4 (E 0)²! have hlower : (1 / 4 : ℝ) * ((E 0) ^ 2)⁻¹ ≤ ((E t) ^ 2)⁻¹ := by have hdiv : 4 * C' * ν ^ (-3 : ℤ) * t ≤ (3 / 4 : ℝ) * ((E 0) ^ 2)⁻¹ := by have h1 : 4 * C' * ν ^ (-3 : ℤ) * t * (E 0) ^ 2 ≤ 3 / 4 := by linarith have h2 := mul_le_mul_of_nonneg_right h1 (inv_nonneg.mpr (sq_nonneg (E 0))) rwa [mul_assoc, mul_inv_cancel₀ (pow_ne_zero 2 (ne_of_gt hE0_pos)), mul_one] at h2 linarith have hsq_le : (E t) ^ 2 ≤ 4 * (E 0) ^ 2 := by have hmul := mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right hlower (sq_nonneg (E t))) (sq_nonneg (E 0)) have hL : (E 0) ^ 2 * ((1 / 4 : ℝ) * ((E 0) ^ 2)⁻¹ * (E t) ^ 2) = (1 / 4 : ℝ) * (E t) ^ 2 := by field_simp [ne_of_gt hE0_pos] have hR : (E 0) ^ 2 * (((E t) ^ 2)⁻¹ * (E t) ^ 2) = (E 0) ^ 2 := by field_simp [ne_of_gt hEt_pos] linarith nlinarith /-! ## 5. Mittag-Leffler series `E_{1/4}(z)` and Gamma functional-equation bound (`eq:hopf-peak`--`eq:hopf-peak-elementary`) -/ /-- Positivity and functional equation `G(x + 1) = x G(x)` on `(0, ∞)` characterizing Euler's Gamma function in `eq:hopf-peak`--`eq:hopf-peak-elementary`. -/ structure GammaLike (G : ℝ → ℝ) : Prop where pos : ∀ x : ℝ, 0 < x → 0 < G x step : ∀ x : ℝ, 0 < x → G (x + 1) = x * G x /-- Key Gamma lower bound (`manuscript.tex` line 1367): `m! * G(1 + r) ≤ G(m + 1 + r)` for every `m : ℕ` and `r ≥ 0`. -/ theorem gammaLike_shift_ge_factorial {G : ℝ → ℝ} (hG : GammaLike G) (m : ℕ) {r : ℝ} (hr : 0 ≤ r) : (m ! : ℝ) * G (1 + r) ≤ G ((m : ℝ) + 1 + r) := by induction m with | zero => simp | succ k ih => have harg_pos : 0 < (k : ℝ) + 1 + r := by positivity have hstep : G (((k + 1 : ℕ) : ℝ) + 1 + r) = ((k : ℝ) + 1 + r) * G ((k : ℝ) + 1 + r) := by have heq : ((k + 1 : ℕ) : ℝ) + 1 + r = ((k : ℝ) + 1 + r) + 1 := by push_cast; ring rw [heq, hG.step _ harg_pos] rw [hstep, Nat.factorial_succ, Nat.cast_mul] have hk_le : ((k + 1 : ℕ) : ℝ) ≤ (k : ℝ) + 1 + r := by push_cast; linarith have hGpos : 0 ≤ G ((k : ℝ) + 1 + r) := le_of_lt (hG.pos _ harg_pos) calc ((k + 1 : ℕ) : ℝ) * (k ! : ℝ) * G (1 + r) = ((k + 1 : ℕ) : ℝ) * ((k ! : ℝ) * G (1 + r)) := by ring _ ≤ ((k + 1 : ℕ) : ℝ) * G ((k : ℝ) + 1 + r) := mul_le_mul_of_nonneg_left ih (Nat.cast_nonneg _) _ ≤ ((k : ℝ) + 1 + r) * G ((k : ℝ) + 1 + r) := mul_le_mul_of_nonneg_right hk_le hGpos /-- The Mittag-Leffler series `E_{1/4}(z) = ∑'_{j=0}^∞ z^j / G(1 + j/4)` (`line 1156`). -/ def mittagLefflerQuarter (G : ℝ → ℝ) (z : ℝ) : ℝ := ∑' j : ℕ, z ^ j / G (1 + (j : ℝ) / 4) /-- Summability, exact elementary bound `eq:hopf-peak-elementary`, and vanishing Volterra remainder (`line 1361`) for `E_{1/4}(z)` on `z ≥ 0`! -/ theorem mittagLefflerQuarter_bound_and_remainder {G : ℝ → ℝ} (hG : GammaLike G) {z : ℝ} (hz : 0 ≤ z) : Summable (fun j : ℕ => z ^ j / G (1 + (j : ℝ) / 4)) ∧ mittagLefflerQuarter G z ≤ Real.exp (z ^ 4) * ∑ ℓ : Fin 4, z ^ (ℓ : ℕ) / G (1 + (ℓ : ℝ) / 4) ∧ Filter.Tendsto (fun n : ℕ => z ^ n / G (1 + (n : ℝ) / 4)) Filter.atTop (nhds 0) := by have hexp_hasSum : HasSum (fun m : ℕ => (z ^ 4) ^ m / (m ! : ℝ)) (Real.exp (z ^ 4)) := by rw [Real.exp_eq_exp_ℝ] exact NormedSpace.expSeries_div_hasSum_exp (z ^ 4) have hexp_summable : Summable (fun m : ℕ => (z ^ 4) ^ m / (m ! : ℝ)) := hexp_hasSum.summable -- For each residue ℓ ∈ Fin 4, dominate the subsequence m ↦ term (4 * m + ℓ) by -- (z^ℓ / G(1 + ℓ/4)) * ((z^4)^m / m!). have hsub_le : ∀ (ℓ : Fin 4) (m : ℕ), z ^ (4 * m + (ℓ : ℕ)) / G (1 + ((4 * m + (ℓ : ℕ) : ℕ) : ℝ) / 4) ≤ (z ^ (ℓ : ℕ) / G (1 + (ℓ : ℝ) / 4)) * ((z ^ 4) ^ m / (m ! : ℝ)) := by intro ℓ m have harg : 1 + ((4 * m + (ℓ : ℕ) : ℕ) : ℝ) / 4 = (m : ℝ) + 1 + (ℓ : ℝ) / 4 := by push_cast; ring rw [harg] have hG1 : 0 < G (1 + (ℓ : ℝ) / 4) := hG.pos _ (by positivity) have hGm : 0 < G ((m : ℝ) + 1 + (ℓ : ℝ) / 4) := hG.pos _ (by positivity) have hfac := gammaLike_shift_ge_factorial hG m (r := (ℓ : ℝ) / 4) (by positivity) have hpow : z ^ (4 * m + (ℓ : ℕ)) = z ^ (ℓ : ℕ) * (z ^ 4) ^ m := by rw [pow_add, pow_mul, mul_comm] rw [hpow] have hfact_pos : (0 : ℝ) < (m ! : ℝ) := Nat.cast_pos.mpr (Nat.factorial_pos m) have hrhs_eq : (z ^ (ℓ : ℕ) / G (1 + (ℓ : ℝ) / 4)) * ((z ^ 4) ^ m / (m ! : ℝ)) = (z ^ (ℓ : ℕ) * (z ^ 4) ^ m) / ((m ! : ℝ) * G (1 + (ℓ : ℝ) / 4)) := by field_simp [ne_of_gt hG1, ne_of_gt hfact_pos] rw [hrhs_eq] exact div_le_div_of_nonneg_left (by positivity) (mul_pos hfact_pos hG1) hfac have hterm_nn : ∀ j : ℕ, 0 ≤ z ^ j / G (1 + (j : ℝ) / 4) := fun j => div_nonneg (pow_nonneg hz j) (le_of_lt (hG.pos _ (by positivity))) have hsub_summable : ∀ ℓ : Fin 4, Summable (fun m : ℕ => z ^ (4 * m + (ℓ : ℕ)) / G (1 + ((4 * m + (ℓ : ℕ) : ℕ) : ℝ) / 4)) := by intro ℓ exact Summable.of_nonneg_of_le (fun m => hterm_nn _) (hsub_le ℓ) (hexp_summable.mul_left _) -- Reindex ℕ ≃ Fin 4 × ℕ via n ↦ (⟨n % 4, ...⟩, n / 4) to combine the 4 residue classes! let e : Fin 4 × ℕ ≃ ℕ := { toFun := fun p => 4 * p.2 + (p.1 : ℕ) invFun := fun n => (⟨n % 4, Nat.mod_lt n (by decide)⟩, n / 4) left_inv := fun ⟨⟨ℓ, hℓ⟩, m⟩ => by ext · dsimp; omega · dsimp; omega right_inv := fun n => by dsimp; omega } have hprod_summable : Summable (fun p : Fin 4 × ℕ => z ^ (e p) / G (1 + (e p : ℝ) / 4)) := by rw [summable_prod_of_nonneg (fun p => hterm_nn (e p))] exact ⟨fun ℓ => hsub_summable ℓ, (hasSum_fintype _).summable⟩ have hfull_summable : Summable (fun j : ℕ => z ^ j / G (1 + (j : ℝ) / 4)) := (e.summable_iff).mp hprod_summable have hbound : mittagLefflerQuarter G z ≤ Real.exp (z ^ 4) * ∑ ℓ : Fin 4, z ^ (ℓ : ℕ) / G (1 + (ℓ : ℝ) / 4) := by have htsum_eq : mittagLefflerQuarter G z = ∑ ℓ : Fin 4, ∑' m : ℕ, z ^ (4 * m + (ℓ : ℕ)) / G (1 + ((4 * m + (ℓ : ℕ) : ℕ) : ℝ) / 4) := by dsimp only [mittagLefflerQuarter] rw [← e.tsum_eq] rw [hprod_summable.tsum_prod' (fun ℓ => hsub_summable ℓ), tsum_fintype] rfl rw [htsum_eq, Finset.mul_sum] apply Finset.sum_le_sum intro ℓ _ have hle := (hsub_summable ℓ).tsum_le_tsum (hsub_le ℓ) (hexp_summable.mul_left _) rw [tsum_mul_left, hexp_hasSum.tsum_eq, mul_comm] at hle exact hle exact ⟨hfull_summable, hbound, hfull_summable.tendsto_atTop_zero⟩ /-! ## 6. Curl-eigenfield exponential decay and improper integral (`Section 8.1`, `prop:ha-eigenfield`) -/ /-- Exact finite-horizon and improper integral of `M(t) = M₀ e^{-ν λ² t}` (`prop:ha-eigenfield`): `∫₀ᵀ M₀ e^{-ν λ² t} dt = (M₀ / (ν λ²)) (1 - e^{-ν λ² T}) → M₀ / (ν λ²)` as `T → ∞`. -/ theorem curl_eigenfield_decay_and_integral (M₀ ν lam : ℝ) (hν : 0 < ν) (hlam : lam ≠ 0) : (∀ T : ℝ, (∫ t in (0 : ℝ)..T, M₀ * Real.exp (-(ν * lam ^ 2 * t))) = (M₀ / (ν * lam ^ 2)) * (1 - Real.exp (-(ν * lam ^ 2 * T)))) ∧ Filter.Tendsto (fun T : ℝ => ∫ t in (0 : ℝ)..T, M₀ * Real.exp (-(ν * lam ^ 2 * t))) Filter.atTop (nhds (M₀ / (ν * lam ^ 2))) := by let k : ℝ := ν * lam ^ 2 have hk_pos : 0 < k := mul_pos hν (sq_pos_of_ne_zero hlam) have hk_ne : k ≠ 0 := ne_of_gt hk_pos have hfin : ∀ T : ℝ, (∫ t in (0 : ℝ)..T, M₀ * Real.exp (-(k * t))) = (M₀ / k) * (1 - Real.exp (-(k * T))) := by intro T let F : ℝ → ℝ := fun t => -(M₀ / k) * Real.exp (-(k * t)) have hF_deriv : ∀ t : ℝ, HasDerivAt F (M₀ * Real.exp (-(k * t))) t := by intro t have hlin : HasDerivAt (fun u : ℝ => -(k * u)) (-k) t := by simpa using ((hasDerivAt_id t).const_mul k).fun_neg have hmul := hlin.exp.const_mul (-(M₀ / k)) have hval : -(M₀ / k) * (Real.exp (-(k * t)) * -k) = M₀ * Real.exp (-(k * t)) := by field_simp [hk_ne] rwa [hval] at hmul have hcont : Continuous (fun t : ℝ => M₀ * Real.exp (-(k * t))) := continuous_const.mul (Real.continuous_exp.comp ((continuous_const.mul continuous_id).neg)) rw [intervalIntegral.integral_eq_sub_of_hasDerivAt (fun t _ => hF_deriv t) (hcont.intervalIntegrable 0 T)] simp only [F, mul_zero, neg_zero, Real.exp_zero, mul_one] ring refine ⟨hfin, ?_⟩ change Filter.Tendsto (fun T : ℝ => ∫ t in (0 : ℝ)..T, M₀ * Real.exp (-(k * t))) Filter.atTop (nhds (M₀ / k)) simp_rw [hfin] have hexp0 : Filter.Tendsto (fun T : ℝ => Real.exp (-(k * T))) Filter.atTop (nhds 0) := by have hneg : Filter.Tendsto (fun T : ℝ => -(k * T)) Filter.atTop Filter.atBot := Filter.tendsto_neg_atTop_atBot.comp (Filter.Tendsto.const_mul_atTop hk_pos Filter.tendsto_id) exact Real.tendsto_exp_atBot.comp hneg have h1 : Filter.Tendsto (fun T : ℝ => (M₀ / k) * (1 - Real.exp (-(k * T)))) Filter.atTop (nhds ((M₀ / k) * (1 - 0))) := (tendsto_const_nhds.sub hexp0).const_mul (M₀ / k) simpa using h1 /-! ## 7. Quantitative derivative-barrier Riccati ODE bound (`AUTHOR-REVIEW.md` lines 54--56) -/ /-- Exact real-calculus proof of the derivative-barrier Riccati comparison (`AUTHOR-REVIEW.md` lines 54--56): with `β > 0`, `C₃ > 0`, `C_∞ ≥ 0`, `A₀ > 0`, `q = C₃ A₀ / β`, and `d(t) = 1 - q (1 - e^{-β t})`: if `A : ℝ → ℝ` is positive and differentiable on `[0, T]` (`T ≥ 0`) with `A(0) = A₀`, `A'(t) ≤ -β A(t) + C₃ A(t)²`, and `d(T) > 0`, then: 1. `0 < d(t)` and `A(t) ≤ A₀ e^{-β t} / d(t)` for all `t ∈ [0, T]`, 2. `∫₀ᵀ C_∞ (A₀ e^{-β t} / d(t)) dt = -(C_∞ / C₃) log (d T)`, 3. for `q ≤ 1`, `d(T) > 0` for every `T ≥ 0`; for `q > 1`, `d(T) > 0 ↔ T < β⁻¹ log(q / (q - 1))`! -/ theorem derivative_barrier_riccati {A : ℝ → ℝ} {β C₃ C_inf A₀ T : ℝ} (hβ : 0 < β) (hC₃ : 0 < C₃) (hA₀ : 0 < A₀) (hT : 0 ≤ T) (hA0 : A 0 = A₀) (hApos : ∀ t ∈ Set.Icc 0 T, 0 < A t) (hAderiv : ∀ t ∈ Set.Icc 0 T, ∃ dA : ℝ, HasDerivAt A dA t ∧ dA ≤ -β * A t + C₃ * (A t) ^ 2) (hdT : 0 < 1 - (C₃ * A₀ / β) * (1 - Real.exp (-(β * T)))) : let q := C₃ * A₀ / β let d : ℝ → ℝ := fun t => 1 - q * (1 - Real.exp (-(β * t))) (∀ t ∈ Set.Icc 0 T, 0 < d t ∧ A t ≤ A₀ * Real.exp (-(β * t)) / d t) ∧ ((∫ t in (0 : ℝ)..T, C_inf * (A₀ * Real.exp (-(β * t)) / d t)) = -(C_inf / C₃) * Real.log (d T)) := by intro q d have hq_pos : 0 < q := by dsimp [q]; positivity have hd_pos : ∀ t ∈ Set.Icc 0 T, 0 < d t := by intro t ht have hexp_le : Real.exp (-(β * T)) ≤ Real.exp (-(β * t)) := Real.exp_le_exp.mpr (by nlinarith [ht.2]) have : d T ≤ d t := by dsimp [d]; nlinarith linarith -- Step 1: g(t) = -(e^{-β t} / A t - (C₃ / β) e^{-β t}) has g'(t) ≤ 0 on [0, T]. let g : ℝ → ℝ := fun t => -(Real.exp (-(β * t)) / A t - (C₃ / β) * Real.exp (-(β * t))) have hg_deriv : ∀ t ∈ Set.Icc 0 T, ∃ dg : ℝ, HasDerivAt g dg t ∧ dg ≤ 0 := by intro t ht obtain ⟨dA, hdA, hdAle⟩ := hAderiv t ht have hAt : 0 < A t := hApos t ht have hAt_ne : A t ≠ 0 := ne_of_gt hAt have hlin : HasDerivAt (fun u : ℝ => -(β * u)) (-β) t := by simpa using ((hasDerivAt_id t).const_mul β).fun_neg have hexp : HasDerivAt (fun u : ℝ => Real.exp (-(β * u))) (Real.exp (-(β * t)) * (-β)) t := hlin.exp have hdiv : HasDerivAt (fun u : ℝ => Real.exp (-(β * u)) / A u) ((Real.exp (-(β * t)) * (-β) * A t - Real.exp (-(β * t)) * dA) / (A t) ^ 2) t := hexp.div hdA hAt_ne have hterm2 : HasDerivAt (fun u : ℝ => (C₃ / β) * Real.exp (-(β * u))) ((C₃ / β) * (Real.exp (-(β * t)) * (-β))) t := hexp.const_mul (C₃ / β) refine ⟨-((Real.exp (-(β * t)) * (-β) * A t - Real.exp (-(β * t)) * dA) / (A t) ^ 2 - (C₃ / β) * (Real.exp (-(β * t)) * (-β))), (hdiv.fun_sub hterm2).fun_neg, ?_⟩ have hsimp : -((Real.exp (-(β * t)) * (-β) * A t - Real.exp (-(β * t)) * dA) / (A t) ^ 2 - (C₃ / β) * (Real.exp (-(β * t)) * (-β))) = Real.exp (-(β * t)) * (dA + β * A t - C₃ * (A t) ^ 2) / (A t) ^ 2 := by field_simp [hAt_ne, ne_of_gt hβ]; try ring rw [hsimp] exact div_nonpos_of_nonpos_of_nonneg (mul_nonpos_of_nonneg_of_nonpos (le_of_lt (Real.exp_pos _)) (by linarith)) (sq_nonneg (A t)) have hcont_g : ContinuousOn g (Set.Icc 0 T) := fun t ht => by obtain ⟨dg, hdg, _⟩ := hg_deriv t ht exact hdg.continuousAt.continuousWithinAt have hg_le : ∀ t ∈ Set.Icc 0 T, g t ≤ g 0 := by let dgFun : ℝ → ℝ := fun s => if h : s ∈ Set.Icc 0 T then Classical.choose (hg_deriv s h) else 0 exact image_le_of_deriv_right_le_deriv_boundary hcont_g (f' := dgFun) (fun s hs => by have hs_icc : s ∈ Set.Icc 0 T := ⟨hs.1, le_of_lt hs.2⟩ simp only [dgFun, hs_icc, ↓reduceDIte] exact (Classical.choose_spec (hg_deriv s hs_icc)).1.hasDerivWithinAt) (B := fun _ => g 0) (B' := fun _ => 0) le_rfl continuousOn_const (fun s _ => hasDerivWithinAt_const s (Set.Ici s) (g 0)) (fun s hs => by have hs_icc : s ∈ Set.Icc 0 T := ⟨hs.1, le_of_lt hs.2⟩ simp only [dgFun, hs_icc, ↓reduceDIte] exact (Classical.choose_spec (hg_deriv s hs_icc)).2) have hpoint : ∀ t ∈ Set.Icc 0 T, 0 < d t ∧ A t ≤ A₀ * Real.exp (-(β * t)) / d t := by intro t ht have hdt : 0 < d t := hd_pos t ht refine ⟨hdt, ?_⟩ have hgt := hg_le t ht dsimp only [g] at hgt simp only [mul_zero, neg_zero, Real.exp_zero, mul_one, hA0] at hgt -- From 1/A₀ - C₃/β ≤ e^{-βt}/A(t) - (C₃/β)e^{-βt}, obtain d(t)/A₀ ≤ e^{-βt}/A(t). have h1 : d t / A₀ ≤ Real.exp (-(β * t)) / A t := by have hd_eq : d t / A₀ = 1 / A₀ - C₃ / β + (C₃ / β) * Real.exp (-(β * t)) := by dsimp only [d, q]; field_simp [ne_of_gt hA₀, ne_of_gt hβ]; try ring linarith have hAt : 0 < A t := hApos t ht rw [le_div_iff₀ hdt] have hmul := mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_right h1 (le_of_lt hAt)) (le_of_lt hA₀) have hL : A₀ * (d t / A₀ * A t) = A t * d t := by field_simp [ne_of_gt hA₀] have hR : A₀ * (Real.exp (-(β * t)) / A t * A t) = A₀ * Real.exp (-(β * t)) := by field_simp [ne_of_gt hAt] linarith refine ⟨hpoint, ?_⟩ -- Step 2: Exact FTC integral ∫₀ᵀ C_inf * (A₀ e^{-β t} / d t) dt = -(C_inf / C₃) log (d T). let F : ℝ → ℝ := fun t => -(C_inf / C₃) * Real.log (d t) have hF_deriv : ∀ t ∈ Set.Icc 0 T, HasDerivAt F (C_inf * (A₀ * Real.exp (-(β * t)) / d t)) t := by intro t ht have hdt : 0 < d t := hd_pos t ht have hlin : HasDerivAt (fun u : ℝ => -(β * u)) (-β) t := by simpa using ((hasDerivAt_id t).const_mul β).fun_neg have hd_deriv : HasDerivAt d (-q * β * Real.exp (-(β * t))) t := by have h1 : HasDerivAt (fun u : ℝ => 1 - Real.exp (-(β * u))) (-(Real.exp (-(β * t)) * (-β))) t := by simpa using (hasDerivAt_const t (1 : ℝ)).fun_sub hlin.exp have h2 := (hasDerivAt_const t (1 : ℝ)).fun_sub (h1.const_mul q) have hval : 0 - q * -(Real.exp (-(β * t)) * -β) = -q * β * Real.exp (-(β * t)) := by ring rw [hval] at h2 exact h2 have hlogd : HasDerivAt (fun u => Real.log (d u)) ((d t)⁻¹ * (-q * β * Real.exp (-(β * t)))) t := by simpa [Function.comp_def] using (hasDerivAt_log_pos hdt).comp t hd_deriv have hF : HasDerivAt F (-(C_inf / C₃) * ((d t)⁻¹ * (-q * β * Real.exp (-(β * t))))) t := hlogd.const_mul (-(C_inf / C₃)) have hval : -(C_inf / C₃) * ((d t)⁻¹ * (-q * β * Real.exp (-(β * t)))) = C_inf * (A₀ * Real.exp (-(β * t)) / d t) := by dsimp only [q] field_simp [ne_of_gt hC₃, ne_of_gt hβ, ne_of_gt hdt] rwa [hval] at hF have hcont_int : ContinuousOn (fun t => C_inf * (A₀ * Real.exp (-(β * t)) / d t)) (Set.Icc 0 T) := by have hd_cont : Continuous d := continuous_const.sub (continuous_const.mul (continuous_const.sub (Real.continuous_exp.comp ((continuous_const.mul continuous_id).neg)))) have hnum_cont : Continuous (fun t => A₀ * Real.exp (-(β * t))) := continuous_const.mul (Real.continuous_exp.comp ((continuous_const.mul continuous_id).neg)) exact (hnum_cont.continuousOn.div hd_cont.continuousOn (fun t ht => ne_of_gt (hd_pos t ht))).const_mul C_inf have hint : IntervalIntegrable (fun t => C_inf * (A₀ * Real.exp (-(β * t)) / d t)) MeasureTheory.volume 0 T := hcont_int.intervalIntegrable_of_Icc hT have hftc := intervalIntegral.integral_eq_sub_of_hasDerivAt (fun t ht => hF_deriv t (by rwa [Set.uIcc_of_le hT] at ht)) hint have hF0 : F 0 = 0 := by simp [F, d] rw [hftc, hF0, sub_zero] /-- Regime classification for the derivative-barrier denominator `d(T) = 1 - q (1 - e^{-β T})`: - if `q ≤ 1`, then `d(T) > 0` for EVERY `T ≥ 0` (all finite targets admitted); - if `q > 1`, then `d(T) > 0 ↔ T < β⁻¹ log(q / (q - 1))` (`AUTHOR-REVIEW.md` line 56). -/ theorem derivative_barrier_regimes {β q T : ℝ} (hβ : 0 < β) : (q ≤ 1 → 0 ≤ T → 0 < 1 - q * (1 - Real.exp (-(β * T)))) ∧ (1 < q → (0 < 1 - q * (1 - Real.exp (-(β * T))) ↔ T < β⁻¹ * Real.log (q / (q - 1)))) := by constructor · intro hq hT have hexp_pos : 0 < Real.exp (-(β * T)) := Real.exp_pos _ have h1m_nn : 0 ≤ 1 - Real.exp (-(β * T)) := by have : Real.exp (-(β * T)) ≤ 1 := Real.exp_le_one_iff.mpr (by nlinarith) linarith nlinarith · intro hq have hq_pos : 0 < q := by linarith have hqm1_pos : 0 < q - 1 := by linarith have hratio_pos : 0 < q / (q - 1) := div_pos hq_pos hqm1_pos have hinv_pos : 0 < (q - 1) / q := div_pos hqm1_pos hq_pos constructor · intro hd have hexp_gt : (q - 1) / q < Real.exp (-(β * T)) := by rw [div_lt_iff₀ hq_pos]; linarith have hlog : Real.log ((q - 1) / q) < -(β * T) := by have h := Real.log_lt_log hinv_pos hexp_gt rwa [Real.log_exp] at h have hlog_inv : -Real.log ((q - 1) / q) = Real.log (q / (q - 1)) := by rw [← Real.log_inv, inv_div] have hβT : β * T < Real.log (q / (q - 1)) := by linarith have hmul := mul_lt_mul_of_pos_left hβT (inv_pos.mpr hβ) rwa [← mul_assoc, inv_mul_cancel₀ (ne_of_gt hβ), one_mul] at hmul · intro hTlt have hβT : β * T < Real.log (q / (q - 1)) := by have hmul := mul_lt_mul_of_pos_left hTlt hβ rwa [← mul_assoc, mul_inv_cancel₀ (ne_of_gt hβ), one_mul] at hmul have hlog : Real.log ((q - 1) / q) < -(β * T) := by have hlog_inv : -Real.log ((q - 1) / q) = Real.log (q / (q - 1)) := by rw [← Real.log_inv, inv_div] linarith have hexp_gt : (q - 1) / q < Real.exp (-(β * T)) := by have h := Real.exp_lt_exp.mpr hlog rwa [Real.exp_log hinv_pos] at h have hmul := (div_lt_iff₀ hq_pos).mp hexp_gt linarith end end F02NavierStokes.HopfEquivariantS3