import Mathlib.Analysis.SpecialFunctions.Complex.Arg import Mathlib.Analysis.SpecificLimits.Normed import F04Riemann.SchurLDLAndSevenWindows /-! # 3D Gaussian Zero-Form, Unconditional Tail Shield `B(T)`, and Sylvester Certification This module formalizes the complete Gaussian zero-form architecture from `riemann-2026-10-14` (`CERTIFICATION.md` and `certify.py`): 1. **Gaussian Mellin Transform and Reflection Symmetry**: - `gaussianTransform σ t s = s (s - 1) √(2π) σ exp((σ²/2)(s - 1/2 - i t)²)`. - `gaussianTransform_reflect`: `G_j(1 - s̄) = conj (G_j(s))` without assuming RH. - `gaussianTransform_criticalLine`: on `Re(s) = 1/2`, `G_j(1/2 + iγ)` is real and equals `-(γ² + 1/4) √(2π) σ exp(-σ²(γ - t_j)² / 2)`. - `reflectedPair_symm` & `reflectedPair_add_reflect_real`: the reflected pairing `G_j(ρ) conj(G_i(1 - ρ̄)) = G_j(ρ) G_i(ρ)` is symmetric in `(i, j)` and produces a real symmetric matrix for any reflection-invariant zero multiset, even without RH. 2. **Unconditional Critical-Strip Tail Envelope `F(u)` and Geometric Tail Shield `B(T)`**: - `norm_reflectedPair_le_tailEnvelope`: for every critical-strip point `0 ≤ Re ρ ≤ 1` with `|Im ρ| ≥ M`, `‖G_j(ρ) conj(G_i(1 - ρ̄))‖ ≤ F(|Im ρ|)`. - `tailEnvelope_le_exp_mul`: log-derivative decay `F(v) ≤ exp(-λ (v - u)) F(u)` for `v ≥ u ≥ T`. - `nlog_le_exp_mul`: `(T + k + 1) log(T + k + 1) ≤ exp(k μ) (T + 1) log(T + 1)` for `T ≥ 10`. - `tail_shells_tsum_le_tailBoundB`: for any multiplicity-weighted zero shell family `(S, mult)` obeying Hasanalizade–Shen–Wong's unit-shell count bound `∑_{ρ ∈ S_k} mult(ρ) ≤ 2 (T + k + 1) log(T + k + 1)` (`T ≥ max 10 M`, `λ > μ`), the total weighted tail sum over all `|Im ρ| ≥ T` is bounded unconditionally by `B(T) = 2 F(T) (T + 1) log(T + 1) / (1 - exp(-(λ - μ)))`. 3. **Kernel-Checked Concrete Tail Shield at `T = 100`**: - `tailBoundB_100_le`: at `σ = 1/4`, `M = 21`, `T = 100`, `tailBoundB (1/4) 21 100 ≤ 148 / 10^161` (`1.48 × 10⁻¹⁵⁹`), proved completely inside Lean. 4. **3 × 3 Sylvester Criterion & Certified Gaussian Zero-Form Positivity**: - `sylvester_3x3_hermitian_pos_def`: complete-the-square proof that `D₁ > 0, D₂ > 0, D₃ > 0` implies `Re(c* K c) > 0` for every nonzero `c ∈ ℂ³`. - `certified_gaussian_3x3_positive_definite` & `certified_gaussian_3x3_from_finite_and_tail`: proves strict positive definiteness of any real symmetric `3 × 3` matrix within the certified FLINT finite-zero enclosure plus the unconditional tail shield `B(100)`. -/ namespace F04Riemann open Real Complex MeasureTheory Set Finset /-! ### 1. Gaussian Mellin Transform and Reflection Symmetry -/ /-- The Gaussian Mellin transform `G(σ, t; s) = s (s - 1) √(2π) σ exp((σ²/2)(s - 1/2 - i t)²)`. -/ noncomputable def gaussianTransform (σ t : ℝ) (s : ℂ) : ℂ := s * (s - 1) * ((Real.sqrt (2 * Real.pi) * σ : ℝ) : ℂ) * Complex.exp (((σ ^ 2 / 2 : ℝ) : ℂ) * (s - (1 / 2 : ℂ) - (t : ℂ) * Complex.I) ^ 2) /-- Exact reflection identity across the critical line `Re(s) = 1/2`: `G(σ, t; 1 - conj s) = conj (G(σ, t; s))`. -/ theorem gaussianTransform_reflect (σ t : ℝ) (s : ℂ) : gaussianTransform σ t (1 - starRingEnd ℂ s) = starRingEnd ℂ (gaussianTransform σ t s) := by unfold gaussianTransform simp only [map_mul, map_sub, map_one, Complex.conj_ofReal, ← Complex.exp_conj] congr 1 · congr 1 ring · congr 1 simp only [map_mul, map_pow, map_sub, Complex.conj_ofReal, Complex.conj_I, map_div₀, map_one, map_ofNat] ring /-- Explicit real evaluation of `gaussianTransform` on the critical line `s = 1/2 + i γ`: `G(σ, t; 1/2 + i γ) = -(γ² + 1/4) √(2π) σ exp(-σ² (γ - t)² / 2)`. -/ theorem gaussianTransform_criticalLine (σ t γ : ℝ) : gaussianTransform σ t ((1 / 2 : ℂ) + (γ : ℂ) * Complex.I) = ((-(γ ^ 2 + 1 / 4) * (Real.sqrt (2 * Real.pi) * σ) * Real.exp (-(σ ^ 2 * (γ - t) ^ 2 / 2)) : ℝ) : ℂ) := by unfold gaussianTransform have hpref : ((1 / 2 : ℂ) + (γ : ℂ) * Complex.I) * (((1 / 2 : ℂ) + (γ : ℂ) * Complex.I) - 1) = ((-(γ ^ 2 + 1 / 4) : ℝ) : ℂ) := by push_cast linear_combination (γ : ℂ) ^ 2 * Complex.I_sq have harg : ((σ ^ 2 / 2 : ℝ) : ℂ) * ((1 / 2 : ℂ) + (γ : ℂ) * Complex.I - (1 / 2 : ℂ) - (t : ℂ) * Complex.I) ^ 2 = ((-(σ ^ 2 * (γ - t) ^ 2 / 2) : ℝ) : ℂ) := by push_cast linear_combination ((σ : ℂ) ^ 2 / 2) * ((γ : ℂ) - (t : ℂ)) ^ 2 * Complex.I_sq rw [hpref, harg, ← Complex.ofReal_exp] push_cast ring /-- The reflected zero-form pairing `G_j(ρ) conj(G_i(1 - conj ρ))`. -/ noncomputable def reflectedPair (σ t_i t_j : ℝ) (ρ : ℂ) : ℂ := gaussianTransform σ t_j ρ * starRingEnd ℂ (gaussianTransform σ t_i (1 - starRingEnd ℂ ρ)) /-- By reflection symmetry, `reflectedPair σ t_i t_j ρ = G_j(ρ) G_i(ρ)`, which is automatically symmetric in `(t_i, t_j)` for every `ρ ∈ ℂ` without assuming RH. -/ theorem reflectedPair_eq_mul (σ t_i t_j : ℝ) (ρ : ℂ) : reflectedPair σ t_i t_j ρ = gaussianTransform σ t_j ρ * gaussianTransform σ t_i ρ := by unfold reflectedPair rw [gaussianTransform_reflect, RingHomCompTriple.comp_apply, RingHom.id_apply] theorem reflectedPair_symm (σ t_i t_j : ℝ) (ρ : ℂ) : reflectedPair σ t_i t_j ρ = reflectedPair σ t_j t_i ρ := by rw [reflectedPair_eq_mul, reflectedPair_eq_mul, mul_comm] /-- Pairing a critical-strip zero `ρ` with its critical-line reflection `1 - conj ρ` yields a purely real symmetric contribution `2 Re(G_j(ρ) G_i(ρ))` without assuming RH. -/ theorem reflectedPair_add_reflect_real (σ t_i t_j : ℝ) (ρ : ℂ) : reflectedPair σ t_i t_j ρ + reflectedPair σ t_i t_j (1 - starRingEnd ℂ ρ) = ((2 * (gaussianTransform σ t_j ρ * gaussianTransform σ t_i ρ).re : ℝ) : ℂ) := by rw [reflectedPair_eq_mul, reflectedPair_eq_mul, gaussianTransform_reflect, gaussianTransform_reflect, ← map_mul, Complex.add_conj] /-! ### 2. Unconditional Critical-Strip Envelope `F(u)` and Tail Shield `B(T)` -/ /-- Unconditional critical-strip envelope `F(σ, M; u) = 2 π σ² exp(σ²/4) (u² + 1)² exp(-σ² (u - M)²)`. -/ noncomputable def tailEnvelope (σ M u : ℝ) : ℝ := 2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 / 4) * (u ^ 2 + 1) ^ 2 * Real.exp (-(σ ^ 2 * (u - M) ^ 2)) lemma tailEnvelope_pos {σ : ℝ} (hσ : 0 < σ) (M u : ℝ) : 0 < tailEnvelope σ M u := by unfold tailEnvelope have hpi : 0 < Real.pi := Real.pi_pos have hu : 0 < u ^ 2 + 1 := by positivity positivity /-- Pointwise bound on the critical strip `0 ≤ Re ρ ≤ 1` for `|Im ρ| ≥ M` and `|t_i|, |t_j| ≤ M`: `‖reflectedPair σ t_i t_j ρ‖ ≤ tailEnvelope σ M |ρ.im|` (valid off the critical line!). -/ theorem norm_reflectedPair_le_tailEnvelope {σ M t_i t_j : ℝ} {ρ : ℂ} (hσ : 0 < σ) (hti : |t_i| ≤ M) (htj : |t_j| ≤ M) (hre0 : 0 ≤ ρ.re) (hre1 : ρ.re ≤ 1) (him : M ≤ |ρ.im|) : ‖reflectedPair σ t_i t_j ρ‖ ≤ tailEnvelope σ M |ρ.im| := by -- Helper bound for a single `gaussianTransform σ t ρ` with `|t| ≤ M`. have hsingle : ∀ t : ℝ, |t| ≤ M → ‖gaussianTransform σ t ρ‖ ≤ (|ρ.im| ^ 2 + 1) * (Real.sqrt (2 * Real.pi) * σ) * Real.exp (σ ^ 2 / 8 - (σ ^ 2 / 2) * (|ρ.im| - M) ^ 2) := by intro t ht unfold gaussianTransform rw [norm_mul, norm_mul, norm_mul, Complex.norm_real, Real.norm_of_nonneg (mul_nonneg (Real.sqrt_nonneg _) (le_of_lt hσ)), Complex.norm_exp] -- Bound `‖ρ‖ * ‖ρ - 1‖ ≤ |ρ.im|^2 + 1`. have hρ_sq : ‖ρ‖ ^ 2 ≤ |ρ.im| ^ 2 + 1 := by rw [← Complex.normSq_eq_norm_sq, Complex.normSq_apply, sq_abs] nlinarith have hρ1_sq : ‖ρ - 1‖ ^ 2 ≤ |ρ.im| ^ 2 + 1 := by rw [← Complex.normSq_eq_norm_sq, Complex.normSq_apply, sq_abs] simp only [Complex.sub_re, Complex.one_re, Complex.sub_im, Complex.one_im, sub_zero] nlinarith have hprod_sq : (‖ρ‖ * ‖ρ - 1‖) ^ 2 ≤ (|ρ.im| ^ 2 + 1) ^ 2 := by rw [mul_pow, sq (|ρ.im| ^ 2 + 1)] exact mul_le_mul hρ_sq hρ1_sq (sq_nonneg _) (by positivity) have hprod : ‖ρ‖ * ‖ρ - 1‖ ≤ |ρ.im| ^ 2 + 1 := by nlinarith [norm_nonneg ρ, norm_nonneg (ρ - 1), show (0 : ℝ) ≤ |ρ.im| ^ 2 + 1 by positivity] -- Bound `Re((σ²/2) (ρ - 1/2 - i t)²)` using `|Re ρ - 1/2| ≤ 1/2` and `|Im ρ - t| ≥ |Im ρ| - M`. have hre_exp : (((σ ^ 2 / 2 : ℝ) : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I) ^ 2).re = (σ ^ 2 / 2) * ((ρ.re - 1 / 2) ^ 2 - (ρ.im - t) ^ 2) := by simp only [Complex.mul_re, Complex.mul_im, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero, sq, Complex.sub_re, Complex.sub_im, Complex.div_ofNat_re, Complex.div_ofNat_im, Complex.one_re, Complex.one_im, Complex.I_re, Complex.I_im] ring have hbeta : (ρ.re - 1 / 2) ^ 2 ≤ 1 / 4 := by nlinarith have hgamma_diff : |ρ.im| - M ≤ |ρ.im - t| := by have htri : |ρ.im| - |t| ≤ |ρ.im - t| := abs_sub_abs_le_abs_sub ρ.im t linarith have hgamma_sq : (|ρ.im| - M) ^ 2 ≤ (ρ.im - t) ^ 2 := by have hnn : 0 ≤ |ρ.im| - M := by linarith have := mul_self_le_mul_self hnn hgamma_diff rwa [← sq, ← sq, sq_abs] at this have hexp_le : Real.exp ((((σ ^ 2 / 2 : ℝ) : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I) ^ 2).re) ≤ Real.exp (σ ^ 2 / 8 - (σ ^ 2 / 2) * (|ρ.im| - M) ^ 2) := by rw [hre_exp] apply Real.exp_le_exp.mpr have hσ2 : 0 ≤ σ ^ 2 / 2 := by positivity nlinarith have h1 : ‖ρ‖ * ‖ρ - 1‖ * (Real.sqrt (2 * Real.pi) * σ) ≤ (|ρ.im| ^ 2 + 1) * (Real.sqrt (2 * Real.pi) * σ) := mul_le_mul_of_nonneg_right hprod (mul_nonneg (Real.sqrt_nonneg _) (le_of_lt hσ)) exact mul_le_mul h1 hexp_le (le_of_lt (Real.exp_pos _)) (by positivity) rw [reflectedPair_eq_mul, norm_mul] have hmul := mul_le_mul (hsingle t_j htj) (hsingle t_i hti) (norm_nonneg _) (by positivity) have hsq_eq : ((|ρ.im| ^ 2 + 1) * (Real.sqrt (2 * Real.pi) * σ) * Real.exp (σ ^ 2 / 8 - (σ ^ 2 / 2) * (|ρ.im| - M) ^ 2)) * ((|ρ.im| ^ 2 + 1) * (Real.sqrt (2 * Real.pi) * σ) * Real.exp (σ ^ 2 / 8 - (σ ^ 2 / 2) * (|ρ.im| - M) ^ 2)) = tailEnvelope σ M |ρ.im| := by unfold tailEnvelope have hsqrt : Real.sqrt (2 * Real.pi) * Real.sqrt (2 * Real.pi) = 2 * Real.pi := Real.mul_self_sqrt (by positivity) have hexp_add : Real.exp (σ ^ 2 / 8 - (σ ^ 2 / 2) * (|ρ.im| - M) ^ 2) * Real.exp (σ ^ 2 / 8 - (σ ^ 2 / 2) * (|ρ.im| - M) ^ 2) = Real.exp (σ ^ 2 / 4) * Real.exp (-(σ ^ 2 * (|ρ.im| - M) ^ 2)) := by rw [← Real.exp_add, ← Real.exp_add] congr 1; ring calc ((|ρ.im| ^ 2 + 1) * (Real.sqrt (2 * Real.pi) * σ) * Real.exp (σ ^ 2 / 8 - (σ ^ 2 / 2) * (|ρ.im| - M) ^ 2)) * ((|ρ.im| ^ 2 + 1) * (Real.sqrt (2 * Real.pi) * σ) * Real.exp (σ ^ 2 / 8 - (σ ^ 2 / 2) * (|ρ.im| - M) ^ 2)) = (Real.sqrt (2 * Real.pi) * Real.sqrt (2 * Real.pi)) * σ ^ 2 * (|ρ.im| ^ 2 + 1) ^ 2 * (Real.exp (σ ^ 2 / 8 - (σ ^ 2 / 2) * (|ρ.im| - M) ^ 2) * Real.exp (σ ^ 2 / 8 - (σ ^ 2 / 2) * (|ρ.im| - M) ^ 2)) := by ring _ = 2 * Real.pi * σ ^ 2 * (|ρ.im| ^ 2 + 1) ^ 2 * (Real.exp (σ ^ 2 / 4) * Real.exp (-(σ ^ 2 * (|ρ.im| - M) ^ 2))) := by rw [hsqrt, hexp_add] _ = 2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 / 4) * (|ρ.im| ^ 2 + 1) ^ 2 * Real.exp (-(σ ^ 2 * (|ρ.im| - M) ^ 2)) := by ring linarith /-- Envelope log-decay rate `λ = 2 σ² (T - M) - 4 / T`. -/ noncomputable def tailLambda (σ M T : ℝ) : ℝ := 2 * σ ^ 2 * (T - M) - 4 / T /-- Zero-count growth rate `μ = 2 / (T + 1)`. -/ noncomputable def tailMu (T : ℝ) : ℝ := 2 / (T + 1) /-- Unconditional geometric all-zero tail bound `B(σ, M, T) = 2 F(T) (T + 1) log(T + 1) / (1 - exp(-(λ - μ)))`. -/ noncomputable def tailBoundB (σ M T : ℝ) : ℝ := 2 * tailEnvelope σ M T * (T + 1) * Real.log (T + 1) / (1 - Real.exp (-(tailLambda σ M T - tailMu T))) /-- Exponential decay of `tailEnvelope`: for `T ≤ u ≤ v`, `F(v) ≤ exp(-λ (v - u)) F(u)`. -/ theorem tailEnvelope_le_exp_mul {σ M T u v : ℝ} (hσ : 0 < σ) (hT : 0 < T) (hTu : T ≤ u) (huv : u ≤ v) : tailEnvelope σ M v ≤ Real.exp (-tailLambda σ M T * (v - u)) * tailEnvelope σ M u := by let g : ℝ → ℝ := fun x => 2 * Real.log (x ^ 2 + 1) - σ ^ 2 * (x - M) ^ 2 + tailLambda σ M T * x let g' : ℝ → ℝ := fun x => 4 * x / (x ^ 2 + 1) - 2 * σ ^ 2 * (x - M) + tailLambda σ M T have hg_deriv : ∀ x ∈ uIcc u v, HasDerivAt g (g' x) x := by intro x _ have hpos : 0 < x ^ 2 + 1 := by positivity have h1 : HasDerivAt (fun t : ℝ => 2 * Real.log (t ^ 2 + 1)) (4 * x / (x ^ 2 + 1)) x := by have hsq : HasDerivAt (fun t : ℝ => t ^ 2 + 1) (2 * x) x := by have := (hasDerivAt_pow 2 x).add_const (1 : ℝ) have hv : (2 : ℕ) * x ^ (2 - 1) = 2 * x := by push_cast; ring rwa [hv] at this have hc := (HasDerivAt.comp x (hasDerivAt_log_pos hpos) hsq).const_mul 2 have hv : 2 * ((x ^ 2 + 1)⁻¹ * (2 * x)) = 4 * x / (x ^ 2 + 1) := by field_simp [ne_of_gt hpos]; ring rwa [hv] at hc have h2 : HasDerivAt (fun t : ℝ => σ ^ 2 * (t - M) ^ 2) (2 * σ ^ 2 * (x - M)) x := by have hsub : HasDerivAt (fun t : ℝ => t - M) 1 x := (hasDerivAt_id' x).sub_const M have hsq := HasDerivAt.comp x (hasDerivAt_pow 2 (x - M)) hsub have hm := hsq.const_mul (σ ^ 2) have hv : σ ^ 2 * ((2 : ℕ) * (x - M) ^ (2 - 1) * 1) = 2 * σ ^ 2 * (x - M) := by push_cast; ring rwa [hv] at hm have h3 : HasDerivAt (fun t : ℝ => tailLambda σ M T * t) (tailLambda σ M T) x := by simpa using (hasDerivAt_id' x).const_mul (tailLambda σ M T) exact (h1.sub h2).add h3 have hg'_cont : Continuous g' := by refine Continuous.add (Continuous.sub ?_ ?_) continuous_const · exact (continuous_const.mul continuous_id).div ((continuous_pow 2).add continuous_const) (fun x => by positivity) · exact continuous_const.mul (continuous_id.sub continuous_const) have hftc := intervalIntegral.integral_eq_sub_of_hasDerivAt hg_deriv (hg'_cont.intervalIntegrable u v) have hnonpos : ∫ x in u..v, g' x ≤ 0 := by have hle : ∫ x in u..v, g' x ≤ ∫ _x in u..v, (0 : ℝ) := intervalIntegral.integral_mono_on huv (hg'_cont.intervalIntegrable u v) (continuous_const.intervalIntegrable u v) (fun x hx => by have hxT : T ≤ x := le_trans hTu hx.1 have hxpos : 0 < x := lt_of_lt_of_le hT hxT have hfrac : 4 * x / (x ^ 2 + 1) ≤ 4 / T := by rw [div_le_div_iff₀ (by positivity) hT] nlinarith have hquad : 2 * σ ^ 2 * (T - M) ≤ 2 * σ ^ 2 * (x - M) := by have hσ2 : 0 ≤ 2 * σ ^ 2 := by positivity nlinarith simp only [g', tailLambda] linarith) simpa using hle have hgv_le : g v ≤ g u := by linarith -- Exponentiate `g v - g u ≤ 0` to obtain `tailEnvelope σ M v ≤ exp(-λ (v - u)) tailEnvelope σ M u`. have hF_eq : ∀ x : ℝ, tailEnvelope σ M x = (2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 / 4)) * Real.exp (2 * Real.log (x ^ 2 + 1) - σ ^ 2 * (x - M) ^ 2) := by intro x unfold tailEnvelope have hsub_add : 2 * Real.log (x ^ 2 + 1) - σ ^ 2 * (x - M) ^ 2 = 2 * Real.log (x ^ 2 + 1) + -(σ ^ 2 * (x - M) ^ 2) := by ring rw [hsub_add, Real.exp_add] have hlog2 : Real.exp (2 * Real.log (x ^ 2 + 1)) = (x ^ 2 + 1) ^ 2 := by have : 2 * Real.log (x ^ 2 + 1) = ((2 : ℕ) : ℝ) * Real.log (x ^ 2 + 1) := by norm_num rw [this, Real.exp_nat_mul, Real.exp_log (by positivity)] rw [hlog2]; ring rw [hF_eq v, hF_eq u] have hconst_nn : 0 ≤ 2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 / 4) := by have := Real.pi_pos; positivity have hexp_ineq : Real.exp (2 * Real.log (v ^ 2 + 1) - σ ^ 2 * (v - M) ^ 2) ≤ Real.exp (-tailLambda σ M T * (v - u)) * Real.exp (2 * Real.log (u ^ 2 + 1) - σ ^ 2 * (u - M) ^ 2) := by rw [← Real.exp_add] apply Real.exp_le_exp.mpr simp only [g] at hgv_le linarith calc (2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 / 4)) * Real.exp (2 * Real.log (v ^ 2 + 1) - σ ^ 2 * (v - M) ^ 2) ≤ (2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 / 4)) * (Real.exp (-tailLambda σ M T * (v - u)) * Real.exp (2 * Real.log (u ^ 2 + 1) - σ ^ 2 * (u - M) ^ 2)) := mul_le_mul_of_nonneg_left hexp_ineq hconst_nn _ = Real.exp (-tailLambda σ M T * (v - u)) * ((2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 / 4)) * Real.exp (2 * Real.log (u ^ 2 + 1) - σ ^ 2 * (u - M) ^ 2)) := by ring /-- Growth bound on `x log x` for `x ≥ T + 1` (`T ≥ 10`): `(T + k + 1) log(T + k + 1) ≤ exp(k μ) (T + 1) log(T + 1)`. -/ theorem nlog_le_exp_mul {T : ℝ} (hT : 10 ≤ T) (k : ℕ) : (T + (k : ℝ) + 1) * Real.log (T + (k : ℝ) + 1) ≤ Real.exp ((k : ℝ) * tailMu T) * ((T + 1) * Real.log (T + 1)) := by let a : ℝ := T + 1 let b : ℝ := T + (k : ℝ) + 1 have hab : a ≤ b := by simp only [a, b]; linarith [Nat.cast_nonneg (α := ℝ) k] have ha10 : 10 < a := by simp only [a]; linarith let h : ℝ → ℝ := fun x => Real.log (x * Real.log x) - tailMu T * x let h' : ℝ → ℝ := fun x => 1 / x + 1 / (x * Real.log x) - tailMu T have hlog_gt1 : ∀ x, a ≤ x → 1 < Real.log x := by intro x hx have h10 : Real.log 10 < Real.log x := Real.log_lt_log (by norm_num) (lt_of_lt_of_le ha10 hx) linarith [log_ten_gt] have hh_deriv : ∀ x ∈ uIcc a b, HasDerivAt h (h' x) x := by intro x hx rw [uIcc_of_le hab] at hx have hx_pos : 0 < x := by linarith [hx.1, ha10] have hlog_pos : 0 < Real.log x := lt_trans zero_lt_one (hlog_gt1 x hx.1) have hprod_pos : 0 < x * Real.log x := mul_pos hx_pos hlog_pos have hprod_d : HasDerivAt (fun t => t * Real.log t) (Real.log x + 1) x := by have hd := (hasDerivAt_id' x).mul (hasDerivAt_log_pos hx_pos) have hv : 1 * Real.log x + x * x⁻¹ = Real.log x + 1 := by rw [one_mul, mul_inv_cancel₀ (ne_of_gt hx_pos)] rwa [hv] at hd have hcomp := HasDerivAt.comp x (hasDerivAt_log_pos hprod_pos) hprod_d have hlin : HasDerivAt (fun t => tailMu T * t) (tailMu T) x := by simpa using (hasDerivAt_id' x).const_mul (tailMu T) have hsub := hcomp.sub hlin have hval : (x * Real.log x)⁻¹ * (Real.log x + 1) - tailMu T = h' x := by simp only [h'] field_simp [ne_of_gt hx_pos, ne_of_gt hlog_pos] rwa [hval] at hsub have hh'_int : IntervalIntegrable h' volume a b := by refine ContinuousOn.intervalIntegrable ?_ rw [uIcc_of_le hab] have hcont_log : ContinuousOn Real.log (Icc a b) := continuousOn_log_Ioi.mono (fun x hx => show 0 < x by linarith [hx.1, ha10]) refine ContinuousOn.sub (ContinuousOn.add ?_ ?_) continuousOn_const · exact continuousOn_const.div continuousOn_id (fun x hx => by linarith [hx.1, ha10]) · refine continuousOn_const.div (continuousOn_id.mul hcont_log) (fun x hx => ?_) have hx_pos : 0 < x := by linarith [hx.1, ha10] have hlog_pos : 0 < Real.log x := lt_trans zero_lt_one (hlog_gt1 x hx.1) exact ne_of_gt (mul_pos hx_pos hlog_pos) have hftc := intervalIntegral.integral_eq_sub_of_hasDerivAt hh_deriv hh'_int have hnonpos : ∫ x in a..b, h' x ≤ 0 := by have hle : ∫ x in a..b, h' x ≤ ∫ _x in a..b, (0 : ℝ) := intervalIntegral.integral_mono_on hab hh'_int (continuous_const.intervalIntegrable a b) (fun x hx => by have hx_pos : 0 < x := by linarith [hx.1, ha10] have hlog1 : 1 < Real.log x := hlog_gt1 x hx.1 have h2 : 1 / (x * Real.log x) ≤ 1 / x := by rw [div_le_div_iff₀ (mul_pos hx_pos (lt_trans zero_lt_one hlog1)) hx_pos] nlinarith have h3 : 2 / x ≤ 2 / (T + 1) := by have hxT : T + 1 ≤ x := hx.1 exact div_le_div_of_nonneg_left (by norm_num) (by linarith) hxT have h2x : 1 / x + 1 / x = 2 / x := by ring simp only [h', tailMu] linarith) simpa using hle have hhb_le : h b ≤ h a := by linarith have ha_prod_pos : 0 < a * Real.log a := mul_pos (by linarith) (lt_trans zero_lt_one (hlog_gt1 a (le_refl a))) have hb_prod_pos : 0 < b * Real.log b := mul_pos (by linarith [hab]) (lt_trans zero_lt_one (hlog_gt1 b hab)) have hexp := Real.exp_le_exp.mpr (show Real.log (b * Real.log b) ≤ (k : ℝ) * tailMu T + Real.log (a * Real.log a) by simp only [h, a, b] at hhb_le ⊢ linarith) rw [Real.exp_log hb_prod_pos, Real.exp_add, Real.exp_log ha_prod_pos] at hexp exact hexp /-- **Unconditional All-Zero Tail Shield Theorem (`B(T)`, Arbitrary Multiplicities)**: Given any family of unit-height critical-strip zero shells `S : ℕ → Finset ℂ` with integer multiplicities `mult : ℂ → ℕ` covering heights `|Im ρ| ∈ [T + k, T + k + 1)` with `0 ≤ Re ρ ≤ 1` (NO Riemann Hypothesis and NO simplicity assumed!), whose weighted shell counts obey the Hasanalizade–Shen–Wong bound `∑ ρ ∈ S k, (mult ρ : ℝ) ≤ 2 * (T + k + 1) * log(T + k + 1)`, the infinite multiplicity-weighted tail sum is summable and bounded by `tailBoundB σ M T`. -/ theorem tail_shells_tsum_le_tailBoundB {σ M T t_i t_j : ℝ} (hσ : 0 < σ) (hT10 : 10 ≤ T) (hMT : M ≤ T) (hti : |t_i| ≤ M) (htj : |t_j| ≤ M) (hdecay : tailMu T < tailLambda σ M T) (S : ℕ → Finset ℂ) (mult : ℂ → ℕ) (hstrip : ∀ k, ∀ ρ ∈ S k, 0 ≤ ρ.re ∧ ρ.re ≤ 1 ∧ T + (k : ℝ) ≤ |ρ.im|) (hcount : ∀ k, (∑ ρ ∈ S k, (mult ρ : ℝ)) ≤ 2 * (T + (k : ℝ) + 1) * Real.log (T + (k : ℝ) + 1)) : Summable (fun k => ∑ ρ ∈ S k, (mult ρ : ℝ) * ‖reflectedPair σ t_i t_j ρ‖) ∧ (∑' k : ℕ, ∑ ρ ∈ S k, (mult ρ : ℝ) * ‖reflectedPair σ t_i t_j ρ‖) ≤ tailBoundB σ M T := by set r : ℝ := Real.exp (-(tailLambda σ M T - tailMu T)) set C : ℝ := 2 * tailEnvelope σ M T * (T + 1) * Real.log (T + 1) have hT_pos : 0 < T := by linarith have hlam_pos : 0 < tailLambda σ M T := by have hmu_pos : 0 < tailMu T := div_pos (by norm_num) (by linarith) linarith have hr_nn : 0 ≤ r := le_of_lt (Real.exp_pos _) have hr_lt : r < 1 := by simp only [r]; rw [Real.exp_lt_one_iff]; linarith have hterm : ∀ k : ℕ, ∑ ρ ∈ S k, (mult ρ : ℝ) * ‖reflectedPair σ t_i t_j ρ‖ ≤ C * r ^ k := by intro k have hF_k : tailEnvelope σ M (T + (k : ℝ)) ≤ Real.exp (-(k : ℝ) * tailLambda σ M T) * tailEnvelope σ M T := by have h := tailEnvelope_le_exp_mul (M := M) hσ hT_pos (le_refl T) (by linarith [Nat.cast_nonneg (α := ℝ) k] : T ≤ T + (k : ℝ)) have hsub : T + (k : ℝ) - T = (k : ℝ) := by ring rw [hsub] at h have harg : -tailLambda σ M T * (k : ℝ) = -(k : ℝ) * tailLambda σ M T := by ring rwa [harg] at h have hshell : ∑ ρ ∈ S k, (mult ρ : ℝ) * ‖reflectedPair σ t_i t_j ρ‖ ≤ (∑ ρ ∈ S k, (mult ρ : ℝ)) * tailEnvelope σ M (T + (k : ℝ)) := by calc ∑ ρ ∈ S k, (mult ρ : ℝ) * ‖reflectedPair σ t_i t_j ρ‖ ≤ ∑ ρ ∈ S k, (mult ρ : ℝ) * tailEnvelope σ M (T + (k : ℝ)) := by refine Finset.sum_le_sum (fun ρ hρ => mul_le_mul_of_nonneg_left ?_ (Nat.cast_nonneg _)) obtain ⟨hre0, hre1, him⟩ := hstrip k ρ hρ have himM : M ≤ |ρ.im| := le_trans hMT (le_trans (by linarith [Nat.cast_nonneg (α := ℝ) k]) him) have h1 := norm_reflectedPair_le_tailEnvelope hσ hti htj hre0 hre1 himM have h2 := tailEnvelope_le_exp_mul (M := M) hσ hT_pos (by linarith [Nat.cast_nonneg (α := ℝ) k] : T ≤ T + (k : ℝ)) him have hexp_le1 : Real.exp (-tailLambda σ M T * (|ρ.im| - (T + (k : ℝ)))) ≤ 1 := by rw [Real.exp_le_one_iff] have hdiff : 0 ≤ |ρ.im| - (T + (k : ℝ)) := by linarith nlinarith have hF_pos := tailEnvelope_pos hσ M (T + (k : ℝ)) nlinarith _ = (∑ ρ ∈ S k, (mult ρ : ℝ)) * tailEnvelope σ M (T + (k : ℝ)) := by rw [Finset.sum_mul] have hnl := nlog_le_exp_mul hT10 k have hF_nn : 0 ≤ tailEnvelope σ M (T + (k : ℝ)) := le_of_lt (tailEnvelope_pos hσ M _) have hcard_prod : (∑ ρ ∈ S k, (mult ρ : ℝ)) * tailEnvelope σ M (T + (k : ℝ)) ≤ (2 * ((T + (k : ℝ) + 1) * Real.log (T + (k : ℝ) + 1))) * tailEnvelope σ M (T + (k : ℝ)) := by have hc : (∑ ρ ∈ S k, (mult ρ : ℝ)) ≤ 2 * ((T + (k : ℝ) + 1) * Real.log (T + (k : ℝ) + 1)) := by linarith [hcount k] exact mul_le_mul_of_nonneg_right hc hF_nn have hcomb : (2 * ((T + (k : ℝ) + 1) * Real.log (T + (k : ℝ) + 1))) * tailEnvelope σ M (T + (k : ℝ)) ≤ (2 * (Real.exp ((k : ℝ) * tailMu T) * ((T + 1) * Real.log (T + 1)))) * (Real.exp (-(k : ℝ) * tailLambda σ M T) * tailEnvelope σ M T) := by have h2nl : 2 * ((T + (k : ℝ) + 1) * Real.log (T + (k : ℝ) + 1)) ≤ 2 * (Real.exp ((k : ℝ) * tailMu T) * ((T + 1) * Real.log (T + 1))) := by linarith have h2nl_nn : 0 ≤ 2 * (Real.exp ((k : ℝ) * tailMu T) * ((T + 1) * Real.log (T + 1))) := by have hlog_pos : 0 < Real.log (T + 1) := Real.log_pos (by linarith) positivity exact mul_le_mul h2nl hF_k hF_nn h2nl_nn have hrk : r ^ k = Real.exp ((k : ℝ) * tailMu T) * Real.exp (-(k : ℝ) * tailLambda σ M T) := by simp only [r] rw [← Real.exp_nat_mul, ← Real.exp_add] congr 1; ring have hCrk : (2 * (Real.exp ((k : ℝ) * tailMu T) * ((T + 1) * Real.log (T + 1)))) * (Real.exp (-(k : ℝ) * tailLambda σ M T) * tailEnvelope σ M T) = C * r ^ k := by simp only [C]; rw [hrk]; ring linarith have hgeom_sum : Summable (fun k : ℕ => C * r ^ k) := (summable_geometric_of_lt_one hr_nn hr_lt).mul_left C have hnn : ∀ k : ℕ, 0 ≤ ∑ ρ ∈ S k, (mult ρ : ℝ) * ‖reflectedPair σ t_i t_j ρ‖ := fun k => Finset.sum_nonneg (fun _ _ => mul_nonneg (Nat.cast_nonneg _) (norm_nonneg _)) have hs : Summable (fun k : ℕ => ∑ ρ ∈ S k, (mult ρ : ℝ) * ‖reflectedPair σ t_i t_j ρ‖) := Summable.of_nonneg_of_le hnn hterm hgeom_sum refine ⟨hs, ?_⟩ have htsum_le : (∑' k : ℕ, ∑ ρ ∈ S k, (mult ρ : ℝ) * ‖reflectedPair σ t_i t_j ρ‖) ≤ ∑' k : ℕ, C * r ^ k := hs.tsum_le_tsum hterm hgeom_sum rw [tsum_mul_left, tsum_geometric_of_lt_one hr_nn hr_lt] at htsum_le have hB_eq : C * (1 - r)⁻¹ = tailBoundB σ M T := by unfold tailBoundB; simp only [C, r, div_eq_mul_inv] linarith /-! ### 3. Kernel-Checked Numerical Tail Bound `B(100) ≤ 1.48 × 10⁻¹⁵⁹` -/ /-- Elementary chained rational upper bound `exp(-24963 / 64) < 40253835 / 10^177`. -/ lemma exp_neg_24963_div_64_lt : Real.exp (-(24963 / 64 : ℝ)) < 40253835 / 10 ^ 177 := by have h1_8 : Real.exp (-(1 / 8 : ℝ)) < 882496903 / 10 ^ 9 := by have h := (exp_neg_taylor_bounds (x := 1 / 8) (by norm_num)).2 have hnum : (1 : ℝ) - 1 / 8 + (1 / 8) ^ 2 / 2 - (1 / 8) ^ 3 / 6 + (1 / 8) ^ 4 / 24 - (1 / 8) ^ 5 / 120 + (1 / 8) ^ 6 / 720 < 882496903 / 10 ^ 9 := by norm_num linarith have h1 : Real.exp (-1 : ℝ) < 36787945 / 10 ^ 8 := by have heq : Real.exp (-1 : ℝ) = Real.exp (-(1 / 8 : ℝ)) ^ 8 := by rw [← Real.exp_nat_mul]; congr 1; norm_num rw [heq] have hp := pow_lt_pow_left₀ h1_8 (le_of_lt (Real.exp_pos _)) (by norm_num : 8 ≠ 0) have hn : (882496903 / 10 ^ 9 : ℝ) ^ 8 < 36787945 / 10 ^ 8 := by norm_num linarith have h5 : Real.exp (-5 : ℝ) < 67379479 / 10 ^ 10 := by have heq : Real.exp (-5 : ℝ) = Real.exp (-1 : ℝ) ^ 5 := by rw [← Real.exp_nat_mul]; congr 1; norm_num rw [heq] have hp := pow_lt_pow_left₀ h1 (le_of_lt (Real.exp_pos _)) (by norm_num : 5 ≠ 0) have hn : (36787945 / 10 ^ 8 : ℝ) ^ 5 < 67379479 / 10 ^ 10 := by norm_num linarith have h15 : Real.exp (-15 : ℝ) < 30590245 / 10 ^ 14 := by have heq : Real.exp (-15 : ℝ) = Real.exp (-5 : ℝ) ^ 3 := by rw [← Real.exp_nat_mul]; congr 1; norm_num rw [heq] have hp := pow_lt_pow_left₀ h5 (le_of_lt (Real.exp_pos _)) (by norm_num : 3 ≠ 0) have hn : (67379479 / 10 ^ 10 : ℝ) ^ 3 < 30590245 / 10 ^ 14 := by norm_num linarith have h25 : Real.exp (-25 : ℝ) < 13887954 / 10 ^ 18 := by have heq : Real.exp (-25 : ℝ) = Real.exp (-5 : ℝ) ^ 5 := by rw [← Real.exp_nat_mul]; congr 1; norm_num rw [heq] have hp := pow_lt_pow_left₀ h5 (le_of_lt (Real.exp_pos _)) (by norm_num : 5 ≠ 0) have hn : (67379479 / 10 ^ 10 : ℝ) ^ 5 < 13887954 / 10 ^ 18 := by norm_num linarith have h75 : Real.exp (-75 : ℝ) < 26786429 / 10 ^ 40 := by have heq : Real.exp (-75 : ℝ) = Real.exp (-25 : ℝ) ^ 3 := by rw [← Real.exp_nat_mul]; congr 1; norm_num rw [heq] have hp := pow_lt_pow_left₀ h25 (le_of_lt (Real.exp_pos _)) (by norm_num : 3 ≠ 0) have hn : (13887954 / 10 ^ 18 : ℝ) ^ 3 < 26786429 / 10 ^ 40 := by norm_num linarith have h375 : Real.exp (-375 : ℝ) < 13790313 / 10 ^ 170 := by have heq : Real.exp (-375 : ℝ) = Real.exp (-75 : ℝ) ^ 5 := by rw [← Real.exp_nat_mul]; congr 1; norm_num rw [heq] have hp := pow_lt_pow_left₀ h75 (le_of_lt (Real.exp_pos _)) (by norm_num : 5 ≠ 0) have hn : (26786429 / 10 ^ 40 : ℝ) ^ 5 < 13790313 / 10 ^ 170 := by norm_num linarith have h390 : Real.exp (-390 : ℝ) < 42184906 / 10 ^ 177 := by have heq : Real.exp (-390 : ℝ) = Real.exp (-375 : ℝ) * Real.exp (-15 : ℝ) := by rw [← Real.exp_add]; congr 1; norm_num rw [heq] have hm := mul_lt_mul'' h375 h15 (le_of_lt (Real.exp_pos _)) (le_of_lt (Real.exp_pos _)) have hn : (13790313 / 10 ^ 170 : ℝ) * (30590245 / 10 ^ 14) < 42184906 / 10 ^ 177 := by norm_num linarith have hrem : Real.exp (-(3 / 64 : ℝ)) < 95422364 / 10 ^ 8 := by have h := (exp_neg_taylor_bounds (x := 3 / 64) (by norm_num)).2 have hnum : (1 : ℝ) - 3 / 64 + (3 / 64) ^ 2 / 2 - (3 / 64) ^ 3 / 6 + (3 / 64) ^ 4 / 24 - (3 / 64) ^ 5 / 120 + (3 / 64) ^ 6 / 720 < 95422364 / 10 ^ 8 := by norm_num linarith have htot : Real.exp (-(24963 / 64 : ℝ)) = Real.exp (-390 : ℝ) * Real.exp (-(3 / 64 : ℝ)) := by rw [← Real.exp_add]; congr 1; norm_num rw [htot] have hm := mul_lt_mul'' h390 hrem (le_of_lt (Real.exp_pos _)) (le_of_lt (Real.exp_pos _)) have hn : (42184906 / 10 ^ 177 : ℝ) * (95422364 / 10 ^ 8) < 40253835 / 10 ^ 177 := by norm_num linarith /-- **Kernel-checked concrete Gaussian tail shield (`T = 100`, `σ = 1/4`, `M = 21`)**: 1. `tailMu 100 < tailLambda (1/4) 21 100`, 2. geometric ratio `exp(-(λ - μ)) < 1 / 8000`, 3. unconditional tail bound `B(100) ≤ 1.48 × 10⁻¹⁵⁹` (`148 / 10^161`). -/ theorem tailBoundB_100_le : tailMu 100 < tailLambda (1 / 4) 21 100 ∧ Real.exp (-(tailLambda (1 / 4) 21 100 - tailMu 100)) < 1 / 8000 ∧ tailBoundB (1 / 4) 21 100 ≤ 148 / 10 ^ 161 := by have hlam : tailLambda (1 / 4) 21 100 = 1967 / 200 := by unfold tailLambda; norm_num have hmu : tailMu 100 = 2 / 101 := by unfold tailMu; norm_num have hdecay : tailMu 100 < tailLambda (1 / 4) 21 100 := by rw [hlam, hmu]; norm_num have hratio : Real.exp (-(tailLambda (1 / 4) 21 100 - tailMu 100)) < 1 / 8000 := by rw [hlam, hmu] have hle9 : Real.exp (-(1967 / 200 - 2 / 101 : ℝ)) ≤ Real.exp (-9 : ℝ) := Real.exp_le_exp.mpr (by norm_num) have hexp9 : Real.exp (-9 : ℝ) < (36787945 / 10 ^ 8 : ℝ) ^ 9 := by have h1 : Real.exp (-1 : ℝ) < 36787945 / 10 ^ 8 := by have h1_8 : Real.exp (-(1 / 8 : ℝ)) < 882496903 / 10 ^ 9 := by have h := (exp_neg_taylor_bounds (x := 1 / 8) (by norm_num)).2 have hnum : (1 : ℝ) - 1 / 8 + (1 / 8) ^ 2 / 2 - (1 / 8) ^ 3 / 6 + (1 / 8) ^ 4 / 24 - (1 / 8) ^ 5 / 120 + (1 / 8) ^ 6 / 720 < 882496903 / 10 ^ 9 := by norm_num linarith have heq : Real.exp (-1 : ℝ) = Real.exp (-(1 / 8 : ℝ)) ^ 8 := by rw [← Real.exp_nat_mul]; congr 1; norm_num rw [heq] have hp := pow_lt_pow_left₀ h1_8 (le_of_lt (Real.exp_pos _)) (by norm_num : 8 ≠ 0) have hn : (882496903 / 10 ^ 9 : ℝ) ^ 8 < 36787945 / 10 ^ 8 := by norm_num linarith have heq9 : Real.exp (-9 : ℝ) = Real.exp (-1 : ℝ) ^ 9 := by rw [← Real.exp_nat_mul]; congr 1; norm_num rw [heq9] exact pow_lt_pow_left₀ h1 (le_of_lt (Real.exp_pos _)) (by norm_num : 9 ≠ 0) have hnum9 : (36787945 / 10 ^ 8 : ℝ) ^ 9 < 1 / 8000 := by norm_num linarith have hlog101 : Real.log (101 : ℝ) < 462 / 100 := log_lt_of_taylor (k := 10) (u := 63003 / 100000) (by norm_num) (by norm_num) (by norm_num) (by norm_num) (by norm_num) have hF100 : tailEnvelope (1 / 4) 21 100 < 2 * (3142 / 1000) * (1 / 16) * (10001 ^ 2) * (40253835 / 10 ^ 177) := by unfold tailEnvelope have hexp_comb : Real.exp ((1 / 4 : ℝ) ^ 2 / 4) * Real.exp (-((1 / 4 : ℝ) ^ 2 * (100 - 21) ^ 2)) = Real.exp (-(24963 / 64 : ℝ)) := by rw [← Real.exp_add]; congr 1; norm_num have hrew : 2 * Real.pi * (1 / 4 : ℝ) ^ 2 * Real.exp ((1 / 4 : ℝ) ^ 2 / 4) * ((100 : ℝ) ^ 2 + 1) ^ 2 * Real.exp (-((1 / 4 : ℝ) ^ 2 * (100 - 21) ^ 2)) = (2 * Real.pi * (1 / 16) * (10001 ^ 2)) * Real.exp (-(24963 / 64 : ℝ)) := by rw [← hexp_comb]; ring rw [hrew] have hpref : 2 * Real.pi * (1 / 16 : ℝ) * (10001 ^ 2) < 2 * (3142 / 1000 : ℝ) * (1 / 16) * (10001 ^ 2) := by linarith [pi_lt_3142] exact mul_lt_mul'' hpref exp_neg_24963_div_64_lt (by positivity) (le_of_lt (Real.exp_pos _)) refine ⟨hdecay, hratio, ?_⟩ unfold tailBoundB have hden_gt : (7999 / 8000 : ℝ) < 1 - Real.exp (-(tailLambda (1 / 4) 21 100 - tailMu 100)) := by linarith have hnum_lt : 2 * tailEnvelope (1 / 4) 21 100 * ((100 : ℝ) + 1) * Real.log ((100 : ℝ) + 1) < 2 * (2 * (3142 / 1000) * (1 / 16) * (10001 ^ 2) * (40253835 / 10 ^ 177)) * 101 * (462 / 100) := by have h101 : (100 : ℝ) + 1 = 101 := by norm_num rw [h101] have hF_nn : 0 ≤ tailEnvelope (1 / 4) 21 100 := le_of_lt (tailEnvelope_pos (by norm_num) 21 100) have hlog_nn : 0 ≤ Real.log 101 := Real.log_nonneg (by norm_num) have h1 : 2 * tailEnvelope (1 / 4) 21 100 * 101 < 2 * (2 * (3142 / 1000) * (1 / 16) * (10001 ^ 2) * (40253835 / 10 ^ 177)) * 101 := by linarith exact mul_lt_mul'' h1 hlog101 (by positivity) hlog_nn have hdiv_lt : 2 * tailEnvelope (1 / 4) 21 100 * ((100 : ℝ) + 1) * Real.log ((100 : ℝ) + 1) / (1 - Real.exp (-(tailLambda (1 / 4) 21 100 - tailMu 100))) < (2 * (2 * (3142 / 1000) * (1 / 16) * (10001 ^ 2) * (40253835 / 10 ^ 177)) * 101 * (462 / 100)) / (7999 / 8000) := by calc 2 * tailEnvelope (1 / 4) 21 100 * ((100 : ℝ) + 1) * Real.log ((100 : ℝ) + 1) / (1 - Real.exp (-(tailLambda (1 / 4) 21 100 - tailMu 100))) < (2 * (2 * (3142 / 1000) * (1 / 16) * (10001 ^ 2) * (40253835 / 10 ^ 177)) * 101 * (462 / 100)) / (1 - Real.exp (-(tailLambda (1 / 4) 21 100 - tailMu 100))) := div_lt_div_of_pos_right hnum_lt (by linarith) _ < (2 * (2 * (3142 / 1000) * (1 / 16) * (10001 ^ 2) * (40253835 / 10 ^ 177)) * 101 * (462 / 100)) / (7999 / 8000) := div_lt_div_of_pos_left (by norm_num) (by norm_num) hden_gt have hfinal : (2 * (2 * (3142 / 1000 : ℝ) * (1 / 16) * (10001 ^ 2) * (40253835 / 10 ^ 177)) * 101 * (462 / 100)) / (7999 / 8000) ≤ 148 / 10 ^ 161 := by norm_num linarith /-! ### 4. 3 × 3 Sylvester Criterion and Certified Gaussian Zero-Form Positivity -/ /-- First leading principal minor `D₁ = K₀₀`. -/ noncomputable def sylvesterDet1 (K : Matrix (Fin 3) (Fin 3) ℝ) : ℝ := K 0 0 /-- Second leading principal minor `D₂ = K₀₀ K₁₁ - K₀₁²`. -/ noncomputable def sylvesterDet2 (K : Matrix (Fin 3) (Fin 3) ℝ) : ℝ := K 0 0 * K 1 1 - K 0 1 ^ 2 /-- Third leading principal minor `D₃ = det K` for a real symmetric `3 × 3` matrix. -/ noncomputable def sylvesterDet3 (K : Matrix (Fin 3) (Fin 3) ℝ) : ℝ := K 0 0 * K 1 1 * K 2 2 + 2 * K 0 1 * K 0 2 * K 1 2 - K 0 0 * K 1 2 ^ 2 - K 1 1 * K 0 2 ^ 2 - K 2 2 * K 0 1 ^ 2 /-- Exact 3-variable sum-of-squares identity expressing `xᵀ K x` via `D₁, D₂, D₃`. -/ lemma quadForm_3x3_eq_sylvester_squares (K : Matrix (Fin 3) (Fin 3) ℝ) (hsymm : ∀ i j : Fin 3, K j i = K i j) (hD1 : sylvesterDet1 K ≠ 0) (hD2 : sylvesterDet2 K ≠ 0) (x : Fin 3 → ℝ) : quadForm K x = sylvesterDet1 K * (x 0 + (K 0 1 / sylvesterDet1 K) * x 1 + (K 0 2 / sylvesterDet1 K) * x 2) ^ 2 + (sylvesterDet2 K / sylvesterDet1 K) * (x 1 + ((K 0 0 * K 1 2 - K 0 1 * K 0 2) / sylvesterDet2 K) * x 2) ^ 2 + (sylvesterDet3 K / sylvesterDet2 K) * x 2 ^ 2 := by unfold quadForm sylvesterDet3 unfold sylvesterDet1 at hD1 ⊢ unfold sylvesterDet2 at hD2 ⊢ simp only [Fin.sum_univ_three] rw [hsymm 0 1, hsymm 0 2, hsymm 1 2] field_simp [hD1, hD2] ring /-- **Sylvester's Criterion for real symmetric `3 × 3` matrices**: if `D₁ > 0`, `D₂ > 0`, and `D₃ > 0`, then `xᵀ K x > 0` for every nonzero `x ∈ ℝ³`. -/ theorem sylvester_3x3_real_pos_def (K : Matrix (Fin 3) (Fin 3) ℝ) (hsymm : ∀ i j : Fin 3, K j i = K i j) (hD1 : 0 < sylvesterDet1 K) (hD2 : 0 < sylvesterDet2 K) (hD3 : 0 < sylvesterDet3 K) {x : Fin 3 → ℝ} (hx : ∃ i : Fin 3, x i ≠ 0) : 0 < quadForm K x := by rw [quadForm_3x3_eq_sylvester_squares K hsymm (ne_of_gt hD1) (ne_of_gt hD2) x] have ht1 : 0 ≤ sylvesterDet1 K * (x 0 + (K 0 1 / sylvesterDet1 K) * x 1 + (K 0 2 / sylvesterDet1 K) * x 2) ^ 2 := mul_nonneg (le_of_lt hD1) (sq_nonneg _) have ht2 : 0 ≤ (sylvesterDet2 K / sylvesterDet1 K) * (x 1 + ((K 0 0 * K 1 2 - K 0 1 * K 0 2) / sylvesterDet2 K) * x 2) ^ 2 := mul_nonneg (div_nonneg (le_of_lt hD2) (le_of_lt hD1)) (sq_nonneg _) have ht3 : 0 ≤ (sylvesterDet3 K / sylvesterDet2 K) * x 2 ^ 2 := mul_nonneg (div_nonneg (le_of_lt hD3) (le_of_lt hD2)) (sq_nonneg _) by_cases h2 : x 2 ≠ 0 · have hp3 : 0 < (sylvesterDet3 K / sylvesterDet2 K) * x 2 ^ 2 := mul_pos (div_pos hD3 hD2) (sq_pos_of_ne_zero h2) linarith · push Not at h2 by_cases h1 : x 1 ≠ 0 · have hp2 : 0 < (sylvesterDet2 K / sylvesterDet1 K) * (x 1 + ((K 0 0 * K 1 2 - K 0 1 * K 0 2) / sylvesterDet2 K) * x 2) ^ 2 := by rw [h2, mul_zero, add_zero] exact mul_pos (div_pos hD2 hD1) (sq_pos_of_ne_zero h1) linarith · push Not at h1 have h0 : x 0 ≠ 0 := by obtain ⟨i, hi⟩ := hx fin_cases i · exact hi · exact False.elim (hi h1) · exact False.elim (hi h2) have hp1 : 0 < sylvesterDet1 K * (x 0 + (K 0 1 / sylvesterDet1 K) * x 1 + (K 0 2 / sylvesterDet1 K) * x 2) ^ 2 := by rw [h1, h2, mul_zero, mul_zero, add_zero, add_zero] exact mul_pos hD1 (sq_pos_of_ne_zero h0) linarith /-- Hermitian form of a real symmetric `3 × 3` matrix splits into real and imaginary parts: `Re(c* K c) = (Re c)ᵀ K (Re c) + (Im c)ᵀ K (Im c)`. -/ lemma hermitian_quadForm_eq_re_add_im (K : Matrix (Fin 3) (Fin 3) ℝ) (hsymm : ∀ i j : Fin 3, K j i = K i j) (c : Fin 3 → ℂ) : (∑ i : Fin 3, ∑ j : Fin 3, starRingEnd ℂ (c i) * (K i j : ℂ) * c j).re = quadForm K (fun i => (c i).re) + quadForm K (fun i => (c i).im) := by rw [Complex.re_sum] simp_rw [Complex.re_sum] unfold quadForm simp only [Fin.sum_univ_three, Complex.mul_re, Complex.mul_im, Complex.conj_re, Complex.conj_im, Complex.ofReal_re, Complex.ofReal_im] rw [hsymm 0 1, hsymm 0 2, hsymm 1 2] ring /-- **Complex Hermitian Sylvester Criterion (`3 × 3`)**: If real symmetric `K` has `D₁ > 0, D₂ > 0, D₃ > 0`, then `Re(c* K c) > 0` for every nonzero `c ∈ ℂ³`. -/ theorem sylvester_3x3_hermitian_pos_def (K : Matrix (Fin 3) (Fin 3) ℝ) (hsymm : ∀ i j : Fin 3, K j i = K i j) (hD1 : 0 < sylvesterDet1 K) (hD2 : 0 < sylvesterDet2 K) (hD3 : 0 < sylvesterDet3 K) {c : Fin 3 → ℂ} (hc : ∃ i : Fin 3, c i ≠ 0) : 0 < (∑ i : Fin 3, ∑ j : Fin 3, starRingEnd ℂ (c i) * (K i j : ℂ) * c j).re := by rw [hermitian_quadForm_eq_re_add_im K hsymm c] have hnn_re : 0 ≤ quadForm K (fun i => (c i).re) := by by_cases h : ∃ i : Fin 3, (c i).re ≠ 0 · exact le_of_lt (sylvester_3x3_real_pos_def K hsymm hD1 hD2 hD3 h) · push Not at h simp [quadForm, h] have hnn_im : 0 ≤ quadForm K (fun i => (c i).im) := by by_cases h : ∃ i : Fin 3, (c i).im ≠ 0 · exact le_of_lt (sylvester_3x3_real_pos_def K hsymm hD1 hD2 hD3 h) · push Not at h simp [quadForm, h] obtain ⟨i, hi⟩ := hc have hne : (c i).re ≠ 0 ∨ (c i).im ≠ 0 := by by_contra hall; push Not at hall exact hi (Complex.ext hall.1 hall.2) rcases hne with hre | him · linarith [sylvester_3x3_real_pos_def K hsymm hD1 hD2 hD3 (x := fun j => (c j).re) ⟨i, hre⟩] · linarith [sylvester_3x3_real_pos_def K hsymm hD1 hD2 hD3 (x := fun j => (c j).im) ⟨i, him⟩] /-- 10-decimal-place rational centers of the certified 3D Gaussian zero-form matrix at `σ = 1/4`, `(t₁, t₂, t₃) = (0, 14, 21)`, `T = 100` from `certification-gaussian.json`. -/ noncomputable def gaussian3x3Center : Matrix (Fin 3) (Fin 3) ℝ := !![7416737 / 62500000, 305342996483 / 10000000000, 70781252597 / 10000000000; 305342996483 / 10000000000, 192976097070089 / 10000000000, 221550679980739 / 10000000000; 70781252597 / 10000000000, 221550679980739 / 10000000000, 169052554502899 / 1250000000] /-- **Kernel-checked interval-perturbation certification of the 3D Gaussian zero-form matrix**: For ANY real symmetric `3 × 3` matrix `K` within entrywise distance `10⁻⁸` of `gaussian3x3Center` (covering both the 192-bit FLINT finite-zero radius `< 10⁻¹⁴` and the unconditional tail shield `B(100) ≤ 1.48 × 10⁻¹⁵⁹`), all three leading principal minors are strictly positive (`D₁ > 0.118`, `D₂ > 1357`, `D₃ > 133974800`) and `Re(c* K c) > 0` for every nonzero `c ∈ ℂ³`. -/ theorem certified_gaussian_3x3_positive_definite (K : Matrix (Fin 3) (Fin 3) ℝ) (hsymm : ∀ i j : Fin 3, K j i = K i j) (hclose : ∀ i j : Fin 3, |K i j - gaussian3x3Center i j| ≤ 1 / 10 ^ 8) : 118 / 1000 < sylvesterDet1 K ∧ 1357 < sylvesterDet2 K ∧ 133974800 < sylvesterDet3 K ∧ ∀ c : Fin 3 → ℂ, (∃ i : Fin 3, c i ≠ 0) → 0 < (∑ i : Fin 3, ∑ j : Fin 3, starRingEnd ℂ (c i) * (K i j : ℂ) * c j).re := by set a := K 0 0; set b := K 0 1; set c := K 0 2 set d := K 1 1; set e := K 1 2; set f := K 2 2 have ha := abs_le.mp (hclose 0 0) have hb := abs_le.mp (hclose 0 1) have hc := abs_le.mp (hclose 0 2) have hd := abs_le.mp (hclose 1 1) have he := abs_le.mp (hclose 1 2) have hf := abs_le.mp (hclose 2 2) simp [gaussian3x3Center] at ha hb hc hd he hf -- Extract explicit lower/upper rational bounds on each entry. have ha_lo : 7416737 / 62500000 - 1 / 10 ^ 8 ≤ a := by linarith [ha.1] have ha_hi : a ≤ 7416737 / 62500000 + 1 / 10 ^ 8 := by linarith [ha.2] have hb_lo : 305342996483 / 10000000000 - 1 / 10 ^ 8 ≤ b := by linarith [hb.1] have hb_hi : b ≤ 305342996483 / 10000000000 + 1 / 10 ^ 8 := by linarith [hb.2] have hc_lo : 70781252597 / 10000000000 - 1 / 10 ^ 8 ≤ c := by linarith [hc.1] have hc_hi : c ≤ 70781252597 / 10000000000 + 1 / 10 ^ 8 := by linarith [hc.2] have hd_lo : 192976097070089 / 10000000000 - 1 / 10 ^ 8 ≤ d := by linarith [hd.1] have hd_hi : d ≤ 192976097070089 / 10000000000 + 1 / 10 ^ 8 := by linarith [hd.2] have he_lo : 221550679980739 / 10000000000 - 1 / 10 ^ 8 ≤ e := by linarith [he.1] have he_hi : e ≤ 221550679980739 / 10000000000 + 1 / 10 ^ 8 := by linarith [he.2] have hf_lo : 169052554502899 / 1250000000 - 1 / 10 ^ 8 ≤ f := by linarith [hf.1] have hf_hi : f ≤ 169052554502899 / 1250000000 + 1 / 10 ^ 8 := by linarith [hf.2] -- Positivity of all six entries. have ha_pos : 0 ≤ a := by linarith have hb_pos : 0 ≤ b := by linarith have hc_pos : 0 ≤ c := by linarith have hd_pos : 0 ≤ d := by linarith have he_pos : 0 ≤ e := by linarith have hf_pos : 0 ≤ f := by linarith -- Lower bound `D₁`. have hD1 : (118 / 1000 : ℝ) < sylvesterDet1 K := by unfold sylvesterDet1; linarith -- Lower bound `D₂ = a d - b²`. have hD2 : (1357 : ℝ) < sylvesterDet2 K := by unfold sylvesterDet2 have had : (7416737 / 62500000 - 1 / 10 ^ 8 : ℝ) * (192976097070089 / 10000000000 - 1 / 10 ^ 8) ≤ a * d := mul_le_mul ha_lo hd_lo (by norm_num) ha_pos have hb2 : b ^ 2 ≤ (305342996483 / 10000000000 + 1 / 10 ^ 8 : ℝ) ^ 2 := by rw [sq, sq]; exact mul_le_mul hb_hi hb_hi hb_pos (by norm_num) have hnum : (1357 : ℝ) < (7416737 / 62500000 - 1 / 10 ^ 8) * (192976097070089 / 10000000000 - 1 / 10 ^ 8) - (305342996483 / 10000000000 + 1 / 10 ^ 8) ^ 2 := by norm_num linarith -- Lower bound `D₃ = a d f + 2 b c e - a e² - d c² - f b²`. have hD3 : (133974800 : ℝ) < sylvesterDet3 K := by unfold sylvesterDet3 have hadf : (7416737 / 62500000 - 1 / 10 ^ 8 : ℝ) * (192976097070089 / 10000000000 - 1 / 10 ^ 8) * (169052554502899 / 1250000000 - 1 / 10 ^ 8) ≤ a * d * f := by have h1 := mul_le_mul ha_lo hd_lo (by norm_num) ha_pos exact mul_le_mul h1 hf_lo (by norm_num) (mul_nonneg ha_pos hd_pos) have hbce : (305342996483 / 10000000000 - 1 / 10 ^ 8 : ℝ) * (70781252597 / 10000000000 - 1 / 10 ^ 8) * (221550679980739 / 10000000000 - 1 / 10 ^ 8) ≤ b * c * e := by have h1 := mul_le_mul hb_lo hc_lo (by norm_num) hb_pos exact mul_le_mul h1 he_lo (by norm_num) (mul_nonneg hb_pos hc_pos) have hae2 : a * e ^ 2 ≤ (7416737 / 62500000 + 1 / 10 ^ 8 : ℝ) * (221550679980739 / 10000000000 + 1 / 10 ^ 8) ^ 2 := by have he2 : e ^ 2 ≤ (221550679980739 / 10000000000 + 1 / 10 ^ 8 : ℝ) ^ 2 := by rw [sq, sq]; exact mul_le_mul he_hi he_hi he_pos (by norm_num) exact mul_le_mul ha_hi he2 (sq_nonneg e) (by norm_num) have hdc2 : d * c ^ 2 ≤ (192976097070089 / 10000000000 + 1 / 10 ^ 8 : ℝ) * (70781252597 / 10000000000 + 1 / 10 ^ 8) ^ 2 := by have hc2 : c ^ 2 ≤ (70781252597 / 10000000000 + 1 / 10 ^ 8 : ℝ) ^ 2 := by rw [sq, sq]; exact mul_le_mul hc_hi hc_hi hc_pos (by norm_num) exact mul_le_mul hd_hi hc2 (sq_nonneg c) (by norm_num) have hfb2 : f * b ^ 2 ≤ (169052554502899 / 1250000000 + 1 / 10 ^ 8 : ℝ) * (305342996483 / 10000000000 + 1 / 10 ^ 8) ^ 2 := by have hb2 : b ^ 2 ≤ (305342996483 / 10000000000 + 1 / 10 ^ 8 : ℝ) ^ 2 := by rw [sq, sq]; exact mul_le_mul hb_hi hb_hi hb_pos (by norm_num) exact mul_le_mul hf_hi hb2 (sq_nonneg b) (by norm_num) have hnum : (133974800 : ℝ) < (7416737 / 62500000 - 1 / 10 ^ 8) * (192976097070089 / 10000000000 - 1 / 10 ^ 8) * (169052554502899 / 1250000000 - 1 / 10 ^ 8) + 2 * ((305342996483 / 10000000000 - 1 / 10 ^ 8) * (70781252597 / 10000000000 - 1 / 10 ^ 8) * (221550679980739 / 10000000000 - 1 / 10 ^ 8)) - (7416737 / 62500000 + 1 / 10 ^ 8) * (221550679980739 / 10000000000 + 1 / 10 ^ 8) ^ 2 - (192976097070089 / 10000000000 + 1 / 10 ^ 8) * (70781252597 / 10000000000 + 1 / 10 ^ 8) ^ 2 - (169052554502899 / 1250000000 + 1 / 10 ^ 8) * (305342996483 / 10000000000 + 1 / 10 ^ 8) ^ 2 := by norm_num linarith refine ⟨hD1, hD2, hD3, fun v hv => ?_⟩ exact sylvester_3x3_hermitian_pos_def K hsymm (by linarith) (by linarith) (by linarith) hv /-- **Complete 3D Gaussian Zero-Form Positivity from Finite-Region Enclosure + Tail Shield**: Combines any finite-height (`|Im ρ| < 100`) matrix `K_fin` within `10⁻⁹` of `gaussian3x3Center` with any unconditional tail perturbation `K_tail` bounded by `tailBoundB (1/4) 21 100` (`≤ 1.48 × 10⁻¹⁵⁹`), proving strict positive definiteness of `K_fin + K_tail` on `ℂ³ \ {0}`. -/ theorem certified_gaussian_3x3_from_finite_and_tail (K_fin K_tail : Matrix (Fin 3) (Fin 3) ℝ) (hsymm_fin : ∀ i j : Fin 3, K_fin j i = K_fin i j) (hsymm_tail : ∀ i j : Fin 3, K_tail j i = K_tail i j) (hfin : ∀ i j : Fin 3, |K_fin i j - gaussian3x3Center i j| ≤ 1 / 10 ^ 9) (htail : ∀ i j : Fin 3, |K_tail i j| ≤ tailBoundB (1 / 4) 21 100) : ∀ c : Fin 3 → ℂ, (∃ i : Fin 3, c i ≠ 0) → 0 < (∑ i : Fin 3, ∑ j : Fin 3, starRingEnd ℂ (c i) * (((K_fin + K_tail) i j : ℝ) : ℂ) * c j).re := by have hsymm : ∀ i j : Fin 3, (K_fin + K_tail) j i = (K_fin + K_tail) i j := fun i j => by simp only [Matrix.add_apply, hsymm_fin i j, hsymm_tail i j] have hB : tailBoundB (1 / 4) 21 100 ≤ 148 / 10 ^ 161 := tailBoundB_100_le.2.2 have hclose : ∀ i j : Fin 3, |(K_fin + K_tail) i j - gaussian3x3Center i j| ≤ 1 / 10 ^ 8 := by intro i j have htri : |(K_fin i j + K_tail i j) - gaussian3x3Center i j| ≤ |K_fin i j - gaussian3x3Center i j| + |K_tail i j| := by have heq : (K_fin i j + K_tail i j) - gaussian3x3Center i j = (K_fin i j - gaussian3x3Center i j) + K_tail i j := by ring rw [heq]; exact abs_add_le _ _ have h1 := hfin i j have h2 := le_trans (htail i j) hB have hsum : (1 / 10 ^ 9 : ℝ) + 148 / 10 ^ 161 ≤ 1 / 10 ^ 8 := by norm_num simp only [Matrix.add_apply] linarith exact (certified_gaussian_3x3_positive_definite (K_fin + K_tail) hsymm hclose).2.2.2 end F04Riemann