Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Appendix B: factor-two equivalence

Open
QAlgorithms.Papers.Independent.Bridge50.P44.alternative_secrecy

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

prove2quantum

Let KKK be a nonzero finite-dimensional system of dimension ddd, EEE an arbitrary separable memory, and ρKE\rho_{KE}ρKE​ a normalized positive trace-class state. Write ρE=tr⁡KρKE\rho_E=\operatorname{tr}_K\rho_{KE}ρE​=trK​ρKE​, τK=IK/d\tau_K=I_K/dτK​=IK​/d, and s=inf⁡σED(ρKE,τK⊗σE)s=\inf_{\sigma_E}D(\rho_{KE},\tau_K\otimes\sigma_E)s=infσE​​D(ρKE​,τK​⊗σE​), where every reference σE\sigma_EσE​ is a normalized positive trace-class state. Then

D(ρKE,τK⊗ρE)≤2s≤2D(ρKE,τK⊗ρE).D(\rho_{KE},\tau_K\otimes\rho_E)\le2s\le2D(\rho_{KE},\tau_K\otimes\rho_E).D(ρKE​,τK​⊗ρE​)≤2s≤2D(ρKE​,τK​⊗ρE​).

No optimal-reference attainment is claimed for infinite-dimensional memory. All distances are finite on these states; the infimum is over a nonempty feasible set and is represented in the extended nonnegative reals. The inequality can be multiplied by the same success probability on both sides. It asserts factor-two equivalence, without a composable additivity claim for the optimized criterion.

If E is finite-dimensional, there exists a normalized reference state attaining s, so the infimum is the minimum printed by the source. The unrestricted separable-memory inequalities remain as stated.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Bridge50_P44
Formal statement
noncomputable section

open scoped BigOperators Matrix ComplexOrder

namespace QAlgorithms.Papers.Independent.Bridge50.P44

open QAlgorithms

open QAlgorithms.RealRegisters (Hilbert)

open QAlgorithms.Papers.Independent.Dependency50.P33 (State traceSize)

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

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

open QAlgorithms.Papers.Independent.Information100.P76 (maximallyMixed)

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

attribute [local instance] Classical.propDecidable

attribute [local instance] Classical.decEq

/-- PDF pp.44--45, Appendix B: factor-two equivalence with optimized reference
states, on arbitrary separable memory. The infimum is explicitly attained for
finite-dimensional memory, retaining the source's minimum. No infinite-dimensional
compactness or attainment is assumed. Both factors are normalized references;
an abort-success weight multiplies both identically. -/
theorem alternative_secrecy {d : ℕ} (hd : 0 < d) {E : Type} [Countable E]
    (rho : State (Fin d × E)) :
    nuclearDistance rho.coefficients (uniformReference (partialTraceFirst rho.coefficients)) ≤
      2 * optimizedSecrecy rho ∧
    2 * optimizedSecrecy rho ≤
      2 * nuclearDistance rho.coefficients (uniformReference (partialTraceFirst rho.coefficients)) ∧
    (Finite E → ∃ sigma : State E,
      nuclearDistance rho.coefficients (uniformReference sigma.coefficients) =
        optimizedSecrecy rho) := by sorry

end QAlgorithms.Papers.Independent.Bridge50.P44

end
Source
Cryptographic security of quantum key distribution, arXiv:1409.3525v1, PDF p. 45, Appendix B: factor-two equivalence
Read-back

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

Let ddd be a positive natural number, let EEE be a countable type, and let ρ\rhoρ be a state on {0,…,d−1}×E\{0,\ldots,d-1\}\times E{0,…,d−1}×E. Here a state on an index type SSS is a complex coefficient matrix XXX admitting an expansion Xij=∑n=0∞un(i)vn(j)‾X_{ij}=\sum_{n=0}^{\infty}u_n(i)\overline{v_n(j)}Xij​=∑n=0∞​un​(i)vn​(j)​, where un,vn∈ℓ2(S;C)u_n,v_n\in\ell^2(S;\mathbb C)un​,vn​∈ℓ2(S;C) and ∑n∥un∥2∥vn∥2<∞\sum_n\|u_n\|_2\|v_n\|_2<\infty∑n​∥un​∥2​∥vn​∥2​<∞, such that every finite quadratic form ∑i,j∈Fzi‾Xijzj\sum_{i,j\in F}\overline{z_i}X_{ij}z_j∑i,j∈F​zi​​Xij​zj​, for every finite F⊆SF\subseteq SF⊆S and every z:S→Cz:S\to\mathbb Cz:S→C, has zero imaginary part and nonnegative real part, and such that the real diagonal entries are summable with sum 111. Define N(X)\mathcal N(X)N(X) as the infimum, over all expansions of the displayed kind, of ∑n∥un∥2∥vn∥2\sum_n\|u_n\|_2\|v_n\|_2∑n​∥un​∥2​∥vn​∥2​, regarded as an extended nonnegative real number; if there is no such expansion, this infimum is +∞+\infty+∞. Put Dnuc(X,Y)=N(X−Y)/2D_{\mathrm{nuc}}(X,Y)=\mathcal N(X-Y)/2Dnuc​(X,Y)=N(X−Y)/2, define (ρE)ef=∑a=0d−1ρ(a,e),(a,f)(\rho_E)_{ef}=\sum_{a=0}^{d-1}\rho_{(a,e),(a,f)}(ρE​)ef​=∑a=0d−1​ρ(a,e),(a,f)​, and define Ud(Y)(a,e),(b,f)=δabYef/dU_d(Y)_{(a,e),(b,f)}=\delta_{ab}Y_{ef}/dUd​(Y)(a,e),(b,f)​=δab​Yef​/d. Finally, put s(ρ)=inf⁡τDnuc(ρ,Ud(τ))s(\rho)=\inf_{\tau}D_{\mathrm{nuc}}(\rho,U_d(\tau))s(ρ)=infτ​Dnuc​(ρ,Ud​(τ)), where τ\tauτ ranges over all states on EEE. Then, in the extended nonnegative reals,

Dnuc(ρ,Ud(ρE))≤2s(ρ)≤2Dnuc(ρ,Ud(ρE)).D_{\mathrm{nuc}}(\rho,U_d(\rho_E)) \le 2s(\rho) \le 2D_{\mathrm{nuc}}(\rho,U_d(\rho_E)).Dnuc​(ρ,Ud​(ρE​))≤2s(ρ)≤2Dnuc​(ρ,Ud​(ρE​)).

Moreover, if EEE is finite, there exists a state τ\tauτ on EEE satisfying Dnuc(ρ,Ud(τ))=s(ρ)D_{\mathrm{nuc}}(\rho,U_d(\tau))=s(\rho)Dnuc​(ρ,Ud​(τ))=s(ρ). This includes d=1d=1d=1; if EEE is empty, no state ρ\rhoρ satisfies the hypotheses.

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