Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Reversible optimal implementations and cost symmetry

Open
QAlgorithms.Papers.Independent.Gap48.P20.timeReversal

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

prove2quantum

For a normalized pure state ∣ψ⟩ACBR|\psi\rangle^{ACBR}∣ψ⟩ACBR on nonzero finite registers, define Q∗=I(C;R∣B)/2Q_* = I(C;R\mid B)/2Q∗​=I(C;R∣B)/2 and E∗=[I(C;A)−I(C;B)]/2E_*=[I(C;A)-I(C;B)]/2E∗​=[I(C;A)−I(C;B)]/2, using entropy in bits. Let ψswap\psi^{\mathrm{swap}}ψswap denote the same state with the sender and receiver side information A,BA,BA,B exchanged. Then

I(C;R∣B)=I(C;R∣A),Q∗(ψswap)=Q∗(ψ),E∗(ψswap)=−E∗(ψ).I(C;R\mid B)=I(C;R\mid A),\qquad Q_*(\psi^{\mathrm{swap}})=Q_*(\psi),\qquad E_*(\psi^{\mathrm{swap}})=-E_*(\psi).I(C;R∣B)=I(C;R∣A),Q∗​(ψswap)=Q∗​(ψ),E∗​(ψswap)=−E∗​(ψ).

There is a family of coherent protocols attaining (Q∗,E∗)(Q_*,E_*)(Q∗​,E∗​): for every positive error tolerance and rate slack, all sufficiently large positive blocklengths have local unitaries with explicit pure input ancillas and retained output work registers. Their complete output, including the source, final Bell pairs, and pure output work, approaches the ideal pure target in full trace norm. Reversing these same local unitaries and sending the same message back approaches the original source, Bell pairs, and input work with the same vanishing-error requirement. The forward net Bell consumption approaches E∗E_*E∗​; reversal exchanges the Bell banks and attains (Q∗,−E∗)(Q_*,-E_*)(Q∗​,−E∗​) for transferring CCC back.

This statement includes zero entanglement cost. It expresses operational reversibility, including work registers, rather than only the entropy identity.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P20
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Gap48.P20

open scoped Matrix ComplexConjugate

open QAlgorithms.Papers.Independent.Next46.P39 (rectAct)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- Self-duality under time reversal, PDF pp.2–4: CMI duality, opposite ebit
cost, and actual reversible coherent implementations at the corner. -/
theorem timeReversal {A C B R : Type*}
    [Fintype A] [Fintype C] [Fintype B] [Fintype R]
    [Nonempty A] [Nonempty C] [Nonempty B] [Nonempty R]
    (psi : EuclideanSpace ℂ (RedistributionSource A C B R)) (hpsi : IsState psi) :
    2 * quantumCost psi = 2 * quantumCost (swappedSource psi) ∧
    redistributionEntanglementRate (swappedSource psi) = -redistributionEntanglementRate psi ∧
    ReversiblyAchievable psi (quantumCost psi) (redistributionEntanglementRate psi) ∧
    RedistributionAchievable (swappedSource psi) (quantumCost psi) (-redistributionEntanglementRate psi) := by sorry

end QAlgorithms.Papers.Independent.Gap48.P20

end
Source
The operational meaning of quantum conditional information, arXiv:quant-ph/0612050v2, PDF p. 2, time-reversal
Read-back

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

For finite, nonempty types A,C,B,RA,C,B,RA,C,B,R and a vector ψ\psiψ indexed by R×(A×(C×B))R\times(A\times(C\times B))R×(A×(C×B)) with Euclidean norm 111, define ψ~(r,(b,(c,a)))=ψ(r,(a,(c,b)))\widetilde\psi(r,(b,(c,a)))=\psi(r,(a,(c,b)))ψ​(r,(b,(c,a)))=ψ(r,(a,(c,b))). Write Hψ(S)H_\psi(S)Hψ​(S) for

−Re⁡Tr⁡ ⁣[f(ρS)],f(x)=xlog⁡2x,-\operatorname{Re}\operatorname{Tr}\!\left[f(\rho_S)\right], \qquad f(x)=x\log_2x,−ReTr[f(ρS​)],f(x)=xlog2​x,

where f(ρS)f(\rho_S)f(ρS​) uses real continuous functional calculus and ρS\rho_SρS​ is obtained from the matrix with entries ψxψy‾\psi_x\overline{\psi_y}ψx​ψy​​ by summing entries with equal complementary coordinates. Define

Qψ=Hψ(CB)+Hψ(RB)−Hψ(B)−Hψ(RCB)2,Eψ=Hψ(A)−Hψ(AC)−Hψ(B)+Hψ(CB)2,Q_\psi=\frac{H_\psi(CB)+H_\psi(RB)-H_\psi(B)-H_\psi(RCB)}2, \qquad E_\psi=\frac{H_\psi(A)-H_\psi(AC)-H_\psi(B)+H_\psi(CB)}2,Qψ​=2Hψ​(CB)+Hψ​(RB)−Hψ​(B)−Hψ​(RCB)​,Eψ​=2Hψ​(A)−Hψ​(AC)−Hψ​(B)+Hψ​(CB)​,

and define Qψ~,Eψ~Q_{\widetilde\psi},E_{\widetilde\psi}Qψ​​,Eψ​​ by the same formulas with the exchanged Alice and Bob registers. The theorem asserts all four statements

2Qψ=2Qψ~,Eψ~=−Eψ,ψ satisfies the reversible coding condition at (Qψ,Eψ),ψ~ satisfies the forward coding condition at (Qψ,−Eψ).2Q_\psi=2Q_{\widetilde\psi}, \qquad E_{\widetilde\psi}=-E_\psi, \qquad \psi\text{ satisfies the reversible coding condition at }(Q_\psi,E_\psi), \qquad \widetilde\psi\text{ satisfies the forward coding condition at }(Q_\psi,-E_\psi).2Qψ​=2Qψ​​,Eψ​​=−Eψ​,ψ satisfies the reversible coding condition at (Qψ​,Eψ​),ψ​ satisfies the forward coding condition at (Qψ​,−Eψ​).

The reversible coding condition means Qψ≥0Q_\psi\ge0Qψ​≥0 and that, for every ε,δ>0\varepsilon,\delta>0ε,δ>0, every sufficiently large positive nnn admits natural resource counts q,k,lq,k,lq,k,l, four workspace dimensions of the form w+1w+1w+1, and encoder and decoder matrices satisfying both unitary identities. The encoder maps Alice’s AnCnA^nC^nAnCn, her kkk-qubit entangled register, and input workspace to her AnA^nAn, an lll-qubit register, output workspace, and a qqq-qubit message; the decoder maps that message, Bob’s BnB^nBn, his kkk-qubit register, and input workspace to CnBnC^nB^nCnBn, his lll-qubit register, and output workspace. Their global matrix GGG preserves RnR^nRn and contracts the message index, with entries 1r=r′∑mE(u,m;x)D(v;m,y)\mathbf1_{r=r'}\sum_m E(u,m;x)D(v;m,y)1r=r′​∑m​E(u,m;x)D(v;m,y). Starting with source amplitude ∏j<nψ(rj,(aj,(cj,bj)))\prod_{j<n}\psi(r_j,(a_j,(c_j,b_j)))∏j<n​ψ(rj​,(aj​,(cj​,bj​))), entangled-pair amplitude 1s=t/2k\mathbf1_{s=t}/\sqrt{2^k}1s=t​/2k​, and zero input workspaces, both the forward pure-matrix error under GGG and the reverse pure-matrix error under G†G^\daggerG†, relative to the corresponding target with pair amplitude 1s=t/2l\mathbf1_{s=t}/\sqrt{2^l}1s=t​/2l​ and zero output workspaces, are at most ε\varepsilonε; moreover q≤n(Qψ+δ)q\le n(Q_\psi+\delta)q≤n(Qψ​+δ) and ∣k−l−nEψ∣≤nδ|k-l-nE_\psi|\le n\delta∣k−l−nEψ​∣≤nδ. The forward coding condition for ψ~\widetilde\psiψ​ means Qψ≥0Q_\psi\ge0Qψ​≥0 and that, for every ε,δ>0\varepsilon,\delta>0ε,δ>0, every sufficiently large positive nnn admits natural q,k,lq,k,lq,k,l and channels

(Bn×Cn)×{0,1}k⟶(Bn×{0,1}l)×{0,1}q,{0,1}q×(An×{0,1}k)⟶(Cn×An)×{0,1}l,(B^n\times C^n)\times\{0,1\}^k\longrightarrow (B^n\times\{0,1\}^l)\times\{0,1\}^q, \qquad \{0,1\}^q\times(A^n\times\{0,1\}^k)\longrightarrow (C^n\times A^n)\times\{0,1\}^l,(Bn×Cn)×{0,1}k⟶(Bn×{0,1}l)×{0,1}q,{0,1}q×(An×{0,1}k)⟶(Cn×An)×{0,1}l,

whose composition, leaving RnR^nRn unchanged, has error at most ε\varepsilonε between the corresponding input and target pure matrices, with q≤n(Qψ+δ)q\le n(Q_\psi+\delta)q≤n(Qψ​+δ) and k−l≤n(−Eψ+δ)k-l\le n(-E_\psi+\delta)k−l≤n(−Eψ​+δ). Here a channel is a map X↦∑jKjXKj†X\mapsto\sum_jK_jXK_j^\daggerX↦∑j​Kj​XKj†​ for a finite family satisfying ∑jKj†Kj=1\sum_jK_j^\dagger K_j=1∑j​Kj†​Kj​=1; Xn=Fin⁡(n)→XX^n=\operatorname{Fin}(n)\to XXn=Fin(n)→X; a pure matrix has entries vxvy‾v_x\overline{v_y}vx​vy​​; and every error is Re⁡Tr⁡Z†Z\operatorname{Re}\operatorname{Tr}\sqrt{Z^\dagger Z}ReTrZ†Z​, without a factor of 1/21/21/2.

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 paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me