Exact Lean source
Nonadditivity.HaarMomentTail
Download original .lean · View on GitHub · Jump to source
Direct imports
Nonadditivity.HaarModelMathlib.MeasureTheory.Integral.Lebesgue.MarkovdependencyMathlib.Analysis.CStarAlgebra.Spectrumdependency
Imported by project modules
Relationships above come from literal import commands. The declarations below link to types and references extracted from Lean’s environment. Source text is complete and unchanged.
Declarations in this module
15 project constants, including generated, internal and private declarations.
15 declarations
Nonadditivity.HaarMomentTail.canonical_upper_tail_of_trace_momentsNonadditivity.HaarMomentTail.measure_norm_ge_le_normalized_trace_momentNonadditivity.HaarMomentTail.measure_norm_ge_le_normalized_trace_moment._simp_1_1internal/detail/privateNonadditivity.HaarMomentTail.measure_norm_ge_le_normalized_trace_moment._simp_1_2internal/detail/privateNonadditivity.HaarMomentTail.measure_norm_ge_le_normalized_trace_moment._simp_1_3internal/detail/privateNonadditivity.HaarMomentTail.measure_norm_ge_le_normalized_trace_moment._simp_1_4internal/detail/privateNonadditivity.HaarMomentTail.measure_norm_ge_le_normalized_trace_moment._simp_1_5internal/detail/privateNonadditivity.HaarMomentTail.measure_norm_ge_le_normalized_trace_moment._simp_1_6internal/detail/privateNonadditivity.HaarMomentTail.measure_norm_ge_le_normalized_trace_moment._simp_1_7internal/detail/privateNonadditivity.HaarMomentTail.measure_norm_ge_le_trace_momentNonadditivity.HaarMomentTail.norm_pow_le_trace_evenNonadditivity.HaarMomentTail.trace_even_nonnegNonadditivity.HaarMomentTail.trace_pow_re_eq_sumNonadditivity.HaarMomentTail.trace_pow_re_eq_sum._simp_1_1internal/detail/privateNonadditivity.HaarMomentTail.upper_tail_tendsto_zero_of_trace_moments
Full module
1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarModel7import Mathlib.MeasureTheory.Integral.Lebesgue.Markov8import Mathlib.Analysis.CStarAlgebra.Spectrum910/-! # Actual trace moments control operator-norm upper tails1112The matrix norm throughout is the Euclidean operator norm. The moment is13the literal (unnormalized) matrix trace. These results prove the elementary14last step of the high-moment method; they do not supply the Haar high-moment15estimate, which remains the random-matrix input.16-/1718noncomputable section1920namespace Nonadditivity.HaarMomentTail2122open MeasureTheory Filter23open scoped Matrix Matrix.Norms.L2Operator Topology ENNReal2425set_option backward.isDefEq.respectTransparency false2627variable {ι : Type*} [Fintype ι] [DecidableEq ι]2829/-- The trace of any power, computed using the actual Hermitian spectral theorem. -/30theorem trace_pow_re_eq_sum (A : Matrix ι ι ℂ) (hA : A.IsHermitian) (q : ℕ) :31(A ^ q).trace.re = ∑ i, hA.eigenvalues i ^ q := by32let U := hA.eigenvectorUnitary33let D := Matrix.diagonal (fun i => (hA.eigenvalues i : ℂ))34have hs : A = Unitary.conjStarAlgAut ℂ _ U D := hA.spectral_theorem35have ht : (A ^ q).trace = (D ^ q).trace := by36rw [hs, ← map_pow, Unitary.conjStarAlgAut_apply, Matrix.trace_mul_cycle,37Unitary.coe_star_mul_self, Matrix.one_mul]38rw [ht]39simp [D, Matrix.diagonal_pow, Matrix.trace_diagonal, ← Complex.ofReal_pow]4041/-- An even trace moment dominates the corresponding power of the actual42operator norm, without a dimension factor for the unnormalized trace. -/43theorem norm_pow_le_trace_even [Nonempty ι] (A : Matrix ι ι ℂ)44(hA : A.IsHermitian) (p : ℕ) :45‖A‖ ^ (2 * p) ≤ (A ^ (2 * p)).trace.re := by46classical47letI : CStarAlgebra (Matrix ι ι ℂ) := { }48let f : ι → ℂ := fun i => (hA.eigenvalues i : ℂ)49have hn : ‖A‖ = ‖f‖ := by50conv_lhs => rw [hA.spectral_theorem]51rw [StarAlgEquiv.norm_map, Matrix.l2_opNorm_diagonal]52rfl53obtain ⟨i, _, hi⟩ := Finset.exists_max_image Finset.univ (fun i => ‖f i‖)54Finset.univ_nonempty55have hm : ‖f‖ = ‖f i‖ := le_antisymm56((pi_norm_le_iff_of_nonneg (norm_nonneg _)).mpr (fun j => hi j (Finset.mem_univ _)))57(norm_le_pi_norm f i)58rw [hn, hm, trace_pow_re_eq_sum A hA]59have he : ‖f i‖ ^ (2 * p) = hA.eigenvalues i ^ (2 * p) := by60simp only [f, Complex.norm_real, Real.norm_eq_abs, pow_mul, sq_abs]61rw [he]62exact Finset.single_le_sum (f := fun j => hA.eigenvalues j ^ (2 * p))63(fun j _ => by dsimp; rw [pow_mul]; positivity) (Finset.mem_univ i)6465/-- Pointwise trace moments are nonnegative for every Hermitian matrix. -/66theorem trace_even_nonneg (A : Matrix ι ι ℂ) (hA : A.IsHermitian) (p : ℕ) :670 ≤ (A ^ (2 * p)).trace.re := by68rw [trace_pow_re_eq_sum A hA]69exact Finset.sum_nonneg fun i _ => by rw [pow_mul]; positivity7071/-- Markov's inequality with the true matrix trace moment. The probability72law is arbitrary, so this applies in particular to the canonical Haar law. -/73theorem measure_norm_ge_le_trace_moment [Nonempty ι]74{Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω)75(X : Ω → Matrix ι ι ℂ) (hX : ∀ ω, (X ω).IsHermitian)76(hmeas : Measurable (fun ω => ‖X ω‖)) (p : ℕ) {t : ℝ} (ht : 0 < t) :77μ {ω | t ≤ ‖X ω‖} ≤78(∫⁻ ω, ENNReal.ofReal ((X ω ^ (2 * p)).trace.re) ∂μ) /79ENNReal.ofReal t ^ (2 * p) := by80have hsubset : {ω | t ≤ ‖X ω‖} ⊆81{ω | ENNReal.ofReal t ^ (2 * p) ≤ ENNReal.ofReal ‖X ω‖ ^ (2 * p)} := by82intro ω hω83exact pow_le_pow_left' (ENNReal.ofReal_le_ofReal hω) _84calc85μ {ω | t ≤ ‖X ω‖} ≤86μ {ω | ENNReal.ofReal t ^ (2 * p) ≤ ENNReal.ofReal ‖X ω‖ ^ (2 * p)} :=87measure_mono hsubset88_ ≤ (∫⁻ ω, ENNReal.ofReal ‖X ω‖ ^ (2 * p) ∂μ) /89ENNReal.ofReal t ^ (2 * p) :=90meas_ge_le_lintegral_div (hmeas.ennreal_ofReal.pow_const _).aemeasurable91(pow_ne_zero _ (ne_of_gt (ENNReal.ofReal_pos.mpr ht)))92(ENNReal.pow_ne_top ENNReal.ofReal_ne_top)93_ ≤ _ := by94gcongr with ω95rw [← ENNReal.ofReal_pow (norm_nonneg _)]96exact ENNReal.ofReal_le_ofReal (norm_pow_le_trace_even (X ω) (hX ω) p)9798/-- Normalized trace version, displaying the dimension cost in the high99moment method. This is the actual cardinality of the matrix index type. -/100theorem measure_norm_ge_le_normalized_trace_moment [Nonempty ι]101{Ω : Type*} [MeasurableSpace Ω] (μ : Measure Ω)102(X : Ω → Matrix ι ι ℂ) (hX : ∀ ω, (X ω).IsHermitian)103(hmeas : Measurable (fun ω => ‖X ω‖)) (p : ℕ) {t : ℝ} (ht : 0 < t) :104μ {ω | t ≤ ‖X ω‖} ≤105(Fintype.card ι : ℝ≥0∞) *106(∫⁻ ω, ENNReal.ofReal ((X ω ^ (2 * p)).trace.re / Fintype.card ι) ∂μ) /107ENNReal.ofReal t ^ (2 * p) := by108have hd : (Fintype.card ι : ℝ) ≠ 0 := by109exact_mod_cast Fintype.card_ne_zero110have he (ω : Ω) : ENNReal.ofReal ((X ω ^ (2 * p)).trace.re) =111(Fintype.card ι : ℝ≥0∞) *112ENNReal.ofReal ((X ω ^ (2 * p)).trace.re / Fintype.card ι) := by113rw [← ENNReal.ofReal_natCast, ← ENNReal.ofReal_mul (by positivity)]114congr 1115field_simp116have hb := measure_norm_ge_le_trace_moment μ X hX hmeas p ht117simp_rw [he] at hb118rwa [lintegral_const_mul' _ _ (ENNReal.natCast_ne_top _)] at hb119120/-- A varying moment order is permitted. A proved vanishing trace-moment121ratio supplies the required one-sided operator-norm convergence. -/122theorem upper_tail_tendsto_zero_of_trace_moments123{Ω : ℕ → Type*} {ι : ℕ → Type*}124[∀ N, MeasurableSpace (Ω N)] [∀ N, Fintype (ι N)]125[∀ N, DecidableEq (ι N)] [∀ N, Nonempty (ι N)]126(μ : ∀ N, Measure (Ω N)) (X : ∀ N, Ω N → Matrix (ι N) (ι N) ℂ)127(hX : ∀ N ω, (X N ω).IsHermitian)128(hmeas : ∀ N, Measurable (fun ω => ‖X N ω‖)) (p : ℕ → ℕ)129{t : ℝ} (ht : 0 < t)130(hmoment : Tendsto131(fun N => (∫⁻ ω, ENNReal.ofReal ((X N ω ^ (2 * p N)).trace.re) ∂μ N) /132ENNReal.ofReal t ^ (2 * p N)) atTop (nhds 0)) :133Tendsto (fun N => μ N {ω | t ≤ ‖X N ω‖}) atTop (nhds 0) := by134exact tendsto_of_tendsto_of_tendsto_of_le_of_le tendsto_const_nhds hmoment135(fun _ => bot_le) (fun N => measure_norm_ge_le_trace_moment136(μ N) (X N) (hX N) (hmeas N) (p N) ht)137138/-- Canonical independent Haar specialization. All measurability and139Hermitian-preservation obligations are discharged for the actual channel140adjoint. Only the asymptotic high-trace estimate is a premise. -/141theorem canonical_upper_tail_of_trace_moments142{K : ℕ} [NeZero K] (n : ℕ)143(A : Matrix (ZMod (K ^ n)) (ZMod (K ^ n)) ℂ) (hA : A.IsHermitian)144(p : ℕ → ℕ) {t : ℝ} (ht : 0 < t)145(hmoment : Tendsto (fun N =>146(∫⁻ ω, ENNReal.ofReal147((((BlockConstruction.blockChannel (HaarModel.sampleUnitary K n N ω) n).adjointMap A)148^ (2 * p N)).trace.re) ∂HaarModel.sampleMeasure K n N) /149ENNReal.ofReal t ^ (2 * p N)) atTop (nhds 0)) :150Tendsto (fun N => HaarModel.sampleMeasure K n N {ω | t ≤151‖(BlockConstruction.blockChannel (HaarModel.sampleUnitary K n N ω) n).adjointMap A‖})152atTop (nhds 0) := by153apply upper_tail_tendsto_zero_of_trace_moments154(fun N => HaarModel.sampleMeasure K n N)155(fun N ω => (BlockConstruction.blockChannel156(HaarModel.sampleUnitary K n N ω) n).adjointMap A)157(fun N ω => Channels.KrausChannel.adjointMap_isHermitian _ A hA)158(fun N => HaarModel.measurable_blockAdjoint_norm n N A) p ht hmoment159160end Nonadditivity.HaarMomentTail