Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 8: n-letter conditional entropy continuity

Open
QAlgorithms.Papers.Independent.Bridge50.P23.block_conditionalEntropy

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

prove2quantum

All systems are nonzero separable complex Hilbert spaces. States are positive trace-class operators of trace one. Trace norms have no factor one half, except where displayed. A grounded Hamiltonian is a densely defined nonnegative self-adjoint operator with infimum energy zero and dense finite-energy form domain; continuous spectrum is allowed. The energy-constrained diamond norm constrains only the input marginal, with unrestricted reference and measurement. Let N1,N2:A→B\mathcal N_1,\mathcal N_2:A\to BN1​,N2​:A→B be channels, with HBH_BHB​ satisfying the Gibbs hypothesis. Fix α,E0≥0\alpha,E_0\ge0α,E0​≥0 such that both channels obey Tr⁡Ni(ρ)HB≤αTr⁡ρHA+E0\operatorname{Tr}\mathcal N_i(\rho)H_B\le\alpha\operatorname{Tr}\rho H_A+E_0TrNi​(ρ)HB​≤αTrρHA​+E0​ at every finite-energy input. For E>0E>0E>0 and 0≤ε<10\le\varepsilon<10≤ε<1, suppose 12∥N1−N2∥⋄E≤ε\tfrac12\|\mathcal N_1-\mathcal N_2\|_{\diamond E}\le\varepsilon21​∥N1​−N2​∥⋄E​≤ε. Let n≥1n\ge1n≥1 and let ρAnC\rho^{A^n C}ρAnC have total input energy at most nEnEnE. Define ωn=(N1⊗n⊗idC)(ρ)\omega_n=(\mathcal N_1^{\otimes n}\otimes\mathrm{id}_C)(\rho)ωn​=(N1⊗n​⊗idC​)(ρ) and ω0=(N2⊗n⊗idC)(ρ)\omega_0=(\mathcal N_2^{\otimes n}\otimes\mathrm{id}_C)(\rho)ω0​=(N2⊗n​⊗idC​)(ρ). With δ=ε\delta=\sqrt\varepsilonδ=ε​, E~=αE+E0\widetilde E=\alpha E+E_0E=αE+E0​ and FB(L)=S(γB(L))F_B(L)=S(\gamma_B(L))FB​(L)=S(γB​(L)),

1n∣S(Bn∣C)ωn−S(Bn∣C)ω0∣≤14δ(1+δ)FB((1+3δ)E~/δ)+3g(2δ(1+δ))≤28δFB(4E~/δ)+3g(4δ).\frac1n|S(B^n|C)_{\omega_n}-S(B^n|C)_{\omega_0}|\le14\delta(1+\delta)F_B((1+3\delta)\widetilde E/\delta)+3g(2\delta(1+\delta))\le28\delta F_B(4\widetilde E/\delta)+3g(4\delta).n1​∣S(Bn∣C)ωn​​−S(Bn∣C)ω0​​∣≤14δ(1+δ)FB​((1+3δ)E/δ)+3g(2δ(1+δ))≤28δFB​(4E/δ)+3g(4δ).

Use the continuous zero value at ε=0\varepsilon=0ε=0. Conditional entropy uses its finite-first-entropy extension, allowing infinite reference entropy. This is a block-length-uniform mean-energy bound.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P23
Formal statement
noncomputable section

open Filter

open scoped ENNReal NNReal BigOperators Topology

namespace QAlgorithms.Papers.Independent.Bridge50.P23

open QAlgorithms.RealRegisters (Hilbert)

open QAlgorithms.Papers.Independent.Dependency50.P33
  (State PureState IsTraceClass traceSize tensorApply rankOne productCoeff)

open QAlgorithms.Papers.Independent.Frontier18.P01
  (Channel traceSecond traceFirst homogeneousEntropy generalizedRelativeEntropy
   channelTensorAction finiteInputCoherentInfo)

open QAlgorithms.Papers.Independent.Frontier18.P08 (IsQuantumOperation)

open QAlgorithms.Papers.Independent.Claimed50.P13
  (PositiveObservable closedFormExpectation GibbsCondition TensorBlockIndex blockAction blockEnergy)

open QAlgorithms.Papers.Independent.Claimed50.P18 (finiteFirstConditionalEntropy)

open QAlgorithms.Papers.Independent.Claimed50.P39 (g)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- Lemma 8, PDF pp.9--11, equation (7). Printed total=average is changed to
SUM<=nE, as the preceding definition and p.10 proof require. Individual site
energies may exceed E. Zero-error formulas use their continuous extension.
Independent correction moderation remains pending. -/
theorem block_conditionalEntropy {I J : Type} [Countable I] [Nonempty I]
    [Countable J] [Nonempty J] (H : PositiveObservable I) (G : PositiveObservable J)
    (hH : Grounded H) (hG : Grounded G) (hgibbs : GibbsCondition G)
    (N M : Channel I J) (alpha offset : ℝ) (ha : 0 ≤ alpha) (ho : 0 ≤ offset)
    (hN : AffineEnergyLimited H G alpha offset N.val) (hM : AffineEnergyLimited H G alpha offset M.val) :
    ∀ (C : Type) [Countable C] [Nonempty C] (n : ℕ), 0 < n →
    ∀ E eps : ℝ, 0 < E → 0 ≤ eps → eps < 1 →
    energyMagnitude H E (fun X => N.val X - M.val X) ≤ ENNReal.ofReal (2 * eps) →
    ∀ rho : State (TensorBlockIndex I n × C),
    blockEnergy H n (traceSecond rho.coefficients) ≤ ENNReal.ofReal ((n : ℝ) * E) →
    |conditionalEntropyValue (tensorApply (blockAction N.val n) rho.coefficients) -
     conditionalEntropyValue (tensorApply (blockAction M.val n) rho.coefficients)| / (n : ℝ) ≤
      blockEntropyBound G (alpha * E + offset) eps ∧
    blockEntropyBound G (alpha * E + offset) eps ≤ simpleEntropyBound G (alpha * E + offset) eps := by sorry

end QAlgorithms.Papers.Independent.Bridge50.P23

end
Source
Energy-constrained diamond norm with applications to the uniform continuity of continuous variable channel capacities, arXiv:1712.10267v1, PDF p. 10, Lemma 8: n-letter conditional entropy continuity
Read-back

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

Let I,JI,JI,J be countable, nonempty types, and write HL=ℓ2(L;C)\mathcal H_L=\ell^2(L;\mathbb C)HL​=ℓ2(L;C) for any label type LLL. The following conventions specify the quantities in the assertion. A matrix XXX is positive if, for every finite s⊆Ls\subseteq Ls⊆L and every z:L→Cz:L\to\mathbb Cz:L→C, the number ∑i,j∈szi‾Xijzj\sum_{i,j\in s}\overline{z_i}X_{ij}z_j∑i,j∈s​zi​​Xij​zj​ has zero imaginary part and nonnegative real part. It is trace class if it admits sequences ur,vr∈HLu_r,v_r\in\mathcal H_Lur​,vr​∈HL​ with ∑r∥ur∥∥vr∥<∞\sum_r\|u_r\|\|v_r\|<\infty∑r​∥ur​∥∥vr​∥<∞ and Xij=∑rur(i)vr(j)‾X_{ij}=\sum_r u_r(i)\overline{v_r(j)}Xij​=∑r​ur​(i)vr​(j)​. Put [a]+=max⁡(a,0)[a]_+=\max(a,0)[a]+​=max(a,0), regarded as an element of [0,∞][0,\infty][0,∞], and let τ(X)\tau(X)τ(X) be the infimum of [∑r∥ur∥∥vr∥]+[\sum_r\|u_r\|\|v_r\|]_+[∑r​∥ur​∥∥vr​∥]+​ over all such expansions; this infimum is ∞\infty∞ when there is no expansion. Identify a state with a positive trace-class coefficient matrix whose real diagonal is summable and sums to 111. The given H,GH,GH,G are forms on HI,HJ\mathcal H_I,\mathcal H_JHI​,HJ​, respectively, taking values in [0,∞][0,\infty][0,∞]; each vanishes at zero, satisfies F(cu)=∣c∣2F(u)F(cu)=|c|^2F(u)F(cu)=∣c∣2F(u) and F(u+v)+F(u−v)=2F(u)+2F(v)F(u+v)+F(u-v)=2F(u)+2F(v)F(u+v)+F(u−v)=2F(u)+2F(v), is lower semicontinuous, and has dense finite-valued domain. For either form define

EF(X)=sup⁡r∈N, u1,…,urX−∑a=1ruaua∗ positive∑a=1rF(ua),(uu∗)ij=uiuj‾.\mathcal E_F(X)= \sup_{\substack{r\in\mathbb N,\ u_1,\ldots,u_r\\ X-\sum_{a=1}^{r}u_au_a^*\ \text{positive}}} \sum_{a=1}^{r}F(u_a), \qquad (uu^*)_{ij}=u_i\overline{u_j}.EF​(X)=r∈N, u1​,…,ur​X−∑a=1r​ua​ua∗​ positive​sup​a=1∑r​F(ua​),(uu∗)ij​=ui​uj​​.

The empty family r=0r=0r=0 is included. Assume both forms are grounded: for every e>0e>0e>0, each has a unit vector uuu with F(u)≤[e]+F(u)\le[e]_+F(u)≤[e]+​; this does not require a unit vector of energy exactly zero. Assume, for GGG, that there exist a Hilbert basis (bj)j∈J(b_j)_{j\in J}(bj​)j∈J​ and real numbers γj≥0\gamma_j\ge0γj​≥0 such that

G(u)=∑j[γj∣⟨bj,u⟩∣2]+,∑j[e−βγj]+<∞for every β>0.G(u)=\sum_j[\gamma_j|\langle b_j,u\rangle|^2]_+, \qquad \sum_j[e^{-\beta\gamma_j}]_+<\infty \quad\text{for every }\beta>0.G(u)=j∑​[γj​∣⟨bj​,u⟩∣2]+​,j∑​[e−βγj​]+​<∞for every β>0.

Let N,MN,MN,M be maps from III-matrices to JJJ-matrices that preserve trace class, are additive and complex homogeneous on trace-class inputs, and whose finite amplifications take every state on I×{0,…,r−1}I\times\{0,\ldots,r-1\}I×{0,…,r−1} to a state for every r∈Nr\in\mathbb Nr∈N. Here amplification means

(T⊗id⁡A)(X)(j,a),(j′,a′)=T((i,i′)↦X(i,a),(i′,a′))j,j′.(T\otimes\operatorname{id}_A)(X)_{(j,a),(j',a')} = T\bigl((i,i')\mapsto X_{(i,a),(i',a')}\bigr)_{j,j'}.(T⊗idA​)(X)(j,a),(j′,a′)​=T((i,i′)↦X(i,a),(i′,a′)​)j,j′​.

The finite-amplification condition includes r=0r=0r=0, where there are no such states. Let α,offset≥0\alpha,\mathrm{offset}\ge0α,offset≥0, and assume, for T=N,MT=N,MT=N,M, that every input state xxx with EH(x)<∞\mathcal E_H(x)<\inftyEH​(x)<∞ satisfies

EG(Tx)≤[α]+EH(x)+[offset]+.\mathcal E_G(Tx)\le[\alpha]_+\mathcal E_H(x)+[\mathrm{offset}]_+.EG​(Tx)≤[α]+​EH​(x)+[offset]+​.

For a bipartite matrix define (tr⁡2X)ij=∑aX(i,a),(j,a)(\operatorname{tr}_2X)_{ij}=\sum_aX_{(i,a),(j,a)}(tr2​X)ij​=∑a​X(i,a),(j,a)​ and (tr⁡1X)ab=∑iX(i,a),(i,b)(\operatorname{tr}_1X)_{ab}=\sum_iX_{(i,a),(i,b)}(tr1​X)ab​=∑i​X(i,a),(i,b)​, using the total infinite sums in the code, and define (X⊗Y)(i,a),(j,b)=XijYab(X\otimes Y)_{(i,a),(j,b)}=X_{ij}Y_{ab}(X⊗Y)(i,a),(j,b)​=Xij​Yab​. Put B0(L)={∗}B_0(L)=\{\ast\}B0​(L)={∗}, Br+1(L)=L×Br(L)B_{r+1}(L)=L\times B_r(L)Br+1​(L)=L×Br​(L); define T0T_0T0​ to be the identity and Tr+1T_{r+1}Tr+1​ by applying TTT to the first-coordinate matrix slices and then TrT_rTr​ to the remaining-coordinate slices. Define block energy recursively by EH(0)(X)=0\mathcal E_H^{(0)}(X)=0EH(0)​(X)=0 and EH(r+1)(X)=EH(tr⁡2X)+EH(r)(tr⁡1X)\mathcal E_H^{(r+1)}(X)=\mathcal E_H(\operatorname{tr}_2X)+\mathcal E_H^{(r)}(\operatorname{tr}_1X)EH(r+1)​(X)=EH​(tr2​X)+EH(r)​(tr1​X). To specify the entropies, let XsX_sXs​ be the principal compression to a finite set sss, and write f(X)f(X)f(X) for the continuous functional calculus used in the code. Define

S(X)=sup⁡s finite[−Re⁡tr⁡((x↦xlog⁡x)(Xs))+Re⁡tr⁡(Xs)log⁡(Re⁡tr⁡(Xs))]+,S(X)=\sup_{s\text{ finite}} \left[-\operatorname{Re}\operatorname{tr}\bigl((x\mapsto x\log x)(X_s)\bigr) +\operatorname{Re}\operatorname{tr}(X_s)\log\bigl(\operatorname{Re}\operatorname{tr}(X_s)\bigr)\right]_+,S(X)=s finitesup​[−Retr((x↦xlogx)(Xs​))+Retr(Xs​)log(Retr(Xs​))]+​, D(X∥Y)=sup⁡s finite{[Re⁡tr⁡((x↦xlog⁡x)(Xs)−Xslog⁡(Ys)+Ys−Xs)]+,ker⁡Ys⊆ker⁡Xs,∞,otherwise.D(X\|Y)=\sup_{s\text{ finite}} \begin{cases} \left[\operatorname{Re}\operatorname{tr}\bigl((x\mapsto x\log x)(X_s)-X_s\log(Y_s)+Y_s-X_s\bigr)\right]_+, &\ker Y_s\subseteq\ker X_s,\\ \infty,&\text{otherwise}. \end{cases}D(X∥Y)=s finitesup​{[Retr((x↦xlogx)(Xs​)−Xs​log(Ys​)+Ys​−Xs​)]+​,∞,​kerYs​⊆kerXs​,otherwise.​

All logarithms here are natural, with the total real-logarithm convention log⁡0=0\log0=0log0=0. Let R+(a)R_+(a)R+​(a) send a finite a∈[0,∞]a\in[0,\infty]a∈[0,∞] to the same real number and send ∞\infty∞ to 000; let RextR_{\mathrm{ext}}Rext​ similarly send both extended-real infinities to 000. Define

c(X)=Rext ⁣(S(tr⁡2X)−D(X∥tr⁡2X⊗tr⁡1X)),SGmax⁡(L)=sup⁡x a stateEG(x)≤[L]+S(x),c(X)=R_{\mathrm{ext}}\!\left( S(\operatorname{tr}_2X)-D\bigl(X\|\operatorname{tr}_2X\otimes\operatorname{tr}_1X\bigr)\right), \qquad S_G^{\max}(L)=\sup_{\substack{x\text{ a state}\\\mathcal E_G(x)\le[L]_+}}S(x),c(X)=Rext​(S(tr2​X)−D(X∥tr2​X⊗tr1​X)),SGmax​(L)=x a stateEG​(x)≤[L]+​​sup​S(x),

where the subtraction defining ccc is the total subtraction of extended reals. For ε≥0\varepsilon\ge0ε≥0, define bG(F,0)=sG(F,0)=0b_G(F,0)=s_G(F,0)=0bG​(F,0)=sG​(F,0)=0, and, when ε>0\varepsilon>0ε>0, put d=εd=\sqrt\varepsilond=ε​ and

bG(F,ε)=14d(1+d) R+ ⁣(SGmax⁡ ⁣((1+3d)Fd))+3g(2d(1+d)),sG(F,ε)=28d R+ ⁣(SGmax⁡ ⁣(4Fd))+3g(4d),b_G(F,\varepsilon)=14d(1+d)\, R_+\!\left(S_G^{\max}\!\left(\frac{(1+3d)F}{d}\right)\right) +3g\bigl(2d(1+d)\bigr), \quad s_G(F,\varepsilon)=28d\, R_+\!\left(S_G^{\max}\!\left(\frac{4F}{d}\right)\right)+3g(4d),bG​(F,ε)=14d(1+d)R+​(SGmax​(d(1+3d)F​))+3g(2d(1+d)),sG​(F,ε)=28dR+​(SGmax​(d4F​))+3g(4d),

with g(x)=(x+1)log⁡(x+1)−xlog⁡xg(x)=(x+1)\log(x+1)-x\log xg(x)=(x+1)log(x+1)−xlogx. Then, for every countable, nonempty reference type CCC, every integer n>0n>0n>0, every E>0E>0E>0, and every 0≤ε<10\le\varepsilon<10≤ε<1, if

sup⁡ω a state on I×NEH(tr⁡2ω)≤[E]+τ(((N−M)⊗id⁡N)(ω))≤[2ε]+,\sup_{\substack{\omega\text{ a state on }I\times\mathbb N\\ \mathcal E_H(\operatorname{tr}_2\omega)\le[E]_+}} \tau\bigl(((N-M)\otimes\operatorname{id}_{\mathbb N})(\omega)\bigr) \le[2\varepsilon]_+,ω a state on I×NEH​(tr2​ω)≤[E]+​​sup​τ(((N−M)⊗idN​)(ω))≤[2ε]+​,

then every state ρ\rhoρ on Bn(I)×CB_n(I)\times CBn​(I)×C with EH(n)(tr⁡2ρ)≤[nE]+\mathcal E_H^{(n)}(\operatorname{tr}_2\rho)\le[nE]_+EH(n)​(tr2​ρ)≤[nE]+​ satisfies both

∣c((Nn⊗id⁡C)(ρ))−c((Mn⊗id⁡C)(ρ))∣n≤bG(αE+offset,ε),bG(αE+offset,ε)≤sG(αE+offset,ε).\frac{\left|c\bigl((N_n\otimes\operatorname{id}_C)(\rho)\bigr) -c\bigl((M_n\otimes\operatorname{id}_C)(\rho)\bigr)\right|}{n} \le b_G(\alpha E+\mathrm{offset},\varepsilon), \qquad b_G(\alpha E+\mathrm{offset},\varepsilon) \le s_G(\alpha E+\mathrm{offset},\varepsilon).n​c((Nn​⊗idC​)(ρ))−c((Mn​⊗idC​)(ρ))​​≤bG​(αE+offset,ε),bG​(αE+offset,ε)≤sG​(αE+offset,ε).

In particular, ε=0\varepsilon=0ε=0 is included and both bounds are then defined to be zero; n=0n=0n=0 and E=0E=0E=0 are excluded.

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