Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Mean-energy pure-codeword counterexample with a noisy flag use

Open
QAlgorithms.Papers.Independent.Bridge50.P27.pureMeanCounterexample

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

prove2quantum

Let NS>0N_S>0NS​>0. Let the channel be either thermal noise with 0<η≤10<\eta\le10<η≤1 and NB≥0N_B\ge0NB​≥0, or additive noise with v≥0v\ge0v≥0. A mean constraint requires total expected photons at most nNSnN_SnNS​ for each message separately. Write A(P)=g(ηP+(1−η)NB)−g((1−η)NB)A(P)=g(\eta P+(1-\eta)N_B)-g((1-\eta)N_B)A(P)=g(ηP+(1−η)NB​)−g((1−η)NB​) in the thermal case and A(P)=g(P+v)−g(v)A(P)=g(P+v)-g(v)A(P)=g(P+v)−g(v) in the additive case. All codes use the full countable Fock space and actual finite POVMs. Set B=g(ηNS/[(1−η)NB+1])B=g(\eta N_S/[(1-\eta)N_B+1])B=g(ηNS​/[(1−η)NB​+1]) for thermal noise, and B=g(NS/(v+1))B=g(N_S/(v+1))B=g(NS​/(v+1)) for additive noise. There exist P>NSP>N_SP>NS​, a fixed B<R<A(P)B<R<A(P)B<R<A(P), reliable coherent data codes of energy at most nPnPnP, their decoders, and errors ϵn→0\epsilon_n\to0ϵn​→0. Eventually nP−1>0nP-1>0nP−1>0 and

pn=nP−(n+1)NSnP−1∈[0,1],∣γpn(m)⟩=1−pn∣αn(m)⟩∣0⟩+pn∣0⟩⊗n∣1⟩.p_n=\frac{nP-(n+1)N_S}{nP-1}\in[0,1],\qquad|\gamma_{p_n}(m)\rangle=\sqrt{1-p_n}|\alpha^n(m)\rangle|0\rangle+\sqrt{p_n}|0\rangle^{\otimes n}|1\rangle.pn​=nP−1nP−(n+1)NS​​∈[0,1],∣γpn​​(m)⟩=1−pn​​∣αn(m)⟩∣0⟩+pn​​∣0⟩⊗n∣1⟩.

These are normalized pure codewords on n+1n+1n+1 physical noisy uses, each with mean energy per use at most NSN_SNS​. The receiver discards the last output mode and uses the data decoder. Their actual rate log⁡2Mn/(n+1)\log_2 M_n/(n+1)log2​Mn​/(n+1) is eventually at least RRR, and

Pr⁡(m^=m∣m)≥(1−pn)(1−ϵn).\Pr(\widehat m=m\mid m)\ge(1-p_n)(1-\epsilon_n).Pr(m=m∣m)≥(1−pn​)(1−ϵn​).

Average success does not tend to zero. This constructs the pure-state counterexample while counting both the extra photon and extra noisy channel use.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P27
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Bridge50.P27

open Filter MeasureTheory

open scoped BigOperators ENNReal Topology

-- Exact accepted definitions, checked against their complete source bodies.

open QAlgorithms.Papers.Independent.Frontier30.P24 (bosonicEntropy)

open QAlgorithms.Papers.Independent.Dependency50.P24 (logBits)

open QAlgorithms.Papers.Independent.Renew46.P30 (photonTotal)

open QAlgorithms.Papers.Independent.Support50.P06 (totalEnergy)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- Section 4.2, PDF p.9. Constructs pure codewords on n+1 NOISY uses.
The flag photon and denominator n+1 are counted. The eventual mixing probability
solves the displayed energy formula at energy nP; upper-bounded coherent energies
therefore satisfy the required per-codeword mean bound. The physical receiver
uses the data decoder tensored with identity on the last output mode. -/
theorem pureMeanCounterexample (C : ChannelSpec) (hC : ValidChannel C)
    (hsignal : match C with | .thermal eta _ => 0 < eta | .additive _ => True)
    (NS : ℝ) (hNS : 0 < NS) :
    ∃ P R : ℝ, NS < P ∧ lossBound C NS < R ∧ R < coherentCodeRateBits C P ∧
      ∃ (M : ℕ → ℕ) (F : (n : ℕ) → FockCommunicationCode n (M n))
        (G : (n : ℕ) → FockCommunicationCode (n + 1) (M n))
        (alpha : (n : ℕ) → Fin (M n) → Fin n → ℂ) (epsilon : ℕ → ℝ),
        ReliableCoherent C P F alpha epsilon ∧
        (∀ᶠ n in atTop, R ≤ communicationRateBits n (M n) ∧ R ≤ communicationRateBits (n + 1) (M n)) ∧
        (∃ n0 : ℕ, 0 < n0 ∧ ∀ n ≥ n0,
          0 < (n : ℝ) * P - 1 ∧
          0 ≤ flagMixing NS P n ∧ flagMixing NS P n ≤ 1 ∧
          MeanConstraint NS (G n) ∧ PureEncoding (G n) ∧
          ∀ m, ((G n).encoder m).coefficients = flaggedWord (alpha n m) (flagMixing NS P n) ∧
            (G n).decoder.effect m = discardFlagPOVM (F n).decoder m ∧
            (1 - flagMixing NS P n) * (1 - epsilon n) ≤ messageSuccess C (G n) m) ∧
        ¬ Tendsto (fun n => decodingSuccessProbability C (G n)) atTop (𝓝 0) := by sorry

end QAlgorithms.Papers.Independent.Bridge50.P27

end
Source
Strong converse rates for classical communication over thermal and additive noise bosonic channels, arXiv:1312.3287v2, PDF p. 9, §4.2
Read-back

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

Let CCC be either a thermal specification (η,NB)(\eta,N_B)(η,NB​), with 0<η≤10<\eta\le10<η≤1 and NB≥0N_B\ge0NB​≥0, or an additive specification v≥0v\ge0v≥0, and let the real number NSN_SNS​ satisfy NS>0N_S>0NS​>0. Write

h(x)=(x+1)log⁡(x+1)−xlog⁡xlog⁡2,νC={(1−η)NB,C thermal,v,C additive,μC(P)={ηP+(1−η)NB,C thermal,P+v,C additive.h(x)=\frac{(x+1)\log(x+1)-x\log x}{\log2},\qquad \nu_C=\begin{cases}(1-\eta)N_B,&C\text{ thermal},\\v,&C\text{ additive},\end{cases} \quad \mu_C(P)=\begin{cases}\eta P+(1-\eta)N_B,&C\text{ thermal},\\P+v,&C\text{ additive}.\end{cases}h(x)=log2(x+1)log(x+1)−xlogx​,νC​={(1−η)NB​,v,​C thermal,C additive,​μC​(P)={ηP+(1−η)NB​,P+v,​C thermal,C additive.​

There exist real P,RP,RP,R satisfying

NS<P,{h ⁣(ηNS(1−η)NB+1),C thermal,h ⁣(NSv+1),C additive<R<h(μC(P))−h(νC),N_S<P,\qquad \begin{cases} h\!\left(\dfrac{\eta N_S}{(1-\eta)N_B+1}\right),&C\text{ thermal},\\[2pt] h\!\left(\dfrac{N_S}{v+1}\right),&C\text{ additive} \end{cases} <R<h(\mu_C(P))-h(\nu_C),NS​<P,⎩⎨⎧​h((1−η)NB​+1ηNS​​),h(v+1NS​​),​C thermal,C additive​<R<h(μC​(P))−h(νC​),

together with message counts M(n)>0M(n)>0M(n)>0, length-nnn codes FnF_nFn​, length-(n+1)(n+1)(n+1) codes GnG_nGn​, both with M(n)M(n)M(n) messages, amplitudes αn,m∈Cn\alpha_{n,m}\in\mathbb C^nαn,m​∈Cn, and a real sequence ϵn\epsilon_nϵn​, as follows. For every nnn, 0≤ϵn≤10\le\epsilon_n\le10≤ϵn​≤1, and ϵn→0\epsilon_n\to0ϵn​→0; for every n>0n>0n>0 and every m<M(n)m<M(n)m<M(n), FnF_nFn​ encodes the kernel Kαn,m=cαn,mcαn,m∗K_{\alpha_{n,m}}=c_{\alpha_{n,m}}c_{\alpha_{n,m}}^*Kαn,m​​=cαn,m​​cαn,m​∗​, where

cα(a)=∏i<ne−∣αi∣2/2αiaiai!,c_\alpha(a)=\prod_{i<n} \frac{e^{-|\alpha_i|^2/2}\alpha_i^{a_i}}{\sqrt{a_i!}},cα​(a)=i<n∏​ai​!​e−∣αi​∣2/2αiai​​​,

with ∑i<n∣αn,m,i∣2≤nP\sum_{i<n}|\alpha_{n,m,i}|^2\le nP∑i<n​∣αn,m,i​∣2≤nP, and its individual success is at least 1−ϵn1-\epsilon_n1−ϵn​. Eventually both log⁡M(n)/(nlog⁡2)≥R\log M(n)/(n\log2)\ge RlogM(n)/(nlog2)≥R and log⁡M(n)/((n+1)log⁡2)≥R\log M(n)/((n+1)\log2)\ge RlogM(n)/((n+1)log2)≥R. There is an integer n0>0n_0>0n0​>0 such that, for every n≥n0n\ge n_0n≥n0​, nP−1>0nP-1>0nP−1>0, the number

pn=nP−(n+1)NSnP−1p_n=\frac{nP-(n+1)N_S}{nP-1}pn​=nP−1nP−(n+1)NS​​

lies in [0,1][0,1][0,1], and every encoder state Xn,mX_{n,m}Xn,m​ of GnG_nGn​ has E(Xn,m)≤(n+1)NSE(X_{n,m})\le(n+1)N_SE(Xn,m​)≤(n+1)NS​ and is a rank-one kernel un,mun,m∗u_{n,m}u_{n,m}^*un,m​un,m∗​ for some unit vector un,m∈ℓ2(Nn+1;C)u_{n,m}\in\ell^2(\mathbb N^{n+1};\mathbb C)un,m​∈ℓ2(Nn+1;C). More specifically, for every message,

Xn,m(a,b)=fn,m(a)fn,m(b)‾,fn,m(a)=1−pn cαn,m(a0,…,an−1)1an=0+pn 1a0=⋯=an−1=0, an=1,X_{n,m}(a,b)=f_{n,m}(a)\overline{f_{n,m}(b)},\qquad f_{n,m}(a)= \sqrt{1-p_n}\,c_{\alpha_{n,m}}(a_0,\ldots,a_{n-1})\mathbf1_{a_n=0} +\sqrt{p_n}\,\mathbf1_{a_0=\cdots=a_{n-1}=0,\ a_n=1},Xn,m​(a,b)=fn,m​(a)fn,m​(b)​,fn,m​(a)=1−pn​​cαn,m​​(a0​,…,an−1​)1an​=0​+pn​​1a0​=⋯=an−1​=0, an​=1​,

its decoder effect is

EmGn(a,b)=EmFn((ai)i<n,(bi)i<n)1an=bn,E^{G_n}_m(a,b)= E^{F_n}_m\bigl((a_i)_{i<n},(b_i)_{i<n}\bigr)\mathbf1_{a_n=b_n},EmGn​​(a,b)=EmFn​​((ai​)i<n​,(bi​)i<n​)1an​=bn​​,

and its individual success satisfies sC(Gn,m)≥(1−pn)(1−ϵn)s_C(G_n,m)\ge(1-p_n)(1-\epsilon_n)sC​(Gn​,m)≥(1−pn​)(1−ϵn​). The average successes of GnG_nGn​ do not converge to 000. For clarity, Nk\mathbb N^kNk denotes the functions {0,…,k−1}→N\{0,\ldots,k-1\}\to\mathbb N{0,…,k−1}→N, and

E(X)=∑i<k∑a∈Nk′max⁡{aiRe⁡Xaa,0}E(X)=\sum_{i<k}\sum'_{a\in\mathbb N^k}\max\{a_i\operatorname{Re}X_{aa},0\}E(X)=i<k∑​a∈Nk∑′​max{ai​ReXaa​,0}

is an extended nonnegative real. A length-kkk code with M>0M>0M>0 messages consists of encoder states XmX_mXm​ and decoder kernels EmE_mEm​ on Nk\mathbb N^kNk; every finite quadratic form of every EmE_mEm​ is real and nonnegative, and ∑mEm(a,b)=1a=b\sum_m E_m(a,b)=\mathbf1_{a=b}∑m​Em​(a,b)=1a=b​. Each encoder state has an expansion Xab=∑r′ur(a)wr(b)‾X_{ab}=\sum'_r u_r(a)\overline{w_r(b)}Xab​=∑r′​ur​(a)wr​(b)​, with ur,wr∈ℓ2(Nk;C)u_r,w_r\in\ell^2(\mathbb N^k;\mathbb C)ur​,wr​∈ℓ2(Nk;C) and ∑r∥ur∥∥wr∥<∞\sum_r\|u_r\|\|w_r\|<\infty∑r​∥ur​∥∥wr​∥<∞, has real nonnegative finite quadratic forms, and has summable real diagonal with sum 111. Individual success is the literal kernel pairing

sC(K,m)=Re⁡∑a′∑b′TC(k)(Xm)abEm(b,a).s_C(K,m)=\operatorname{Re}\sum'_a\sum'_b \mathcal T_C^{(k)}(X_m)_{ab}E_m(b,a).sC​(K,m)=Rea∑′​b∑′​TC(k)​(Xm​)ab​Em​(b,a).

For additive C=vC=vC=v, the map is the identity when v=0v=0v=0; otherwise

TC(k)(X)ab=∫Ck(∏i<ke−∣zi∣2/vπv)∑c′Dz(a,c)(∑d′XcdDz(b,d)‾) dz,Dz(a,c)=∏i<kdzi(ai,ci),\mathcal T_C^{(k)}(X)_{ab} =\int_{\mathbb C^k} \left(\prod_{i<k}\frac{e^{-|z_i|^2/v}}{\pi v}\right) \sum'_cD_z(a,c)\left(\sum'_dX_{cd}\overline{D_z(b,d)}\right)\,dz, \quad D_z(a,c)=\prod_{i<k}d_{z_i}(a_i,c_i),TC(k)​(X)ab​=∫Ck​(i<k∏​πve−∣zi​∣2/v​)c∑′​Dz​(a,c)(d∑′​Xcd​Dz​(b,d)​)dz,Dz​(a,c)=i<k∏​dzi​​(ai​,ci​),

where

dz(m,ℓ)=e−∣z∣2/2m!ℓ!∑j=0min⁡(m,ℓ)zm−j(−z‾)ℓ−jj!(m−j)!(ℓ−j)!.d_z(m,\ell)=e^{-|z|^2/2}\sqrt{m!\ell!} \sum_{j=0}^{\min(m,\ell)} \frac{z^{m-j}(-\overline z)^{\ell-j}}{j!(m-j)!(\ell-j)!}.dz​(m,ℓ)=e−∣z∣2/2m!ℓ!​j=0∑min(m,ℓ)​j!(m−j)!(ℓ−j)!zm−j(−z)ℓ−j​.

For thermal C=(η,NB)C=(\eta,N_B)C=(η,NB​), define TN(a,b)=1a=b∏i<k(N/(N+1))ai/(N+1)T_N(a,b)=\mathbf1_{a=b}\prod_{i<k}(N/(N+1))^{a_i}/(N+1)TN​(a,b)=1a=b​∏i<k​(N/(N+1))ai​/(N+1) and

Jη(X,Y)u,w=∑c∈Nk×Nk′∑d∈Nk×Nk′Bη(u,c)Xc1d1Yc2d2Bη(w,d)‾,Bη(u,c)=∏i<kbη(u1i,u2i,c1i,c2i);J_\eta(X,Y)_{u,w} =\sum'_{c\in\mathbb N^k\times\mathbb N^k} \sum'_{d\in\mathbb N^k\times\mathbb N^k} B_\eta(u,c)X_{c_1d_1}Y_{c_2d_2}\overline{B_\eta(w,d)}, \quad B_\eta(u,c)=\prod_{i<k}b_\eta(u_{1i},u_{2i},c_{1i},c_{2i});Jη​(X,Y)u,w​=c∈Nk×Nk∑′​d∈Nk×Nk∑′​Bη​(u,c)Xc1​d1​​Yc2​d2​​Bη​(w,d)​,Bη​(u,c)=i<k∏​bη​(u1i​,u2i​,c1i​,c2i​);

then TC(k)(X)ab=∑e′Jη(X,TNB)(a,e),(b,e)\mathcal T_C^{(k)}(X)_{ab}=\sum'_eJ_\eta(X,T_{N_B})_{(a,e),(b,e)}TC(k)​(X)ab​=∑e′​Jη​(X,TNB​​)(a,e),(b,e)​. Here bη(m,ℓ,p,q)=0b_\eta(m,\ell,p,q)=0bη​(m,ℓ,p,q)=0 when m+ℓ≠p+qm+\ell\ne p+qm+ℓ=p+q, and otherwise

bη(m,ℓ,p,q)=m!ℓ!p!q!∑0≤u≤pu≤m, m−u≤q(pu)(qm−u)(η)u(1−η)p−u+m−u(−η)q−(m−u).b_\eta(m,\ell,p,q)= \sqrt{\frac{m!\ell!}{p!q!}} \sum_{\substack{0\le u\le p\\u\le m,\ m-u\le q}} \binom pu\binom q{m-u} (\sqrt\eta)^u(\sqrt{1-\eta})^{p-u+m-u} (-\sqrt\eta)^{q-(m-u)}.bη​(m,ℓ,p,q)=p!q!m!ℓ!​​0≤u≤pu≤m, m−u≤q​∑​(up​)(m−uq​)(η​)u(1−η​)p−u+m−u(−η​)q−(m−u).

The measures in the displayed integrals are Lebesgue measures. All these series and integrals use their total definitions, assigning 000 to nonsummable series and nonintegrable Bochner integrands; logarithms are natural with log⁡0=0\log0=0log0=0, and 00=10^0=100=1. The code families, amplitudes, and error sequence exist also at n=0n=0n=0; the detailed assertions about GnG_nGn​ apply only from the stated positive n0n_0n0​ onward, where the denominator defining pnp_npn​ is strictly positive.

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