Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

CQ conditional-entropy continuity for countable classical conditioning

Open
QAlgorithms.Papers.Independent.Advance50.P45.countableCQContinuity

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

prove2quantum

Let X\mathcal XX be a countable alphabet, including the finite case, and let BBB be a nonzero finite-dimensional quantum system of dimension dBd_BdB​. Let r,sr,sr,s be probability distributions on X\mathcal XX and let ρBx,σBx\rho_B^x,\sigma_B^xρBx​,σBx​ be normalized density operators for every xxx. In the same classical basis form the direct-sum states

ρXB=⨁xr(x)ρBx,σXB=⨁xs(x)σBx.\rho_{XB}=\bigoplus_x r(x)\rho_B^x, \qquad \sigma_{XB}=\bigoplus_x s(x)\sigma_B^x.ρXB​=x⨁​r(x)ρBx​,σXB​=x⨁​s(x)σBx​.

Define H(B∣X)ρ=∑xr(x)H(ρBx)H(B|X)_\rho=\sum_x r(x)H(\rho_B^x)H(B∣X)ρ​=∑x​r(x)H(ρBx​) and analogously for σ\sigmaσ, where HHH is von Neumann entropy in bits. These averages converge absolutely, irrespective of whether the Shannon entropies of r,sr,sr,s are finite. If 0<ε≤1−1/dB0<\varepsilon\le1-1/d_B0<ε≤1−1/dB​ and

12∥ρXB−σXB∥1=12∑x∥r(x)ρBx−s(x)σBx∥1≤ε,\tfrac12\|\rho_{XB}-\sigma_{XB}\|_1 =\tfrac12\sum_x\bigl\|r(x)\rho_B^x-s(x)\sigma_B^x\bigr\|_1 \le\varepsilon,21​∥ρXB​−σXB​∥1​=21​x∑​​r(x)ρBx​−s(x)σBx​​1​≤ε,

then

∣H(B∣X)ρ−H(B∣X)σ∣≤εlog⁡2(dB−1)+h2(ε).\bigl|H(B|X)_\rho-H(B|X)_\sigma\bigr| \le\varepsilon\log_2(d_B-1)+h_2(\varepsilon).​H(B∣X)ρ​−H(B∣X)σ​​≤εlog2​(dB​−1)+h2​(ε).

Here ∥⋅∥1\|\cdot\|_1∥⋅∥1​ is the Schatten trace norm and h2(t)=−tlog⁡2t−(1−t)log⁡2(1−t)h_2(t)=-t\log_2t-(1-t)\log_2(1-t)h2​(t)=−tlog2​t−(1−t)log2​(1−t), with 0log⁡20=00\log_2 0=00log2​0=0.

This extends the finite-alphabet continuity estimate to countable classical conditioning without an assumption on the entropy of the conditioning system.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P45
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder ENNReal

namespace QAlgorithms.Papers.Independent.Advance50.P45

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms.Papers.Independent.Information100.P56 (cqBlock)

/-- Corollary 3, PDF p.5, Eqs.(29)–(32), proof pp.6–8: the same continuity
bound for a countable common classical basis and finite quantum output B.
Conditional entropy is the convergent average of branch entropies, never a
difference of possibly infinite joint and classical entropies. -/
theorem countableCQContinuity {X B : Type*} [Countable X] [Fintype B]
    [Nonempty B] [DecidableEq B] (R S : CQState X B)
    (epsilon : ℝ) (hepsilon : 0 < epsilon)
    (hupper : epsilon ≤ 1 - 1 / (Fintype.card B : ℝ))
    (hdistance : countableCQDistance R S ≤ epsilon) :
    |cqConditionalEntropy R - cqConditionalEntropy S| ≤
      epsilon * Real.logb 2 ((Fintype.card B : ℝ) - 1) + binEntropy2 epsilon := by sorry

end QAlgorithms.Papers.Independent.Advance50.P45

end
Source
Optimal uniform continuity bound for conditional entropy of classical--quantum states, arXiv:1909.01755v2, PDF p. 5, Corollary 3, Eqs. (29)–(32)
Read-back

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

Let XXX be any countable type and BBB a finite nonempty type with decidable equality, with d=∣B∣d=|B|d=∣B∣. Let R,SR,SR,S each consist of a probability mass function pR,pSp_R,p_SpR​,pS​ on XXX and positive semidefinite trace-one matrices ρxR,ρxS\rho_x^R,\rho_x^SρxR​,ρxS​ on BBB, required to be normalized for every label, including labels of probability zero. Define

HR=∑xpR(x)RS(ρxR),HS=∑xpS(x)RS(ρxS),D=12∑x∥pR(x)RρxR−pS(x)RρxS∥1,H_R=\sum_xp_R(x)_{\mathbb R}S(\rho_x^R),\qquad H_S=\sum_xp_S(x)_{\mathbb R}S(\rho_x^S),\qquad D=\frac12\sum_x\left\|p_R(x)_{\mathbb R}\rho_x^R-p_S(x)_{\mathbb R}\rho_x^S\right\|_1,HR​=x∑​pR​(x)R​S(ρxR​),HS​=x∑​pS​(x)R​S(ρxS​),D=21​x∑​​pR​(x)R​ρxR​−pS​(x)R​ρxS​​1​,

where ∥M∥1=Re⁡tr⁡M†M\|M\|_1=\operatorname{Re}\operatorname{tr}\sqrt{M^\dagger M}∥M∥1​=RetrM†M​ and S(M)=−Re⁡tr⁡f(M)S(M)=-\operatorname{Re}\operatorname{tr}f(M)S(M)=−Retrf(M) for f(t)=tlog⁡2tf(t)=t\log_2tf(t)=tlog2​t, interpreted by continuous functional calculus with f(0)=0f(0)=0f(0)=0; the sums are unordered infinite sums. For every real ϵ\epsilonϵ satisfying 0<ϵ≤1−1/d0<\epsilon\le1-1/d0<ϵ≤1−1/d, if D≤ϵD\le\epsilonD≤ϵ, then

∣HR−HS∣≤ϵlog⁡2(d−1)+−ϵln⁡ϵ−(1−ϵ)ln⁡(1−ϵ)ln⁡2,|H_R-H_S|\le\epsilon\log_2(d-1)+ \frac{-\epsilon\ln\epsilon-(1-\epsilon)\ln(1-\epsilon)}{\ln2},∣HR​−HS​∣≤ϵlog2​(d−1)+ln2−ϵlnϵ−(1−ϵ)ln(1−ϵ)​,

with zero logarithmic terms interpreted as zero. The hypotheses exclude d=1d=1d=1, and empty XXX admits no states R,SR,SR,S.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 29, 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