Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Loss amplification of the disturbed-coin fraction

Open
QAlgorithms.Papers.Independent.Intake100.P99.loss_amplifies_coin_disturbance

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

prove2quantum

Consider a family of normalized joint states of nnn original virtual coins and the classical removal flags, with arbitrary correlations. Let 0≤Δ≤10\leq\Delta\leq10≤Δ≤1 and 0≤f<10\leq f<10≤f<1. Every removal mask with nonzero probability removes at most nfnfnf signals. Let NXN_XNX​ be the number of original XXX-minus coins, LLL the number of removed signals, and NX,retN_{X,\mathrm{ret}}NX,ret​ the number of minus coins at the surviving positions. If Pr⁡[NX≥nΔ]\Pr[N_X\geq n\Delta]Pr[NX​≥nΔ] is exponentially small, then

Pr⁡ ⁣[NX,retn−L≥Δ1−f]≤e−Cn(n≥n0)\Pr\!\left[\frac{N_{X,\mathrm{ret}}}{n-L}\geq\frac\Delta{1-f}\right]\leq e^{-Cn}\qquad(n\geq n_0)Pr[n−LNX,ret​​≥1−fΔ​]≤e−Cn(n≥n0​)

for some C>0C>0C>0 and n0n_0n0​. Thus the surviving disturbed fraction is bounded by the original disturbed fraction divided by the retained fraction. The exact-fraction case L=nfL=nfL=nf is included; an upper bound on the loss fraction gives the same conservative estimate. The fraction on the left is computed from the actual outcomes and mask, rather than supplied as an unrelated parameter.

Formalization Note All virtual coins are retained in the joint experiment used to count outcomes, including those belonging to lost signals; the loss flags commute with their hypothetical XXX measurement. This is the counting normalization in equation (32), with no conditioning on rare block acceptance.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P99
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate BigOperators

namespace QAlgorithms.Papers.Independent.Intake100.P99

attribute [local instance] Classical.propDecidable Classical.decEq

open QAlgorithms

open QAlgorithms.Papers.Independent.Information100.P69 (diamond)

open QAlgorithms.Papers.Independent.Dependency50.P48 (IsDilation receiver)

/-- arXiv:quant-ph/0212066v3, PDF p.12, (32).
Retained disturbance is computed using the actual loss mask and original-to-
retained normalization. The budget is an upper bound, so exact loss fractions
are included. The joint Born law includes arbitrarily correlated removal masks. -/
theorem loss_amplifies_coin_disturbance
    (delta loss : ℝ) (hdelta : 0 ≤ delta ∧ delta ≤ 1)
    (hloss : 0 ≤ loss ∧ loss < 1)
    (rho : (n : ℕ) → Matrix (Qubits n × Qubits n) (Qubits n × Qubits n) ℂ)
    (hstate : ∀ n, IsDensityMatrix (rho n))
    (hmask : ∀ n, LossBudget (rho n) loss)
    (hbalanced : ExponentiallySmall
      (fun n => coinXFailure (traceRight (rho n)) delta)) :
    ExponentiallySmall (fun n => retainedLossFailure (rho n) delta loss) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P99

end
Source
Security of quantum key distribution with imperfect devices, arXiv:quant-ph/0212066v3, PDF p. 12, Unnumbered loss amplification of coin disturbance, eq.(32)
Read-back

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

Let δ,ℓ∈R\delta,\ell\in\mathbb Rδ,ℓ∈R satisfy 0≤δ≤10\le\delta\le10≤δ≤1 and 0≤ℓ<10\le\ell<10≤ℓ<1, and for every natural number nnn, including zero, let ρn\rho_nρn​ be a positive semidefinite complex matrix of trace one indexed by Qn×QnQ_n\times Q_nQn​×Qn​, where Qn={0,1}nQ_n=\{0,1\}^nQn​={0,1}n. Write ∣x∣|x|∣x∣ for Hamming weight and define (Hn)y,x=2−n/2(−1)∑ixiyi(H_n)_{y,x}=2^{-n/2}(-1)^{\sum_i x_i y_i}(Hn​)y,x​=2−n/2(−1)∑i​xi​yi​. Assume that for every nnn and every mask m∈Qnm\in Q_nm∈Qn​,

ℓn<∣m∣ ⟹ Re⁡∑x∈Qn(ρn)(x,m),(x,m)=0.\ell n<|m|\ \Longrightarrow\ \operatorname{Re}\sum_{x\in Q_n}(\rho_n)_{(x,m),(x,m)}=0.ℓn<∣m∣ ⟹ Rex∈Qn​∑​(ρn​)(x,m),(x,m)​=0.

Let (σn)x,y=∑m∈Qn(ρn)(x,m),(y,m)(\sigma_n)_{x,y}=\sum_{m\in Q_n}(\rho_n)_{(x,m),(y,m)}(σn​)x,y​=∑m∈Qn​​(ρn​)(x,m),(y,m)​, the marginal obtained by tracing out the second register. Assume also that there exist C>0C>0C>0 and n0∈Nn_0\in\mathbb Nn0​∈N such that, for every n≥n0n\ge n_0n≥n0​,

∑x∈Qnnδ≤∣x∣Re⁡(HnσnHn†)x,x≤e−Cn.\sum_{\substack{x\in Q_n\\n\delta\le |x|}} \operatorname{Re}(H_n\sigma_nH_n^\dagger)_{x,x}\le e^{-Cn}.x∈Qn​nδ≤∣x∣​∑​Re(Hn​σn​Hn†​)x,x​≤e−Cn.

Then there exist C′>0C'>0C′>0 and N0∈NN_0\in\mathbb NN0​∈N such that, for every n≥N0n\ge N_0n≥N0​,

∑x,m∈Qnδ/(1−ℓ)≤#{i:mi=0, xi=1}/(n−∣m∣)Re⁡ ⁣[(Hn⊗I)ρn(Hn⊗I)†](x,m),(x,m)≤e−C′n.\sum_{\substack{x,m\in Q_n\\ \displaystyle \delta/(1-\ell)\le \#\{i:m_i=0,\ x_i=1\}/(n-|m|)}} \operatorname{Re}\!\left[(H_n\otimes I)\rho_n(H_n\otimes I)^\dagger\right]_{(x,m),(x,m)} \le e^{-C'n}.x,m∈Qn​δ/(1−ℓ)≤#{i:mi​=0, xi​=1}/(n−∣m∣)​∑​Re[(Hn​⊗I)ρn​(Hn​⊗I)†](x,m),(x,m)​≤e−C′n.

The loss-budget threshold is strict, while both failure-event thresholds include equality. The retained fraction is defined to be zero when its denominator is zero. At δ=0\delta=0δ=0, the assumed failure event contains every basis string and has probability one for every nnn, so the exponential-smallness hypothesis cannot hold.

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

    Confirmed by the moderator at approval.

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