Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Coherent polar encoder and reversed phase side information

Open
QAlgorithms.Papers.Independent.Intakethird100.P74.phase_encoder_duality

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let N:A′→BE\mathcal N:A'\to BEN:A′→BE be a memoryless finite-register quantum wiretap channel with qubit input, with a fixed isometric extension V:A′→BES2V:A'\to BES_2V:A′→BES2​. Choose two unit purifications ∣ψz⟩A′S1|\psi_z\rangle^{A'S_1}∣ψz​⟩A′S1​ of the input states, with z∈{0,1}z\in\{0,1\}z∈{0,1} equiprobable. Both shields S1,S2S_1,S_2S1​,S2​ are excluded from Eve. Let WA,BW_{A,B}WA,B​ and WA,EW_{A,E}WA,E​ be the resulting amplitude channels to Bob and Eve. The virtual phase channel WP,BW_{P,B}WP,B​ has output BCS1S2BCS_1S_2BCS1​S2​, obtained by phase modulating the reference of the coherent source 2−1/2∑z∣z⟩C∣ψz⟩2^{-1/2}\sum_z|z\rangle^C|\psi_z\rangle2−1/2∑z​∣z⟩C∣ψz​⟩ and tracing only Eve after VVV. Entropies and Holevo information are in bits, and FFF denotes squared fidelity.

For N=2nN=2^nN=2n and a phase input row vector xNx^NxN, form the coherent output

∣ΩxN⟩=2−N/2∑zN(−1)xN⋅zN∣ψzNGN⟩BNENS1NS2N∣zN⟩CN,|\Omega_{x^N}\rangle=2^{-N/2}\sum_{z^N}(-1)^{x^N\cdot z^N} |\psi_{z^N G_N}\rangle^{B^NE^NS_1^NS_2^N}|z^N\rangle^{C^N},∣ΩxN​⟩=2−N/2zN∑​(−1)xN⋅zN∣ψzNGN​​⟩BNENS1N​S2N​∣zN⟩CN,

where the signal vector is the product of the one-use purified outputs. Let ωyN=⨂jωyj\omega_{y^N}=\bigotimes_j\omega_{y_j}ωyN​=⨂j​ωyj​​ be the product virtual phase output and let UECNU_E^{C^N}UECN​ be the polar encoder acting only on the reference register. Then

Tr⁡EN∣ΩxN⟩⟨ΩxN∣=UECNωxNGNT(UECN)†.\operatorname{Tr}_{E^N}|\Omega_{x^N}\rangle\langle\Omega_{x^N}| =U_E^{C^N}\omega_{x^N G_N^T}(U_E^{C^N})^\dagger.TrEN​∣ΩxN​⟩⟨ΩxN​∣=UECN​ωxNGNT​​(UECN​)†.

For each index, the split state obtained by revealing future phase bits and averaging earlier phase bits equals the corresponding split of the transposed product phase channel, conjugated by the same reference encoder. This supplies the phase construction used for the polar good-index sets.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P74
Formal statement
namespace QAlgorithms.Papers.Independent.Intakethird100.P74

open QAlgorithms

open scoped ComplexConjugate Matrix

noncomputable section

local instance (p : Prop) : Decidable p := Classical.propDecidable p

variable {B E S1 S2 : Type}

variable [Fintype B] [Fintype E] [Fintype S1] [Fintype S2]

variable [DecidableEq B] [DecidableEq E] [DecidableEq S1] [DecidableEq S2]

/-- PDF pp.3–4, §II.B: row-vector x G_N^T and extra conjugation on C^N.
The second equality spells out the future-bit side information of phase splitting. -/
theorem phase_encoder_duality (d : WiretapData B E S1 S2) (hd : d.Valid) :
    (∀ (n : ℕ) (x : Qubits (2 ^ n)), encodedPhaseOutput d n x =
      referenceEncoder d n * QAlgorithms.Papers.Independent.Information100.P56.productOutput (2 ^ n) (phaseBob d) (polarEncode n true x) *
        (referenceEncoder d n)ᴴ) ∧
    (∀ (n : ℕ) (i : Fin (2 ^ n)) (b : Bool), actualPhaseSplit d n i b =
      idTensorSuperop (conjSuperop (referenceEncoder d n))
        (splitOutput n true (phaseBob d) i b)) := by sorry

end

end QAlgorithms.Papers.Independent.Intakethird100.P74
Source
Polar codes for private classical communication, arXiv:1203.5794v1, PDF p. 3, §II.B, unnumbered: coherent polar encoder and reversed phase side information
Read-back

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

For finite index types B,E,S1,S2B,E,S_1,S_2B,E,S1​,S2​, with decidable equality as required, let d=(V,ψ)d=(V,\psi)d=(V,ψ) satisfy V∗V=I2V^*V=I_2V∗V=I2​ and ∥ψz∥=1\|\psi_z\|=1∥ψz​∥=1 for both Boolean zzz. Put

sz(b,e,s,t)=∑a∈{0,1}V(b,e,t),aψz(a,s),φx((z,b,s,t),e)=2−1/2(−1)xzsz(b,e,s,t),Wx=Tr⁡E(φxφx∗).s_z(b,e,s,t)=\sum_{a\in\{0,1\}}V_{(b,e,t),a}\psi_z(a,s),\quad \varphi_x((z,b,s,t),e)=2^{-1/2}(-1)^{xz}s_z(b,e,s,t),\quad W_x=\operatorname{Tr}_E(\varphi_x\varphi_x^*).sz​(b,e,s,t)=a∈{0,1}∑​V(b,e,t),a​ψz​(a,s),φx​((z,b,s,t),e)=2−1/2(−1)xzsz​(b,e,s,t),Wx​=TrE​(φx​φx∗​).

For every natural nnn, including zero, write N=2nN=2^nN=2n, I={0,…,N−1}I=\{0,\ldots,N-1\}I={0,…,N−1}, and H={0,1}×B×S1×S2H=\{0,1\}\times B\times S_1\times S_2H={0,1}×B×S1​×S2​. Define Gij=1G_{ij}=1Gij​=1 if and only if every bit k<nk<nk<n set in jjj has bit n−1−kn-1-kn−1−k set in iii, and define e−(u)j=∑iuiGij(mod2)e_-(u)_j=\sum_i u_iG_{ij}\pmod2e−​(u)j​=∑i​ui​Gij​(mod2) and e+(u)j=∑iuiGji(mod2)e_+(u)_j=\sum_i u_iG_{ji}\pmod2e+​(u)j​=∑i​ui​Gji​(mod2). Let RRR be the matrix on HIH^IHI with entry Ry,z=1R_{y,z}=1Ry,z​=1 exactly when the B,S1,S2B,S_1,S_2B,S1​,S2​ components of yi,ziy_i,z_iyi​,zi​ agree for every iii, and the Boolean components obey ybit=e−(zbit)y^{\mathrm{bit}}=e_-(z^{\mathrm{bit}})ybit=e−​(zbit); all other entries are zero. For each Boolean string x∈{0,1}Ix\in\{0,1\}^Ix∈{0,1}I, define a vector on HI×EIH^I\times E^IHI×EI by

Ξx(p,e)=2−N/2(−1)∑ixizi∏i∈Ise−(z)i((pi)B,ei,(pi)S1,(pi)S2),zi=(pi)bit,\Xi_x(p,e)=2^{-N/2}(-1)^{\sum_i x_i z_i} \prod_{i\in I} s_{e_-(z)_i}\bigl((p_i)_B,e_i,(p_i)_{S_1},(p_i)_{S_2}\bigr), \qquad z_i=(p_i)_{\mathrm{bit}},Ξx​(p,e)=2−N/2(−1)∑i​xi​zi​i∈I∏​se−​(z)i​​((pi​)B​,ei​,(pi​)S1​​,(pi​)S2​​),zi​=(pi​)bit​,

and set Ex=Tr⁡EI(ΞxΞx∗)E_x=\operatorname{Tr}_{E^I}(\Xi_x\Xi_x^*)Ex​=TrEI​(Ξx​Ξx∗​). The first assertion is

Ex=R(⨂i∈IWe+(x)i)R∗for every n and x.E_x=R\left(\bigotimes_{i\in I}W_{e_+(x)_i}\right)R^* \quad\text{for every }n\text{ and }x.Ex​=R(i∈I⨂​We+​(x)i​​)R∗for every n and x.

The second assertion concerns every i∈Ii\in Ii∈I and Boolean bbb. Let Ji={j∈I:i<j}J_i=\{j\in I:i<j\}Ji​={j∈I:i<j} and define matrices Ai,bA_{i,b}Ai,b​ and Σi,b\Sigma_{i,b}Σi,b​, indexed by (h,y)∈{0,1}Ji×HI(h,y)\in\{0,1\}^{J_i}\times H^I(h,y)∈{0,1}Ji​×HI, by

[Ai,b](h,y),(h′,y′)={2−(N−1)∑xi=bx∣Ji=h(Ex)y,y′,h=h′,0,h≠h′,[A_{i,b}]_{(h,y),(h',y')}= \begin{cases} 2^{-(N-1)}\displaystyle\sum_{\substack{x_i=b\\x|_{J_i}=h}}(E_x)_{y,y'},&h=h',\\ 0,&h\ne h', \end{cases}[Ai,b​](h,y),(h′,y′)​=⎩⎨⎧​2−(N−1)xi​=bx∣Ji​​=h​∑​(Ex​)y,y′​,0,​h=h′,h=h′,​ [Σi,b](h,y),(h′,y′)={2−(N−1)∑ui=bu∣Ji=h∏ℓ∈IWe+(u)ℓ(yℓ,yℓ′),h=h′,0,h≠h′.[\Sigma_{i,b}]_{(h,y),(h',y')}= \begin{cases} 2^{-(N-1)}\displaystyle\sum_{\substack{u_i=b\\u|_{J_i}=h}} \prod_{\ell\in I}W_{e_+(u)_\ell}(y_\ell,y'_\ell),&h=h',\\ 0,&h\ne h'. \end{cases}[Σi,b​](h,y),(h′,y′)​=⎩⎨⎧​2−(N−1)ui​=bu∣Ji​​=h​∑​ℓ∈I∏​We+​(u)ℓ​​(yℓ​,yℓ′​),0,​h=h′,h=h′.​

Then Ai,b=CR(Σi,b)A_{i,b}=\mathcal C_R(\Sigma_{i,b})Ai,b​=CR​(Σi,b​), where CR\mathcal C_RCR​ acts on each block with fixed side-register row and column labels by Xh,h′↦RXh,h′R∗X^{h,h'}\mapsto RX^{h,h'}R^*Xh,h′↦RXh,h′R∗. Thus this operation leaves those side-register labels in place.

Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 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