Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.HaarWeingartenGram

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

Direct imports

Imported by project modules

2 direct reverse imports

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.HaarInvariantTensor78/-! # Exact combinatorics of the permutation Gram matrix910These are finite counting identities for the actual invariant tensors.11-/1213noncomputable section14set_option backward.isDefEq.respectTransparency false15set_option maxHeartbeats 10000001617namespace Nonadditivity.HaarInvariantTensor1819open scoped BigOperators Matrix Matrix.Norms.L2Operator ComplexOrder2021theorem gram_apply_sum (N p : ℕ) (σ τ : Perm p) :22    gram N p σ τ = ∑ y : Tuple N p, if y ∘ σ = y ∘ τ then 1 else 0 := by23  classical24  simp only [gram, Matrix.mul_apply, Matrix.conjTranspose_apply, contractions,25    Fintype.sum_prod_type]26  rw [Finset.sum_comm]27  simp [eq_comm]2829/-- A Gram coefficient counts the tuples constant on the relative permutation. -/30theorem gram_apply_card (N p : ℕ) (σ τ : Perm p) :31    gram N p σ τ = (Fintype.card {y : Tuple N p // y ∘ σ = y ∘ τ} : ℂ) := by32  classical33  rw [gram_apply_sum]34  simp [Fintype.card_subtype, ← Finset.sum_boole]3536theorem gram_apply_self (N p : ℕ) (σ : Perm p) :37    gram N p σ σ = (N+1:ℂ)^p := by38  rw [gram_apply_sum]39  simp [Tuple]4041theorem gram_apply_nonneg (N p : ℕ) (σ τ : Perm p) : 0 ≤ gram N p σ τ := by42  rw [gram_apply_card]43  exact_mod_cast (Nat.zero_le _)4445/-- A nonidentity relative permutation identifies at least one pair of coordinates. -/46theorem gram_card_le_of_ne (N p : ℕ) (σ τ : Perm p) (hστ : σ ≠ τ) :47    Fintype.card {y : Tuple N p // y ∘ σ = y ∘ τ} ≤ (N+1)^(p-1) := by48  classical49  have hf : (σ : Fin p → Fin p) ≠ τ := fun h => hστ (Equiv.ext (congrFun h))50  obtain ⟨r, hr⟩ := Function.ne_iff.mp hf51  let a := σ r52  let b := τ r53  have hab : b ≠ a := Ne.symm hr54  let restrict : {y : Tuple N p // y ∘ σ = y ∘ τ} → ({s : Fin p // s ≠ a} → Fin (N+1)) :=55    fun y s => y.1 s56  have hinj : Function.Injective restrict := by57    intro y z hyz58    apply Subtype.ext59    funext s60    by_cases hs : s=a61    · subst s62      have hy : y.1 a = y.1 b := congrFun y.2 r63      have hz : z.1 a = z.1 b := congrFun z.2 r64      exact hy.trans ((congrFun hyz ⟨b,hab⟩).trans hz.symm)65    · exact congrFun hyz ⟨s,hs⟩66  have hcard : Fintype.card {s : Fin p // s ≠ a} = p-1 := by67    simp [Fintype.card_subtype_compl]68  simpa [Fintype.card_fun, hcard] using Fintype.card_le_of_injective restrict hinj6970theorem norm_gram_apply_le_of_ne (N p : ℕ) (σ τ : Perm p) (hστ : σ ≠ τ) :71    ‖gram N p σ τ‖ ≤ (N+1:ℝ)^(p-1) := by72  rw [gram_apply_card]73  norm_num only [Complex.norm_natCast]74  exact_mod_cast gram_card_le_of_ne N p σ τ hστ7576end Nonadditivity.HaarInvariantTensor