import Mathlib.Analysis.SpecialFunctions.Complex.Arg import Mathlib.Analysis.SpecificLimits.Normed import Mathlib.Topology.Algebra.InfiniteSum.NatInt import F04Riemann.GaussianZeroForm import F04Riemann.CodimensionAndCutoff /-! # Classical Weil Equivalence (`RH ↔ Q ≥ 0`) on Critical-Strip Zero Spectra This module formalizes Weil's positivity criterion in both directions without any unproved postulates: 1. **Mellin Transform and Balance Conditions**: - `mellinTransform φ s = ∫ u : ℝ, φ u * exp ((s - 1/2) * u)` for `φ : TestFn`. - `mellinTransform_zero_eq_momentNeg` and `mellinTransform_one_eq_momentPos` identify `mellinTransform φ 0` with `momentNeg φ` and `mellinTransform φ 1` with `momentPos φ`, proving `IsBalanced φ ↔ mellinTransform φ 0 = 0 ∧ mellinTransform φ 1 = 0`. 2. **Spectral Zero-Form Summand and Multiplicity-Weighted `ZeroSpectrum`**: - `weilSpectralTerm G ρ = G ρ * conj (G (1 - conj ρ))`. - On the critical line `Re ρ = 1/2`, `1 - conj ρ = ρ` and `weilSpectralTerm G ρ = ‖G ρ‖² ≥ 0`. - `ZeroSpectrum` packages unit-height critical-strip zero shells `shells : ℕ → Finset ℂ` together with positive reflection-invariant integer multiplicities `mult : ℂ → ℕ` (NO simplicity assumption on zeros!), `0 < Re ρ < 1`, `k ≤ |Im ρ| < k + 1`, reflection invariance `ρ ↦ 1 - conj ρ`, and a polynomial weighted shell count bound (including `ZeroSpectrum.of_HSW` from Hasanalizade–Shen–Wong's `O(T log T)` bound). 3. **Direction 1 (`RH ⟹ Weil Positivity`)**: - `spectral_form_nonneg_of_RH`: if `RH_holds S`, every multiplicity-weighted spectral sum `∑' k, ∑ ρ ∈ S k, (mult ρ : ℝ) * Re (weilSpectralTerm G ρ)` is nonnegative. - `weil_positivity_of_RH_TestFn`: for any `φ : TestFn` whose Weil form `Q_form φ` equals its multiplicity-weighted spectral sum, `RH_holds S → 0 ≤ Q_form φ`. 4. **Direction 2 (`Weil Positivity ⟹ RH`, Contrapositive Witness)**: - Using the globally balanced Schwartz-class (order-2 entire transform vanishing at `s = 0, 1`) two-shift phase-rotated Gaussian wave packet `shiftedGaussianTransform σ t τ θ s = (exp(τ (s - 1/2 - i t)) + exp(i θ) exp(-τ (s - 1/2 - i t))) * gaussianTransform σ t s`, we prove unconditional summability of the multiplicity-weighted spectral sum for every `Z : ZeroSpectrum` and `σ > 0`, and construct an explicit witness `(σ, t, τ, θ)` with strictly negative spectral sum whenever `¬ RH_holds Z.shells`. - `weil_equivalence_gaussian_spectrum` and `weil_equivalence_with_explicit_formula` combine both directions into the exact bidirectional equivalence on the shifted Gaussian wave-packet family (note: these wave packets are Schwartz-class transforms rather than compactly supported `TestFn` elements). -/ namespace F04Riemann open Real Complex MeasureTheory Set Finset /-! ### 1. Mellin Transform of `TestFn` and Global Balance -/ /-- Bilateral Mellin / Laplace transform of `φ : TestFn`, centered on the critical line: `M[φ](s) = ∫_ℝ φ(u) exp((s - 1/2) u) du`. -/ noncomputable def mellinTransform (φ : TestFn) (s : ℂ) : ℂ := ∫ u : ℝ, φ u * Complex.exp ((s - (1 / 2 : ℂ)) * (u : ℂ)) lemma mellinTransform_integrable (φ : TestFn) (s : ℂ) : Integrable (fun u : ℝ => φ u * Complex.exp ((s - (1 / 2 : ℂ)) * (u : ℂ))) volume := by obtain ⟨a, b, _, hsupp⟩ := exists_Icc_support_of_hasCompactSupport φ.compactSupport exact integrable_of_continuous_of_vanishes_outside_Icc a b (φ.continuous.mul (Complex.continuous_exp.comp (continuous_const.mul Complex.continuous_ofReal))) (fun u hu => by simp [hsupp u hu]) lemma mellinTransform_add (f g : TestFn) (s : ℂ) : mellinTransform (f + g) s = mellinTransform f s + mellinTransform g s := by unfold mellinTransform have hfun : (fun u : ℝ => (f + g) u * Complex.exp ((s - (1 / 2 : ℂ)) * (u : ℂ))) = fun u : ℝ => f u * Complex.exp ((s - (1 / 2 : ℂ)) * (u : ℂ)) + g u * Complex.exp ((s - (1 / 2 : ℂ)) * (u : ℂ)) := by ext u; simp [add_mul] rw [hfun, MeasureTheory.integral_add (mellinTransform_integrable f s) (mellinTransform_integrable g s)] lemma mellinTransform_smul (c : ℂ) (φ : TestFn) (s : ℂ) : mellinTransform (c • φ) s = c * mellinTransform φ s := by unfold mellinTransform have hfun : (fun u : ℝ => (c • φ) u * Complex.exp ((s - (1 / 2 : ℂ)) * (u : ℂ))) = fun u : ℝ => c * (φ u * Complex.exp ((s - (1 / 2 : ℂ)) * (u : ℂ))) := by ext u; simp [mul_assoc] rw [hfun, MeasureTheory.integral_const_mul] /-- At `s = 0`, the Mellin transform equals the negative-exponent moment `momentNeg φ`. -/ theorem mellinTransform_zero_eq_momentNeg (φ : TestFn) : mellinTransform φ 0 = momentNeg φ := by unfold mellinTransform momentNeg congr 1; ext u have harg : ((0 : ℂ) - (1 / 2 : ℂ)) * (u : ℂ) = ((-(u / 2) : ℝ) : ℂ) := by push_cast; ring rw [harg, Complex.ofReal_exp] /-- At `s = 1`, the Mellin transform equals the positive-exponent moment `momentPos φ`. -/ theorem mellinTransform_one_eq_momentPos (φ : TestFn) : mellinTransform φ 1 = momentPos φ := by unfold mellinTransform momentPos congr 1; ext u have harg : ((1 : ℂ) - (1 / 2 : ℂ)) * (u : ℂ) = ((u / 2 : ℝ) : ℂ) := by push_cast; ring rw [harg, Complex.ofReal_exp] /-- Global balance (`IsBalanced φ`) is equivalent to vanishing of the Mellin transform at the two zeta poles `s = 0` and `s = 1`. -/ theorem mellinTransform_isBalanced_iff (φ : TestFn) : IsBalanced φ ↔ mellinTransform φ 0 = 0 ∧ mellinTransform φ 1 = 0 := by unfold IsBalanced rw [mellinTransform_zero_eq_momentNeg, mellinTransform_one_eq_momentPos] /-! ### 2. Critical-Line Reflection, Spectral Summand, and `ZeroSpectrum` -/ /-- Reflection across the critical line `Re s = 1/2`: `ρ ↦ 1 - conj ρ`. -/ noncomputable def critReflect (ρ : ℂ) : ℂ := 1 - starRingEnd ℂ ρ @[simp] lemma critReflect_re (ρ : ℂ) : (critReflect ρ).re = 1 - ρ.re := by simp [critReflect] @[simp] lemma critReflect_im (ρ : ℂ) : (critReflect ρ).im = ρ.im := by simp [critReflect] @[simp] lemma critReflect_involutive (ρ : ℂ) : critReflect (critReflect ρ) = ρ := by apply Complex.ext <;> simp [critReflect] lemma critReflect_eq_self_iff (ρ : ℂ) : critReflect ρ = ρ ↔ ρ.re = 1 / 2 := by constructor · intro h have hre := congrArg Complex.re h simp only [critReflect_re] at hre linarith · intro hre apply Complex.ext · simp only [critReflect_re]; linarith · simp only [critReflect_im] /-- Spectral zero-form summand `G(ρ) conj(G(1 - conj ρ))` for any `G : ℂ → ℂ`. -/ noncomputable def weilSpectralTerm (G : ℂ → ℂ) (ρ : ℂ) : ℂ := G ρ * starRingEnd ℂ (G (1 - starRingEnd ℂ ρ)) /-- Reflection conjugates `weilSpectralTerm G` for every function `G : ℂ → ℂ`. -/ theorem weilSpectralTerm_reflect (G : ℂ → ℂ) (ρ : ℂ) : weilSpectralTerm G (1 - starRingEnd ℂ ρ) = starRingEnd ℂ (weilSpectralTerm G ρ) := by unfold weilSpectralTerm have hinv : (1 : ℂ) - starRingEnd ℂ (1 - starRingEnd ℂ ρ) = ρ := critReflect_involutive ρ rw [hinv, map_mul, RingHomCompTriple.comp_apply, RingHom.id_apply, mul_comm] /-- Reflected zeros contribute identically to the real part of the spectral form. -/ theorem re_weilSpectralTerm_reflect (G : ℂ → ℂ) (ρ : ℂ) : (weilSpectralTerm G (1 - starRingEnd ℂ ρ)).re = (weilSpectralTerm G ρ).re := by rw [weilSpectralTerm_reflect, Complex.conj_re] /-- On the critical line `Re ρ = 1/2`, `1 - conj ρ = ρ` and `weilSpectralTerm G ρ = ‖G ρ‖²` is purely real and nonnegative. -/ theorem weilSpectralTerm_on_criticalLine (G : ℂ → ℂ) {ρ : ℂ} (hρ : ρ.re = 1 / 2) : weilSpectralTerm G ρ = ((‖G ρ‖ ^ 2 : ℝ) : ℂ) := by unfold weilSpectralTerm have href : (1 : ℂ) - starRingEnd ℂ ρ = ρ := (critReflect_eq_self_iff ρ).mpr hρ rw [href, Complex.mul_conj, Complex.normSq_eq_norm_sq, Complex.ofReal_pow] theorem re_weilSpectralTerm_on_criticalLine (G : ℂ → ℂ) {ρ : ℂ} (hρ : ρ.re = 1 / 2) : (weilSpectralTerm G ρ).re = ‖G ρ‖ ^ 2 := by rw [weilSpectralTerm_on_criticalLine G hρ, Complex.ofReal_re] /-- Critical-strip zero spectrum partitioned into unit-height shells `shells k` covering `k ≤ |Im ρ| < k + 1`, with positive reflection-invariant integer multiplicities `mult : ℂ → ℕ` (no simplicity assumption!) and a polynomial weighted shell count bound. -/ structure ZeroSpectrum where shells : ℕ → Finset ℂ mult : ℂ → ℕ mult_pos : ∀ k, ∀ ρ ∈ shells k, 1 ≤ mult ρ mult_reflect : ∀ k, ∀ ρ ∈ shells k, mult (1 - starRingEnd ℂ ρ) = mult ρ strip : ∀ k, ∀ ρ ∈ shells k, 0 < ρ.re ∧ ρ.re < 1 height : ∀ k, ∀ ρ ∈ shells k, (k : ℝ) ≤ |ρ.im| ∧ |ρ.im| < (k : ℝ) + 1 reflect_mem : ∀ k, ∀ ρ, ρ ∈ shells k → 1 - starRingEnd ℂ ρ ∈ shells k countConst : ℝ countConst_nonneg : 0 ≤ countConst card_bound : ∀ k : ℕ, (∑ ρ ∈ shells k, (mult ρ : ℝ)) ≤ countConst * ((k : ℝ) + 1) ^ 2 /-- Any multiplicity-weighted unit-height shell family obeying the Hasanalizade–Shen–Wong count bound `∑ ρ ∈ S k, mult ρ ≤ 2 (k + 11) log(k + 11)` forms a `ZeroSpectrum` with `countConst = 242`. -/ noncomputable def ZeroSpectrum.of_HSW (S : ℕ → Finset ℂ) (mult : ℂ → ℕ) (hmult_pos : ∀ k, ∀ ρ ∈ S k, 1 ≤ mult ρ) (hmult_reflect : ∀ k, ∀ ρ ∈ S k, mult (1 - starRingEnd ℂ ρ) = mult ρ) (hstrip : ∀ k, ∀ ρ ∈ S k, 0 < ρ.re ∧ ρ.re < 1) (hheight : ∀ k, ∀ ρ ∈ S k, (k : ℝ) ≤ |ρ.im| ∧ |ρ.im| < (k : ℝ) + 1) (hreflect : ∀ k, ∀ ρ, ρ ∈ S k → 1 - starRingEnd ℂ ρ ∈ S k) (hHSW : ∀ k : ℕ, (∑ ρ ∈ S k, (mult ρ : ℝ)) ≤ 2 * ((k : ℝ) + 11) * Real.log ((k : ℝ) + 11)) : ZeroSpectrum where shells := S mult := mult mult_pos := hmult_pos mult_reflect := hmult_reflect strip := hstrip height := hheight reflect_mem := hreflect countConst := 242 countConst_nonneg := by norm_num card_bound k := by have hk : (0 : ℝ) ≤ (k : ℝ) := Nat.cast_nonneg k have hlog : Real.log ((k : ℝ) + 11) ≤ (k : ℝ) + 11 := by have h1 := Real.log_le_sub_one_of_pos (show (0 : ℝ) < (k : ℝ) + 11 by linarith) linarith have h1 : 2 * ((k : ℝ) + 11) * Real.log ((k : ℝ) + 11) ≤ 2 * ((k : ℝ) + 11) ^ 2 := by have hnn : 0 ≤ 2 * ((k : ℝ) + 11) := by linarith nlinarith have h2 : 2 * ((k : ℝ) + 11) ^ 2 ≤ 242 * ((k : ℝ) + 1) ^ 2 := by nlinarith exact le_trans (hHSW k) (le_trans h1 h2) /-- Distinct unit-height shells in a `ZeroSpectrum` are pairwise disjoint. -/ lemma ZeroSpectrum.shells_pairwiseDisjoint (Z : ZeroSpectrum) : Set.PairwiseDisjoint (Set.univ : Set ℕ) Z.shells := by intro k₁ _ k₂ _ hne change Disjoint (Z.shells k₁) (Z.shells k₂) rw [Finset.disjoint_left] intro ρ h₁ h₂ obtain ⟨h1l, h1u⟩ := Z.height k₁ ρ h₁ obtain ⟨h2l, h2u⟩ := Z.height k₂ ρ h₂ have hle1 : k₁ ≤ k₂ := by by_contra hgt have hnat : k₂ + 1 ≤ k₁ := by omega have hcast : (k₂ : ℝ) + 1 ≤ (k₁ : ℝ) := by exact_mod_cast hnat linarith have hle2 : k₂ ≤ k₁ := by by_contra hgt have hnat : k₁ + 1 ≤ k₂ := by omega have hcast : (k₁ : ℝ) + 1 ≤ (k₂ : ℝ) := by exact_mod_cast hnat linarith exact hne (le_antisymm hle1 hle2) /-- The Riemann Hypothesis predicate for a shell-indexed critical-strip zero set: every zero lies on the critical line `Re ρ = 1/2`. -/ def RH_holds (S : ℕ → Finset ℂ) : Prop := ∀ k, ∀ ρ ∈ S k, ρ.re = 1 / 2 /-! ### 3. Direction 1 — `RH ⟹ Weil Positivity` -/ /-- **Direction 1 (General Multiplicity-Weighted Spectral Form)**: if every zero in `S` lies on the critical line, the real multiplicity-weighted spectral sum `∑' k, ∑ ρ ∈ S k, (mult ρ : ℝ) * Re (weilSpectralTerm G ρ)` is nonnegative for every `G : ℂ → ℂ`. -/ theorem spectral_form_nonneg_of_RH (S : ℕ → Finset ℂ) (mult : ℂ → ℕ) (G : ℂ → ℂ) (hRH : RH_holds S) : 0 ≤ ∑' k : ℕ, ∑ ρ ∈ S k, (mult ρ : ℝ) * (weilSpectralTerm G ρ).re := by refine tsum_nonneg (fun k => Finset.sum_nonneg (fun ρ hρ => ?_)) rw [re_weilSpectralTerm_on_criticalLine G (hRH k ρ hρ)] exact mul_nonneg (Nat.cast_nonneg _) (sq_nonneg _) /-- **Direction 1 (`TestFn` Weil Form)**: for any `φ : TestFn` whose Weil quadratic form `Q_form φ` equals the multiplicity-weighted spectral sum over `(S, mult)` (Weil explicit formula), `RH_holds S` implies `0 ≤ Q_form φ`. -/ theorem weil_positivity_of_RH_TestFn (S : ℕ → Finset ℂ) (mult : ℂ → ℕ) (φ : TestFn) (hRH : RH_holds S) (hexplicit : Q_form φ = ∑' k : ℕ, ∑ ρ ∈ S k, (mult ρ : ℝ) * (weilSpectralTerm (mellinTransform φ) ρ).re) : 0 ≤ Q_form φ := by rw [hexplicit] exact spectral_form_nonneg_of_RH S mult (mellinTransform φ) hRH /-- **Direction 1 (All Balanced Test Functions)**: if `Q_form` obeys the Weil explicit formula on all balanced `φ : TestFn`, then `RH_holds S` implies `Q_form φ ≥ 0` on the entire balanced space. -/ theorem weil_positivity_of_RH_balanced (S : ℕ → Finset ℂ) (mult : ℂ → ℕ) (hRH : RH_holds S) (hexplicit : ∀ φ : TestFn, IsBalanced φ → Q_form φ = ∑' k : ℕ, ∑ ρ ∈ S k, (mult ρ : ℝ) * (weilSpectralTerm (mellinTransform φ) ρ).re) : ∀ φ : TestFn, IsBalanced φ → 0 ≤ Q_form φ := fun φ hbal => weil_positivity_of_RH_TestFn S mult φ hRH (hexplicit φ hbal) /-! ### 4. Two-Shift Phase-Rotated Gaussian Wave Packets and Exact Algebra -/ /-- Two-shift phase-rotated factor `Φ(τ, θ, t; s) = exp(τ (s - 1/2 - i t)) + exp(i θ) exp(-τ (s - 1/2 - i t))`. -/ noncomputable def shiftFactor (τ θ t : ℝ) (s : ℂ) : ℂ := Complex.exp ((τ : ℂ) * (s - (1 / 2 : ℂ) - (t : ℂ) * Complex.I)) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp (-(τ : ℂ) * (s - (1 / 2 : ℂ) - (t : ℂ) * Complex.I)) /-- Shifted phase-rotated Gaussian wave packet `G_{σ, t, τ, θ}(s) = shiftFactor τ θ t s * gaussianTransform σ t s`. -/ noncomputable def shiftedGaussianTransform (σ t τ θ : ℝ) (s : ℂ) : ℂ := shiftFactor τ θ t s * gaussianTransform σ t s /-- Every shifted Gaussian wave packet is globally balanced: it vanishes at `s = 0` and `s = 1`. -/ theorem shiftedGaussianTransform_zero_one (σ t τ θ : ℝ) : shiftedGaussianTransform σ t τ θ 0 = 0 ∧ shiftedGaussianTransform σ t τ θ 1 = 0 := by constructor <;> simp [shiftedGaussianTransform, gaussianTransform] /-- The real quadratic exponent `Re((ρ - 1/2 - i t)²) = (Re ρ - 1/2)² - (Im ρ - t)²`. -/ noncomputable def quadExponent (t : ℝ) (ρ : ℂ) : ℝ := (ρ.re - 1 / 2) ^ 2 - (ρ.im - t) ^ 2 /-- The cross phase `(Re ρ - 1/2) * (Im ρ - t) = Im((ρ - 1/2 - i t)²) / 2`. -/ noncomputable def crossPhase (t : ℝ) (ρ : ℂ) : ℝ := (ρ.re - 1 / 2) * (ρ.im - t) /-- Combined shift product `shiftFactor τ θ t ρ * conj (shiftFactor τ θ t (1 - conj ρ)) = 2 + exp(-i θ) exp(2 τ (ρ - 1/2 - i t)) + exp(i θ) exp(-2 τ (ρ - 1/2 - i t))`. -/ noncomputable def shiftProd (τ θ t : ℝ) (ρ : ℂ) : ℂ := (2 : ℂ) + Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp (((2 * τ : ℝ) : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I)) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I)) /-- Normalized complex amplitude of `(gaussianTransform σ t ρ)²` after factoring out `2 π σ² exp(σ² quadExponent t ρ)`. Its norm `‖ρ (ρ - 1)‖²` is independent of `σ`. -/ noncomputable def unitAmp (σ t : ℝ) (ρ : ℂ) : ℂ := (ρ * (ρ - 1)) ^ 2 * Complex.exp (((2 * σ ^ 2 * crossPhase t ρ : ℝ) : ℂ) * Complex.I) /-- Normalized real spectral term after dividing out the positive constant `2 π σ² exp(σ² E_max)`. -/ noncomputable def normTerm (σ t τ θ E_max : ℝ) (ρ : ℂ) : ℝ := Real.exp (σ ^ 2 * (quadExponent t ρ - E_max)) * (shiftProd τ θ t ρ * unitAmp σ t ρ).re lemma quadExponent_reflect (t : ℝ) (ρ : ℂ) : quadExponent t (1 - starRingEnd ℂ ρ) = quadExponent t ρ := by unfold quadExponent simp only [Complex.sub_re, Complex.one_re, Complex.conj_re, Complex.sub_im, Complex.one_im, Complex.conj_im, zero_sub, neg_neg] ring lemma norm_unitAmp (σ t : ℝ) (ρ : ℂ) : ‖unitAmp σ t ρ‖ = ‖ρ * (ρ - 1)‖ ^ 2 := by unfold unitAmp rw [norm_mul, norm_pow, Complex.norm_exp] have hre : (((2 * σ ^ 2 * crossPhase t ρ : ℝ) : ℂ) * Complex.I).re = 0 := by simp only [Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, zero_mul, sub_zero] rw [hre, Real.exp_zero, mul_one] lemma norm_mul_sub_one_pos_of_strip {ρ : ℂ} (h0 : 0 < ρ.re) (h1 : ρ.re < 1) : 0 < ‖ρ * (ρ - 1)‖ ^ 2 := by have hρ0 : ρ ≠ 0 := by intro h; rw [h, Complex.zero_re] at h0; linarith have hρ1 : ρ - 1 ≠ 0 := by intro h have hre := congrArg Complex.re h simp only [Complex.sub_re, Complex.one_re, Complex.zero_re] at hre linarith exact sq_pos_of_pos (norm_pos_iff.mpr (mul_ne_zero hρ0 hρ1)) lemma shiftFactor_conj_reflect (τ θ t : ℝ) (ρ : ℂ) : starRingEnd ℂ (shiftFactor τ θ t (1 - starRingEnd ℂ ρ)) = Complex.exp (-(τ : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I)) + Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp ((τ : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I)) := by unfold shiftFactor simp only [map_add, map_mul, ← Complex.exp_conj] congr 1 · congr 1 simp only [map_mul, map_sub, map_one, map_div₀, map_ofNat, Complex.conj_ofReal, Complex.conj_I, RingHomCompTriple.comp_apply, RingHom.id_apply] ring · congr 1 · congr 1 simp only [Complex.conj_ofReal, Complex.conj_I] ring · congr 1 simp only [map_mul, map_neg, map_sub, map_one, map_div₀, map_ofNat, Complex.conj_ofReal, Complex.conj_I, RingHomCompTriple.comp_apply, RingHom.id_apply] ring /-- Exact spectral-term factorization for `shiftedGaussianTransform σ t τ θ`: `weilSpectralTerm G_{σ, t, τ, θ} ρ = shiftProd τ θ t ρ * (gaussianTransform σ t ρ)²`. -/ theorem weilSpectralTerm_shiftedGaussian_eq (σ t τ θ : ℝ) (ρ : ℂ) : weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ = shiftProd τ θ t ρ * (gaussianTransform σ t ρ) ^ 2 := by unfold weilSpectralTerm shiftedGaussianTransform rw [map_mul, gaussianTransform_reflect, RingHomCompTriple.comp_apply, RingHom.id_apply, shiftFactor_conj_reflect] have hshift : shiftFactor τ θ t ρ * (Complex.exp (-(τ : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I)) + Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp ((τ : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I))) = shiftProd τ θ t ρ := by set z : ℂ := ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I unfold shiftFactor shiftProd have h1 : Complex.exp ((τ : ℂ) * z) * Complex.exp (-(τ : ℂ) * z) = 1 := by rw [← Complex.exp_add]; convert Complex.exp_zero using 2; ring have h2 : Complex.exp (-(τ : ℂ) * z) * Complex.exp ((τ : ℂ) * z) = 1 := by rw [mul_comm]; exact h1 have h3 : Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp (-(θ : ℂ) * Complex.I) = 1 := by rw [← Complex.exp_add]; convert Complex.exp_zero using 2; ring have h4 : Complex.exp ((τ : ℂ) * z) * Complex.exp ((τ : ℂ) * z) = Complex.exp (((2 * τ : ℝ) : ℂ) * z) := by rw [← Complex.exp_add]; congr 1; push_cast; ring have h5 : Complex.exp (-(τ : ℂ) * z) * Complex.exp (-(τ : ℂ) * z) = Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z) := by rw [← Complex.exp_add]; congr 1; push_cast; ring calc (Complex.exp ((τ : ℂ) * z) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp (-(τ : ℂ) * z)) * (Complex.exp (-(τ : ℂ) * z) + Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp ((τ : ℂ) * z)) = (Complex.exp ((τ : ℂ) * z) * Complex.exp (-(τ : ℂ) * z)) + Complex.exp (-(θ : ℂ) * Complex.I) * (Complex.exp ((τ : ℂ) * z) * Complex.exp ((τ : ℂ) * z)) + Complex.exp ((θ : ℂ) * Complex.I) * (Complex.exp (-(τ : ℂ) * z) * Complex.exp (-(τ : ℂ) * z)) + (Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp (-(θ : ℂ) * Complex.I)) * (Complex.exp (-(τ : ℂ) * z) * Complex.exp ((τ : ℂ) * z)) := by ring _ = 1 + Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp (((2 * τ : ℝ) : ℂ) * z) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z) + 1 * 1 := by rw [h1, h2, h3, h4, h5] _ = (2 : ℂ) + Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp (((2 * τ : ℝ) : ℂ) * z) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z) := by ring calc shiftFactor τ θ t ρ * gaussianTransform σ t ρ * ((Complex.exp (-(τ : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I)) + Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp ((τ : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I))) * gaussianTransform σ t ρ) = (shiftFactor τ θ t ρ * (Complex.exp (-(τ : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I)) + Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp ((τ : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I)))) * (gaussianTransform σ t ρ) ^ 2 := by ring _ = shiftProd τ θ t ρ * (gaussianTransform σ t ρ) ^ 2 := by rw [hshift] /-- Exact factorization of `(gaussianTransform σ t ρ)²` into its positive real magnitude `2 π σ² exp(σ² quadExponent t ρ)` and the `σ`-unit-modulus factor `unitAmp σ t ρ`. -/ lemma sq_gaussianTransform_eq (σ t : ℝ) (ρ : ℂ) : (gaussianTransform σ t ρ) ^ 2 = ((2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * quadExponent t ρ) : ℝ) : ℂ) * unitAmp σ t ρ := by unfold gaussianTransform unitAmp have hsqrt : ((Real.sqrt (2 * Real.pi) * σ : ℝ) : ℂ) ^ 2 = ((2 * Real.pi * σ ^ 2 : ℝ) : ℂ) := by rw [← Complex.ofReal_pow, mul_pow, Real.sq_sqrt (by positivity)] have hzsq : (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I) ^ 2 = ((quadExponent t ρ : ℝ) : ℂ) + ((2 * crossPhase t ρ : ℝ) : ℂ) * Complex.I := by apply Complex.ext · simp only [sq, Complex.mul_re, Complex.mul_im, Complex.sub_re, Complex.sub_im, Complex.div_ofNat_re, Complex.div_ofNat_im, Complex.one_re, Complex.one_im, Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, Complex.add_re, quadExponent] ring · simp only [sq, Complex.mul_re, Complex.mul_im, Complex.sub_re, Complex.sub_im, Complex.div_ofNat_re, Complex.div_ofNat_im, Complex.one_re, Complex.one_im, Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, Complex.add_im, crossPhase] ring have hexp : (Complex.exp (((σ ^ 2 / 2 : ℝ) : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I) ^ 2)) ^ 2 = ((Real.exp (σ ^ 2 * quadExponent t ρ) : ℝ) : ℂ) * Complex.exp (((2 * σ ^ 2 * crossPhase t ρ : ℝ) : ℂ) * Complex.I) := by rw [sq, ← Complex.exp_add, hzsq] have harg : ((σ ^ 2 / 2 : ℝ) : ℂ) * (((quadExponent t ρ : ℝ) : ℂ) + ((2 * crossPhase t ρ : ℝ) : ℂ) * Complex.I) + ((σ ^ 2 / 2 : ℝ) : ℂ) * (((quadExponent t ρ : ℝ) : ℂ) + ((2 * crossPhase t ρ : ℝ) : ℂ) * Complex.I) = ((σ ^ 2 * quadExponent t ρ : ℝ) : ℂ) + ((2 * σ ^ 2 * crossPhase t ρ : ℝ) : ℂ) * Complex.I := by push_cast; ring rw [harg, Complex.exp_add, Complex.ofReal_exp] calc (ρ * (ρ - 1) * ((Real.sqrt (2 * Real.pi) * σ : ℝ) : ℂ) * Complex.exp (((σ ^ 2 / 2 : ℝ) : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I) ^ 2)) ^ 2 = (ρ * (ρ - 1)) ^ 2 * ((Real.sqrt (2 * Real.pi) * σ : ℝ) : ℂ) ^ 2 * (Complex.exp (((σ ^ 2 / 2 : ℝ) : ℂ) * (ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I) ^ 2)) ^ 2 := by ring _ = (ρ * (ρ - 1)) ^ 2 * ((2 * Real.pi * σ ^ 2 : ℝ) : ℂ) * (((Real.exp (σ ^ 2 * quadExponent t ρ) : ℝ) : ℂ) * Complex.exp (((2 * σ ^ 2 * crossPhase t ρ : ℝ) : ℂ) * Complex.I)) := by rw [hsqrt, hexp] _ = ((2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * quadExponent t ρ) : ℝ) : ℂ) * ((ρ * (ρ - 1)) ^ 2 * Complex.exp (((2 * σ ^ 2 * crossPhase t ρ : ℝ) : ℂ) * Complex.I)) := by push_cast; ring /-- Exact proportionality relating `(weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ).re` to `normTerm σ t τ θ E_max ρ` via the positive `ρ`-independent scale `2 π σ² exp(σ² E_max)`. -/ theorem re_weilSpectralTerm_shifted_eq (σ t τ θ E_max : ℝ) (ρ : ℂ) : (weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ).re = (2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * E_max)) * normTerm σ t τ θ E_max ρ := by rw [weilSpectralTerm_shiftedGaussian_eq, sq_gaussianTransform_eq] have hmul : shiftProd τ θ t ρ * (((2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * quadExponent t ρ) : ℝ) : ℂ) * unitAmp σ t ρ) = ((2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * quadExponent t ρ) : ℝ) : ℂ) * (shiftProd τ θ t ρ * unitAmp σ t ρ) := by ring rw [hmul, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero] unfold normTerm have hexp : Real.exp (σ ^ 2 * E_max) * Real.exp (σ ^ 2 * (quadExponent t ρ - E_max)) = Real.exp (σ ^ 2 * quadExponent t ρ) := by rw [← Real.exp_add]; congr 1; ring calc 2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * quadExponent t ρ) * (shiftProd τ θ t ρ * unitAmp σ t ρ).re = 2 * Real.pi * σ ^ 2 * (Real.exp (σ ^ 2 * E_max) * Real.exp (σ ^ 2 * (quadExponent t ρ - E_max))) * (shiftProd τ θ t ρ * unitAmp σ t ρ).re := by rw [hexp] _ = 2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * E_max) * (Real.exp (σ ^ 2 * (quadExponent t ρ - E_max)) * (shiftProd τ θ t ρ * unitAmp σ t ρ).re) := by ring lemma normTerm_reflect {σ : ℝ} (hσ : 0 < σ) (t τ θ E_max : ℝ) (ρ : ℂ) : normTerm σ t τ θ E_max (1 - starRingEnd ℂ ρ) = normTerm σ t τ θ E_max ρ := by have hc_pos : 0 < 2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * E_max) := by have := Real.pi_pos; positivity have h1 := re_weilSpectralTerm_shifted_eq σ t τ θ E_max (1 - starRingEnd ℂ ρ) have h2 := re_weilSpectralTerm_shifted_eq σ t τ θ E_max ρ rw [re_weilSpectralTerm_reflect] at h1 have heq : (2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * E_max)) * normTerm σ t τ θ E_max (1 - starRingEnd ℂ ρ) = (2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * E_max)) * normTerm σ t τ θ E_max ρ := by linarith exact mul_left_cancel₀ (ne_of_gt hc_pos) heq /-! ### 5. Pointwise Bounds, Unconditional Summability, and Uniform Tail Decay -/ lemma norm_shiftProd_le_exp_two {τ θ t : ℝ} (hτ : 0 ≤ τ) {ρ : ℂ} (hre : 1 / 2 ≤ ρ.re) : ‖shiftProd τ θ t ρ‖ ≤ 4 * Real.exp (2 * τ * (ρ.re - 1 / 2)) := by unfold shiftProd set z : ℂ := ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I have hzre : z.re = ρ.re - 1 / 2 := by simp [z] have h1 : ‖Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp (((2 * τ : ℝ) : ℂ) * z)‖ = Real.exp (2 * τ * (ρ.re - 1 / 2)) := by rw [norm_mul, Complex.norm_exp, Complex.norm_exp] have ha : (-(θ : ℂ) * Complex.I).re = 0 := by simp have hb : (((2 * τ : ℝ) : ℂ) * z).re = 2 * τ * (ρ.re - 1 / 2) := by simp [hzre] rw [ha, hb, Real.exp_zero, one_mul] have h2 : ‖Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)‖ = Real.exp (-(2 * τ * (ρ.re - 1 / 2))) := by rw [norm_mul, Complex.norm_exp, Complex.norm_exp] have ha : ((θ : ℂ) * Complex.I).re = 0 := by simp have hb : ((-((2 * τ : ℝ)) : ℂ) * z).re = -(2 * τ * (ρ.re - 1 / 2)) := by simp [hzre] rw [ha, hb, Real.exp_zero, one_mul] have hw_nn : 0 ≤ 2 * τ * (ρ.re - 1 / 2) := by nlinarith have hexp_ge1 : 1 ≤ Real.exp (2 * τ * (ρ.re - 1 / 2)) := Real.one_le_exp hw_nn have hexp_neg : Real.exp (-(2 * τ * (ρ.re - 1 / 2))) ≤ Real.exp (2 * τ * (ρ.re - 1 / 2)) := Real.exp_le_exp.mpr (by linarith) have htri : ‖(2 : ℂ) + Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp (((2 * τ : ℝ) : ℂ) * z) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)‖ ≤ ‖(2 : ℂ)‖ + ‖Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp (((2 * τ : ℝ) : ℂ) * z)‖ + ‖Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)‖ := le_trans (norm_add_le _ _) (add_le_add (norm_add_le _ _) le_rfl) have htwo : ‖(2 : ℂ)‖ = 2 := by norm_num rw [htwo, h1, h2] at htri linarith lemma norm_shiftProd_le_strip {τ θ t : ℝ} {ρ : ℂ} (h0 : 0 ≤ ρ.re) (h1 : ρ.re ≤ 1) : ‖shiftProd τ θ t ρ‖ ≤ 4 * Real.exp |τ| := by unfold shiftProd set z : ℂ := ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I have hzre : z.re = ρ.re - 1 / 2 := by simp [z] have habs_re : |ρ.re - 1 / 2| ≤ 1 / 2 := abs_le.mpr ⟨by linarith, by linarith⟩ have hbound : |2 * τ * (ρ.re - 1 / 2)| ≤ |τ| := by rw [abs_mul, abs_mul, abs_of_nonneg (by norm_num : (0 : ℝ) ≤ 2)] nlinarith [abs_nonneg τ] have h1' : ‖Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp (((2 * τ : ℝ) : ℂ) * z)‖ ≤ Real.exp |τ| := by rw [norm_mul, Complex.norm_exp, Complex.norm_exp] have ha : (-(θ : ℂ) * Complex.I).re = 0 := by simp have hb : (((2 * τ : ℝ) : ℂ) * z).re = 2 * τ * (ρ.re - 1 / 2) := by simp [hzre] rw [ha, hb, Real.exp_zero, one_mul] exact Real.exp_le_exp.mpr (le_trans (le_abs_self _) hbound) have h2' : ‖Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)‖ ≤ Real.exp |τ| := by rw [norm_mul, Complex.norm_exp, Complex.norm_exp] have ha : ((θ : ℂ) * Complex.I).re = 0 := by simp have hb : ((-((2 * τ : ℝ)) : ℂ) * z).re = -(2 * τ * (ρ.re - 1 / 2)) := by simp [hzre] rw [ha, hb, Real.exp_zero, one_mul] exact Real.exp_le_exp.mpr (le_trans (neg_le_abs _) hbound) have hexp_ge1 : 1 ≤ Real.exp |τ| := Real.one_le_exp (abs_nonneg τ) have htri : ‖(2 : ℂ) + Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp (((2 * τ : ℝ) : ℂ) * z) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)‖ ≤ ‖(2 : ℂ)‖ + ‖Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp (((2 * τ : ℝ) : ℂ) * z)‖ + ‖Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)‖ := le_trans (norm_add_le _ _) (add_le_add (norm_add_le _ _) le_rfl) have htwo : ‖(2 : ℂ)‖ = 2 := by norm_num rw [htwo] at htri linarith lemma norm_mul_sub_one_sq_le_strip {ρ : ℂ} (h0 : 0 ≤ ρ.re) (h1 : ρ.re ≤ 1) : ‖ρ * (ρ - 1)‖ ^ 2 ≤ (|ρ.im| ^ 2 + 1) ^ 2 := by 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 rw [norm_mul, mul_pow, sq (|ρ.im| ^ 2 + 1)] exact mul_le_mul hρ_sq hρ1_sq (sq_nonneg _) (by positivity) lemma pow_six_le_exp_mul {α x : ℝ} (hα : 0 < α) (hx : 0 ≤ x) : x ^ 6 ≤ α⁻¹ ^ 6 * Real.exp (6 * α * x) := by have hlin : α * x ≤ Real.exp (α * x) := by have h := Real.add_one_le_exp (α * x) linarith have hpow : (α * x) ^ 6 ≤ (Real.exp (α * x)) ^ 6 := pow_le_pow_left₀ (mul_nonneg (le_of_lt hα) hx) hlin 6 have hexp6 : (Real.exp (α * x)) ^ 6 = Real.exp (6 * α * x) := by rw [← Real.exp_nat_mul]; congr 1; push_cast; ring rw [hexp6, mul_pow] at hpow have hmul := mul_le_mul_of_nonneg_left hpow (pow_nonneg (inv_nonneg.mpr (le_of_lt hα)) 6) have hcancel : α⁻¹ ^ 6 * (α ^ 6 * x ^ 6) = x ^ 6 := by rw [← mul_assoc, ← mul_pow, inv_mul_cancel₀ (ne_of_gt hα), one_pow, one_mul] rwa [hcancel] at hmul lemma quadExponent_le_far_shell {t : ℝ} {K₀ m : ℕ} {ρ : ℂ} (hK : |t| + 2 ≤ (K₀ : ℝ)) (h0 : 0 ≤ ρ.re) (h1 : ρ.re ≤ 1) (him : ((m + K₀ : ℕ) : ℝ) ≤ |ρ.im|) : quadExponent t ρ ≤ -3 - 4 * (m : ℝ) := by have hbeta : (ρ.re - 1 / 2) ^ 2 ≤ 1 / 4 := by nlinarith have hdiff : 2 + (m : ℝ) ≤ |ρ.im - t| := by have htri : |ρ.im| - |t| ≤ |ρ.im - t| := abs_sub_abs_le_abs_sub ρ.im t push_cast at him linarith have hsq : (2 + (m : ℝ)) ^ 2 ≤ (ρ.im - t) ^ 2 := by have hnn : 0 ≤ 2 + (m : ℝ) := by positivity have h := mul_self_le_mul_self hnn hdiff rwa [← sq, ← sq, sq_abs] at h unfold quadExponent have hm_sq : 0 ≤ (m : ℝ) ^ 2 := sq_nonneg (m : ℝ) nlinarith /-- Unconditional summability of the multiplicity-weighted norm shell series for `shiftedGaussianTransform σ t τ θ` over any `ZeroSpectrum` and any `σ > 0`, `t, τ, θ : ℝ`. -/ theorem summable_shiftedGaussian_norm (Z : ZeroSpectrum) {σ : ℝ} (hσ : 0 < σ) (t τ θ : ℝ) : Summable (fun k : ℕ => ∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * ‖weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ‖) := by let K₀ : ℕ := Nat.ceil |t| + 2 have hK : |t| + 2 ≤ (K₀ : ℝ) := by dsimp only [K₀]; push_cast; linarith [Nat.le_ceil |t|] rw [← summable_nat_add_iff K₀] set r : ℝ := Real.exp (-2 * σ ^ 2) set A : ℝ := 16 * Real.exp |τ| * (2 * Real.pi * σ ^ 2) * Z.countConst * ((σ ^ 2 / 3)⁻¹ ^ 6 * Real.exp (2 * σ ^ 2 * ((K₀ : ℝ) + 1))) * Real.exp (-3 * σ ^ 2) 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]; nlinarith [sq_pos_of_pos hσ] have hgeom : Summable (fun m : ℕ => A * r ^ m) := (summable_geometric_of_lt_one hr_nn hr_lt).mul_left A refine Summable.of_nonneg_of_le (fun m => Finset.sum_nonneg (fun _ _ => mul_nonneg (Nat.cast_nonneg _) (norm_nonneg _))) ?_ hgeom intro m have hα : 0 < σ ^ 2 / 3 := by positivity have hterm : ∀ ρ ∈ Z.shells (m + K₀), ‖weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ‖ ≤ 4 * Real.exp |τ| * (2 * Real.pi * σ ^ 2) * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) * Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ))) := by intro ρ hρ obtain ⟨h0, h1⟩ := Z.strip (m + K₀) ρ hρ obtain ⟨him_lo, him_hi⟩ := Z.height (m + K₀) ρ hρ rw [weilSpectralTerm_shiftedGaussian_eq, sq_gaussianTransform_eq, norm_mul, norm_mul, Complex.norm_real, Real.norm_of_nonneg (by have := Real.pi_pos; positivity), norm_unitAmp] have hs := norm_shiftProd_le_strip (τ := τ) (θ := θ) (t := t) (le_of_lt h0) (le_of_lt h1) have hpoly : ‖ρ * (ρ - 1)‖ ^ 2 ≤ 4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4 := by have h1' := norm_mul_sub_one_sq_le_strip (le_of_lt h0) (le_of_lt h1) have him_sq : |ρ.im| ^ 2 + 1 ≤ 2 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 2 := by have hnn : 0 ≤ |ρ.im| := abs_nonneg _ have hlt : |ρ.im| ^ 2 ≤ (((m + K₀ : ℕ) : ℝ) + 1) ^ 2 := by nlinarith have h1le : (1 : ℝ) ≤ (((m + K₀ : ℕ) : ℝ) + 1) ^ 2 := by have : (0 : ℝ) ≤ ((m + K₀ : ℕ) : ℝ) := Nat.cast_nonneg _ nlinarith linarith have hsq : (|ρ.im| ^ 2 + 1) ^ 2 ≤ (2 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 2) ^ 2 := pow_le_pow_left₀ (by positivity) him_sq 2 have heq : (2 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 2) ^ 2 = 4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4 := by ring linarith have hexp : Real.exp (σ ^ 2 * quadExponent t ρ) ≤ Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ))) := by apply Real.exp_le_exp.mpr have hq := quadExponent_le_far_shell hK (le_of_lt h0) (le_of_lt h1) him_lo exact mul_le_mul_of_nonneg_left hq (sq_nonneg σ) have hpi : 0 ≤ 2 * Real.pi * σ ^ 2 := by have := Real.pi_pos; positivity have hprod1 : 2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * quadExponent t ρ) * ‖ρ * (ρ - 1)‖ ^ 2 ≤ 2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ))) * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) := by exact mul_le_mul (mul_le_mul_of_nonneg_left hexp hpi) hpoly (sq_nonneg _) (by positivity) have hprod2 := mul_le_mul hs hprod1 (by positivity) (by positivity) linarith have hsum_le : ∑ ρ ∈ Z.shells (m + K₀), (Z.mult ρ : ℝ) * ‖weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ‖ ≤ (∑ ρ ∈ Z.shells (m + K₀), (Z.mult ρ : ℝ)) * (4 * Real.exp |τ| * (2 * Real.pi * σ ^ 2) * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) * Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ)))) := by calc ∑ ρ ∈ Z.shells (m + K₀), (Z.mult ρ : ℝ) * ‖weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ‖ ≤ ∑ ρ ∈ Z.shells (m + K₀), (Z.mult ρ : ℝ) * (4 * Real.exp |τ| * (2 * Real.pi * σ ^ 2) * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) * Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ)))) := Finset.sum_le_sum (fun ρ hρ => mul_le_mul_of_nonneg_left (hterm ρ hρ) (Nat.cast_nonneg _)) _ = _ := by rw [Finset.sum_mul] have hcard := Z.card_bound (m + K₀) have hpow6 : (((m + K₀ : ℕ) : ℝ) + 1) ^ 6 ≤ (σ ^ 2 / 3)⁻¹ ^ 6 * Real.exp (2 * σ ^ 2 * ((K₀ : ℝ) + 1)) * Real.exp (2 * σ ^ 2 * (m : ℝ)) := by have h := pow_six_le_exp_mul hα (show (0 : ℝ) ≤ ((m + K₀ : ℕ) : ℝ) + 1 by positivity) have hexp_eq : Real.exp (6 * (σ ^ 2 / 3) * (((m + K₀ : ℕ) : ℝ) + 1)) = Real.exp (2 * σ ^ 2 * ((K₀ : ℝ) + 1)) * Real.exp (2 * σ ^ 2 * (m : ℝ)) := by rw [← Real.exp_add]; congr 1; push_cast; ring rw [hexp_eq] at h linarith have hstep1 : (∑ ρ ∈ Z.shells (m + K₀), (Z.mult ρ : ℝ)) * (4 * Real.exp |τ| * (2 * Real.pi * σ ^ 2) * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) * Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ)))) ≤ (Z.countConst * (((m + K₀ : ℕ) : ℝ) + 1) ^ 2) * (4 * Real.exp |τ| * (2 * Real.pi * σ ^ 2) * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) * Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ)))) := by exact mul_le_mul_of_nonneg_right hcard (by have := Real.pi_pos; positivity) have hrew : (Z.countConst * (((m + K₀ : ℕ) : ℝ) + 1) ^ 2) * (4 * Real.exp |τ| * (2 * Real.pi * σ ^ 2) * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) * Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ)))) = (16 * Real.exp |τ| * (2 * Real.pi * σ ^ 2) * Z.countConst * Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ)))) * (((m + K₀ : ℕ) : ℝ) + 1) ^ 6 := by ring have hstep2 : (16 * Real.exp |τ| * (2 * Real.pi * σ ^ 2) * Z.countConst * Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ)))) * (((m + K₀ : ℕ) : ℝ) + 1) ^ 6 ≤ (16 * Real.exp |τ| * (2 * Real.pi * σ ^ 2) * Z.countConst * Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ)))) * ((σ ^ 2 / 3)⁻¹ ^ 6 * Real.exp (2 * σ ^ 2 * ((K₀ : ℝ) + 1)) * Real.exp (2 * σ ^ 2 * (m : ℝ))) := by exact mul_le_mul_of_nonneg_left hpow6 (by have := Real.pi_pos; have := Z.countConst_nonneg; positivity) have hfinal : (16 * Real.exp |τ| * (2 * Real.pi * σ ^ 2) * Z.countConst * Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ)))) * ((σ ^ 2 / 3)⁻¹ ^ 6 * Real.exp (2 * σ ^ 2 * ((K₀ : ℝ) + 1)) * Real.exp (2 * σ ^ 2 * (m : ℝ))) = A * r ^ m := by have hrm : Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ))) * Real.exp (2 * σ ^ 2 * (m : ℝ)) = Real.exp (-3 * σ ^ 2) * r ^ m := by simp only [r] rw [← Real.exp_nat_mul, ← Real.exp_add, ← Real.exp_add] congr 1; ring simp only [A] calc 16 * Real.exp |τ| * (2 * Real.pi * σ ^ 2) * Z.countConst * Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ))) * ((σ ^ 2 / 3)⁻¹ ^ 6 * Real.exp (2 * σ ^ 2 * ((K₀ : ℝ) + 1)) * Real.exp (2 * σ ^ 2 * (m : ℝ))) = 16 * Real.exp |τ| * (2 * Real.pi * σ ^ 2) * Z.countConst * ((σ ^ 2 / 3)⁻¹ ^ 6 * Real.exp (2 * σ ^ 2 * ((K₀ : ℝ) + 1))) * (Real.exp (σ ^ 2 * (-3 - 4 * (m : ℝ))) * Real.exp (2 * σ ^ 2 * (m : ℝ))) := by ring _ = 16 * Real.exp |τ| * (2 * Real.pi * σ ^ 2) * Z.countConst * ((σ ^ 2 / 3)⁻¹ ^ 6 * Real.exp (2 * σ ^ 2 * ((K₀ : ℝ) + 1))) * (Real.exp (-3 * σ ^ 2) * r ^ m) := by rw [hrm] _ = _ := by ring linarith /-- Unconditional summability of the multiplicity-weighted real spectral shell sum for every `ZeroSpectrum` and every `σ > 0`, `t, τ, θ : ℝ`. -/ theorem summable_shiftedGaussian_re (Z : ZeroSpectrum) {σ : ℝ} (hσ : 0 < σ) (t τ θ : ℝ) : Summable (fun k : ℕ => ∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * (weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ).re) := by refine Summable.of_norm_bounded (summable_shiftedGaussian_norm Z hσ t τ θ) (fun k => ?_) calc ‖∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * (weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ).re‖ ≤ ∑ ρ ∈ Z.shells k, ‖(Z.mult ρ : ℝ) * (weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ).re‖ := norm_sum_le _ _ _ = ∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * ‖(weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ).re‖ := by refine Finset.sum_congr rfl (fun ρ _ => ?_) rw [norm_mul, Real.norm_of_nonneg (Nat.cast_nonneg _)] _ ≤ ∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * ‖weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ‖ := Finset.sum_le_sum (fun ρ _ => mul_le_mul_of_nonneg_left (Complex.abs_re_le_norm _) (Nat.cast_nonneg _)) lemma summable_normTerm_shells (Z : ZeroSpectrum) {σ : ℝ} (hσ : 0 < σ) (t τ θ E_max : ℝ) : Summable (fun k : ℕ => ∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ) := by have hc_pos : 0 < 2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * E_max) := by have := Real.pi_pos; positivity have hfun : (fun k : ℕ => ∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ) = fun k : ℕ => (2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * E_max))⁻¹ * ∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * (weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ).re := by ext k rw [Finset.mul_sum] refine Finset.sum_congr rfl (fun ρ _ => ?_) rw [re_weilSpectralTerm_shifted_eq σ t τ θ E_max ρ] field_simp [ne_of_gt hc_pos] rw [hfun] exact (summable_shiftedGaussian_re Z hσ t τ θ).mul_left _ /-- Uniform-in-`σ` tail bound for `σ ≥ 1`, `0 ≤ τ ≤ τ_max`, `E_max > 0`, and `K₀ ≥ |t| + 2`: the multiplicity-weighted normalized infinite tail over shells `k ≥ K₀` is bounded by `C_tail * exp(-3 σ²)`, where `C_tail` depends only on `(Z, K₀, τ_max)` and is independent of `(σ, τ, θ)`. -/ lemma tail_normTerm_le_exp_neg_three_sq (Z : ZeroSpectrum) {K₀ : ℕ} {t τ_max E_max : ℝ} (hK : |t| + 2 ≤ (K₀ : ℝ)) (hE : 0 < E_max) : ∃ C_tail : ℝ, 0 ≤ C_tail ∧ ∀ {σ τ θ : ℝ}, 1 ≤ σ → 0 ≤ τ → τ ≤ τ_max → (∑' m : ℕ, ∑ ρ ∈ Z.shells (m + K₀), (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ) ≤ C_tail * Real.exp (-3 * σ ^ 2) := by set r : ℝ := Real.exp (-3) 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]; norm_num set B_const : ℝ := 16 * Real.exp τ_max * Z.countConst * (6 : ℝ) ^ 6 * Real.exp ((K₀ : ℝ) + 1) refine ⟨B_const * (1 - r)⁻¹, ?_, ?_⟩ · have h1r : 0 < 1 - r := by linarith have := Z.countConst_nonneg positivity · intro σ τ θ hσ1 hτ0 hτmax have hσ_pos : 0 < σ := by linarith have hσ2_ge1 : 1 ≤ σ ^ 2 := by nlinarith have hsum_m : Summable (fun m : ℕ => ∑ ρ ∈ Z.shells (m + K₀), (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ) := (summable_nat_add_iff K₀).mpr (summable_normTerm_shells Z hσ_pos t τ θ E_max) have hgeom : Summable (fun m : ℕ => (B_const * Real.exp (-3 * σ ^ 2)) * r ^ m) := (summable_geometric_of_lt_one hr_nn hr_lt).mul_left _ have hterm_m : ∀ m : ℕ, ∑ ρ ∈ Z.shells (m + K₀), (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ ≤ (B_const * Real.exp (-3 * σ ^ 2)) * r ^ m := by intro m have hpt : ∀ ρ ∈ Z.shells (m + K₀), normTerm σ t τ θ E_max ρ ≤ 4 * Real.exp τ_max * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) * Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ)) := by intro ρ hρ obtain ⟨h0, h1⟩ := Z.strip (m + K₀) ρ hρ obtain ⟨him_lo, him_hi⟩ := Z.height (m + K₀) ρ hρ unfold normTerm have hre_le : (shiftProd τ θ t ρ * unitAmp σ t ρ).re ≤ ‖shiftProd τ θ t ρ‖ * ‖unitAmp σ t ρ‖ := by calc (shiftProd τ θ t ρ * unitAmp σ t ρ).re ≤ ‖shiftProd τ θ t ρ * unitAmp σ t ρ‖ := Complex.re_le_norm _ _ = ‖shiftProd τ θ t ρ‖ * ‖unitAmp σ t ρ‖ := norm_mul _ _ have hs : ‖shiftProd τ θ t ρ‖ ≤ 4 * Real.exp τ_max := by have h := norm_shiftProd_le_strip (τ := τ) (θ := θ) (t := t) (le_of_lt h0) (le_of_lt h1) rw [abs_of_nonneg hτ0] at h exact le_trans h (mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr hτmax) (by norm_num)) have hu : ‖unitAmp σ t ρ‖ ≤ 4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4 := by rw [norm_unitAmp] have h1' := norm_mul_sub_one_sq_le_strip (le_of_lt h0) (le_of_lt h1) have him_sq : |ρ.im| ^ 2 + 1 ≤ 2 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 2 := by have hnn : 0 ≤ |ρ.im| := abs_nonneg _ have hlt : |ρ.im| ^ 2 ≤ (((m + K₀ : ℕ) : ℝ) + 1) ^ 2 := by nlinarith have h1le : (1 : ℝ) ≤ (((m + K₀ : ℕ) : ℝ) + 1) ^ 2 := by have : (0 : ℝ) ≤ ((m + K₀ : ℕ) : ℝ) := Nat.cast_nonneg _ nlinarith linarith have hsq : (|ρ.im| ^ 2 + 1) ^ 2 ≤ (2 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 2) ^ 2 := pow_le_pow_left₀ (by positivity) him_sq 2 have heq : (2 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 2) ^ 2 = 4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4 := by ring linarith have hq := quadExponent_le_far_shell hK (le_of_lt h0) (le_of_lt h1) him_lo have hexp : Real.exp (σ ^ 2 * (quadExponent t ρ - E_max)) ≤ Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ)) := by apply Real.exp_le_exp.mpr have hm_nn : (0 : ℝ) ≤ (m : ℝ) := Nat.cast_nonneg m nlinarith have hprod1 : (shiftProd τ θ t ρ * unitAmp σ t ρ).re ≤ 4 * Real.exp τ_max * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) := le_trans hre_le (mul_le_mul hs hu (norm_nonneg _) (by positivity)) have hprod2 := mul_le_mul_of_nonneg_left hprod1 (le_of_lt (Real.exp_pos (σ ^ 2 * (quadExponent t ρ - E_max)))) have hprod3 := mul_le_mul_of_nonneg_right hexp (show 0 ≤ 4 * Real.exp τ_max * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) by positivity) linarith have hsum_le : ∑ ρ ∈ Z.shells (m + K₀), (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ ≤ (∑ ρ ∈ Z.shells (m + K₀), (Z.mult ρ : ℝ)) * (4 * Real.exp τ_max * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) * Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ))) := by calc ∑ ρ ∈ Z.shells (m + K₀), (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ ≤ ∑ ρ ∈ Z.shells (m + K₀), (Z.mult ρ : ℝ) * (4 * Real.exp τ_max * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) * Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ))) := Finset.sum_le_sum (fun ρ hρ => mul_le_mul_of_nonneg_left (hpt ρ hρ) (Nat.cast_nonneg _)) _ = _ := by rw [Finset.sum_mul] have hcard := Z.card_bound (m + K₀) have hpow6 : (((m + K₀ : ℕ) : ℝ) + 1) ^ 6 ≤ (6 : ℝ) ^ 6 * Real.exp ((K₀ : ℝ) + 1) * Real.exp (m : ℝ) := by have h := pow_six_le_exp_mul (α := (1 / 6 : ℝ)) (by norm_num) (show (0 : ℝ) ≤ ((m + K₀ : ℕ) : ℝ) + 1 by positivity) have hinv : ((1 / 6 : ℝ)⁻¹) ^ 6 = (6 : ℝ) ^ 6 := by norm_num have hexp_eq : Real.exp (6 * (1 / 6 : ℝ) * (((m + K₀ : ℕ) : ℝ) + 1)) = Real.exp ((K₀ : ℝ) + 1) * Real.exp (m : ℝ) := by rw [← Real.exp_add]; congr 1; push_cast; ring rw [hinv, hexp_eq] at h linarith have hstep1 : (∑ ρ ∈ Z.shells (m + K₀), (Z.mult ρ : ℝ)) * (4 * Real.exp τ_max * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) * Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ))) ≤ (16 * Real.exp τ_max * Z.countConst * Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ))) * (((m + K₀ : ℕ) : ℝ) + 1) ^ 6 := by have hm1 := mul_le_mul_of_nonneg_right hcard (show 0 ≤ 4 * Real.exp τ_max * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) * Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ)) by positivity) have heq : (Z.countConst * (((m + K₀ : ℕ) : ℝ) + 1) ^ 2) * (4 * Real.exp τ_max * (4 * (((m + K₀ : ℕ) : ℝ) + 1) ^ 4) * Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ))) = (16 * Real.exp τ_max * Z.countConst * Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ))) * (((m + K₀ : ℕ) : ℝ) + 1) ^ 6 := by ring linarith have hstep2 : (16 * Real.exp τ_max * Z.countConst * Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ))) * (((m + K₀ : ℕ) : ℝ) + 1) ^ 6 ≤ (16 * Real.exp τ_max * Z.countConst * Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ))) * ((6 : ℝ) ^ 6 * Real.exp ((K₀ : ℝ) + 1) * Real.exp (m : ℝ)) := mul_le_mul_of_nonneg_left hpow6 (by have := Z.countConst_nonneg; positivity) have hfinal : (16 * Real.exp τ_max * Z.countConst * Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ))) * ((6 : ℝ) ^ 6 * Real.exp ((K₀ : ℝ) + 1) * Real.exp (m : ℝ)) = (B_const * Real.exp (-3 * σ ^ 2)) * r ^ m := by have hrm : Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ)) * Real.exp (m : ℝ) = Real.exp (-3 * σ ^ 2) * r ^ m := by simp only [r] rw [← Real.exp_nat_mul, ← Real.exp_add, ← Real.exp_add] congr 1; ring simp only [B_const] calc 16 * Real.exp τ_max * Z.countConst * Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ)) * ((6 : ℝ) ^ 6 * Real.exp ((K₀ : ℝ) + 1) * Real.exp (m : ℝ)) = 16 * Real.exp τ_max * Z.countConst * (6 : ℝ) ^ 6 * Real.exp ((K₀ : ℝ) + 1) * (Real.exp (-3 * σ ^ 2 - 4 * (m : ℝ)) * Real.exp (m : ℝ)) := by ring _ = 16 * Real.exp τ_max * Z.countConst * (6 : ℝ) ^ 6 * Real.exp ((K₀ : ℝ) + 1) * (Real.exp (-3 * σ ^ 2) * r ^ m) := by rw [hrm] _ = _ := by ring linarith have htsum := hsum_m.tsum_le_tsum hterm_m hgeom rw [tsum_mul_left, tsum_geometric_of_lt_one hr_nn hr_lt] at htsum linarith /-! ### 6. Phase Alignment, Parallelogram-Law Non-Cancellation, and Dominant-Zero Isolation -/ /-- For any complex number `W`, there exists a real phase `θ` aligning `exp(-i θ) W` to the negative real axis: `Re(exp(-i θ) W) = -‖W‖`. -/ lemma exists_phase_re_eq_neg_norm (W : ℂ) : ∃ θ : ℝ, (Complex.exp (-(θ : ℂ) * Complex.I) * W).re = -‖W‖ := by set θ : ℝ := Complex.arg (-W) refine ⟨θ, ?_⟩ have h : ((‖-W‖ : ℝ) : ℂ) * Complex.exp ((θ : ℂ) * Complex.I) = -W := Complex.norm_mul_exp_arg_mul_I (-W) have hcancel : Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp ((θ : ℂ) * Complex.I) = 1 := by rw [← Complex.exp_add] have h0 : -(θ : ℂ) * Complex.I + (θ : ℂ) * Complex.I = 0 := by ring rw [h0, Complex.exp_zero] have hmul : Complex.exp (-(θ : ℂ) * Complex.I) * W = -((‖W‖ : ℝ) : ℂ) := by have h1 : Complex.exp (-(θ : ℂ) * Complex.I) * (-W) = ((‖-W‖ : ℝ) : ℂ) := by calc Complex.exp (-(θ : ℂ) * Complex.I) * (-W) = Complex.exp (-(θ : ℂ) * Complex.I) * (((‖-W‖ : ℝ) : ℂ) * Complex.exp ((θ : ℂ) * Complex.I)) := by conv_lhs => rw [← h] _ = ((‖-W‖ : ℝ) : ℂ) * (Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp ((θ : ℂ) * Complex.I)) := by ring _ = ((‖-W‖ : ℝ) : ℂ) := by rw [hcancel, mul_one] rw [norm_neg] at h1 linear_combination -h1 rw [hmul, Complex.neg_re, Complex.ofReal_re] /-- Elementary exponential decay choice: given `C ≥ 0`, `a > 0`, `ε > 0`, there is `x ≥ 0` with `C * exp(-a x) ≤ ε`. -/ lemma exists_nonneg_exp_neg_mul_le {C a ε : ℝ} (hC : 0 ≤ C) (ha : 0 < a) (hε : 0 < ε) : ∃ x : ℝ, 0 ≤ x ∧ C * Real.exp (-a * x) ≤ ε := by set x : ℝ := max 0 (Real.log ((C + 1) / ε) / a) refine ⟨x, le_max_left _ _, ?_⟩ have hx : Real.log ((C + 1) / ε) / a ≤ x := le_max_right _ _ have hax : Real.log ((C + 1) / ε) ≤ a * x := by have := mul_le_mul_of_nonneg_left hx (le_of_lt ha) rwa [mul_div_cancel₀ _ (ne_of_gt ha)] at this have hpos : 0 < (C + 1) / ε := by positivity have hexp : (C + 1) / ε ≤ Real.exp (a * x) := by rw [← Real.exp_log hpos] exact Real.exp_le_exp.mpr hax have hinv : Real.exp (-a * x) ≤ ε / (C + 1) := by have hneg : -a * x = -(a * x) := by ring rw [hneg, Real.exp_neg] have := inv_anti₀ hpos hexp rwa [inv_div] at this have hmul : C * Real.exp (-a * x) ≤ C * (ε / (C + 1)) := mul_le_mul_of_nonneg_left hinv hC have hle : C * (ε / (C + 1)) ≤ (C + 1) * (ε / (C + 1)) := mul_le_mul_of_nonneg_right (by linarith) (by positivity) have hcancel : (C + 1) * (ε / (C + 1)) = ε := mul_div_cancel₀ ε (by linarith) linarith /-- Complex parallelogram law `‖u + v‖² + ‖u - v‖² = 2 (‖u‖² + ‖v‖²)`. -/ lemma complex_parallelogram_sq (u v : ℂ) : ‖u + v‖ ^ 2 + ‖u - v‖ ^ 2 = 2 * (‖u‖ ^ 2 + ‖v‖ ^ 2) := by simp only [← Complex.normSq_eq_norm_sq, Complex.normSq_apply, Complex.add_re, Complex.add_im, Complex.sub_re, Complex.sub_im] ring /-- The multiplicity-weighted oscillatory sum over the top-tier zeros `T_top` sharing the maximal `quadExponent` and maximal `ρ.re - 1/2 = w_* > 0`. -/ noncomputable def topOscSum (T_top : Finset ℂ) (mult : ℂ → ℕ) (σ t τ : ℝ) : ℂ := ∑ ρ ∈ T_top, ((mult ρ : ℝ) : ℂ) * (Complex.exp (((2 * τ * (ρ.im - t) : ℝ) : ℂ) * Complex.I) * unitAmp σ t ρ) /-- Exact decomposition of the multiplicity-weighted `normTerm` sum on `T_top` into the dominant `exp(2 τ w_*)` oscillatory sum plus an `O(1)` remainder independent of `(σ, τ, θ)`. -/ lemma sum_normTerm_top_le (T_top : Finset ℂ) (mult : ℂ → ℕ) {σ t τ θ E_max w_star : ℝ} (hτ : 0 ≤ τ) (hw : 0 < w_star) (hE : ∀ ρ ∈ T_top, quadExponent t ρ = E_max) (hre : ∀ ρ ∈ T_top, ρ.re - 1 / 2 = w_star) : ∑ ρ ∈ T_top, (mult ρ : ℝ) * normTerm σ t τ θ E_max ρ ≤ Real.exp (2 * τ * w_star) * (Complex.exp (-(θ : ℂ) * Complex.I) * topOscSum T_top mult σ t τ).re + 3 * ∑ ρ ∈ T_top, (mult ρ : ℝ) * ‖ρ * (ρ - 1)‖ ^ 2 := by have hpt : ∀ ρ ∈ T_top, (mult ρ : ℝ) * normTerm σ t τ θ E_max ρ ≤ Real.exp (2 * τ * w_star) * (Complex.exp (-(θ : ℂ) * Complex.I) * (((mult ρ : ℝ) : ℂ) * (Complex.exp (((2 * τ * (ρ.im - t) : ℝ) : ℂ) * Complex.I) * unitAmp σ t ρ))).re + 3 * ((mult ρ : ℝ) * ‖ρ * (ρ - 1)‖ ^ 2) := by intro ρ hρ have hEρ := hE ρ hρ have hreρ := hre ρ hρ have hcore : normTerm σ t τ θ E_max ρ ≤ Real.exp (2 * τ * w_star) * (Complex.exp (-(θ : ℂ) * Complex.I) * (Complex.exp (((2 * τ * (ρ.im - t) : ℝ) : ℂ) * Complex.I) * unitAmp σ t ρ)).re + 3 * ‖ρ * (ρ - 1)‖ ^ 2 := by unfold normTerm shiftProd rw [hEρ, sub_self, mul_zero, Real.exp_zero, one_mul] set z : ℂ := ρ - (1 / 2 : ℂ) - (t : ℂ) * Complex.I have hz_eq : z = ((w_star : ℝ) : ℂ) + ((ρ.im - t : ℝ) : ℂ) * Complex.I := by apply Complex.ext · simp only [z, Complex.sub_re, Complex.div_ofNat_re, Complex.one_re, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, zero_mul, sub_zero, Complex.add_re] linarith · simp [z] have hexp_pos : Complex.exp (((2 * τ : ℝ) : ℂ) * z) = ((Real.exp (2 * τ * w_star) : ℝ) : ℂ) * Complex.exp (((2 * τ * (ρ.im - t) : ℝ) : ℂ) * Complex.I) := by rw [hz_eq] have harg : ((2 * τ : ℝ) : ℂ) * (((w_star : ℝ) : ℂ) + ((ρ.im - t : ℝ) : ℂ) * Complex.I) = ((2 * τ * w_star : ℝ) : ℂ) + ((2 * τ * (ρ.im - t) : ℝ) : ℂ) * Complex.I := by push_cast; ring rw [harg, Complex.exp_add, Complex.ofReal_exp] have hsplit : ((2 : ℂ) + Complex.exp (-(θ : ℂ) * Complex.I) * Complex.exp (((2 * τ : ℝ) : ℂ) * z) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)) * unitAmp σ t ρ = ((Real.exp (2 * τ * w_star) : ℝ) : ℂ) * (Complex.exp (-(θ : ℂ) * Complex.I) * (Complex.exp (((2 * τ * (ρ.im - t) : ℝ) : ℂ) * Complex.I) * unitAmp σ t ρ)) + ((2 : ℂ) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)) * unitAmp σ t ρ := by rw [hexp_pos]; ring rw [hsplit, Complex.add_re, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero] have hrem_norm : ‖(2 : ℂ) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)‖ ≤ 3 := by have htri := norm_add_le (2 : ℂ) (Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)) have h2 : ‖(2 : ℂ)‖ = 2 := by norm_num have hdec : ‖Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)‖ ≤ 1 := by rw [norm_mul, Complex.norm_exp, Complex.norm_exp] have ha : ((θ : ℂ) * Complex.I).re = 0 := by simp have hb : ((-((2 * τ : ℝ)) : ℂ) * z).re = -(2 * τ * w_star) := by rw [hz_eq]; simp rw [ha, hb, Real.exp_zero, one_mul, Real.exp_le_one_iff] nlinarith linarith have hrem : (((2 : ℂ) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)) * unitAmp σ t ρ).re ≤ 3 * ‖ρ * (ρ - 1)‖ ^ 2 := by calc (((2 : ℂ) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)) * unitAmp σ t ρ).re ≤ ‖((2 : ℂ) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)) * unitAmp σ t ρ‖ := Complex.re_le_norm _ _ = ‖(2 : ℂ) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)‖ * ‖unitAmp σ t ρ‖ := norm_mul _ _ _ = ‖(2 : ℂ) + Complex.exp ((θ : ℂ) * Complex.I) * Complex.exp ((-((2 * τ : ℝ)) : ℂ) * z)‖ * ‖ρ * (ρ - 1)‖ ^ 2 := by rw [norm_unitAmp] _ ≤ 3 * ‖ρ * (ρ - 1)‖ ^ 2 := mul_le_mul_of_nonneg_right hrem_norm (sq_nonneg _) linarith have hmul := mul_le_mul_of_nonneg_left hcore (Nat.cast_nonneg (mult ρ)) have hre_pull : (Complex.exp (-(θ : ℂ) * Complex.I) * (((mult ρ : ℝ) : ℂ) * (Complex.exp (((2 * τ * (ρ.im - t) : ℝ) : ℂ) * Complex.I) * unitAmp σ t ρ))).re = (mult ρ : ℝ) * (Complex.exp (-(θ : ℂ) * Complex.I) * (Complex.exp (((2 * τ * (ρ.im - t) : ℝ) : ℂ) * Complex.I) * unitAmp σ t ρ)).re := by have hcomm : Complex.exp (-(θ : ℂ) * Complex.I) * (((mult ρ : ℝ) : ℂ) * (Complex.exp (((2 * τ * (ρ.im - t) : ℝ) : ℂ) * Complex.I) * unitAmp σ t ρ)) = ((mult ρ : ℝ) : ℂ) * (Complex.exp (-(θ : ℂ) * Complex.I) * (Complex.exp (((2 * τ * (ρ.im - t) : ℝ) : ℂ) * Complex.I) * unitAmp σ t ρ)) := by ring rw [hcomm, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, zero_mul, sub_zero] rw [hre_pull] linarith have hsum := Finset.sum_le_sum hpt rw [Finset.sum_add_distrib, ← Finset.mul_sum, ← Finset.mul_sum] at hsum have hre_sum : ∑ ρ ∈ T_top, (Complex.exp (-(θ : ℂ) * Complex.I) * (((mult ρ : ℝ) : ℂ) * (Complex.exp (((2 * τ * (ρ.im - t) : ℝ) : ℂ) * Complex.I) * unitAmp σ t ρ))).re = (Complex.exp (-(θ : ℂ) * Complex.I) * topOscSum T_top mult σ t τ).re := by unfold topOscSum rw [Finset.mul_sum, Complex.re_sum] rwa [hre_sum] at hsum /-- Uniform non-cancellation lower bound for `‖topOscSum T_top mult σ t τ‖`: because `T_top` consists of at most two conjugate-height points `(1/2 + w_*) + i (t ± d)` with positive multiplicities `mult ρ ≥ 1`, either `T_top` is a singleton (exact constant modulus) or `T_top` is a pair at `t ± d` (`d > 0`), where the parallelogram law on `{τ₀, τ₀ + π / (4 d)}` guarantees a uniform lower bound `A_min > 0` independent of `σ` and `τ₀`. -/ lemma exists_topOscSum_lower_bound (T_top : Finset ℂ) (mult : ℂ → ℕ) {t E_max w_star : ℝ} (hne : T_top.Nonempty) (hmult : ∀ ρ ∈ T_top, 1 ≤ mult ρ) (hstrip : ∀ ρ ∈ T_top, 0 < ρ.re ∧ ρ.re < 1) (hE : ∀ ρ ∈ T_top, quadExponent t ρ = E_max) (hre : ∀ ρ ∈ T_top, ρ.re - 1 / 2 = w_star) : ∃ A_min Δτ : ℝ, 0 < A_min ∧ 0 ≤ Δτ ∧ ∀ (σ τ₀ : ℝ), ∃ τ : ℝ, τ₀ ≤ τ ∧ τ ≤ τ₀ + Δτ ∧ A_min ≤ ‖topOscSum T_top mult σ t τ‖ := by obtain ⟨ρ_any, hρ_any⟩ := hne have hd_sq_nn : 0 ≤ w_star ^ 2 - E_max := by have h1 := hE ρ_any hρ_any have h2 := hre ρ_any hρ_any unfold quadExponent at h1 rw [h2] at h1 have : w_star ^ 2 - E_max = (ρ_any.im - t) ^ 2 := by linarith rw [this] exact sq_nonneg _ set d : ℝ := Real.sqrt (w_star ^ 2 - E_max) have hd_nn : 0 ≤ d := Real.sqrt_nonneg _ have hd_sq : d ^ 2 = w_star ^ 2 - E_max := Real.sq_sqrt hd_sq_nn let ρ_plus : ℂ := ⟨1 / 2 + w_star, t + d⟩ let ρ_minus : ℂ := ⟨1 / 2 + w_star, t - d⟩ have hsub : T_top ⊆ {ρ_plus, ρ_minus} := by intro ρ hρ have h1 := hE ρ hρ have h2 := hre ρ hρ unfold quadExponent at h1 rw [h2] at h1 have him_sq : (ρ.im - t) ^ 2 = d ^ 2 := by linarith have hor : ρ.im - t = d ∨ ρ.im - t = -d := sq_eq_sq_iff_eq_or_eq_neg.mp him_sq simp only [Finset.mem_insert, Finset.mem_singleton] rcases hor with hpos | hneg · left apply Complex.ext · simp only [ρ_plus]; linarith · simp only [ρ_plus]; linarith · right apply Complex.ext · simp only [ρ_minus]; linarith · simp only [ρ_minus]; linarith -- Split into the singleton case vs. the 2-element pair `{ρ_plus, ρ_minus}` (`d > 0`). by_cases hpair : ρ_plus ∈ T_top ∧ ρ_minus ∈ T_top ∧ ρ_plus ≠ ρ_minus · obtain ⟨hpmem, hmmem, hne_pm⟩ := hpair have hT_eq : T_top = {ρ_plus, ρ_minus} := by apply Finset.Subset.antisymm hsub intro x hx simp only [Finset.mem_insert, Finset.mem_singleton] at hx rcases hx with rfl | rfl · exact hpmem · exact hmmem have hd_pos : 0 < d := by rcases eq_or_lt_of_le hd_nn with hd0 | hdpos · exfalso; apply hne_pm apply Complex.ext · simp [ρ_plus, ρ_minus] · simp [ρ_plus, ρ_minus, ← hd0] · exact hdpos have hmp_pos : (0 : ℝ) < (mult ρ_plus : ℝ) := by have := hmult ρ_plus hpmem; exact_mod_cast (by omega : 0 < mult ρ_plus) have ha_pos : 0 < (mult ρ_plus : ℝ) * ‖ρ_plus * (ρ_plus - 1)‖ ^ 2 := mul_pos hmp_pos (norm_mul_sub_one_pos_of_strip (hstrip ρ_plus hpmem).1 (hstrip ρ_plus hpmem).2) set A_min : ℝ := Real.sqrt (((mult ρ_plus : ℝ) * ‖ρ_plus * (ρ_plus - 1)‖ ^ 2) ^ 2 + ((mult ρ_minus : ℝ) * ‖ρ_minus * (ρ_minus - 1)‖ ^ 2) ^ 2) set Δτ : ℝ := Real.pi / (4 * d) have hA_pos : 0 < A_min := by apply Real.sqrt_pos.mpr have : 0 < ((mult ρ_plus : ℝ) * ‖ρ_plus * (ρ_plus - 1)‖ ^ 2) ^ 2 := sq_pos_of_pos ha_pos positivity have hΔ_nn : 0 ≤ Δτ := by have := Real.pi_pos; positivity refine ⟨A_min, Δτ, hA_pos, hΔ_nn, fun σ τ₀ => ?_⟩ set u : ℂ := ((mult ρ_plus : ℝ) : ℂ) * (Complex.exp (((2 * τ₀ * d : ℝ) : ℂ) * Complex.I) * unitAmp σ t ρ_plus) set v : ℂ := ((mult ρ_minus : ℝ) : ℂ) * (Complex.exp (((-(2 * τ₀ * d) : ℝ) : ℂ) * Complex.I) * unitAmp σ t ρ_minus) have hsum0 : topOscSum T_top mult σ t τ₀ = u + v := by unfold topOscSum rw [hT_eq, Finset.sum_pair hne_pm] have hp_im : ρ_plus.im - t = d := by simp [ρ_plus] have hm_im : ρ_minus.im - t = -d := by simp [ρ_minus] rw [hp_im, hm_im] congr 3 · congr 1; push_cast; ring have hsum1 : topOscSum T_top mult σ t (τ₀ + Δτ) = Complex.I * (u - v) := by unfold topOscSum rw [hT_eq, Finset.sum_pair hne_pm] have hp_im : ρ_plus.im - t = d := by simp [ρ_plus] have hm_im : ρ_minus.im - t = -d := by simp [ρ_minus] rw [hp_im, hm_im] have hexp_pi2 : Complex.exp (((Real.pi / 2 : ℝ) : ℂ) * Complex.I) = Complex.I := by rw [Complex.exp_mul_I, ← Complex.ofReal_cos, ← Complex.ofReal_sin, Real.cos_pi_div_two, Real.sin_pi_div_two] simp have hexp_npi2 : Complex.exp (((-(Real.pi / 2) : ℝ) : ℂ) * Complex.I) = -Complex.I := by rw [Complex.exp_mul_I, ← Complex.ofReal_cos, ← Complex.ofReal_sin, Real.cos_neg, Real.sin_neg, Real.cos_pi_div_two, Real.sin_pi_div_two] simp have h1 : Complex.exp (((2 * (τ₀ + Δτ) * d : ℝ) : ℂ) * Complex.I) = Complex.I * Complex.exp (((2 * τ₀ * d : ℝ) : ℂ) * Complex.I) := by have harg : 2 * (τ₀ + Δτ) * d = Real.pi / 2 + 2 * τ₀ * d := by simp only [Δτ]; field_simp [ne_of_gt hd_pos]; ring rw [harg, Complex.ofReal_add, add_mul, Complex.exp_add, hexp_pi2] have h2 : Complex.exp (((2 * (τ₀ + Δτ) * -d : ℝ) : ℂ) * Complex.I) = (-Complex.I) * Complex.exp (((-(2 * τ₀ * d) : ℝ) : ℂ) * Complex.I) := by have harg : 2 * (τ₀ + Δτ) * -d = -(Real.pi / 2) + -(2 * τ₀ * d) := by simp only [Δτ]; field_simp [ne_of_gt hd_pos]; ring rw [harg, Complex.ofReal_add, add_mul, Complex.exp_add, hexp_npi2] rw [h1, h2] simp only [u, v] ring have hnorm_u : ‖u‖ ^ 2 = ((mult ρ_plus : ℝ) * ‖ρ_plus * (ρ_plus - 1)‖ ^ 2) ^ 2 := by simp only [u, norm_mul, Complex.norm_real, Real.norm_of_nonneg (Nat.cast_nonneg _), Complex.norm_exp, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, zero_mul, sub_zero, Real.exp_zero, one_mul, norm_unitAmp] have hnorm_v : ‖v‖ ^ 2 = ((mult ρ_minus : ℝ) * ‖ρ_minus * (ρ_minus - 1)‖ ^ 2) ^ 2 := by simp only [v, norm_mul, Complex.norm_real, Real.norm_of_nonneg (Nat.cast_nonneg _), Complex.norm_exp, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, Complex.I_re, Complex.I_im, mul_zero, zero_mul, sub_zero, Real.exp_zero, one_mul, norm_unitAmp] have hpara : ‖topOscSum T_top mult σ t τ₀‖ ^ 2 + ‖topOscSum T_top mult σ t (τ₀ + Δτ)‖ ^ 2 = 2 * A_min ^ 2 := by rw [hsum0, hsum1, norm_mul, Complex.norm_I, one_mul, complex_parallelogram_sq, hnorm_u, hnorm_v, Real.sq_sqrt (by positivity)] by_cases h0 : A_min ≤ ‖topOscSum T_top mult σ t τ₀‖ · exact ⟨τ₀, le_refl _, by linarith, h0⟩ · push Not at h0 have h0_sq : ‖topOscSum T_top mult σ t τ₀‖ ^ 2 < A_min ^ 2 := pow_lt_pow_left₀ h0 (norm_nonneg _) (by norm_num) have h1_sq : A_min ^ 2 ≤ ‖topOscSum T_top mult σ t (τ₀ + Δτ)‖ ^ 2 := by linarith have h1 : A_min ≤ ‖topOscSum T_top mult σ t (τ₀ + Δτ)‖ := by nlinarith [norm_nonneg (topOscSum T_top mult σ t (τ₀ + Δτ)), hA_pos] exact ⟨τ₀ + Δτ, by linarith, le_refl _, h1⟩ · -- Singleton case: `T_top = {ρ_any}`. have hsingle : T_top = {ρ_any} := by apply Finset.Subset.antisymm _ (Finset.singleton_subset_iff.mpr hρ_any) intro x hx rw [Finset.mem_singleton] have hx_in := hsub hx have hany_in := hsub hρ_any simp only [Finset.mem_insert, Finset.mem_singleton] at hx_in hany_in rcases hx_in with rfl | rfl <;> rcases hany_in with rfl | rfl · rfl · by_contra hne_pm; exact hpair ⟨hx, hρ_any, hne_pm⟩ · by_contra hne_mp; exact hpair ⟨hρ_any, hx, Ne.symm hne_mp⟩ · rfl have hma_pos : (0 : ℝ) < (mult ρ_any : ℝ) := by have := hmult ρ_any hρ_any; exact_mod_cast (by omega : 0 < mult ρ_any) have ha_pos : 0 < (mult ρ_any : ℝ) * ‖ρ_any * (ρ_any - 1)‖ ^ 2 := mul_pos hma_pos (norm_mul_sub_one_pos_of_strip (hstrip ρ_any hρ_any).1 (hstrip ρ_any hρ_any).2) refine ⟨(mult ρ_any : ℝ) * ‖ρ_any * (ρ_any - 1)‖ ^ 2, 0, ha_pos, le_refl _, fun σ τ₀ => ?_⟩ refine ⟨τ₀, le_refl _, by linarith, ?_⟩ have hnorm_single : ‖topOscSum T_top mult σ t τ₀‖ = (mult ρ_any : ℝ) * ‖ρ_any * (ρ_any - 1)‖ ^ 2 := by unfold topOscSum rw [hsingle, Finset.sum_singleton, norm_mul, Complex.norm_real, Real.norm_of_nonneg (Nat.cast_nonneg _), norm_mul, Complex.norm_exp, norm_unitAmp] have hre0 : (((2 * τ₀ * (ρ_any.im - t) : ℝ) : ℂ) * Complex.I).re = 0 := by rw [Complex.mul_re]; simp rw [hre0, Real.exp_zero, one_mul] rw [hnorm_single] /-- Reflection-invariant sum over `M_set` equals twice the sum over its right half `M_pos = {ρ ∈ M_set | 1/2 < ρ.re}` whenever no element lies on the critical line. -/ lemma sum_reflect_invariant_eq_two_mul_pos (M_set : Finset ℂ) (f : ℂ → ℝ) (href_mem : ∀ ρ ∈ M_set, 1 - starRingEnd ℂ ρ ∈ M_set) (hno_half : ∀ ρ ∈ M_set, ρ.re ≠ 1 / 2) (href_f : ∀ ρ ∈ M_set, f (1 - starRingEnd ℂ ρ) = f ρ) : ∑ ρ ∈ M_set, f ρ = 2 * ∑ ρ ∈ M_set.filter (fun ρ => 1 / 2 < ρ.re), f ρ := by rw [← Finset.sum_filter_add_sum_filter_not M_set (fun ρ => 1 / 2 < ρ.re)] have hneg_eq : ∑ ρ ∈ M_set.filter (fun ρ => ¬ (1 / 2 < ρ.re)), f ρ = ∑ ρ ∈ M_set.filter (fun ρ => 1 / 2 < ρ.re), f ρ := by refine Finset.sum_bij (fun ρ _ => 1 - starRingEnd ℂ ρ) ?_ ?_ ?_ ?_ · intro ρ hρ rw [Finset.mem_filter] at hρ ⊢ refine ⟨href_mem ρ hρ.1, ?_⟩ have hne := hno_half ρ hρ.1 have hlt : ρ.re < 1 / 2 := lt_of_le_of_ne (le_of_not_gt hρ.2) hne simp only [Complex.sub_re, Complex.one_re, Complex.conj_re] linarith · intro ρ₁ _ ρ₂ _ heq change critReflect ρ₁ = critReflect ρ₂ at heq have h := congrArg critReflect heq simpa only [critReflect_involutive] using h · intro ρ hρ rw [Finset.mem_filter] at hρ refine ⟨1 - starRingEnd ℂ ρ, ?_, critReflect_involutive ρ⟩ rw [Finset.mem_filter] refine ⟨href_mem ρ hρ.1, ?_⟩ simp only [Complex.sub_re, Complex.one_re, Complex.conj_re] linarith [hρ.2] · intro ρ hρ exact (href_f ρ (Finset.mem_filter.mp hρ).1).symm linarith /-! ### 7. Direction 2 — `Weil Positivity ⟹ RH` and Bidirectional Weil Equivalence -/ /-- Upper bound on the multiplicity-weighted sub-dominant maximal-exponent set `M_sub` for `0 ≤ τ ≤ τ₀ + Δτ`. -/ lemma sum_normTerm_M_sub_le (M_sub : Finset ℂ) (mult : ℂ → ℕ) {σ t τ₀ Δτ τ θ E_max w_star δ_w : ℝ} (hτ_nn : 0 ≤ τ) (hτ_hi : τ ≤ τ₀ + Δτ) (hw_sub_nn : 0 ≤ w_star - δ_w) (hE : ∀ ρ ∈ M_sub, quadExponent t ρ = E_max) (hgt : ∀ ρ ∈ M_sub, 1 / 2 < ρ.re) (hle : ∀ ρ ∈ M_sub, ρ.re - 1 / 2 ≤ w_star - δ_w) : ∑ ρ ∈ M_sub, (mult ρ : ℝ) * normTerm σ t τ θ E_max ρ ≤ (4 * ∑ ρ ∈ M_sub, (mult ρ : ℝ) * ‖ρ * (ρ - 1)‖ ^ 2) * Real.exp (2 * Δτ * (w_star - δ_w)) * Real.exp (2 * τ₀ * (w_star - δ_w)) := by have hpt : ∀ ρ ∈ M_sub, (mult ρ : ℝ) * normTerm σ t τ θ E_max ρ ≤ (4 * Real.exp (2 * (τ₀ + Δτ) * (w_star - δ_w))) * ((mult ρ : ℝ) * ‖ρ * (ρ - 1)‖ ^ 2) := by intro ρ hρ have hcore : normTerm σ t τ θ E_max ρ ≤ 4 * Real.exp (2 * (τ₀ + Δτ) * (w_star - δ_w)) * ‖ρ * (ρ - 1)‖ ^ 2 := by unfold normTerm rw [hE ρ hρ, sub_self, mul_zero, Real.exp_zero, one_mul] have hs1 := norm_shiftProd_le_exp_two (θ := θ) (t := t) hτ_nn (le_of_lt (hgt ρ hρ)) have hexp_le : Real.exp (2 * τ * (ρ.re - 1 / 2)) ≤ Real.exp (2 * (τ₀ + Δτ) * (w_star - δ_w)) := by apply Real.exp_le_exp.mpr have hre_le := hle ρ hρ have h1 : 2 * τ * (ρ.re - 1 / 2) ≤ 2 * τ * (w_star - δ_w) := by nlinarith have h2 : 2 * τ * (w_star - δ_w) ≤ 2 * (τ₀ + Δτ) * (w_star - δ_w) := by nlinarith linarith have hs2 : ‖shiftProd τ θ t ρ‖ ≤ 4 * Real.exp (2 * (τ₀ + Δτ) * (w_star - δ_w)) := le_trans hs1 (mul_le_mul_of_nonneg_left hexp_le (by norm_num)) calc (shiftProd τ θ t ρ * unitAmp σ t ρ).re ≤ ‖shiftProd τ θ t ρ * unitAmp σ t ρ‖ := Complex.re_le_norm _ _ = ‖shiftProd τ θ t ρ‖ * ‖unitAmp σ t ρ‖ := norm_mul _ _ _ = ‖shiftProd τ θ t ρ‖ * ‖ρ * (ρ - 1)‖ ^ 2 := by rw [norm_unitAmp] _ ≤ 4 * Real.exp (2 * (τ₀ + Δτ) * (w_star - δ_w)) * ‖ρ * (ρ - 1)‖ ^ 2 := mul_le_mul_of_nonneg_right hs2 (sq_nonneg _) have hmul := mul_le_mul_of_nonneg_left hcore (Nat.cast_nonneg (mult ρ)) linarith have hsum := Finset.sum_le_sum hpt rw [← Finset.mul_sum] at hsum have hexp_split : Real.exp (2 * (τ₀ + Δτ) * (w_star - δ_w)) = Real.exp (2 * Δτ * (w_star - δ_w)) * Real.exp (2 * τ₀ * (w_star - δ_w)) := by rw [← Real.exp_add]; congr 1; ring rw [hexp_split] at hsum linarith /-- Upper bound on the multiplicity-weighted finite non-maximal box remainder `B_rest` for `0 ≤ τ ≤ τ_max`. -/ lemma sum_normTerm_B_rest_le (B_rest : Finset ℂ) (mult : ℂ → ℕ) {σ t τ τ_max θ E_max η' : ℝ} (hτ_nn : 0 ≤ τ) (hτ_hi : τ ≤ τ_max) (hstrip : ∀ ρ ∈ B_rest, 0 < ρ.re ∧ ρ.re < 1) (hgap : ∀ ρ ∈ B_rest, quadExponent t ρ ≤ E_max - η') : ∑ ρ ∈ B_rest, (mult ρ : ℝ) * normTerm σ t τ θ E_max ρ ≤ (4 * Real.exp τ_max * ∑ ρ ∈ B_rest, (mult ρ : ℝ) * ‖ρ * (ρ - 1)‖ ^ 2) * Real.exp (-η' * σ ^ 2) := by have hpt : ∀ ρ ∈ B_rest, (mult ρ : ℝ) * normTerm σ t τ θ E_max ρ ≤ (4 * Real.exp τ_max * Real.exp (-η' * σ ^ 2)) * ((mult ρ : ℝ) * ‖ρ * (ρ - 1)‖ ^ 2) := by intro ρ hρ obtain ⟨h0, h1⟩ := hstrip ρ hρ have hq := hgap ρ hρ have hcore : normTerm σ t τ θ E_max ρ ≤ (4 * Real.exp τ_max * Real.exp (-η' * σ ^ 2)) * ‖ρ * (ρ - 1)‖ ^ 2 := by unfold normTerm have hs : ‖shiftProd τ θ t ρ‖ ≤ 4 * Real.exp τ_max := by have h := norm_shiftProd_le_strip (τ := τ) (θ := θ) (t := t) (le_of_lt h0) (le_of_lt h1) rw [abs_of_nonneg hτ_nn] at h exact le_trans h (mul_le_mul_of_nonneg_left (Real.exp_le_exp.mpr hτ_hi) (by norm_num)) have hexp : Real.exp (σ ^ 2 * (quadExponent t ρ - E_max)) ≤ Real.exp (-η' * σ ^ 2) := by apply Real.exp_le_exp.mpr nlinarith [sq_nonneg σ] have hre_le : (shiftProd τ θ t ρ * unitAmp σ t ρ).re ≤ 4 * Real.exp τ_max * ‖ρ * (ρ - 1)‖ ^ 2 := by calc (shiftProd τ θ t ρ * unitAmp σ t ρ).re ≤ ‖shiftProd τ θ t ρ * unitAmp σ t ρ‖ := Complex.re_le_norm _ _ = ‖shiftProd τ θ t ρ‖ * ‖unitAmp σ t ρ‖ := norm_mul _ _ _ = ‖shiftProd τ θ t ρ‖ * ‖ρ * (ρ - 1)‖ ^ 2 := by rw [norm_unitAmp] _ ≤ 4 * Real.exp τ_max * ‖ρ * (ρ - 1)‖ ^ 2 := mul_le_mul_of_nonneg_right hs (sq_nonneg _) have h1' := mul_le_mul_of_nonneg_left hre_le (le_of_lt (Real.exp_pos (σ ^ 2 * (quadExponent t ρ - E_max)))) have h2' := mul_le_mul_of_nonneg_right hexp (show 0 ≤ 4 * Real.exp τ_max * ‖ρ * (ρ - 1)‖ ^ 2 by positivity) linarith have hmul := mul_le_mul_of_nonneg_left hcore (Nat.cast_nonneg (mult ρ)) linarith have hsum := Finset.sum_le_sum hpt rw [← Finset.mul_sum] at hsum linarith /-- **Direction 2 (Contrapositive Negative-Value Witness, Arbitrary Multiplicities)**: If a critical-strip zero spectrum `Z : ZeroSpectrum` has ANY zero off the critical line (`¬ RH_holds Z.shells`), then there exist explicit parameters `(σ, t, τ, θ)` with `σ > 0` such that the shifted phase-rotated Gaussian wave packet yields a **strictly negative** multiplicity-weighted spectral sum. -/ theorem exists_negative_shiftedGaussian_of_not_RH (Z : ZeroSpectrum) (hnot : ¬ RH_holds Z.shells) : ∃ (σ : ℝ), 0 < σ ∧ ∃ (t τ θ : ℝ), ∑' k : ℕ, ∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * (weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ).re < 0 := by unfold RH_holds at hnot push Not at hnot obtain ⟨k₀, ρ₀, hρ₀_mem, hρ₀_ne⟩ := hnot set t : ℝ := ρ₀.im let K₀ : ℕ := max (k₀ + 1) (Nat.ceil |t| + 2) have hk₀_lt : k₀ < K₀ := lt_of_lt_of_le (Nat.lt_succ_self k₀) (le_max_left _ _) have hK : |t| + 2 ≤ (K₀ : ℝ) := by have h1 : Nat.ceil |t| + 2 ≤ K₀ := le_max_right _ _ have h2 : ((Nat.ceil |t| + 2 : ℕ) : ℝ) ≤ (K₀ : ℝ) := by exact_mod_cast h1 push_cast at h2 linarith [Nat.le_ceil |t|] -- Finite box `B` of all zeros in shells `k < K₀`. let B : Finset ℂ := (Finset.range K₀).biUnion Z.shells have hρ₀_B : ρ₀ ∈ B := Finset.mem_biUnion.mpr ⟨k₀, Finset.mem_range.mpr hk₀_lt, hρ₀_mem⟩ have hB_ne : B.Nonempty := ⟨ρ₀, hρ₀_B⟩ have hB_strip : ∀ ρ ∈ B, 0 < ρ.re ∧ ρ.re < 1 := by intro ρ hρ obtain ⟨k, _, hk⟩ := Finset.mem_biUnion.mp hρ exact Z.strip k ρ hk have hB_mult_pos : ∀ ρ ∈ B, 1 ≤ Z.mult ρ := by intro ρ hρ obtain ⟨k, _, hk⟩ := Finset.mem_biUnion.mp hρ exact Z.mult_pos k ρ hk have hB_mult_reflect : ∀ ρ ∈ B, Z.mult (1 - starRingEnd ℂ ρ) = Z.mult ρ := by intro ρ hρ obtain ⟨k, _, hk⟩ := Finset.mem_biUnion.mp hρ exact Z.mult_reflect k ρ hk have hB_reflect : ∀ ρ ∈ B, 1 - starRingEnd ℂ ρ ∈ B := by intro ρ hρ obtain ⟨k, hk_r, hk⟩ := Finset.mem_biUnion.mp hρ exact Finset.mem_biUnion.mpr ⟨k, hk_r, Z.reflect_mem k ρ hk⟩ -- Maximize `quadExponent t` over the finite box `B`. obtain ⟨ρ_max, hρ_max_B, hρ_max_ge⟩ := B.exists_max_image (quadExponent t) hB_ne set E_max : ℝ := quadExponent t ρ_max have hE_pos : 0 < E_max := by have h0 : 0 < quadExponent t ρ₀ := by unfold quadExponent have him0 : ρ₀.im - t = 0 := sub_self _ rw [him0, zero_pow two_ne_zero, sub_zero] exact sq_pos_of_ne_zero (sub_ne_zero.mpr hρ₀_ne) exact lt_of_lt_of_le h0 (hρ_max_ge ρ₀ hρ₀_B) -- Partition `B = M_set ∪ B_rest` by whether `quadExponent t ρ = E_max`. let M_set : Finset ℂ := B.filter (fun ρ => quadExponent t ρ = E_max) let B_rest : Finset ℂ := B.filter (fun ρ => quadExponent t ρ ≠ E_max) have hM_ne : M_set.Nonempty := ⟨ρ_max, Finset.mem_filter.mpr ⟨hρ_max_B, rfl⟩⟩ have hM_reflect : ∀ ρ ∈ M_set, 1 - starRingEnd ℂ ρ ∈ M_set := by intro ρ hρ rw [Finset.mem_filter] at hρ ⊢ exact ⟨hB_reflect ρ hρ.1, by rw [quadExponent_reflect, hρ.2]⟩ have hM_no_half : ∀ ρ ∈ M_set, ρ.re ≠ 1 / 2 := by intro ρ hρ hhalf rw [Finset.mem_filter] at hρ have hq := hρ.2 unfold quadExponent at hq rw [hhalf, sub_self, zero_pow two_ne_zero, zero_sub] at hq have hsq_nn : 0 ≤ (ρ.im - t) ^ 2 := sq_nonneg _ linarith -- Uniform exponent gap `η > 0` on `B_rest`. have hη_exists : ∃ η : ℝ, 0 < η ∧ ∀ ρ ∈ B_rest, quadExponent t ρ ≤ E_max - η := by by_cases hne : B_rest.Nonempty · obtain ⟨ρ_r, hρ_r_mem, hρ_r_ge⟩ := B_rest.exists_max_image (quadExponent t) hne have hρ_r_B : ρ_r ∈ B := (Finset.mem_filter.mp hρ_r_mem).1 have hρ_r_ne : quadExponent t ρ_r ≠ E_max := (Finset.mem_filter.mp hρ_r_mem).2 have hρ_r_lt : quadExponent t ρ_r < E_max := lt_of_le_of_ne (hρ_max_ge ρ_r hρ_r_B) hρ_r_ne refine ⟨E_max - quadExponent t ρ_r, by linarith, fun ρ hρ => ?_⟩ linarith [hρ_r_ge ρ hρ] · rw [Finset.not_nonempty_iff_eq_empty] at hne exact ⟨1, zero_lt_one, fun ρ hρ => by rw [hne] at hρ; exact absurd hρ (Finset.notMem_empty _)⟩ obtain ⟨η, hη_pos, hη_bound⟩ := hη_exists -- Right half `M_pos = {ρ ∈ M_set | 1/2 < ρ.re}`, and maximize `ρ.re - 1/2` on `M_pos`. let M_pos : Finset ℂ := M_set.filter (fun ρ => 1 / 2 < ρ.re) have hMpos_ne : M_pos.Nonempty := by obtain ⟨ρ, hρ⟩ := hM_ne by_cases hgt : 1 / 2 < ρ.re · exact ⟨ρ, Finset.mem_filter.mpr ⟨hρ, hgt⟩⟩ · refine ⟨1 - starRingEnd ℂ ρ, Finset.mem_filter.mpr ⟨hM_reflect ρ hρ, ?_⟩⟩ have hlt : ρ.re < 1 / 2 := lt_of_le_of_ne (le_of_not_gt hgt) (hM_no_half ρ hρ) simp only [Complex.sub_re, Complex.one_re, Complex.conj_re] linarith obtain ⟨ρ_top, hρ_top_mem, hρ_top_ge⟩ := M_pos.exists_max_image (fun ρ => ρ.re - 1 / 2) hMpos_ne set w_star : ℝ := ρ_top.re - 1 / 2 have hw_pos : 0 < w_star := by have hgt := (Finset.mem_filter.mp hρ_top_mem).2 dsimp only [w_star]; linarith -- Partition `M_pos = T_top ∪ M_sub` by whether `ρ.re - 1/2 = w_star`. let T_top : Finset ℂ := M_pos.filter (fun ρ => ρ.re - 1 / 2 = w_star) let M_sub : Finset ℂ := M_pos.filter (fun ρ => ρ.re - 1 / 2 ≠ w_star) have hT_ne : T_top.Nonempty := ⟨ρ_top, Finset.mem_filter.mpr ⟨hρ_top_mem, rfl⟩⟩ have hT_B : ∀ ρ ∈ T_top, ρ ∈ B := fun ρ hρ => (Finset.mem_filter.mp (Finset.mem_filter.mp (Finset.mem_filter.mp hρ).1).1).1 have hT_strip : ∀ ρ ∈ T_top, 0 < ρ.re ∧ ρ.re < 1 := fun ρ hρ => hB_strip ρ (hT_B ρ hρ) have hT_mult : ∀ ρ ∈ T_top, 1 ≤ Z.mult ρ := fun ρ hρ => hB_mult_pos ρ (hT_B ρ hρ) have hT_E : ∀ ρ ∈ T_top, quadExponent t ρ = E_max := fun ρ hρ => (Finset.mem_filter.mp (Finset.mem_filter.mp (Finset.mem_filter.mp hρ).1).1).2 have hT_re : ∀ ρ ∈ T_top, ρ.re - 1 / 2 = w_star := fun ρ hρ => (Finset.mem_filter.mp hρ).2 -- Uniform real-part gap `δ_w > 0` on `M_sub` with `0 ≤ w_star - δ_w`. have hδw_exists : ∃ δ_w : ℝ, 0 < δ_w ∧ 0 ≤ w_star - δ_w ∧ ∀ ρ ∈ M_sub, ρ.re - 1 / 2 ≤ w_star - δ_w := by by_cases hne : M_sub.Nonempty · obtain ⟨ρ_s, hρ_s_mem, hρ_s_ge⟩ := M_sub.exists_max_image (fun ρ => ρ.re - 1 / 2) hne have hρ_s_pos : ρ_s ∈ M_pos := (Finset.mem_filter.mp hρ_s_mem).1 have hρ_s_ne : ρ_s.re - 1 / 2 ≠ w_star := (Finset.mem_filter.mp hρ_s_mem).2 have hρ_s_lt : ρ_s.re - 1 / 2 < w_star := lt_of_le_of_ne (hρ_top_ge ρ_s hρ_s_pos) hρ_s_ne have hρ_s_gt : 0 < ρ_s.re - 1 / 2 := by have := (Finset.mem_filter.mp hρ_s_pos).2; linarith refine ⟨w_star - (ρ_s.re - 1 / 2), by linarith, by linarith, fun ρ hρ => ?_⟩ linarith [hρ_s_ge ρ hρ] · rw [Finset.not_nonempty_iff_eq_empty] at hne exact ⟨w_star / 2, by linarith, by linarith, fun ρ hρ => by rw [hne] at hρ; exact absurd hρ (Finset.notMem_empty _)⟩ obtain ⟨δ_w, hδw_pos, hw_sub_nn, hδw_bound⟩ := hδw_exists -- Step 1: Uniform non-cancellation lower bound on `T_top`, independent of `(σ, τ₀)`. obtain ⟨A_min, Δτ, hA_pos, hΔ_nn, htop_osc⟩ := exists_topOscSum_lower_bound T_top Z.mult hT_ne hT_mult hT_strip hT_E hT_re -- Step 2: Choose `τ₀ ≥ 0` (independent of `σ`!) so `T_top` strictly dominates `M_sub` and `O(1)`. set C_top : ℝ := 3 * ∑ ρ ∈ T_top, (Z.mult ρ : ℝ) * ‖ρ * (ρ - 1)‖ ^ 2 set C_sub : ℝ := 4 * ∑ ρ ∈ M_sub, (Z.mult ρ : ℝ) * ‖ρ * (ρ - 1)‖ ^ 2 have hCtop_nn : 0 ≤ C_top := mul_nonneg (by norm_num) (Finset.sum_nonneg (fun _ _ => mul_nonneg (Nat.cast_nonneg _) (sq_nonneg _))) have hCsub_nn : 0 ≤ C_sub := mul_nonneg (by norm_num) (Finset.sum_nonneg (fun _ _ => mul_nonneg (Nat.cast_nonneg _) (sq_nonneg _))) obtain ⟨τ₁, hτ₁_nn, hτ₁_le⟩ := exists_nonneg_exp_neg_mul_le hCtop_nn (show 0 < 2 * w_star by linarith) (show 0 < A_min / 4 by linarith) obtain ⟨τ₂, hτ₂_nn, hτ₂_le⟩ := exists_nonneg_exp_neg_mul_le (show 0 ≤ C_sub * Real.exp (2 * Δτ * (w_star - δ_w)) by positivity) (show 0 < 2 * δ_w by linarith) (show 0 < A_min / 4 by linarith) set τ₀ : ℝ := max τ₁ τ₂ have hτ₀_nn : 0 ≤ τ₀ := le_trans hτ₁_nn (le_max_left _ _) set τ_max : ℝ := τ₀ + Δτ -- Step 3: For fixed `τ_max`, bound `B_rest` + infinite tail for `σ ≥ 1`, then choose `σ ≥ 1`. obtain ⟨C_tail, hCtail_nn, htail_bound⟩ := tail_normTerm_le_exp_neg_three_sq Z (K₀ := K₀) (t := t) (τ_max := τ_max) (E_max := E_max) hK hE_pos set C_rest : ℝ := 4 * Real.exp τ_max * ∑ ρ ∈ B_rest, (Z.mult ρ : ℝ) * ‖ρ * (ρ - 1)‖ ^ 2 have hCrest_nn : 0 ≤ C_rest := mul_nonneg (by positivity) (Finset.sum_nonneg (fun _ _ => mul_nonneg (Nat.cast_nonneg _) (sq_nonneg _))) set η' : ℝ := min η 3 have hη'_pos : 0 < η' := lt_min hη_pos (by norm_num) obtain ⟨s_val, hs_nn, hs_le⟩ := exists_nonneg_exp_neg_mul_le (add_nonneg hCrest_nn hCtail_nn) hη'_pos (show 0 < A_min / 2 by linarith) set σ : ℝ := max 1 (Real.sqrt s_val) have hσ1 : 1 ≤ σ := le_max_left _ _ have hσ_pos : 0 < σ := by linarith have hσ_sq_ge : s_val ≤ σ ^ 2 := by have h1 : Real.sqrt s_val ≤ σ := le_max_right _ _ have h2 : (Real.sqrt s_val) ^ 2 ≤ σ ^ 2 := pow_le_pow_left₀ (Real.sqrt_nonneg _) h1 2 rwa [Real.sq_sqrt hs_nn] at h2 -- Step 4: For this fixed `σ`, choose `τ ∈ [τ₀, τ_max]` via the parallelogram law, then align `θ`. obtain ⟨τ, hτ_lo, hτ_hi, htop_norm⟩ := htop_osc σ τ₀ have hτ_nn : 0 ≤ τ := le_trans hτ₀_nn hτ_lo obtain ⟨θ, hθ_align⟩ := exists_phase_re_eq_neg_norm (topOscSum T_top Z.mult σ t τ) refine ⟨σ, hσ_pos, t, τ, θ, ?_⟩ -- Pull out the positive scale `2 π σ² exp(σ² E_max)` and prove the normalized sum is `< 0`. set scale : ℝ := 2 * Real.pi * σ ^ 2 * Real.exp (σ ^ 2 * E_max) have hscale_pos : 0 < scale := by have := Real.pi_pos; positivity have hscale_tsum : ∑' k : ℕ, ∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * (weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ).re = scale * ∑' k : ℕ, ∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ := by rw [← tsum_mul_left] congr 1; ext k rw [Finset.mul_sum] refine Finset.sum_congr rfl (fun ρ _ => ?_) rw [re_weilSpectralTerm_shifted_eq σ t τ θ E_max ρ]; ring rw [hscale_tsum] refine mul_neg_of_pos_of_neg hscale_pos ?_ -- Split `∑' k` into the finite box `B` (`k < K₀`) plus the infinite tail (`k ≥ K₀`). have hsum_norm := summable_normTerm_shells Z hσ_pos t τ θ E_max rw [← hsum_norm.sum_add_tsum_nat_add K₀] have hbox_eq : ∑ k ∈ Finset.range K₀, ∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ = ∑ ρ ∈ B, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ := by symm exact Finset.sum_biUnion (fun k₁ _ k₂ _ hne => Z.shells_pairwiseDisjoint (Set.mem_univ k₁) (Set.mem_univ k₂) hne) rw [hbox_eq] -- Split `B = M_set ∪ B_rest`. have hB_split : ∑ ρ ∈ B, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ = (∑ ρ ∈ M_set, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ) + ∑ ρ ∈ B_rest, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ := (Finset.sum_filter_add_sum_filter_not B (fun ρ => quadExponent t ρ = E_max) _).symm rw [hB_split] -- Estimate 1: `∑ ρ ∈ M_set, (Z.mult ρ) * normTerm ≤ -A_min`. have hM_le : ∑ ρ ∈ M_set, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ ≤ -A_min := by rw [sum_reflect_invariant_eq_two_mul_pos M_set (fun ρ => (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ) hM_reflect hM_no_half (fun ρ hρ => by rw [hB_mult_reflect ρ (Finset.mem_filter.mp hρ).1, normTerm_reflect hσ_pos t τ θ E_max ρ])] have hMpos_split : ∑ ρ ∈ M_pos, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ = (∑ ρ ∈ T_top, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ) + ∑ ρ ∈ M_sub, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ := (Finset.sum_filter_add_sum_filter_not M_pos (fun ρ => ρ.re - 1 / 2 = w_star) _).symm rw [hMpos_split] have htop_le : ∑ ρ ∈ T_top, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ ≤ -A_min * Real.exp (2 * τ₀ * w_star) + C_top := by have h1 := sum_normTerm_top_le T_top Z.mult (σ := σ) (t := t) (θ := θ) (E_max := E_max) hτ_nn hw_pos hT_E hT_re rw [hθ_align] at h1 have h2 : Real.exp (2 * τ₀ * w_star) ≤ Real.exp (2 * τ * w_star) := Real.exp_le_exp.mpr (by nlinarith only [hτ_lo, hw_pos]) have h3 : A_min * Real.exp (2 * τ₀ * w_star) ≤ ‖topOscSum T_top Z.mult σ t τ‖ * Real.exp (2 * τ * w_star) := mul_le_mul htop_norm h2 (le_of_lt (Real.exp_pos _)) (norm_nonneg _) dsimp only [C_top] linarith only [h1, h3] have hsub_le : ∑ ρ ∈ M_sub, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ ≤ C_sub * Real.exp (2 * Δτ * (w_star - δ_w)) * Real.exp (2 * τ₀ * (w_star - δ_w)) := by exact sum_normTerm_M_sub_le M_sub Z.mult hτ_nn hτ_hi hw_sub_nn (fun ρ hρ => (Finset.mem_filter.mp (Finset.mem_filter.mp (Finset.mem_filter.mp hρ).1).1).2) (fun ρ hρ => (Finset.mem_filter.mp (Finset.mem_filter.mp hρ).1).2) hδw_bound have hCtop_scaled : C_top ≤ (A_min / 4) * Real.exp (2 * τ₀ * w_star) := by have h1 : Real.exp (-(2 * w_star) * τ₀) ≤ Real.exp (-(2 * w_star) * τ₁) := Real.exp_le_exp.mpr (by have hle : τ₁ ≤ τ₀ := le_max_left τ₁ τ₂ nlinarith only [hle, hw_pos]) have h2 : C_top * Real.exp (-(2 * w_star) * τ₀) ≤ A_min / 4 := le_trans (mul_le_mul_of_nonneg_left h1 hCtop_nn) hτ₁_le have h3 := mul_le_mul_of_nonneg_right h2 (le_of_lt (Real.exp_pos (2 * τ₀ * w_star))) have hcancel : C_top * Real.exp (-(2 * w_star) * τ₀) * Real.exp (2 * τ₀ * w_star) = C_top := by rw [mul_assoc, ← Real.exp_add] have : -(2 * w_star) * τ₀ + 2 * τ₀ * w_star = 0 := by ring rw [this, Real.exp_zero, mul_one] rwa [hcancel] at h3 have hCsub_scaled : C_sub * Real.exp (2 * Δτ * (w_star - δ_w)) * Real.exp (2 * τ₀ * (w_star - δ_w)) ≤ (A_min / 4) * Real.exp (2 * τ₀ * w_star) := by have h1 : Real.exp (-(2 * δ_w) * τ₀) ≤ Real.exp (-(2 * δ_w) * τ₂) := Real.exp_le_exp.mpr (by have hle : τ₂ ≤ τ₀ := le_max_right τ₁ τ₂ nlinarith only [hle, hδw_pos]) have h2 : C_sub * Real.exp (2 * Δτ * (w_star - δ_w)) * Real.exp (-(2 * δ_w) * τ₀) ≤ A_min / 4 := le_trans (mul_le_mul_of_nonneg_left h1 (mul_nonneg hCsub_nn (le_of_lt (Real.exp_pos _)))) hτ₂_le have h3 := mul_le_mul_of_nonneg_right h2 (le_of_lt (Real.exp_pos (2 * τ₀ * w_star))) have hcombine : Real.exp (-(2 * δ_w) * τ₀) * Real.exp (2 * τ₀ * w_star) = Real.exp (2 * τ₀ * (w_star - δ_w)) := by rw [← Real.exp_add]; congr 1; ring have hrew : C_sub * Real.exp (2 * Δτ * (w_star - δ_w)) * Real.exp (-(2 * δ_w) * τ₀) * Real.exp (2 * τ₀ * w_star) = C_sub * Real.exp (2 * Δτ * (w_star - δ_w)) * Real.exp (2 * τ₀ * (w_star - δ_w)) := by rw [mul_assoc, hcombine] rwa [hrew] at h3 have hexp_ge1 : 1 ≤ Real.exp (2 * τ₀ * w_star) := Real.one_le_exp (mul_nonneg (mul_nonneg (by norm_num) hτ₀_nn) (le_of_lt hw_pos)) have hsum_pos : (∑ ρ ∈ T_top, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ) + (∑ ρ ∈ M_sub, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ) ≤ -(A_min / 2) * Real.exp (2 * τ₀ * w_star) := by linarith only [htop_le, hsub_le, hCtop_scaled, hCsub_scaled] nlinarith only [hsum_pos, hexp_ge1, hA_pos] -- Estimate 2: `∑ ρ ∈ B_rest, (Z.mult ρ) * normTerm ≤ C_rest * exp(-η' * σ²)`. have hBrest_le : ∑ ρ ∈ B_rest, (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ ≤ C_rest * Real.exp (-η' * σ ^ 2) := by exact sum_normTerm_B_rest_le B_rest Z.mult hτ_nn hτ_hi (fun ρ hρ => hB_strip ρ (Finset.mem_filter.mp hρ).1) (fun ρ hρ => by have hq := hη_bound ρ hρ have hη'_le : η' ≤ η := min_le_left _ _ linarith only [hq, hη'_le]) -- Estimate 3: infinite tail `≤ C_tail * exp(-η' * σ²)`. have htail_le : (∑' m : ℕ, ∑ ρ ∈ Z.shells (m + K₀), (Z.mult ρ : ℝ) * normTerm σ t τ θ E_max ρ) ≤ C_tail * Real.exp (-η' * σ ^ 2) := by have h1 := htail_bound (θ := θ) hσ1 hτ_nn hτ_hi have h2 : Real.exp (-3 * σ ^ 2) ≤ Real.exp (-η' * σ ^ 2) := by apply Real.exp_le_exp.mpr have hη'_le3 : η' ≤ 3 := min_le_right _ _ nlinarith only [hη'_le3, sq_nonneg σ] exact le_trans h1 (mul_le_mul_of_nonneg_left h2 hCtail_nn) -- Combine Estimates 1, 2, 3! have hcomb : (C_rest + C_tail) * Real.exp (-η' * σ ^ 2) ≤ A_min / 2 := by have h1 : Real.exp (-η' * σ ^ 2) ≤ Real.exp (-η' * s_val) := Real.exp_le_exp.mpr (by nlinarith only [hη'_pos, hσ_sq_ge]) exact le_trans (mul_le_mul_of_nonneg_left h1 (add_nonneg hCrest_nn hCtail_nn)) hs_le linarith only [hM_le, hBrest_le, htail_le, hcomb, hA_pos] /-- **Direction 2 (`Weil Positivity ⟹ RH`, Arbitrary Multiplicities)**: if the multiplicity-weighted shifted Gaussian spectral form is nonnegative for all `σ > 0` and `t, τ, θ : ℝ`, then `RH_holds Z.shells`. -/ theorem RH_of_shiftedGaussian_nonneg (Z : ZeroSpectrum) (hpos : ∀ (σ : ℝ), 0 < σ → ∀ (t τ θ : ℝ), 0 ≤ ∑' k : ℕ, ∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * (weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ).re) : RH_holds Z.shells := by by_contra hnot obtain ⟨σ, hσ, t, τ, θ, hneg⟩ := exists_negative_shiftedGaussian_of_not_RH Z hnot linarith [hpos σ hσ t τ θ] /-- **Classical Weil Equivalence on Multiplicity-Weighted Critical-Strip Zero Spectra (`RH ↔ Q ≥ 0`)**: For any critical-strip zero spectrum `Z : ZeroSpectrum` (with arbitrary positive reflection-invariant multiplicities `Z.mult`), the Riemann Hypothesis (`∀ k, ∀ ρ ∈ Z.shells k, ρ.re = 1 / 2`) holds if and only if the spectral Weil form is nonnegative on the globally balanced Schwartz-class family of shifted phase-rotated Gaussian wave packets `shiftedGaussianTransform σ t τ θ`. -/ theorem weil_equivalence_gaussian_spectrum (Z : ZeroSpectrum) : RH_holds Z.shells ↔ ∀ (σ : ℝ), 0 < σ → ∀ (t τ θ : ℝ), 0 ≤ ∑' k : ℕ, ∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * (weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ).re := ⟨fun hRH σ _ t τ θ => spectral_form_nonneg_of_RH Z.shells Z.mult (shiftedGaussianTransform σ t τ θ) hRH, RH_of_shiftedGaussian_nonneg Z⟩ /-- **Weil Equivalence with Explicit-Formula Bridge**: Given any quadratic functional `Q_G : (ℂ → ℂ) → ℝ` matching the multiplicity-weighted spectral zero sum on the shifted Gaussian wave-packet family (Weil explicit formula), `RH_holds Z.shells` is equivalent to positivity `0 ≤ Q_G (shiftedGaussianTransform σ t τ θ)` for all `σ > 0` and `t, τ, θ : ℝ`. -/ theorem weil_equivalence_with_explicit_formula (Z : ZeroSpectrum) (Q_G : (ℂ → ℂ) → ℝ) (hexplicit : ∀ (σ : ℝ), 0 < σ → ∀ (t τ θ : ℝ), Q_G (shiftedGaussianTransform σ t τ θ) = ∑' k : ℕ, ∑ ρ ∈ Z.shells k, (Z.mult ρ : ℝ) * (weilSpectralTerm (shiftedGaussianTransform σ t τ θ) ρ).re) : RH_holds Z.shells ↔ ∀ (σ : ℝ), 0 < σ → ∀ (t τ θ : ℝ), 0 ≤ Q_G (shiftedGaussianTransform σ t τ θ) := by rw [weil_equivalence_gaussian_spectrum Z] constructor · intro h σ hσ t τ θ rw [hexplicit σ hσ t τ θ] exact h σ hσ t τ θ · intro h σ hσ t τ θ rw [← hexplicit σ hσ t τ θ] exact h σ hσ t τ θ end F04Riemann