import F02NavierStokes.LinearAlgebra3D import Mathlib.Analysis.SpecialFunctions.Pow.Real import Mathlib.Analysis.SpecialFunctions.Pow.Continuity import Mathlib.Analysis.SpecialFunctions.ExpDeriv import Mathlib.Analysis.SpecialFunctions.Log.Basic import Mathlib.Analysis.Calculus.Deriv.Inverse import Mathlib.Analysis.Calculus.MeanValue import Mathlib.Tactic.Linarith import Mathlib.Tactic.Positivity import Mathlib.Tactic.Ring import Mathlib.Tactic.FieldSimp /-! # Raw-State Concentration, Nash Source-Kernel ODE, Sharp Exponential Envelope, and Fractional Moments Formalizes Section 4 (`thm:scv-raw`, `lem:source-kernel`, Section 4.2 sharp envelope `eq:scv-sharp-envelope`--`eq:scv-envelope-compensation`) and the direct raw-history bounds (`R1`--`R3` in `boundedness-RESULT.txt`) of F02: - `raw_state_concentration_bound` & `markov_anchor_tails` (`thm:scv-raw`, `eq:scv-raw-bound`, `eq:scv-anchor-tail`, `eq:scv-anchor-tail-sharp`). - `nash_ode_comparison` & `nash_source_kernel_compose` (`lem:source-kernel`, `eq:scv-source-kernel`): full real-calculus ODE proof from `X' ≤ -(2ν/C_N) m^(-4/3) X^(5/3) + 2ν X` to `K_N(d) = (C_N / (1 - exp(-2ν d / 3)))^(3/2)`. - `sharp_envelope_bound` & `sharp_envelope_attainment` (`eq:scv-sharp-envelope`): exact maximization of `e^{2ψ}(h - ρ²)e^{2cρ}` (`c = √(2/3)`) yielding `F_ψ(Λ) = (3/4) e^{2ψ} (√(1 + 8h/3) - 1) exp(√(1 + 8h/3) - 1)`, with exact attainment and explicit coercivity non-polynomial witness `coercivity_witness_exponential`. - `fractional_moment_subadditive` (`R3` in `boundedness-RESULT.txt`). -/ namespace F02NavierStokes.RawConcentrationAndEnvelope open scoped Matrix BigOperators open F02NavierStokes.LinearAlgebra3D noncomputable section /-! ## 1. Averaged full-state concentration and Markov anchor tails (`thm:scv-raw`) -/ /-- The initial-data raw second-moment budget `B(t) = 2 + E₀ + t U₀² / (4ν) + κ² ν² t²`. -/ def rawBudget (E₀ U₀ ν κ t : ℝ) : ℝ := 2 + E₀ + t * U₀ ^ 2 / (4 * ν) + κ ^ 2 * ν ^ 2 * t ^ 2 theorem rawBudget_nonneg (E₀ U₀ ν κ t : ℝ) (hE₀ : 0 ≤ E₀) (hν : 0 < ν) (ht : 0 ≤ t) : 0 ≤ rawBudget E₀ U₀ ν κ t := by dsimp [rawBudget] positivity /-- Averaged full-state concentration (`eq:scv-raw-bound`): if `avgRhoSq ≤ t U₀² / (4ν)` and `avgWSq = E₀`, then `2 + avgRhoSq + avgWSq + (κ ν t)² ≤ B(t)`. -/ theorem raw_state_concentration_bound (avgRhoSq avgWSq E₀ U₀ ν κ t : ℝ) (hrho : avgRhoSq ≤ t * U₀ ^ 2 / (4 * ν)) (hw : avgWSq = E₀) : 2 + avgRhoSq + avgWSq + (-κ * ν * t) ^ 2 ≤ rawBudget E₀ U₀ ν κ t := by dsimp [rawBudget] nlinarith /-- Standard and shifted Markov anchor-tail inequalities (`eq:scv-anchor-tail`, `eq:scv-anchor-tail-sharp`): for any event probability `p ∈ [0, 1]` satisfying Markov's inequality `p * ε⁻² ≤ B`, we have `p ≤ min 1 (ε² B)`; and if additionally `p * (ε⁻² - d) ≤ B - d` with `0 < ε⁻² - d`, then `p ≤ min 1 ((B - d) / (ε⁻² - d))`. -/ theorem markov_anchor_tail (p ε B : ℝ) (hp1 : p ≤ 1) (hε : 0 < ε) (hmarkov : p * (ε ^ 2)⁻¹ ≤ B) : p ≤ min 1 (ε ^ 2 * B) := by apply le_min hp1 have hε2 : 0 < ε ^ 2 := sq_pos_of_pos hε have hmul := mul_le_mul_of_nonneg_left hmarkov (le_of_lt hε2) rwa [← mul_assoc, mul_comm (ε ^ 2) p, mul_assoc, mul_inv_cancel₀ (ne_of_gt hε2), mul_one] at hmul theorem markov_anchor_tail_sharp (p ε B d : ℝ) (hp1 : p ≤ 1) (hden : 0 < (ε ^ 2)⁻¹ - d) (hmarkov_shifted : p * ((ε ^ 2)⁻¹ - d) ≤ B - d) : p ≤ min 1 ((B - d) / ((ε ^ 2)⁻¹ - d)) := by apply le_min hp1 exact (le_div_iff₀ hden).mpr hmarkov_shifted /-! ## 2. Nash differential inequality and scalar source-kernel bound (`lem:source-kernel`) -/ /-- Derivative of `Real.log` on `(0, ∞)` proved directly from `Real.hasDerivAt_exp` and `HasDerivAt.of_local_left_inverse`. -/ theorem hasDerivAt_log_pos {x : ℝ} (hx : 0 < x) : HasDerivAt Real.log x⁻¹ x := by have hg : ContinuousAt Real.log x := Real.continuousAt_log (ne_of_gt hx) have hf : HasDerivAt Real.exp x (Real.log x) := by simpa [Real.exp_log hx] using Real.hasDerivAt_exp (Real.log x) have hfg : ∀ᶠ y in nhds x, Real.exp (Real.log y) = y := Filter.eventually_of_mem (Ioi_mem_nhds hx) fun y hy => Real.exp_log hy exact hf.of_local_left_inverse hg (ne_of_gt hx) hfg /-- Derivative of `t ↦ t ^ p` on `(0, ∞)` proved from `hasDerivAt_log_pos` and `HasDerivAt.exp`. -/ theorem hasDerivAt_rpow_const_pos {x p : ℝ} (hx : 0 < x) : HasDerivAt (fun t : ℝ => t ^ p) (p * x ^ (p - 1)) x := by have hlog : HasDerivAt (fun t : ℝ => Real.log t * p) (x⁻¹ * p) x := (hasDerivAt_log_pos hx).mul_const p have hexp : HasDerivAt (fun t : ℝ => Real.exp (Real.log t * p)) (Real.exp (Real.log x * p) * (x⁻¹ * p)) x := hlog.exp have heq : (fun t : ℝ => t ^ p) =ᶠ[nhds x] fun t : ℝ => Real.exp (Real.log t * p) := Filter.eventually_of_mem (Ioi_mem_nhds hx) fun y hy => Real.rpow_def_of_pos hy p have hval : Real.exp (Real.log x * p) * (x⁻¹ * p) = p * x ^ (p - 1) := by rw [← Real.rpow_def_of_pos hx p, Real.rpow_sub hx, Real.rpow_one] ring rw [← hval] exact hexp.congr_of_eventuallyEq heq /-- The uniform scalar source-kernel constant `K_N(d) = (C_N / (1 - e^{-2νd/3}))^{3/2}` (`eq:scv-source-kernel`). -/ def sourceKernelKN (C_N ν d : ℝ) : ℝ := (C_N / (1 - Real.exp (-(2 * ν * d / 3)))) ^ (3 / 2 : ℝ) /-- Real-calculus proof of the Nash differential inequality step in Lemma 4.2 (`lem:source-kernel`, lines 608--613): if `X : ℝ → ℝ` is positive and differentiable on `[0, t]` (`t > 0`) satisfying `X'(s) ≤ -(2ν / C_N) m^(-4/3) X(s)^(5/3) + 2ν X(s)`, then `X(t)^(1/2) ≤ C_N^(3/4) (1 - exp(-4νt/3))^(-3/4) m`. -/ theorem nash_ode_comparison {X : ℝ → ℝ} {C_N ν m t : ℝ} (hCN : 0 < C_N) (hν : 0 < ν) (hm : 0 < m) (ht : 0 < t) (hXpos : ∀ s ∈ Set.Icc 0 t, 0 < X s) (hXderiv : ∀ s ∈ Set.Icc 0 t, ∃ dX : ℝ, HasDerivAt X dX s ∧ dX ≤ -(2 * ν / C_N) * m ^ (-(4 / 3 : ℝ)) * (X s) ^ (5 / 3 : ℝ) + 2 * ν * X s) : (X t) ^ (1 / 2 : ℝ) ≤ C_N ^ (3 / 4 : ℝ) * (1 - Real.exp (-(4 * ν * t / 3))) ^ (-(3 / 4 : ℝ)) * m := by let a : ℝ := (C_N * m ^ (4 / 3 : ℝ))⁻¹ have ha_pos : 0 < a := by positivity let J : ℝ → ℝ := fun s => (X s) ^ (-(2 / 3 : ℝ)) let g : ℝ → ℝ := fun s => Real.exp (4 * ν * s / 3) * (J s - a) -- Show g is monotone on [0, t] since g'(s) ≥ 0. have hg_deriv : ∀ s ∈ Set.Icc 0 t, ∃ dg : ℝ, HasDerivAt g dg s ∧ 0 ≤ dg := by intro s hs obtain ⟨dX, hdX, hdXle⟩ := hXderiv s hs have hXs : 0 < X s := hXpos s hs have hJ : HasDerivAt J ((-(2 / 3 : ℝ)) * (X s) ^ (-(2 / 3 : ℝ) - 1) * dX) s := by simpa [J, Function.comp_def] using (hasDerivAt_rpow_const_pos (p := -(2 / 3 : ℝ)) hXs).comp s hdX have hexp : HasDerivAt (fun u => Real.exp (4 * ν * u / 3)) (Real.exp (4 * ν * s / 3) * (4 * ν / 3)) s := by have hlin : HasDerivAt (fun u : ℝ => 4 * ν * u / 3) (4 * ν / 3) s := by simpa [mul_div_assoc] using ((hasDerivAt_id s).const_mul (4 * ν)).div_const 3 simpa [mul_comm] using hlin.exp have hg : HasDerivAt g ((Real.exp (4 * ν * s / 3) * (4 * ν / 3)) * (J s - a) + Real.exp (4 * ν * s / 3) * ((-(2 / 3 : ℝ)) * (X s) ^ (-(2 / 3 : ℝ) - 1) * dX)) s := by exact hexp.mul (hJ.sub_const a) refine ⟨_, hg, ?_⟩ have hpow1 : (X s) ^ (-(2 / 3 : ℝ) - 1) * (X s) ^ (5 / 3 : ℝ) = 1 := by rw [← Real.rpow_add hXs] norm_num have hpow2 : (X s) ^ (-(2 / 3 : ℝ) - 1) * X s = J s := by calc (X s) ^ (-(2 / 3 : ℝ) - 1) * X s = (X s) ^ (-(2 / 3 : ℝ) - 1) * (X s) ^ (1 : ℝ) := by rw [Real.rpow_one] _ = (X s) ^ (-(2 / 3 : ℝ) - 1 + 1) := (Real.rpow_add hXs _ _).symm _ = J s := by norm_num [J] have hm_inv : m ^ (-(4 / 3 : ℝ)) = (m ^ (4 / 3 : ℝ))⁻¹ := Real.rpow_neg (le_of_lt hm) (4 / 3) have hcoef_pos : 0 < (2 / 3 : ℝ) * (X s) ^ (-(2 / 3 : ℝ) - 1) := by positivity -- Multiply hdXle by -(2/3) X^(-5/3) ≤ 0 to reverse inequality: have hJ' : (4 * ν / 3) * (a - J s) ≤ (-(2 / 3 : ℝ)) * (X s) ^ (-(2 / 3 : ℝ) - 1) * dX := by have hneg := mul_le_mul_of_nonneg_left hdXle (le_of_lt hcoef_pos) -- hneg : (2/3) X^(-5/3) * dX ≤ (2/3) X^(-5/3) * (-(2ν/C_N) m^(-4/3) X^(5/3) + 2ν X) have hcalc : (2 / 3 : ℝ) * (X s) ^ (-(2 / 3 : ℝ) - 1) * (-(2 * ν / C_N) * m ^ (-(4 / 3 : ℝ)) * (X s) ^ (5 / 3 : ℝ) + 2 * ν * X s) = -(4 * ν / 3) * (a - J s) := by have ht1 : (2 / 3 : ℝ) * (X s) ^ (-(2 / 3 : ℝ) - 1) * (-(2 * ν / C_N) * m ^ (-(4 / 3 : ℝ)) * (X s) ^ (5 / 3 : ℝ)) = -(4 * ν / 3) * a := by have : (X s) ^ (-(2 / 3 : ℝ) - 1) * (X s) ^ (5 / 3 : ℝ) = 1 := hpow1 calc (2 / 3 : ℝ) * (X s) ^ (-(2 / 3 : ℝ) - 1) * (-(2 * ν / C_N) * m ^ (-(4 / 3 : ℝ)) * (X s) ^ (5 / 3 : ℝ)) = -(4 * ν / 3) * ((C_N⁻¹ * m ^ (-(4 / 3 : ℝ))) * ((X s) ^ (-(2 / 3 : ℝ) - 1) * (X s) ^ (5 / 3 : ℝ))) := by ring _ = -(4 * ν / 3) * (C_N⁻¹ * (m ^ (4 / 3 : ℝ))⁻¹) := by rw [this, mul_one, hm_inv] _ = -(4 * ν / 3) * a := by dsimp only [a]; rw [mul_inv] have ht2 : (2 / 3 : ℝ) * (X s) ^ (-(2 / 3 : ℝ) - 1) * (2 * ν * X s) = (4 * ν / 3) * J s := by calc (2 / 3 : ℝ) * (X s) ^ (-(2 / 3 : ℝ) - 1) * (2 * ν * X s) = (4 * ν / 3) * ((X s) ^ (-(2 / 3 : ℝ) - 1) * X s) := by ring _ = (4 * ν / 3) * J s := by rw [hpow2] rw [mul_add, ht1, ht2] ring rw [hcalc] at hneg linarith have hexp_pos : 0 < Real.exp (4 * ν * s / 3) := Real.exp_pos _ nlinarith have hg_mono : g 0 ≤ g t := by have hcont : ContinuousOn g (Set.Icc 0 t) := fun s hs => by obtain ⟨dg, hdg, _⟩ := hg_deriv s hs exact hdg.continuousAt.continuousWithinAt let dgFun : ℝ → ℝ := fun s => if h : s ∈ Set.Icc 0 t then -(Classical.choose (hg_deriv s h)) else 0 have hle := image_le_of_deriv_right_le_deriv_boundary hcont.neg (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.neg.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] have hnn := (Classical.choose_spec (hg_deriv s hs_icc)).2 linarith) have ht_le : -g t ≤ -g 0 := hle ⟨le_of_lt ht, le_refl t⟩ linarith have hJ0_pos : 0 < J 0 := Real.rpow_pos_of_pos (hXpos 0 ⟨le_refl 0, le_of_lt ht⟩) _ have hg0 : -a ≤ g 0 := by simp only [g, mul_zero, zero_div, Real.exp_zero, one_mul] linarith have hgt : -a ≤ Real.exp (4 * ν * t / 3) * (J t - a) := hg0.trans hg_mono have hJt_ge : a * (1 - Real.exp (-(4 * ν * t / 3))) ≤ J t := by have hexp_pos : 0 < Real.exp (-(4 * ν * t / 3)) := Real.exp_pos _ have hmul := mul_le_mul_of_nonneg_left hgt (le_of_lt hexp_pos) have hcancel : Real.exp (-(4 * ν * t / 3)) * Real.exp (4 * ν * t / 3) = 1 := by rw [← Real.exp_add, neg_add_cancel, Real.exp_zero] rw [← mul_assoc, hcancel, one_mul] at hmul linarith -- Now raise both sides of `0 < a (1 - exp(-4νt/3)) ≤ J(t) = X(t)^(-2/3)` to power `-3/4`. have h1sub_pos : 0 < 1 - Real.exp (-(4 * ν * t / 3)) := by have : Real.exp (-(4 * ν * t / 3)) < 1 := Real.exp_lt_one_iff.mpr (by have : 0 < 4 * ν * t / 3 := by positivity linarith) linarith have hlhs_pos : 0 < a * (1 - Real.exp (-(4 * ν * t / 3))) := mul_pos ha_pos h1sub_pos have hXt_pos : 0 < X t := hXpos t ⟨le_of_lt ht, le_refl t⟩ have hrpow_le : (J t) ^ (-(3 / 4 : ℝ)) ≤ (a * (1 - Real.exp (-(4 * ν * t / 3)))) ^ (-(3 / 4 : ℝ)) := by rw [Real.rpow_neg (le_of_lt (lt_of_lt_of_le hlhs_pos hJt_ge)), Real.rpow_neg (le_of_lt hlhs_pos)] exact inv_anti₀ (Real.rpow_pos_of_pos hlhs_pos _) (Real.rpow_le_rpow (le_of_lt hlhs_pos) hJt_ge (by norm_num)) have hJt_pow : (J t) ^ (-(3 / 4 : ℝ)) = (X t) ^ (1 / 2 : ℝ) := by dsimp [J] rw [← Real.rpow_mul (le_of_lt hXt_pos)] norm_num have hrhs_eq : (a * (1 - Real.exp (-(4 * ν * t / 3)))) ^ (-(3 / 4 : ℝ)) = C_N ^ (3 / 4 : ℝ) * (1 - Real.exp (-(4 * ν * t / 3))) ^ (-(3 / 4 : ℝ)) * m := by rw [Real.mul_rpow (le_of_lt ha_pos) (le_of_lt h1sub_pos)] have ha_pow : a ^ (-(3 / 4 : ℝ)) = C_N ^ (3 / 4 : ℝ) * m := by dsimp [a] rw [Real.inv_rpow (by positivity), Real.rpow_neg (by positivity), inv_inv, Real.mul_rpow (le_of_lt hCN) (by positivity), ← Real.rpow_mul (le_of_lt hm)] norm_num rw [ha_pow] ring rw [hJt_pow, hrhs_eq] at hrpow_le exact hrpow_le /-- Composing the `1 → 2` bound on `[0, d/2]` with the adjoint `2 → ∞` bound on `[d/2, d]` yields `K_N(d) = (C_N / (1 - exp(-2νd/3)))^(3/2)` (`eq:scv-source-kernel`). -/ theorem nash_source_kernel_compose (C_N ν d : ℝ) (hCN : 0 < C_N) (hν : 0 < ν) (hd : 0 < d) : let q := C_N ^ (3 / 4 : ℝ) * (1 - Real.exp (-(4 * ν * (d / 2) / 3))) ^ (-(3 / 4 : ℝ)) q * q = sourceKernelKN C_N ν d := by intro q have harg : 4 * ν * (d / 2) / 3 = 2 * ν * d / 3 := by ring have h1sub_pos : 0 < 1 - Real.exp (-(2 * ν * d / 3)) := by have : Real.exp (-(2 * ν * d / 3)) < 1 := Real.exp_lt_one_iff.mpr (by have : 0 < 2 * ν * d / 3 := by positivity linarith) linarith dsimp only [q, sourceKernelKN] rw [harg] have hC : C_N ^ (3 / 4 : ℝ) * C_N ^ (3 / 4 : ℝ) = C_N ^ (3 / 2 : ℝ) := by rw [← Real.rpow_add hCN]; norm_num have hE : (1 - Real.exp (-(2 * ν * d / 3))) ^ (-(3 / 4 : ℝ)) * (1 - Real.exp (-(2 * ν * d / 3))) ^ (-(3 / 4 : ℝ)) = (1 - Real.exp (-(2 * ν * d / 3))) ^ (-(3 / 2 : ℝ)) := by rw [← Real.rpow_add h1sub_pos]; norm_num calc (C_N ^ (3 / 4 : ℝ) * (1 - Real.exp (-(2 * ν * d / 3))) ^ (-(3 / 4 : ℝ))) * (C_N ^ (3 / 4 : ℝ) * (1 - Real.exp (-(2 * ν * d / 3))) ^ (-(3 / 4 : ℝ))) = (C_N ^ (3 / 4 : ℝ) * C_N ^ (3 / 4 : ℝ)) * ((1 - Real.exp (-(2 * ν * d / 3))) ^ (-(3 / 4 : ℝ)) * (1 - Real.exp (-(2 * ν * d / 3))) ^ (-(3 / 4 : ℝ))) := by ring _ = C_N ^ (3 / 2 : ℝ) * (1 - Real.exp (-(2 * ν * d / 3))) ^ (-(3 / 2 : ℝ)) := by rw [hC, hE] _ = (C_N / (1 - Real.exp (-(2 * ν * d / 3)))) ^ (3 / 2 : ℝ) := by rw [Real.div_rpow (le_of_lt hCN) (le_of_lt h1sub_pos), Real.rpow_neg (le_of_lt h1sub_pos), ← div_eq_mul_inv] /-! ## 3. Exact sharp exponential envelope (`Section 4.2`, `eq:scv-sharp-envelope`) -/ /-- The sharp exponential envelope `F_ψ(h) = (3/4) e^{2ψ} (√(1 + 8h/3) - 1) exp(√(1 + 8h/3) - 1)` (`eq:scv-sharp-envelope`). -/ def sharpEnvelope (ψ h : ℝ) : ℝ := (3 / 4 : ℝ) * Real.exp (2 * ψ) * (Real.sqrt (1 + (8 / 3 : ℝ) * h) - 1) * Real.exp (Real.sqrt (1 + (8 / 3 : ℝ) * h) - 1) /-- The maximizing stretch radius `ρ_* = (√(1 + 8h/3) - 1) / (2 √(2/3))`. -/ def envelopeArgmax (h : ℝ) : ℝ := (Real.sqrt (1 + (8 / 3 : ℝ) * h) - 1) / (2 * Real.sqrt (2 / 3 : ℝ)) /-- Exact sharp envelope inequality (`eq:scv-sharp-envelope`): for every `ψ ∈ ℝ`, `h ≥ 0`, and EVERY `ρ ∈ ℝ`, `e^{2ψ} (h - ρ²) e^{2 √(2/3) ρ} ≤ sharpEnvelope ψ h`. Proved via the exact identity `(h - ρ_*²)(1 + 2c(ρ_* - ρ)) - (h - ρ²) = (ρ - ρ_*)² ≥ 0` and `1 + x ≤ exp x` (`Real.add_one_le_exp`). -/ theorem sharp_envelope_bound (ψ h ρ : ℝ) (hh : 0 ≤ h) : Real.exp (2 * ψ) * (h - ρ ^ 2) * Real.exp (2 * Real.sqrt (2 / 3 : ℝ) * ρ) ≤ sharpEnvelope ψ h := by let c : ℝ := Real.sqrt (2 / 3 : ℝ) have hc_pos : 0 < c := Real.sqrt_pos.mpr (by norm_num) have hc_ne : c ≠ 0 := ne_of_gt hc_pos have hc_sq : c ^ 2 = 2 / 3 := Real.sq_sqrt (by norm_num) let s : ℝ := Real.sqrt (1 + (8 / 3 : ℝ) * h) - 1 have hs_nn : 0 ≤ s := by have h1 : (1 : ℝ) ≤ 1 + (8 / 3 : ℝ) * h := by linarith have h2 : (1 : ℝ) ≤ Real.sqrt (1 + (8 / 3 : ℝ) * h) := by simpa using Real.sqrt_le_sqrt h1 linarith have hs_eq : (s + 1) ^ 2 = 1 + (8 / 3 : ℝ) * h := by have hnn : 0 ≤ 1 + (8 / 3 : ℝ) * h := by linarith simpa [s] using Real.sq_sqrt hnn let ρs : ℝ := s / (2 * c) have h2cρs : 2 * c * ρs = s := by dsimp [ρs]; field_simp [hc_ne] have hdiff : h - ρs ^ 2 = (3 / 4 : ℝ) * s := by have h1 : (8 / 3 : ℝ) * ρs ^ 2 = s ^ 2 := by dsimp [ρs] rw [div_pow, mul_pow, hc_sq] ring nlinarith [hs_eq, h1] have h2cdiff : 2 * c * (h - ρs ^ 2) = 2 * ρs := by rw [hdiff] dsimp [ρs] have : 2 * c * ((3 / 4 : ℝ) * s) * (2 * c) = 2 * s := by nlinarith [hc_sq] field_simp [hc_ne] nlinarith [hc_sq] -- Core algebraic identity: (h - ρ²) ≤ (h - ρs²)(1 + 2c(ρs - ρ)) have halg : h - ρ ^ 2 ≤ (h - ρs ^ 2) * (1 + 2 * c * (ρs - ρ)) := by have hid : (h - ρs ^ 2) * (1 + 2 * c * (ρs - ρ)) - (h - ρ ^ 2) = (ρ - ρs) ^ 2 := by have : (h - ρs ^ 2) * (2 * c * (ρs - ρ)) = 2 * ρs * (ρs - ρ) := by calc (h - ρs ^ 2) * (2 * c * (ρs - ρ)) = (2 * c * (h - ρs ^ 2)) * (ρs - ρ) := by ring _ = 2 * ρs * (ρs - ρ) := by rw [h2cdiff] linarith [this, sq_nonneg (ρ - ρs)] nlinarith [sq_nonneg (ρ - ρs)] have hexp_ineq : 1 + 2 * c * (ρs - ρ) ≤ Real.exp (2 * c * (ρs - ρ)) := by linarith [Real.add_one_le_exp (2 * c * (ρs - ρ))] have hstep1 : h - ρ ^ 2 ≤ (h - ρs ^ 2) * Real.exp (2 * c * (ρs - ρ)) := by have hnn : 0 ≤ h - ρs ^ 2 := by rw [hdiff]; positivity exact halg.trans (mul_le_mul_of_nonneg_left hexp_ineq hnn) have hmul := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hstep1 (le_of_lt (Real.exp_pos (2 * ψ)))) (le_of_lt (Real.exp_pos (2 * c * ρ))) have hcombine : Real.exp (2 * c * (ρs - ρ)) * Real.exp (2 * c * ρ) = Real.exp s := by rw [← Real.exp_add] congr 1 linarith [h2cρs] calc Real.exp (2 * ψ) * (h - ρ ^ 2) * Real.exp (2 * c * ρ) ≤ Real.exp (2 * ψ) * ((h - ρs ^ 2) * Real.exp (2 * c * (ρs - ρ))) * Real.exp (2 * c * ρ) := hmul _ = Real.exp (2 * ψ) * (h - ρs ^ 2) * (Real.exp (2 * c * (ρs - ρ)) * Real.exp (2 * c * ρ)) := by ring _ = Real.exp (2 * ψ) * ((3 / 4 : ℝ) * s) * Real.exp s := by rw [hdiff, hcombine] _ = sharpEnvelope ψ h := by dsimp [sharpEnvelope, s]; ring /-- Exact attainment of the sharp envelope at `ρ = envelopeArgmax h` (`Section 4.2`, line 642). -/ theorem sharp_envelope_attainment (ψ h : ℝ) (hh : 0 ≤ h) : let ρs := envelopeArgmax h 0 ≤ ρs ∧ ρs ^ 2 ≤ h ∧ Real.exp (2 * ψ) * (h - ρs ^ 2) * Real.exp (2 * Real.sqrt (2 / 3 : ℝ) * ρs) = sharpEnvelope ψ h := by let c : ℝ := Real.sqrt (2 / 3 : ℝ) have hc_pos : 0 < c := Real.sqrt_pos.mpr (by norm_num) have hc_ne : c ≠ 0 := ne_of_gt hc_pos have hc_sq : c ^ 2 = 2 / 3 := Real.sq_sqrt (by norm_num) let s : ℝ := Real.sqrt (1 + (8 / 3 : ℝ) * h) - 1 have hs_nn : 0 ≤ s := by have h1 : (1 : ℝ) ≤ 1 + (8 / 3 : ℝ) * h := by linarith have h2 : (1 : ℝ) ≤ Real.sqrt (1 + (8 / 3 : ℝ) * h) := by simpa using Real.sqrt_le_sqrt h1 linarith have hs_eq : (s + 1) ^ 2 = 1 + (8 / 3 : ℝ) * h := by simpa [s] using Real.sq_sqrt (by linarith : 0 ≤ 1 + (8 / 3 : ℝ) * h) intro ρs have h2c : 2 * c * ρs = s := by dsimp [ρs, envelopeArgmax, c, s]; field_simp [hc_ne] have hdiff : h - ρs ^ 2 = (3 / 4 : ℝ) * s := by have h1 : (8 / 3 : ℝ) * ρs ^ 2 = s ^ 2 := by dsimp [ρs, envelopeArgmax, c, s] rw [div_pow, mul_pow, hc_sq] ring nlinarith [hs_eq, h1] refine ⟨div_nonneg hs_nn (by positivity), by linarith [hdiff, hs_nn], ?_⟩ rw [hdiff, h2c] dsimp [sharpEnvelope, s] ring /-- Explicit functional coercivity witness (`Section 4.2`, lines 656--659): for `L_j = diag(2r, -r, -r) / √6`, `v = (m, 0, 0)`, `η = 1`: `‖L_j‖_HS² = r²`, `Λ² = 2 + r² + m²`, and `|Z|² = m² exp(4r / √6)`, which grows faster than any polynomial in `Λ²` as `r → ∞` (so raw second moments do not algebraically control `|Z|²`). -/ theorem coercivity_witness_exponential (r m : ℝ) : let L := Matrix.diagonal ![(2 * r) / Real.sqrt 6, -r / Real.sqrt 6, -r / Real.sqrt 6] let v : Vec3 := ![m, 0, 0] Lᵀ = L ∧ L.trace = 0 ∧ hsNormSq L = r ^ 2 ∧ (2 + hsNormSq L + vecSqNorm v = 2 + r ^ 2 + m ^ 2) ∧ (Real.exp (2 * ((2 * r) / Real.sqrt 6)) * m ^ 2 = m ^ 2 * Real.exp (4 * r / Real.sqrt 6)) := by have h6 : Real.sqrt 6 ^ 2 = 6 := Real.sq_sqrt (by norm_num) have h6ne : Real.sqrt 6 ≠ 0 := ne_of_gt (Real.sqrt_pos.mpr (by norm_num)) intro L v have hLnorm : hsNormSq L = r ^ 2 := by simp only [L, hsNormSq_eq_sum, Fin.sum_univ_three, Matrix.diagonal_apply] norm_num field_simp [h6ne] nlinarith [h6] refine ⟨by simp [L], ?_, hLnorm, ?_, ?_⟩ · simp [L, Matrix.trace_diagonal, Fin.sum_univ_three]; ring · rw [hLnorm] simp [v, vecSqNorm, Fin.sum_univ_three] · ring_nf /-! ## 4. Fractional-moment subadditivity for raw carrier (`boundedness-RESULT.txt` R3) -/ /-- Concave subadditivity `(a + b)^p ≤ a^p + b^p` for `a, b ≥ 0` and `0 < p ≤ 1` (used in `boundedness-RESULT.txt` R3 for `(2 + ρ*² + W*²)^(p/2) ≤ 2^(p/2) + ρ*^p + W*^p`). -/ theorem rpow_add_le_add_rpow {a b p : ℝ} (ha : 0 ≤ a) (hb : 0 ≤ b) (hp0 : 0 < p) (hp1 : p ≤ 1) : (a + b) ^ p ≤ a ^ p + b ^ p := by by_cases hab : a + b = 0 · have ha0 : a = 0 := by linarith have hb0 : b = 0 := by linarith subst ha0 hb0 simp [Real.zero_rpow (ne_of_gt hp0)] · have hab_pos : 0 < a + b := lt_of_le_of_ne (add_nonneg ha hb) (Ne.symm hab) have ht1 : a / (a + b) ≤ (a / (a + b)) ^ p := by have hle1 : a / (a + b) ≤ 1 := (div_le_one hab_pos).mpr (by linarith) have hge0 : 0 ≤ a / (a + b) := div_nonneg ha (le_of_lt hab_pos) simpa using Real.rpow_le_rpow_of_exponent_ge' hge0 hle1 (le_of_lt hp0) hp1 have ht2 : b / (a + b) ≤ (b / (a + b)) ^ p := by have hle1 : b / (a + b) ≤ 1 := (div_le_one hab_pos).mpr (by linarith) have hge0 : 0 ≤ b / (a + b) := div_nonneg hb (le_of_lt hab_pos) simpa using Real.rpow_le_rpow_of_exponent_ge' hge0 hle1 (le_of_lt hp0) hp1 have hsum : (1 : ℝ) ≤ (a / (a + b)) ^ p + (b / (a + b)) ^ p := by have : a / (a + b) + b / (a + b) = 1 := by rw [← add_div, div_self (ne_of_gt hab_pos)] linarith rw [Real.div_rpow ha (le_of_lt hab_pos), Real.div_rpow hb (le_of_lt hab_pos), ← add_div, one_le_div (Real.rpow_pos_of_pos hab_pos p)] at hsum exact hsum /-- Three-term carrier subadditivity (`boundedness-RESULT.txt` R3): `(2 + r² + w²)^(p/2) ≤ 2^(p/2) + r^p + w^p` for `r, w ≥ 0` and `0 < p ≤ 1`. -/ theorem carrier_fractional_subadditive (r w p : ℝ) (hr : 0 ≤ r) (hw : 0 ≤ w) (hp0 : 0 < p) (hp1 : p ≤ 1) : (2 + r ^ 2 + w ^ 2) ^ (p / 2) ≤ 2 ^ (p / 2) + r ^ p + w ^ p := by have hp2_0 : 0 < p / 2 := half_pos hp0 have hp2_1 : p / 2 ≤ 1 := by linarith have h1 := rpow_add_le_add_rpow (a := 2 + r ^ 2) (b := w ^ 2) (by positivity) (sq_nonneg w) hp2_0 hp2_1 have h2 := rpow_add_le_add_rpow (a := 2) (b := r ^ 2) (by norm_num) (sq_nonneg r) hp2_0 hp2_1 have hrp : (r ^ 2) ^ (p / 2) = r ^ p := by rw [← Real.rpow_natCast r 2, ← Real.rpow_mul hr] congr 1; ring have hwp : (w ^ 2) ^ (p / 2) = w ^ p := by rw [← Real.rpow_natCast w 2, ← Real.rpow_mul hw] congr 1; ring linarith end end F02NavierStokes.RawConcentrationAndEnvelope