Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§7.2 (i-prime): weakly typical subspace dimension

Open
QAlgorithms.Papers.Independent.Advance50.P29.typicalSubspaceDimension

by Gohan · Oct 29, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let QQQ and Q′Q^{\prime}Q′ be finite complex Hilbert spaces of positive dimensions MMM and DDD. A density operator is positive semidefinite with trace one. All logarithms and entropies are in bits. Write π=IQ/M\pi=I_Q/Mπ=IQ​/M. Let ρ\rhoρ be a density operator and ε>0\varepsilon>0ε>0. Let Tε,nT_{\varepsilon,n}Tε,n​ be the span of all eigenvectors of ρ⊗n\rho^{\otimes n}ρ⊗n whose eigenvalues lie in the closed interval [2−n(S(ρ)+ε),2−n(S(ρ)−ε)][2^{-n(S(\rho)+\varepsilon)},2^{-n(S(\rho)-\varepsilon)}][2−n(S(ρ)+ε),2−n(S(ρ)−ε)], and let Πε,n\Pi_{\varepsilon,n}Πε,n​ be its orthogonal projector. For every positive integer nnn,

dim⁡Tε,n<2n(S(ρ)+ε).\dim T_{\varepsilon,n}<2^{n(S(\rho)+\varepsilon)}.dimTε,n​<2n(S(ρ)+ε).

The spectral typical subspace has controlled dimension. Formalization Note The dimension is represented by the real trace of its orthogonal projector.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P29
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P29

open QAlgorithms MeasureTheory Filter

open QAlgorithms.Papers.Independent.Information100.P22
  (densityPurification coherentInformation singleUseInformation mixed)

open QAlgorithms.Papers.Independent.Information100.P27 (shannon)

open QAlgorithms.Papers.Independent.Dependency50.P48 (wordProbability)

open QAlgorithms.Papers.Independent.Bridge50.P43 (tensorDensity)

open scoped Matrix ComplexConjugate ComplexOrder Topology

attribute [local instance] Classical.propDecidable

variable {I J E L : Type} [Fintype I] [DecidableEq I]

variable [Fintype J] [DecidableEq J] [Fintype E] [DecidableEq E]

variable [Fintype L] [DecidableEq L]

/-- PDF pp.15–16, §7.2(i'): trace of the spectral projection is the typical-subspace dimension. -/
theorem typicalSubspaceDimension [Nonempty I] (rho : Matrix I I ℂ)
    (hrho : IsDensityMatrix rho) (epsilon : ℝ) (he : 0 < epsilon)
    (n : ℕ) (hn : 0 < n) :
    (weakTypicalProjector rho epsilon n).trace.re <
      (2 : ℝ) ^ ((n : ℝ) * (vnEntropy rho + epsilon)) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P29

end
Source
A random-coding based proof for the quantum coding theorem, arXiv:0712.2558v1, PDF p. 15, §7.2 (i-prime): weakly typical subspace dimension
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let III be a nonempty finite index type with decidable equality, let ρ\rhoρ be a positive semidefinite complex matrix on III with tr⁡ρ=1\operatorname{tr}\rho=1trρ=1, let ϵ>0\epsilon>0ϵ>0 be real, and let n>0n>0n>0 be a natural number. Define S(ρ)=−Re⁡tr⁡(f(ρ))S(\rho)=-\operatorname{Re}\operatorname{tr}(f(\rho))S(ρ)=−Retr(f(ρ)), where f(x)=xlog⁡2xf(x)=x\log_2xf(x)=xlog2​x is applied by continuous functional calculus with f(0)=0f(0)=0f(0)=0. Define ρ⊗n\rho^{\otimes n}ρ⊗n entrywise by (ρ⊗n)x,y=∏i=0n−1ρxi,yi(\rho^{\otimes n})_{x,y}=\prod_{i=0}^{n-1}\rho_{x_i,y_i}(ρ⊗n)x,y​=∏i=0n−1​ρxi​,yi​​, and obtain Πρ,ϵ,n\Pi_{\rho,\epsilon,n}Πρ,ϵ,n​ by applying continuous functional calculus to this matrix with the function equal to 111 precisely when

2−n(S(ρ)+ϵ)≤x≤2−n(S(ρ)−ϵ)2^{-n(S(\rho)+\epsilon)}\le x\le2^{-n(S(\rho)-\epsilon)}2−n(S(ρ)+ϵ)≤x≤2−n(S(ρ)−ϵ)

and equal to 000 otherwise. Then

Re⁡tr⁡Πρ,ϵ,n<2n(S(ρ)+ϵ).\operatorname{Re}\operatorname{tr}\Pi_{\rho,\epsilon,n} <2^{n(S(\rho)+\epsilon)}.RetrΠρ,ϵ,n​<2n(S(ρ)+ϵ).

The interval endpoints are included; zero eigenvalues lie outside it because its lower endpoint is positive. The assertion concerns the real part of the trace and is strict; n=0n=0n=0 is excluded.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me