Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.QuantumCodingTypicalTests

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.QuantumCodingEnsembleTypicality7import Nonadditivity.QuantumCodingSequential89/-! # Typical subspaces as physical projective tests1011This interface supplies the actual global and word-dependent tests used by12the sequential decoder, with unconditional finite-ensemble estimates.13-/1415noncomputable section16namespace Nonadditivity.QuantumCoding1718open Entropy19open scoped BigOperators ComplexOrder Matrix2021variable {ι α : Type*} [Fintype ι] [DecidableEq ι] [Fintype α]2223def globalTypicalTest (σ : DensityMatrix ι) (n : ℕ) (δ : ℝ) :24    ProjectiveTest (Fin n → ι) where25  matrix := tensorTypicalProjector σ n δ26  hermitian := (tensorTypicalProjector_posSemidef σ n δ).isHermitian27  idempotent := tensorTypicalProjector_idempotent σ n δ2829def conditionalTypicalTest (p : α → ℝ) (ρ : α → DensityMatrix ι)30    (n : ℕ) (δ : ℝ) (x : Fin n → α) : ProjectiveTest (Fin n → ι) where31  matrix := conditionalTypicalProjector p ρ n δ x32  hermitian := (conditionalTypicalProjector_posSemidef p ρ n δ x).isHermitian33  idempotent := conditionalTypicalProjector_idempotent p ρ n δ x3435theorem weighted_rejection_eq (p : α → ℝ) (hs : ∑ a, p a = 1)36    (ρ : α → DensityMatrix ι) (P : α → Matrix ι ι ℂ) :37    (∑ a, p a * ((1 - P a) * (ρ a).matrix).trace.re) =38      1 - ∑ a, p a * ((ρ a).matrix * P a).trace.re := by39  simp only [Matrix.sub_mul, Matrix.one_mul, Matrix.trace_sub, Complex.sub_re,40    DensityMatrix.normalized, Complex.one_re, mul_sub, mul_one,41    Finset.sum_sub_distrib, hs]42  congr 143  apply Finset.sum_congr rfl44  intro a _45  rw [Matrix.trace_mul_comm]4647theorem conditionalTypicalTest_mean_rejection_le (p : α → ℝ)48    (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1) (ρ : α → DensityMatrix ι)49    {n : ℕ} (hn : 0 < n) {δ : ℝ} (hδ : 0 < δ) :50    (∑ x : Fin n → α, tensorWeights p n x *51      ((1 - (conditionalTypicalTest p ρ n δ x).matrix) *52        (tensorFamilyState (fun j => ρ (x j))).matrix).trace.re) ≤53      ensembleConditionalVariance p ρ / ((n : ℝ) * δ ^ 2) := by54  rw [weighted_rejection_eq (tensorWeights p n) (tensorWeights_sum p hs n)]55  have h := conditionalTypicalProjector_average_acceptance_ge p hp hs ρ hn hδ56  simp only [conditionalTypicalTest]57  linarith5859theorem globalTypicalTest_mean_rejection_le (p : α → ℝ)60    (hp : ∀ a, 0 ≤ p a) (hs : ∑ a, p a = 1) (ρ : α → DensityMatrix ι)61    {n : ℕ} (hn : 0 < n) {δ : ℝ} (hδ : 0 < δ) :62    (∑ x : Fin n → α, tensorWeights p n x *63      ((1 - (globalTypicalTest (DensityMatrix.mixture p hp hs ρ) n δ).matrix) *64        (tensorFamilyState (fun j => ρ (x j))).matrix).trace.re) ≤65      QuantumCodingTypicality.variance (DensityMatrix.mixture p hp hs ρ).weights /66        ((n : ℝ) * δ ^ 2) := by67  rw [weighted_rejection_eq (tensorWeights p n) (tensorWeights_sum p hs n)]68  have h := globalTypicalProjector_average_acceptance_ge p hp hs ρ hn hδ69  simp only [globalTypicalTest]70  linarith7172end Nonadditivity.QuantumCoding