Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarEntryBound

Download original .lean · View on GitHub · Jump to source

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

9 project constants, including generated, internal and private declarations.

9 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarMatchingSharp7import Nonadditivity.HaarWeingartenMomentBound8import Nonadditivity.HaarWeingartenInverse910/-! # Unconditional singleton-sensitive Haar entry estimates1112The actual Haar integral is bounded using the constructed inverse Gram matrix.13No matching-count or inverse estimate remains as a hypothesis.14-/15noncomputable section16set_option maxHeartbeats 100000017namespace Nonadditivity.HaarInvariantTensor18open MeasureTheory HaarModel HaarPathMultiplicity19open scoped BigOperators2021def entryList {N p : ℕ} (i j k l : Tuple N p) :=22  List.ofFn (fun a => (i a,j a)) ++ List.ofFn (fun a => (k a,l a))2324theorem matchingMultiplicity_le_sharp {N p : ℕ} (hp : 0 < p)25    (i j k l : Tuple N p) (π : Perm p) :26    matchingMultiplicity i j k l π ≤27      p^(π.support.card + highMultiplicityOccurrences (entryList i j k l)/2) := by28  exact HaarMatchingSharp.card_relativeMatching_le_sharp hp i k j l π2930theorem singleton_le_support_of_matching {N p : ℕ}31    (i j k l : Tuple N p) (π : Perm p)32    (h : 0 < matchingMultiplicity i j k l π) :33    (singletonEdges (entryList i j k l)).card ≤ 2*π.support.card := by34  obtain ⟨σ,hrow,hcol⟩ := Fintype.card_pos_iff.mp h35  simpa only [inv_mul_cancel_left] using36    HaarMatchingSingletons.singleton_entries_le_two_support i k j l σ (σ*π) hrow hcol3738/-- A flexible numerical form, already unconditional on all combinatorics. -/39theorem norm_entry_moment_le {N p : ℕ} (hp : 0 < p) (hpd : p ≤ N+1)40    (hsize : 2*(p:ℝ) ≤ Real.sqrt (N+1))41    (η : ℝ) (hη0 : 0 ≤ η) (hη1 : η ≤ 1)42    (hη : (p:ℝ) ≤ (Real.sqrt (N+1)/(2*(p:ℝ)))*η^2)43    (i j k l : Tuple N p) :44    ‖∫ U : LocalUnitary N, HaarMixedMoments.entryMonomial i j k l U ∂haar N‖ ≤45      (2/(N+1:ℝ)^p) * (p:ℝ)^(highMultiplicityOccurrences (entryList i j k l)/2) *46        η^(singletonEdges (entryList i j k l)).card := by47  apply norm_moment_le_of_matching_and_inverse hpd i j k l _ _48    (Real.sqrt (N+1)/(2*(p:ℝ))) η (2/(N+1:ℝ)^p)49    (by positivity) hη0 hη1 hη50  · exact matchingMultiplicity_le_sharp hp i j k l51  · exact singleton_le_support_of_matching i j k l52  · simpa only [HaarWeingartenInverse.weight, HaarPermutationSupport.distance_eq_support,53      inv_one, one_mul] using54      HaarWeingartenInverse.weingarten_weighted_sum_le N p hp hpd hsize 15556/-- With `2*p` total entries, this gives the singleton factor57`2*p / (N+1)^(1/4)` and the numerical prefactor `2`. -/58theorem norm_entry_moment_le_explicit {N p : ℕ} (hp : 0 < p) (hpd : p ≤ N+1)59    (hsize : 4*(p:ℝ)^2 ≤ Real.sqrt (N+1))60    (i j k l : Tuple N p) :61    ‖∫ U : LocalUnitary N, HaarMixedMoments.entryMonomial i j k l U ∂haar N‖ ≤62      (2/(N+1:ℝ)^p) * (p:ℝ)^(highMultiplicityOccurrences (entryList i j k l)/2) *63        (2*(p:ℝ)/Real.sqrt (Real.sqrt (N+1)))^64          (singletonEdges (entryList i j k l)).card := by65  have hp1 : (1:ℝ) ≤ p := by exact_mod_cast hp66  have hq : 0 < Real.sqrt (N+1:ℝ) := by positivity67  have hs : 0 < Real.sqrt (Real.sqrt (N+1:ℝ)) := Real.sqrt_pos.mpr hq68  have hs2 := Real.sq_sqrt hq.le69  apply norm_entry_moment_le hp hpd (by nlinarith) _ (by positivity)70  · apply (div_le_one hs).mpr71    nlinarith [sq_nonneg (2*(p:ℝ)-Real.sqrt (Real.sqrt (N+1:ℝ)))]72  · have he : Real.sqrt (N+1:ℝ)/(2*(p:ℝ)) *73        (2*(p:ℝ)/Real.sqrt (Real.sqrt (N+1:ℝ)))^2 = 2*(p:ℝ) := by74      field_simp75      nlinarith [hs2]76    rw [he]77    linarith7879/-- The dimension hypothesis in an integer-power form, with the otherwise80separate degree-versus-dimension condition derived internally. -/81theorem norm_entry_moment_le_of_dimension {N p : ℕ} (hp : 0 < p)82    (hN : 16*(p:ℝ)^4 ≤ N+1)83    (i j k l : Tuple N p) :84    ‖∫ U : LocalUnitary N, HaarMixedMoments.entryMonomial i j k l U ∂haar N‖ ≤85      (2/(N+1:ℝ)^p) * (p:ℝ)^(highMultiplicityOccurrences (entryList i j k l)/2) *86        (2*(p:ℝ)/Real.sqrt (Real.sqrt (N+1)))^87          (singletonEdges (entryList i j k l)).card := by88  have hp1 : (1:ℝ) ≤ p := by exact_mod_cast hp89  have hp4 : (p:ℝ) ≤ (p:ℝ)^4 := by90    simpa using (pow_le_pow_right₀ hp1 (by omega : 1 ≤ 4))91  have hpd : p ≤ N+1 := by92    have : (p:ℝ) ≤ (N:ℝ)+1 := by nlinarith [pow_nonneg (by positivity : (0:ℝ) ≤ p) 4]93    exact_mod_cast this94  apply norm_entry_moment_le_explicit hp hpd95  apply (sq_le_sq₀ (by positivity) (Real.sqrt_nonneg _)).mp96  rw [Real.sq_sqrt (by positivity)]97  nlinarith9899/-- A common degree budget permits multiplication across independent Haar100families. It also covers an absent family (`p=0`). -/101theorem norm_entry_moment_le_uniform {N p P : ℕ} (hpP : p ≤ P)102    (hN : 16*(P:ℝ)^4 ≤ N+1)103    (i j k l : Tuple N p) :104    ‖∫ U : LocalUnitary N, HaarMixedMoments.entryMonomial i j k l U ∂haar N‖ ≤105      (2/(N+1:ℝ)^p) * (P:ℝ)^(highMultiplicityOccurrences (entryList i j k l)/2) *106        (2*(P:ℝ)/Real.sqrt (Real.sqrt (N+1)))^107          (singletonEdges (entryList i j k l)).card := by108  by_cases hp : p=0109  · subst p110    simp [HaarMixedMoments.entryMonomial, entryList, highMultiplicityOccurrences, singletonEdges]111  · have hp0 : 0 < p := Nat.pos_of_ne_zero hp112    have hpPr : (p:ℝ) ≤ P := by exact_mod_cast hpP113    have hNp : 16*(p:ℝ)^4 ≤ N+1 :=114      (mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (by positivity) hpPr 4) (by norm_num)).trans hN115    apply (norm_entry_moment_le_of_dimension hp0 hNp i j k l).trans116    gcongr117118end Nonadditivity.HaarInvariantTensor