Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Ideal on/off Z-channel information and optimal nonempty fraction

Open
QAlgorithms.Papers.Independent.Intake100.P92.onoff_information

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

prove2quantum

Let independent on/off inputs have nonempty probability q∈[0,1]q\in[0,1]q∈[0,1], with no Eve or dark counts. For a nonempty pulse the receiver clicks with probability x∈[0,1]x\in[0,1]x∈[0,1]; an empty pulse never clicks. Let I(q,x)I(q,x)I(q,x) be the mutual information of this actual Z-channel joint law, and let hhh be binary entropy in bits. Then

I(q,x)=h(qx)−qh(x),lim⁡x↓0I(q,x)x=−qlog⁡2q≤1eln⁡2.I(q,x)=h(qx)-qh(x),\qquad \lim_{x\downarrow0}\frac{I(q,x)}x=-q\log_2q\le\frac1{e\ln2}.I(q,x)=h(qx)−qh(x),x↓0lim​xI(q,x)​=−qlog2​q≤eln21​.

The continuous coefficient is zero at q=0,1q=0,1q=0,1 and attains its maximum at q=e−1q=e^{-1}q=e−1. With μ>0\mu>0μ>0 and 0<η≤10<\eta\le10<η≤1, substituting the exact coherent click probability x=1−e−μtηx=1-e^{-\mu t\eta}x=1−e−μtη gives the same coefficient for I/(μtη)I/(\mu t\eta)I/(μtη) as t↓0t\downarrow0t↓0. The source’s displayed h(qμtη)−qh(μtη)h(q\mu t\eta)-qh(\mu t\eta)h(qμtη)−qh(μtη) uses its first-order detector channel. The raw symbol rate is one, so this is the leading ideal information rate per slot. No security result for the variant is asserted.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P92
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate

open Filter

namespace QAlgorithms.Papers.Independent.Intake100.P92

open QAlgorithms.Papers.Independent.Information100.P21 (Vec tensor)

open QAlgorithms.Papers.Independent.Information100.P75 (phase)

open QAlgorithms.Papers.Independent.Frontier18.P14
  (Fock coherentPair coherentPairCoefficients passiveApply passiveCoefficients
   fockReducedFirst reducedSecond coherentCoefficient)

/-- Appendix A p.11: entropy formula for the linearized Z-channel, its leading
coefficient, and the optimal nonempty-pulse fraction. The exact coherent-detector
channel instead substitutes x=1-exp(-mu t eta), with the same leading coefficient. -/
theorem onoff_information (q : ℝ) (hq : q ∈ Set.Icc (0:ℝ) 1) :
    (∀ x ∈ Set.Icc (0:ℝ) 1, zInfo q x =
      QAlgorithms.binEntropy2 (q*x)-q*QAlgorithms.binEntropy2 x) ∧
    Tendsto (fun x => zInfo q x / x) (nhdsWithin 0 (Set.Ioi 0))
      (nhds (zCoefficient q)) ∧
    zCoefficient q ≤ 1/(Real.exp 1 * Real.log 2) ∧
    zCoefficient (Real.exp (-1)) = 1/(Real.exp 1 * Real.log 2) ∧
    (∀ (mu eta : ℝ), 0 < mu → 0 < eta → eta ≤ 1 →
      Tendsto (fun t => zInfo q (click mu t eta)/(mu*t*eta))
        (nhdsWithin 0 (Set.Ioi 0)) (nhds (zCoefficient q))) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P92

end
Source
Upper Bounds for the Security of two Distributed-Phase Reference Protocols of Quantum Cryptography (Coherent-One-Way and Differential-Phase-Shift), arXiv:0710.4884v2, PDF p. 11, Appendix A, unnumbered: on/off Z-channel ideal information and optimal pulse fraction
Read-back

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

For every real qqq with 0≤q≤10\le q\le10≤q≤1, define P(q,x)=(1−q0q(1−x)qx)P(q,x)=\begin{pmatrix}1-q&0\\q(1-x)&qx\end{pmatrix}P(q,x)=(1−qq(1−x)​0qx​), let

I(q,x)=∑a,b∈{0,1}P(q,x)ablog⁡2 ⁣P(q,x)ab(∑b′P(q,x)ab′)(∑a′P(q,x)a′b),H2(p)=−plog⁡p−(1−p)log⁡(1−p)log⁡2,c(q)=−qlog⁡qlog⁡2.I(q,x)=\sum_{a,b\in\{0,1\}}P(q,x)_{ab}\log_2\!\frac{P(q,x)_{ab}}{(\sum_{b'}P(q,x)_{ab'})(\sum_{a'}P(q,x)_{a'b})}, \quad H_2(p)=\frac{-p\log p-(1-p)\log(1-p)}{\log2}, \quad c(q)=-\frac{q\log q}{\log2}.I(q,x)=a,b∈{0,1}∑​P(q,x)ab​log2​(∑b′​P(q,x)ab′​)(∑a′​P(q,x)a′b​)P(q,x)ab​​,H2​(p)=log2−plogp−(1−p)log(1−p)​,c(q)=−log2qlogq​.

The assertion is the conjunction of

∀x∈[0,1],I(q,x)=H2(qx)−qH2(x),lim⁡x→0+I(q,x)x=c(q),c(q)≤1elog⁡2,c(e−1)=1elog⁡2,\begin{gathered} \forall x\in[0,1],\qquad I(q,x)=H_2(qx)-qH_2(x),\\ \lim_{x\to0^+}\frac{I(q,x)}x=c(q),\qquad c(q)\le\frac1{e\log2},\qquad c(e^{-1})=\frac1{e\log2}, \end{gathered}∀x∈[0,1],I(q,x)=H2​(qx)−qH2​(x),x→0+lim​xI(q,x)​=c(q),c(q)≤elog21​,c(e−1)=elog21​,​

and, for every pair of real numbers μ,η\mu,\etaμ,η satisfying μ>0\mu>0μ>0 and 0<η≤10<\eta\le10<η≤1,

lim⁡t→0+I ⁣(q, 1−e−μtη)μtη=c(q).\lim_{t\to0^+} \frac{I\!\left(q,\,1-e^{-\mu t\eta}\right)}{\mu t\eta}=c(q).t→0+lim​μtηI(q,1−e−μtη)​=c(q).

The hypotheses include q=0,1q=0,1q=0,1, and the first identity includes x=0,1x=0,1x=0,1. Logarithms and quotients use their total real definitions, so log⁡0=0\log0=0log0=0 and division by zero is zero.

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