Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Separable two-basis one-bit locking

Open
QAlgorithms.Papers.Independent.Intakenext100.P100.twoBasis_locking

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

prove2quantum

Let d≥1d\ge1d≥1. Let U0=IU_0=IU0​=I and U1U_1U1​ be unitary on Cd\mathbb C^dCd, with the computational basis and the columns of U1U_1U1​ mutually unbiased. For independent uniform k∈{0,…,d−1}k\in\{0,\ldots,d-1\}k∈{0,…,d−1} and t∈{0,1}t\in\{0,1\}t∈{0,1}, define

ρ=12d∑k,t∣k,t⟩⟨k,t∣A⊗Ut∣k⟩⟨k∣Ut†B.\rho=\frac1{2d}\sum_{k,t}|k,t\rangle\langle k,t|_A\otimes U_t|k\rangle\langle k|U_t^\dagger{}_B.ρ=2d1​k,t∑​∣k,t⟩⟨k,t∣A​⊗Ut​∣k⟩⟨k∣Ut†​B​.

This is a separable density state. Write IcI_cIc​ for the supremum of Shannon mutual information in bits over all independent finite local POVMs, and Ic(1)I_c^{(1)}Ic(1)​ for its optimum after at most one Alice-to-Bob classical bit. Disclosing ttt, undoing UtU_tUt​ and measuring kkk leaves both parties with (k,t)(k,t)(k,t), in the normalized classical state ρ′\rho'ρ′. Then

Ic(ρ)=12log⁡2d,Ic(ρ′)=Ic(1)(ρ)=1+log⁡2d,Ic(1)(ρ)−Ic(ρ)=1+12log⁡2d.I_c(\rho)=\tfrac12\log_2 d,\qquad I_c(\rho')=I_c^{(1)}(\rho)=1+\log_2 d,\qquad I_c^{(1)}(\rho)-I_c(\rho)=1+\tfrac12\log_2 d.Ic​(ρ)=21​log2​d,Ic​(ρ′)=Ic(1)​(ρ)=1+log2​d,Ic(1)​(ρ)−Ic​(ρ)=1+21​log2​d.

This is the paper's explicit separable locking example, with the disclosed key counted in the final correlation.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P100
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intakenext100.P100

open QAlgorithms

open scoped Matrix ComplexConjugate ComplexOrder

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF pp.2--3, Eq.(5): separable two-basis locking, including the retained
key bit and the optimized one-way one-bit value. The final state is the
explicit decoded disclosure output, not an unrelated state variable. -/
theorem twoBasis_locking (d : ℕ) (hd : 0 < d)
    (U : Fin 2 → Matrix.unitaryGroup (Fin d) ℂ) (hU : IsUnbiasedFamily U) :
    IsDensityMatrix (lockingState U) ∧
    Entanglement.IsSeparablePositive (lockingState U) ∧
    IsDensityMatrix (disclosedState d 2) ∧
    (∃ P : OneWayMap (Fin d × Fin 2) (Fin d) (Fin d × Fin 2) (Fin d × Fin 2) 1,
      P.messages = 2 ∧ oneWayOutput P (lockingState U) = disclosedState d 2) ∧
    lockingMeasuredInformation (lockingState U) = (1 / 2 : ℝ) * Real.logb 2 d ∧
    lockingMeasuredInformation (disclosedState d 2) = 1 + Real.logb 2 d ∧
    oneWayInformation 1 (lockingState U) = 1 + Real.logb 2 d ∧
    oneWayInformation 1 (lockingState U) - lockingMeasuredInformation (lockingState U) =
      1 + (1 / 2 : ℝ) * Real.logb 2 d := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P100

end
Source
Locking classical correlation in quantum states, arXiv:quant-ph/0303088v1, PDF p. 2, Eq. (5), conclusion on PDF p. 3
Read-back

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

For every natural number d>0d>0d>0 and two unitary complex d×dd\times dd×d matrices U0,U1U_0,U_1U0​,U1​ such that U0=IU_0=IU0​=I and

∣∑i(Ut)ik‾(Us)ij∣2=1d(t≠s, j,k∈[d]),\left|\sum_i\overline{(U_t)_{ik}}(U_s)_{ij}\right|^2=\frac1d \quad(t\ne s,\ j,k\in[d]),​i∑​(Ut​)ik​​(Us​)ij​​2=d1​(t=s, j,k∈[d]),

define matrices ω\omegaω on ([d]×[2])×[d]([d]\times[2])\times[d]([d]×[2])×[d] and χ\chiχ on ([d]×[2])×([d]×[2])([d]\times[2])\times([d]\times[2])([d]×[2])×([d]×[2]) by

ω((i,t),y),((i′,t′),y′)={(2d)−1(Ut)yi(Ut)y′i‾,(i,t)=(i′,t′),0,otherwise,χ(v,w),(v′,w′)={(2d)−1,(v,w)=(v′,w′) and v=w,0,otherwise.\omega_{((i,t),y),((i',t'),y')}= \begin{cases} (2d)^{-1}(U_t)_{yi}\overline{(U_t)_{y'i}},&(i,t)=(i',t'),\\ 0,&\text{otherwise}, \end{cases} \qquad \chi_{(v,w),(v',w')}= \begin{cases} (2d)^{-1},&(v,w)=(v',w')\ \text{and }v=w,\\ 0,&\text{otherwise}. \end{cases}ω((i,t),y),((i′,t′),y′)​={(2d)−1(Ut​)yi​(Ut​)y′i​​,0,​(i,t)=(i′,t′),otherwise,​χ(v,w),(v′,w′)​={(2d)−1,0,​(v,w)=(v′,w′) and v=w,otherwise.​

Then ω\omegaω and χ\chiχ are positive semidefinite with trace 111, and ω\omegaω is a finite sum ∑jwjAj⊗Bj\sum_jw_jA_j\otimes B_j∑j​wj​Aj​⊗Bj​ with wj≥0w_j\ge0wj​≥0 and each Aj,BjA_j,B_jAj​,Bj​ positive semidefinite of trace 111. There exists an operation from ω\omegaω to χ\chiχ with exactly two messages, specified by some natural-number Kraus count rrr, matrices Kt,jK_{t,j}Kt,j​ on [d]×[2][d]\times[2][d]×[2] satisfying ∑t,jKt,j†Kt,j=I\sum_{t,j}K_{t,j}^\dagger K_{t,j}=I∑t,j​Kt,j†​Kt,j​=I, and channels Bt\mathcal B_tBt​ from [d][d][d] to [d]×[2][d]\times[2][d]×[2], whose output is ∑t(At⊗Bt)(ω)=χ\sum_t(\mathcal A_t\otimes\mathcal B_t)(\omega)=\chi∑t​(At​⊗Bt​)(ω)=χ, where At(X)=∑j∈[r]Kt,jXKt,j†\mathcal A_t(X)=\sum_{j\in[r]}K_{t,j}XK_{t,j}^\daggerAt​(X)=∑j∈[r]​Kt,j​XKt,j†​. Each channel here admits a finite Kraus representation with Kraus adjoint-products summing to the identity. Writing I(ρ)\mathcal I(\rho)I(ρ) for the supremum over all finite independent local POVMs of ∑s,tpstlog⁡2[pst/((∑vpsv)(∑uput))]\sum_{s,t}p_{st}\log_2[p_{st}/((\sum_vp_{sv})(\sum_up_{ut}))]∑s,t​pst​log2​[pst​/((∑v​psv​)(∑u​put​))], with pst=Re⁡tr⁡((Ms⊗Nt)ρ)p_{st}=\operatorname{Re}\operatorname{tr}((M_s\otimes N_t)\rho)pst​=Retr((Ms​⊗Nt​)ρ), the remaining conclusions are

I(ω)=12log⁡2d,I(χ)=1+log⁡2d,I→,1(ω)=1+log⁡2d,I→,1(ω)−I(ω)=1+12log⁡2d.\mathcal I(\omega)=\tfrac12\log_2d,\qquad \mathcal I(\chi)=1+\log_2d,\qquad \mathcal I_{\rightarrow,1}(\omega)=1+\log_2d,\qquad \mathcal I_{\rightarrow,1}(\omega)-\mathcal I(\omega)=1+\tfrac12\log_2d.I(ω)=21​log2​d,I(χ)=1+log2​d,I→,1​(ω)=1+log2​d,I→,1​(ω)−I(ω)=1+21​log2​d.

Here I→,1\mathcal I_{\rightarrow,1}I→,1​ is the supremum of I\mathcal II of the output over all operations of the same form with a positive number of messages at most 222, arbitrary finite Kraus count, and arbitrary positive finite output dimensions. A local POVM consists of positive semidefinite matrices summing to the identity; division by zero and log⁡20\log_2 0log2​0 in the information formula give 000. The case d=1d=1d=1 is included.

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