Holevo Additivity Gap in Lean 4

Lean explorer

Exact Lean source

Nonadditivity.QuantumCodingTypicalProjectors

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.QuantumCodingTensorSpectrum7import Nonadditivity.QuantumCodingFamilySpectrum8import Nonadditivity.QuantumCodingTypicality910/-! # Quantum typical subspaces with explicit error and size bounds1112The projectors act on the actual tensor-product state. The concentration13estimate is proved for the eigenvalue product distribution and transferred14through the actual tensor diagonalization.15-/1617noncomputable section1819namespace Nonadditivity.QuantumCoding2021open Entropy22open scoped BigOperators ComplexOrder Matrix2324variable {ι : Type*} [Fintype ι] [DecidableEq ι]2526/-- Probability of the genuine typical subspace is at least the iid27Chebyshev bound, with no typicality hypothesis. -/28theorem tensorTypicalProjector_acceptance_ge (ρ : DensityMatrix ι) {n : ℕ}29    (hn : 0 < n) {δ : ℝ} (hδ : 0 < δ) :30    1 - QuantumCodingTypicality.variance ρ.weights / ((n : ℝ) * δ ^ 2) ≤31      ((tensorState ρ n).matrix * tensorTypicalProjector ρ n δ).trace.re := by32  rw [tensorTypicalProjector_acceptance]33  have h := QuantumCodingTypicality.spectral_band_mass_ge ρ.weights34    ρ.weights_nonneg ρ.weights_sum n hn δ hδ35  have hlow : -(n : ℝ) * (ρ.vonNeumann + δ) =36      -((n : ℝ) * QuantumCodingTypicality.entropy ρ.weights) - (n : ℝ) * δ := by37    change -(n : ℝ) * (shannon ρ.weights + δ) =38      -((n : ℝ) * shannon ρ.weights) - (n : ℝ) * δ39    ring40  have hhigh : -(n : ℝ) * (ρ.vonNeumann - δ) =41      -((n : ℝ) * QuantumCodingTypicality.entropy ρ.weights) + (n : ℝ) * δ := by42    change -(n : ℝ) * (shannon ρ.weights - δ) =43      -((n : ℝ) * shannon ρ.weights) + (n : ℝ) * δ44    ring45  rw [hlow, hhigh]46  exact h4748/-- The same spectral construction applies to varying letters; the band49center is shared by all words of an ensemble. -/50def tensorFamilyBandProjector {n : ℕ} (ρ : Fin n → DensityMatrix ι)51    (s a : ℝ) : Matrix (Fin n → ι) (Fin n → ι) ℂ :=52  spectralProjector (tensorFamilyUnitary (fun j => (ρ j).positive.isHermitian.eigenvectorUnitary))53    (spectralBand (tensorFamilyWeights (fun j => (ρ j).weights))54      (Real.exp (-s - a)) (Real.exp (-s + a)))5556theorem tensorFamilyBandProjector_idempotent {n : ℕ} (ρ : Fin n → DensityMatrix ι)57    (s a : ℝ) :58    tensorFamilyBandProjector ρ s a * tensorFamilyBandProjector ρ s a =59      tensorFamilyBandProjector ρ s a := spectralProjector_idempotent _ _6061theorem tensorFamilyBandProjector_posSemidef {n : ℕ} (ρ : Fin n → DensityMatrix ι)62    (s a : ℝ) : (tensorFamilyBandProjector ρ s a).PosSemidef :=63  spectralProjector_posSemidef _ _6465theorem tensorFamilyBandProjector_le_one {n : ℕ} (ρ : Fin n → DensityMatrix ι)66    (s a : ℝ) : (1 - tensorFamilyBandProjector ρ s a).PosSemidef :=67  spectralProjector_le_one _ _6869theorem tensorFamilyBandProjector_trace_bound {n : ℕ} (ρ : Fin n → DensityMatrix ι)70    (s a : ℝ) : (tensorFamilyBandProjector ρ s a).trace.re ≤ Real.exp (s + a) := by71  rw [tensorFamilyBandProjector, spectralProjector_trace, Complex.natCast_re]72  have h := spectralBand_card (tensorFamilyWeights (fun j => (ρ j).weights))73    (tensorFamilyWeights_nonneg _ (fun j => (ρ j).weights_nonneg))74    (tensorFamilyWeights_sum _ (fun j => (ρ j).weights_sum))75    (hi := Real.exp (-s + a)) (Real.exp_pos (-s - a))76  convert h using 177  rw [one_div, ← Real.exp_neg]78  congr 179  ring8081theorem tensorFamilyBandProjector_compression_le {n : ℕ} (ρ : Fin n → DensityMatrix ι)82    (s a : ℝ) :83    ((Real.exp (-s + a) : ℂ) • tensorFamilyBandProjector ρ s a -84      tensorFamilyBandProjector ρ s a * (tensorFamilyState ρ).matrix *85        tensorFamilyBandProjector ρ s a).PosSemidef := by86  change (_ - _ * tensorFamilyMatrix (fun j => (ρ j).matrix) * _).PosSemidef87  rw [tensorFamilyMatrix_diagonalization]88  exact spectralBand_compression_le _ _ _ _8990theorem tensorFamilyBandProjector_acceptance {n : ℕ} (ρ : Fin n → DensityMatrix ι)91    (s a : ℝ) :92    ((tensorFamilyState ρ).matrix * tensorFamilyBandProjector ρ s a).trace.re =93      ∑ x ∈ spectralBand (tensorFamilyWeights (fun j => (ρ j).weights))94        (Real.exp (-s - a)) (Real.exp (-s + a)),95        tensorFamilyWeights (fun j => (ρ j).weights) x := by96  change (tensorFamilyMatrix (fun j => (ρ j).matrix) * _).trace.re = _97  rw [tensorFamilyMatrix_diagonalization]98  exact spectralProjector_acceptance _ _ _99100end Nonadditivity.QuantumCoding