Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.CollinsYounProduct

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

Catalog entries: Free-group Collins-Youn bound

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

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

61 declarations

Full module

1/-2Copyright (c) 2026 the Nonadditivity project contributors.3All rights reserved. See COPYRIGHT.md for licensing and attribution.4-/56import Nonadditivity.RegularFubini78/-! # The product Collins--Youn inequality910The coefficient induction keeps the diagonal and off-diagonal energies separate.11The trace-zero recurrence removes exactly the all-diagonal contribution.12-/1314noncomputable section1516namespace Nonadditivity.CollinsYounProduct1718open FreeModel CollinsYoun19open scoped BigOperators2021set_option maxHeartbeats 8000002223def branchSuccEquiv (K n : ℕ) : Branch K (n+1) ≃ Fin K × Branch K n where24  toFun a := (a 0, fun j => a j.succ)25  invFun p := Fin.cons p.1 p.226  left_inv a := by ext j; exact Fin.cases rfl (fun _ => rfl) j27  right_inv p := by ext <;> rfl2829def coefficientEnergy {α : Type*} [Fintype α] (A : Matrix α α ℂ) : ℝ :=30  ∑ a, ∑ b, ‖A a b‖ ^ 23132theorem coefficientEnergy_nonneg {α : Type*} [Fintype α] (A : Matrix α α ℂ) :33    0 ≤ coefficientEnergy A := by unfold coefficientEnergy; positivity3435theorem coefficientEnergy_eq_hs_sq {α : Type*} [Fintype α] (A : Matrix α α ℂ) :36    coefficientEnergy A = AdjointPurity.hsLength A ^ 2 := by37  rw [← coefficientLength_eq_hsLength, coefficientLength_sq]38  rfl3940def slice {K n : ℕ} (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ)41    (i j : Fin K) : Matrix (Branch K n) (Branch K n) ℂ :=42  fun a b => A (Fin.cons i a) (Fin.cons j b)4344def diagonalSum {K n : ℕ} (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) :45    Matrix (Branch K n) (Branch K n) ℂ := ∑ i, slice A i i4647def diagonalEnergy {K n : ℕ} (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) : ℝ :=48  ∑ i, coefficientEnergy (slice A i i)4950def offDiagonalEnergy {K n : ℕ} (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) : ℝ :=51  ∑ i, ∑ j, if i = j then 0 else coefficientEnergy (slice A i j)5253theorem diagonalEnergy_nonneg {K n : ℕ}54    (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) :55    0 ≤ diagonalEnergy A := Finset.sum_nonneg (fun _ _ => coefficientEnergy_nonneg _)5657theorem offDiagonalEnergy_nonneg {K n : ℕ}58    (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) :59    0 ≤ offDiagonalEnergy A := by60  unfold offDiagonalEnergy61  apply Finset.sum_nonneg62  intro i _63  apply Finset.sum_nonneg64  intro j _65  split_ifs <;> first | exact le_rfl | exact coefficientEnergy_nonneg _6667theorem sum_branch_succ {K n : ℕ} {M : Type*} [AddCommMonoid M]68    (f : Branch K (n+1) → M) :69    (∑ a, f a) = ∑ i, ∑ a, f (Fin.cons i a) := by70  rw [← (branchSuccEquiv K n).symm.sum_comp]71  exact Fintype.sum_prod_type _7273theorem coefficientEnergy_slices {K n : ℕ}74    (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) :75    coefficientEnergy A = ∑ i, ∑ j, coefficientEnergy (slice A i j) := by76  unfold coefficientEnergy77  rw [sum_branch_succ]78  apply Finset.sum_congr rfl79  intro i _80  simp_rw [sum_branch_succ]81  rw [Finset.sum_comm]82  rfl8384theorem energy_split {K n : ℕ}85    (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) :86    coefficientEnergy A = diagonalEnergy A + offDiagonalEnergy A := by87  rw [coefficientEnergy_slices]88  unfold diagonalEnergy offDiagonalEnergy89  rw [← Finset.sum_add_distrib]90  apply Finset.sum_congr rfl91  intro i _92  have he : (∑ j, if i = j then coefficientEnergy (slice A i j) else 0) =93      coefficientEnergy (slice A i i) := by simp94  rw [← he, ← Finset.sum_add_distrib]95  apply Finset.sum_congr rfl96  intro j _97  split_ifs <;> simp9899theorem diagonalSum_trace {K n : ℕ}100    (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) :101    (diagonalSum A).trace = A.trace := by102  unfold diagonalSum Matrix.trace Matrix.diag103  simp only [Matrix.sum_apply]104  rw [Finset.sum_comm, sum_branch_succ]105  rfl106107theorem diagonalSum_energy_le {K n : ℕ}108    (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) :109    coefficientEnergy (diagonalSum A) ≤ (K : ℝ) * diagonalEnergy A := by110  have hpoint : ∀ a b : Branch K n,111      ‖∑ i, slice A i i a b‖ ^ 2 ≤ (K : ℝ) * ∑ i, ‖slice A i i a b‖ ^ 2 := by112    intro a b113    simpa using norm_sum_smul_sq_le (fun _ : Fin K => (1 : ℂ))114      (fun i => slice A i i a b)115  unfold coefficientEnergy diagonalSum diagonalEnergy116  simp only [Matrix.sum_apply]117  calc118    (∑ a, ∑ b, ‖∑ i, slice A i i a b‖ ^ 2) ≤119        ∑ a, ∑ b, (K : ℝ) * ∑ i, ‖slice A i i a b‖ ^ 2 := by120      apply Finset.sum_le_sum; intro a _121      apply Finset.sum_le_sum; intro b _122      exact hpoint a b123    _ = (K : ℝ) * ∑ i, ∑ a, ∑ b, ‖slice A i i a b‖ ^ 2 := by124      simp_rw [← Finset.mul_sum]125      congr 1126      calc127        (∑ a, ∑ b, ∑ i, ‖slice A i i a b‖ ^ 2) =128            ∑ a, ∑ i, ∑ b, ‖slice A i i a b‖ ^ 2 := by129          apply Finset.sum_congr rfl130          intro a _131          rw [Finset.sum_comm]132        _ = _ := Finset.sum_comm133134/-- Two orthogonal coefficient sectors combine by the exact scalar135Cauchy--Schwarz constant, without introducing another triangle loss. -/136theorem two_sector_estimate {x y a b : ℝ} (hx : 0 ≤ x) (hy : 0 ≤ y)137    (ha : 0 ≤ a) (hb : 0 ≤ b) :138    (Real.sqrt a * Real.sqrt x + Real.sqrt b * Real.sqrt y) ^ 2 ≤139      (a+b) * (x+y) := by140  have hax := Real.sq_sqrt ha141  have hby := Real.sq_sqrt hb142  have hxx := Real.sq_sqrt hx143  have hyy := Real.sq_sqrt hy144  nlinarith [sq_nonneg (Real.sqrt a * Real.sqrt y - Real.sqrt b * Real.sqrt x)]145146def polynomial {K n : ℕ} (A : Matrix (Branch K n) (Branch K n) ℂ) :147    Hilbert (ProductFreeGroup K n) →L[ℂ] Hilbert (ProductFreeGroup K n) :=148  ∑ a, ∑ b, A a b • leftRegular ((branchWord a)⁻¹ * branchWord b)149150theorem polynomial_sum {K n : ℕ} {I : Type*} [Fintype I]151    (A : I → Matrix (Branch K n) (Branch K n) ℂ) :152    polynomial (∑ i, A i) = ∑ i, polynomial (A i) := by153  unfold polynomial154  simp only [Matrix.sum_apply, Finset.sum_smul]155  calc156    (∑ a, ∑ b, ∑ i, A i a b • leftRegular ((branchWord a)⁻¹ * branchWord b)) =157        ∑ a, ∑ i, ∑ b, A i a b • leftRegular ((branchWord a)⁻¹ * branchWord b) := by158      apply Finset.sum_congr rfl159      intro a _160      rw [Finset.sum_comm]161    _ = _ := Finset.sum_comm162163@[simp] theorem polynomial_zero {K n : ℕ} :164    polynomial (0 : Matrix (Branch K n) (Branch K n) ℂ) = 0 := by165  simp [polynomial]166167def groupSuccEquiv (K n : ℕ) : ProductFreeGroup K (n+1) ≃*168    FreeGroup (Fin K) × ProductFreeGroup K n where169  toFun a := (a 0, fun j => a j.succ)170  invFun p := Fin.cons p.1 p.2171  left_inv a := by ext j; exact Fin.cases rfl (fun _ => rfl) j172  right_inv p := by ext <;> rfl173  map_mul' a b := rfl174175theorem offDiagonal_norm_energy_le {K n : ℕ} {C : ℝ}176    (hbound : ∀ B : Matrix (Branch K n) (Branch K n) ℂ,177      ‖polynomial B‖ ^ 2 ≤ C * coefficientEnergy B)178    (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) :179    (∑ i, ∑ j, if i = j then 0 else ‖polynomial (slice A i j)‖ ^ 2) ≤180      C * offDiagonalEnergy A := by181  unfold offDiagonalEnergy182  rw [Finset.mul_sum]183  apply Finset.sum_le_sum184  intro i _185  rw [Finset.mul_sum]186  apply Finset.sum_le_sum187  intro j _188  split_ifs <;> first | simp | exact hbound _189190/-- The exact recurrence used for both the unrestricted and the traceless191estimate. The hypotheses are numerical inequalities supplied by the operator192decomposition and the preceding induction stage. -/193theorem norm_step_sq {x d z D O C E : ℝ} (hx : 0 ≤ x) (hd : 0 ≤ d)194    (hz : 0 ≤ z) (hD : 0 ≤ D) (hO : 0 ≤ O) (hC : 0 ≤ C) (hE : 0 ≤ E)195    (hstep : x ≤ d + 3 * Real.sqrt z) (hdiag : d^2 ≤ D*C)196    (hoff : z ≤ O*E) :197    x^2 ≤ (D+9*O)*(C+E) := by198  have hd' : d ≤ Real.sqrt D * Real.sqrt C := by199    apply (sq_le_sq₀ hd (by positivity)).mp200    rw [mul_pow, Real.sq_sqrt hD, Real.sq_sqrt hC]201    exact hdiag202  have ho' : Real.sqrt z ≤ Real.sqrt O * Real.sqrt E := by203    apply (sq_le_sq₀ (by positivity) (by positivity)).mp204    rw [Real.sq_sqrt hz, mul_pow, Real.sq_sqrt hO, Real.sq_sqrt hE]205    exact hoff206  have htop : x ≤ Real.sqrt D * Real.sqrt C + 3 * Real.sqrt O * Real.sqrt E := by207    nlinarith208  have hcs : (Real.sqrt D * Real.sqrt C + 3 * Real.sqrt O * Real.sqrt E)^2 ≤209      (D+9*O)*(C+E) := by210    have hdd := Real.sq_sqrt hD211    have hoo := Real.sq_sqrt hO212    have hcc := Real.sq_sqrt hC213    have hee := Real.sq_sqrt hE214    nlinarith [sq_nonneg (Real.sqrt D * Real.sqrt E - 3 * Real.sqrt O * Real.sqrt C)]215  exact (sq_le_sq₀ hx (by positivity) |>.mpr htop).trans hcs216217theorem polynomial_zero_factors {K : ℕ}218    (A : Matrix (Branch K 0) (Branch K 0) ℂ) :219    polynomial A = A default default •220      ContinuousLinearMap.id ℂ (Hilbert (ProductFreeGroup K 0)) := by221  simp [polynomial]222223theorem zero_factor_bound {K : ℕ}224    (A : Matrix (Branch K 0) (Branch K 0) ℂ) :225    ‖polynomial A‖ ^ 2 ≤ coefficientEnergy A := by226  rw [polynomial_zero_factors]227  simp only [coefficientEnergy, Fintype.sum_unique, norm_smul]228  have hi := ContinuousLinearMap.norm_id_le (𝕜 := ℂ) (E := Hilbert (ProductFreeGroup K 0))229  apply (sq_le_sq₀ (by positivity) (norm_nonneg _)).mpr230  nlinarith [norm_nonneg (A default default)]231232theorem zero_factor_traceless {K : ℕ}233    (A : Matrix (Branch K 0) (Branch K 0) ℂ) (htrace : A.trace = 0) :234    polynomial A = 0 := by235  have he : A default default = 0 := by simpa [Matrix.trace, Matrix.diag] using htrace236  simp [polynomial_zero_factors, he]237238def offPolynomialEnergy {K n : ℕ}239    (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) : ℝ :=240  ∑ i, ∑ j, if i = j then 0 else ‖polynomial (slice A i j)‖ ^ 2241242theorem offPolynomialEnergy_nonneg {K n : ℕ}243    (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) :244    0 ≤ offPolynomialEnergy A := by245  unfold offPolynomialEnergy246  apply Finset.sum_nonneg; intro i _247  apply Finset.sum_nonneg; intro j _248  split_ifs <;> positivity249250theorem difference_nonneg (K n : ℕ) :251    0 ≤ ((K : ℝ)+9)^n - (K : ℝ)^n := by252  apply sub_nonneg.mpr253  exact pow_le_pow_left₀ (by positivity) (by linarith) n254255/-- Algebraic induction from the concrete one-coordinate operator splitting.256Both estimates are proved simultaneously, so the trace-zero constant retains257the exact subtraction of the all-diagonal coefficient sector. -/258theorem bounds_of_step (K : ℕ)259    (hstep : ∀ n (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ),260      ‖polynomial A‖ ≤ ‖polynomial (diagonalSum A)‖ + 3 * Real.sqrt (offPolynomialEnergy A)) :261    ∀ n,262      (∀ A : Matrix (Branch K n) (Branch K n) ℂ,263        ‖polynomial A‖ ^ 2 ≤ ((K : ℝ)+9)^n * coefficientEnergy A) ∧264      (∀ A : Matrix (Branch K n) (Branch K n) ℂ, A.trace = 0 →265        ‖polynomial A‖ ^ 2 ≤ (((K : ℝ)+9)^n - (K : ℝ)^n) * coefficientEnergy A) := by266  intro n267  induction n with268  | zero =>269    constructor270    · intro A; simpa using zero_factor_bound A271    · intro A ht; simp [zero_factor_traceless A ht]272  | succ n ih =>273    have hoff (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) :274        offPolynomialEnergy A ≤ ((K : ℝ)+9)^n * offDiagonalEnergy A :=275      offDiagonal_norm_energy_le ih.1 A276    constructor277    · intro A278      have hd : ‖polynomial (diagonalSum A)‖ ^ 2 ≤279          ((K : ℝ) * ((K : ℝ)+9)^n) * diagonalEnergy A := by280        calc281          _ ≤ ((K : ℝ)+9)^n * coefficientEnergy (diagonalSum A) := ih.1 _282          _ ≤ ((K : ℝ)+9)^n * ((K : ℝ) * diagonalEnergy A) :=283            mul_le_mul_of_nonneg_left (diagonalSum_energy_le A) (by positivity)284          _ = _ := by ring285      have hh := norm_step_sq (norm_nonneg (polynomial A))286        (norm_nonneg (polynomial (diagonalSum A))) (offPolynomialEnergy_nonneg A)287        (by positivity : 0 ≤ (K : ℝ) * ((K : ℝ)+9)^n)288        (by positivity : 0 ≤ ((K : ℝ)+9)^n)289        (diagonalEnergy_nonneg A) (offDiagonalEnergy_nonneg A) (hstep n A) hd (hoff A)290      rw [← energy_split] at hh291      convert hh using 1; ring292    · intro A ht293      have hdt : (diagonalSum A).trace = 0 := (diagonalSum_trace A).trans ht294      have hd : ‖polynomial (diagonalSum A)‖ ^ 2 ≤295          ((K : ℝ) * (((K : ℝ)+9)^n - (K : ℝ)^n)) * diagonalEnergy A := by296        calc297          _ ≤ (((K : ℝ)+9)^n - (K : ℝ)^n) * coefficientEnergy (diagonalSum A) :=298            ih.2 _ hdt299          _ ≤ (((K : ℝ)+9)^n - (K : ℝ)^n) * ((K : ℝ) * diagonalEnergy A) :=300            mul_le_mul_of_nonneg_left (diagonalSum_energy_le A) (difference_nonneg K n)301          _ = _ := by ring302      have hh := norm_step_sq (norm_nonneg (polynomial A))303        (norm_nonneg (polynomial (diagonalSum A))) (offPolynomialEnergy_nonneg A)304        (mul_nonneg (by positivity) (difference_nonneg K n))305        (by positivity : 0 ≤ ((K : ℝ)+9)^n)306        (diagonalEnergy_nonneg A) (offDiagonalEnergy_nonneg A) (hstep n A) hd (hoff A)307      rw [← energy_split] at hh308      convert hh using 1; ring309310theorem freeNorm_eq_normalized {K n : ℕ} (A : Matrix (Branch K n) (Branch K n) ℂ) :311    freeNorm A = ‖polynomial A‖ / (K : ℝ)^n := by312  unfold freeNorm gamma polynomial313  simp only [norm_smul, norm_div, norm_one, norm_pow, Complex.norm_natCast]314  ring315316theorem constant_normalization {K n : ℕ} (hK : 2 ≤ K) (hn : 1 ≤ n) :317    c K n ^ 2 * ((K : ℝ)^n)^2 = ((K : ℝ)+9)^n - (K : ℝ)^n := by318  have hk : (K : ℝ) ≠ 0 := by exact_mod_cast (by omega : K ≠ 0)319  have hp : (K : ℝ)^n ≠ 0 := pow_ne_zero _ hk320  rw [c_sq hK hn]321  have he : 1 + 9 / (K : ℝ) = ((K : ℝ)+9)/(K : ℝ) := by322    field_simp323  rw [he, div_pow]324  field_simp325326/-- The precise normalization used by the channel construction follows327algebraically from the unnormalized square-norm estimate. -/328theorem collinsYounBound_of_squared {K n : ℕ} (hK : 2 ≤ K) (hn : 1 ≤ n)329    (hb : ∀ A : Matrix (Branch K n) (Branch K n) ℂ, A.trace = 0 →330      ‖polynomial A‖ ^ 2 ≤ (((K : ℝ)+9)^n - (K : ℝ)^n) * coefficientEnergy A) :331    CollinsYounBound K n := by332  intro A ht333  have hk : (0 : ℝ) < K := by exact_mod_cast (by omega : 0 < K)334  have hp : 0 < (K : ℝ)^n := pow_pos hk n335  have hh := hb A ht336  rw [coefficientEnergy_eq_hs_sq] at hh337  apply (sq_le_sq₀ (freeNorm_nonneg A)338    (mul_nonneg (Real.sqrt_nonneg _) (Real.sqrt_nonneg _))).mp339  rw [freeNorm_eq_normalized, div_pow]340  apply (div_le_iff₀ (by positivity : 0 < ((K : ℝ)^n)^2)).mpr341  calc342    _ ≤ (((K : ℝ)+9)^n - (K : ℝ)^n) * AdjointPurity.hsLength A ^ 2 := hh343    _ = _ := by344      change (((K : ℝ)+9)^n - (K : ℝ)^n) * AdjointPurity.hsLength A ^ 2 =345        (c K n * AdjointPurity.hsLength A)^2 * ((K : ℝ)^n)^2346      rw [← constant_normalization hK hn]347      ring348349/-- The actual product regular polynomial obeys the one-coordinate splitting:350the diagonal coefficient is its partial trace, and the remaining operator351coefficients satisfy the proved amplified three-component Haagerup estimate. -/352theorem polynomial_step_bound {K n : ℕ}353    (A : Matrix (Branch K (n+1)) (Branch K (n+1)) ℂ) :354    ‖polynomial A‖ ≤ ‖polynomial (diagonalSum A)‖ +355      3 * Real.sqrt (offPolynomialEnergy A) := by356  change ‖∑ a, ∑ b, A a b • leftRegular ((branchWord a)⁻¹ * branchWord b)‖ ≤357    ‖polynomial (diagonalSum A)‖ + 3 * Real.sqrt (offPolynomialEnergy A)358  rw [RegularFubini.polynomial_succ_norm_eq]359  rw [diagonalSum, polynomial_sum]360  have hb := RegularFubini.coefficientPolynomial_norm_le_diagonal_offDiagonal361    (fun i j : Fin K => polynomial (slice A i j))362  simpa only [offPolynomialEnergy, polynomial, slice] using hb363364/-- The unrestricted product Haagerup estimate, proved for the actual regular365representation on the product free group. -/366theorem polynomial_norm_sq_le {K n : ℕ} (A : Matrix (Branch K n) (Branch K n) ℂ) :367    ‖polynomial A‖ ^ 2 ≤ ((K : ℝ)+9)^n * coefficientEnergy A :=368  (bounds_of_step K (fun _ => polynomial_step_bound) n).1 A369370/-- The all-diagonal sector is absent when the original coefficient matrix is371traceless; its exact energy K^n is subtracted from the product constant. -/372theorem traceless_polynomial_norm_sq_le {K n : ℕ}373    (A : Matrix (Branch K n) (Branch K n) ℂ) (htrace : A.trace = 0) :374    ‖polynomial A‖ ^ 2 ≤ (((K : ℝ)+9)^n - (K : ℝ)^n) * coefficientEnergy A :=375  (bounds_of_step K (fun _ => polynomial_step_bound) n).2 A htrace376377/-- The full Collins--Youn estimate, with no analytic hypothesis. Only the378manuscript's numerical parameter conditions remain. -/379theorem collinsYounBound {K n : ℕ} (hK : 2 ≤ K) (hn : 1 ≤ n) :380    CollinsYounBound K n :=381  collinsYounBound_of_squared hK hn traceless_polynomial_norm_sq_le382383end Nonadditivity.CollinsYounProduct