Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarWeingartenSymmetry

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

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

10 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.HaarInvariantSpanning7import Nonadditivity.HaarWeingartenCycles89/-! # Relative permutations in the Weingarten formula1011Translation symmetry reduces the two permutation sums to a single inverse-Gram12row, with an exact finite matching multiplicity.  This is the form used by the13weighted absolute row-sum estimate.14-/1516noncomputable section17set_option backward.isDefEq.respectTransparency false18set_option maxHeartbeats 10000001920namespace Nonadditivity.HaarInvariantTensor2122open MeasureTheory HaarModel HaarAveraging HaarWeingartenCycles23open scoped BigOperators Matrix Matrix.Norms.L2Operator2425theorem gram_apply_relative (N p : ℕ) (σ τ : Perm p) :26    gram N p σ τ = gram N p 1 (σ⁻¹*τ) := by27  rw [gram_apply_card, gram_apply_card]28  congr 129  rw [card_relative, card_relative]30  simp3132theorem gram_apply_mul_left (N p : ℕ) (κ σ τ : Perm p) :33    gram N p (κ*σ) (κ*τ) = gram N p σ τ := by34  calc35    _ = gram N p 1 ((κ*σ)⁻¹*(κ*τ)) := gram_apply_relative N p _ _36    _ = gram N p 1 (σ⁻¹*τ) := by simp [mul_inv_rev, mul_assoc]37    _ = gram N p σ τ := (gram_apply_relative N p σ τ).symm3839theorem weingarten_apply_mul_left (N p : ℕ) (κ σ τ : Perm p) :40    weingarten N p (κ*σ) (κ*τ) = weingarten N p σ τ := by41  let e : Perm p ≃ Perm p := Equiv.mulLeft κ42  have hg : (gram N p).submatrix e e = gram N p := by43    ext a b44    exact gram_apply_mul_left N p κ a b45  have hi := congrArg (fun M : Matrix (Perm p) (Perm p) ℂ => M⁻¹) hg46  change ((gram N p).submatrix e e)⁻¹ = (gram N p)⁻¹ at hi47  rw [Matrix.inv_submatrix_equiv] at hi48  exact congrFun (congrFun hi σ) τ4950theorem weingarten_apply_relative (N p : ℕ) (σ τ : Perm p) :51    weingarten N p σ τ = weingarten N p 1 (σ⁻¹*τ) := by52  simpa using (weingarten_apply_mul_left N p σ⁻¹ σ τ).symm5354/-- Number of row/column matchings with a prescribed relative permutation. -/55def matchingMultiplicity {N p : ℕ} (i j k l : Tuple N p) (π : Perm p) : ℕ :=56  Fintype.card {σ : Perm p // i = k ∘ σ ∧ j = l ∘ (σ*π)}5758theorem matchingMultiplicity_eq_sum {N p : ℕ} (i j k l : Tuple N p) (π : Perm p) :59    (matchingMultiplicity i j k l π : ℂ) =60      ∑ σ : Perm p, if i = k ∘ σ ∧ j = l ∘ (σ*π) then 1 else 0 := by61  classical62  simp [matchingMultiplicity, Fintype.card_subtype, ← Finset.sum_boole]6364/-- The actual Haar integral expressed using one row of the inverse Gram matrix. -/65theorem integral_entryMonomial_eq_relative {N p : ℕ} (hp : p ≤ N+1)66    (i j k l : Tuple N p) :67    (∫ U : LocalUnitary N, HaarMixedMoments.entryMonomial i j k l U ∂haar N) =68      ∑ π : Perm p, (matchingMultiplicity i j k l π : ℂ) * weingarten N p 1 π := by69  classical70  rw [integral_entryMonomial_eq_weingarten hp]71  have hs (σ : Perm p) :72      (∑ τ : Perm p, (if i=k∘σ then 1 else 0) * weingarten N p σ τ *73        (if j=l∘τ then 1 else 0)) =74      ∑ π : Perm p, (if i=k∘σ ∧ j=l∘(σ*π) then 1 else 0) * weingarten N p 1 π := by75    rw [← (Equiv.mulLeft σ).sum_comp]76    rotate_left77    · simp78    apply Finset.sum_congr rfl79    intro π _80    change (if i=k∘σ then 1 else 0) * weingarten N p σ (σ*π) *81      (if j=l∘(σ*π) then 1 else 0) = _82    rw [weingarten_apply_relative N p σ (σ*π), inv_mul_cancel_left]83    by_cases hr : i=k∘σ <;> by_cases hc : j=l∘(σ*π) <;> simp [hr,hc]84  simp_rw [hs]85  rw [Finset.sum_comm]86  apply Finset.sum_congr rfl87  intro π _88  rw [matchingMultiplicity_eq_sum, Finset.sum_mul]8990theorem norm_integral_entryMonomial_le_relative {N p : ℕ} (hp : p ≤ N+1)91    (i j k l : Tuple N p) :92    ‖∫ U : LocalUnitary N, HaarMixedMoments.entryMonomial i j k l U ∂haar N‖ ≤93      ∑ π : Perm p, (matchingMultiplicity i j k l π : ℝ) * ‖weingarten N p 1 π‖ := by94  rw [integral_entryMonomial_eq_relative hp]95  exact (norm_sum_le _ _).trans_eq (by simp only [norm_mul, Complex.norm_natCast])9697end Nonadditivity.HaarInvariantTensor