Exact Lean source
Nonadditivity.QuantumCodingTypicalProjectors
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
10 project constants, including generated, internal and private declarations.
10 declarations
Nonadditivity.QuantumCoding.tensorFamilyBandProjectorNonadditivity.QuantumCoding.tensorFamilyBandProjector._proof_1internal/detail/privateNonadditivity.QuantumCoding.tensorFamilyBandProjector.eq_1internal/detail/privateNonadditivity.QuantumCoding.tensorFamilyBandProjector_acceptanceNonadditivity.QuantumCoding.tensorFamilyBandProjector_compression_leNonadditivity.QuantumCoding.tensorFamilyBandProjector_idempotentNonadditivity.QuantumCoding.tensorFamilyBandProjector_le_oneNonadditivity.QuantumCoding.tensorFamilyBandProjector_posSemidefNonadditivity.QuantumCoding.tensorFamilyBandProjector_trace_boundNonadditivity.QuantumCoding.tensorTypicalProjector_acceptance_ge
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 < δ) :301 - QuantumCodingTypicality.variance ρ.weights / ((n : ℝ) * δ ^ 2) ≤31((tensorState ρ n).matrix * tensorTypicalProjector ρ n δ).trace.re := by32rw [tensorTypicalProjector_acceptance]33have h := QuantumCodingTypicality.spectral_band_mass_ge ρ.weights34ρ.weights_nonneg ρ.weights_sum n hn δ hδ35have hlow : -(n : ℝ) * (ρ.vonNeumann + δ) =36-((n : ℝ) * QuantumCodingTypicality.entropy ρ.weights) - (n : ℝ) * δ := by37change -(n : ℝ) * (shannon ρ.weights + δ) =38-((n : ℝ) * shannon ρ.weights) - (n : ℝ) * δ39ring40have hhigh : -(n : ℝ) * (ρ.vonNeumann - δ) =41-((n : ℝ) * QuantumCodingTypicality.entropy ρ.weights) + (n : ℝ) * δ := by42change -(n : ℝ) * (shannon ρ.weights - δ) =43-((n : ℝ) * shannon ρ.weights) + (n : ℝ) * δ44ring45rw [hlow, hhigh]46exact 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 → ι) ℂ :=52spectralProjector (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 : ℝ) :58tensorFamilyBandProjector ρ s a * tensorFamilyBandProjector ρ s a =59tensorFamilyBandProjector ρ s a := spectralProjector_idempotent _ _6061theorem tensorFamilyBandProjector_posSemidef {n : ℕ} (ρ : Fin n → DensityMatrix ι)62(s a : ℝ) : (tensorFamilyBandProjector ρ s a).PosSemidef :=63spectralProjector_posSemidef _ _6465theorem tensorFamilyBandProjector_le_one {n : ℕ} (ρ : Fin n → DensityMatrix ι)66(s a : ℝ) : (1 - tensorFamilyBandProjector ρ s a).PosSemidef :=67spectralProjector_le_one _ _6869theorem tensorFamilyBandProjector_trace_bound {n : ℕ} (ρ : Fin n → DensityMatrix ι)70(s a : ℝ) : (tensorFamilyBandProjector ρ s a).trace.re ≤ Real.exp (s + a) := by71rw [tensorFamilyBandProjector, spectralProjector_trace, Complex.natCast_re]72have 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))76convert h using 177rw [one_div, ← Real.exp_neg]78congr 179ring8081theorem tensorFamilyBandProjector_compression_le {n : ℕ} (ρ : Fin n → DensityMatrix ι)82(s a : ℝ) :83((Real.exp (-s + a) : ℂ) • tensorFamilyBandProjector ρ s a -84tensorFamilyBandProjector ρ s a * (tensorFamilyState ρ).matrix *85tensorFamilyBandProjector ρ s a).PosSemidef := by86change (_ - _ * tensorFamilyMatrix (fun j => (ρ j).matrix) * _).PosSemidef87rw [tensorFamilyMatrix_diagonalization]88exact 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)),95tensorFamilyWeights (fun j => (ρ j).weights) x := by96change (tensorFamilyMatrix (fun j => (ρ j).matrix) * _).trace.re = _97rw [tensorFamilyMatrix_diagonalization]98exact spectralProjector_acceptance _ _ _99100end Nonadditivity.QuantumCoding