Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

IV.B.4: approximate no-decoy optimization, Eqs.(36)–(37)

Proved
QAlgorithms.Papers.Independent.Gap48.P25.noDecoyOptimum

by Goku · Oct 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let ν~S>0\widetilde\nu_S>0νS​>0 and s∈(0,1]s\in(0,1]s∈(0,1], 0≤Q<1/40\le Q<1/40≤Q<1/4, A=1−h(2Q)>0A=1-h(2Q)>0A=1−h(2Q)>0 and F(Q)=1−h(2Q)−h(Q)≥0F(Q)=1-h(2Q)-h(Q)\ge0F(Q)=1−h(2Q)−h(Q)≥0, with entropy in bits. Using the source's substitution Q/Y1≈2QQ/Y_1\approx2QQ/Y1​≈2Q only inside entropy defines the quadratic proxy q(μ)=ν~S[μsF(Q)−μ2A/2]q(\mu)=\widetilde\nu_S[\mu sF(Q)-\mu^2 A/2]q(μ)=νS​[μsF(Q)−μ2A/2]. On μ≥0\mu\ge0μ≥0 its unique optimizer and maximum are

μ∗=sF(Q)A,max⁡q=ν~Ssμ∗F(Q)2=ν~Ss2F(Q)22A.\mu_*={sF(Q)\over A},\qquad \max q={\widetilde\nu_Ss\mu_*F(Q)\over2}={\widetilde\nu_Ss^2F(Q)^2\over2A}.μ∗​=AsF(Q)​,maxq=2νS​sμ∗​F(Q)​=2AνS​s2F(Q)2​.

Also q(2μ∗)=0q(2\mu_*)=0q(2μ∗​)=0, including the degenerate F=0F=0F=0 case, where the optimizer is zero. The optimized proxy has quadratic transmission scaling. This is exact optimization of the displayed approximation, without a certified approximation error or an exact physical optimizing intensity.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P25
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Gap48.P25

open scoped BigOperators ComplexConjugate

open Filter

open QAlgorithms.Papers.Independent.Claimed50.P08 (classicalEntropy)

/-- Eqs.(36)–(37), PDF p.29: source quadratic's maximum and optimizer, with
informative entropy domain. The equality F=0 is allowed. -/
theorem noDecoyOptimum (nu s Q : ℝ) (hnu : 0 < nu) (hs : 0 < s) (hs1 : s ≤ 1)
    (hQ : 0 ≤ Q ∧ Q < 1/4) (hA : 0 < 1-QAlgorithms.binEntropy2 (2*Q))
    (hF : 0 ≤ noDecoyF Q) :
    0 ≤ noDecoyOptimizer s Q ∧
    noDecoyProxy nu s Q (noDecoyOptimizer s Q) = nu*s*noDecoyOptimizer s Q*noDecoyF Q/2 ∧
    (∀ mu : ℝ, 0 ≤ mu → noDecoyProxy nu s Q mu ≤ noDecoyProxy nu s Q (noDecoyOptimizer s Q)) ∧
    (∀ mu : ℝ, 0 ≤ mu → (noDecoyProxy nu s Q mu =
      noDecoyProxy nu s Q (noDecoyOptimizer s Q) ↔ mu = noDecoyOptimizer s Q)) ∧
    noDecoyProxy nu s Q (2*noDecoyOptimizer s Q) = 0 ∧
    noDecoyProxy nu s Q (noDecoyOptimizer s Q) =
      s^2*(nu*(noDecoyF Q)^2/(2*(1-QAlgorithms.binEntropy2 (2*Q)))) := by sorry

end QAlgorithms.Papers.Independent.Gap48.P25

end
Source
The Security of Practical Quantum Key Distribution, arXiv:0802.4155v3, PDF p. 29, IV.B.4: approximate no-decoy optimization, Eqs.(36)–(37)
Read-back

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

Let ν,s,Q\nu,s,Qν,s,Q be real numbers satisfying ν>0\nu>0ν>0, 0<s≤10<s\le10<s≤1, and 0≤Q<1/40\le Q<1/40≤Q<1/4. Write H(x)=[−xlog⁡x−(1−x)log⁡(1−x)]/log⁡2H(x)=[-x\log x-(1-x)\log(1-x)]/\log2H(x)=[−xlogx−(1−x)log(1−x)]/log2 for binary entropy, with the endpoint products 0log⁡00\log00log0 interpreted as zero, and suppose also that A=1−H(2Q)>0A=1-H(2Q)>0A=1−H(2Q)>0 and F=1−H(2Q)−H(Q)≥0F=1-H(2Q)-H(Q)\ge0F=1−H(2Q)−H(Q)≥0. Define

m∗=sFA,P(μ)=ν(μsF−μ2A2).m_*=\frac{sF}{A}, \qquad P(\mu)=\nu\left(\mu sF-\frac{\mu^2A}{2}\right).m∗​=AsF​,P(μ)=ν(μsF−2μ2A​).

Then m∗≥0m_*\ge0m∗​≥0, P(m∗)=νsm∗F/2P(m_*)=\nu s m_*F/2P(m∗​)=νsm∗​F/2, and every real μ≥0\mu\ge0μ≥0 satisfies P(μ)≤P(m∗)P(\mu)\le P(m_*)P(μ)≤P(m∗​), with equality if and only if μ=m∗\mu=m_*μ=m∗​. Moreover,

P(2m∗)=0,P(m∗)=s2νF22A.P(2m_*)=0, \qquad P(m_*)=s^2\frac{\nu F^2}{2A}.P(2m∗​)=0,P(m∗​)=s22AνF2​.

There is no upper restriction on μ\muμ; the hypotheses permit F=0F=0F=0, in which case m∗=0m_*=0m∗​=0 and the asserted maximum is zero.

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

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 21, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me