Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Classical wiretap embedding, Kraus family and dilation recovery

Open
QAlgorithms.Papers.Independent.Intakethird100.P74.classical_embedding

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

prove2quantum

Let X,Y,ZX,Y,ZX,Y,Z be finite classical alphabets with XXX nonempty, and suppose p(y,z∣x)≥0p(y,z\mid x)\ge0p(y,z∣x)≥0 and ∑y,zp(y,z∣x)=1\sum_{y,z}p(y,z\mid x)=1∑y,z​p(y,z∣x)=1 for every xxx. Embed the symbols as orthonormal quantum basis vectors. Define

NC(ρ)=∑x,y,z⟨x∣ρ∣x⟩p(y,z∣x)∣y,z⟩⟨y,z∣,Kxyz=p(y,z∣x)∣y,z⟩⟨x∣.\mathcal N_C(\rho)=\sum_{x,y,z}\langle x|\rho|x\rangle p(y,z\mid x) |y,z\rangle\langle y,z|, \qquad K_{xyz}=\sqrt{p(y,z\mid x)}|y,z\rangle\langle x|.NC​(ρ)=x,y,z∑​⟨x∣ρ∣x⟩p(y,z∣x)∣y,z⟩⟨y,z∣,Kxyz​=p(y,z∣x)​∣y,z⟩⟨x∣.

The family {Kxyz}\{K_{xyz}\}{Kxyz​} is normalized, ∑xyzKxyz†Kxyz=I\sum_{xyz}K_{xyz}^\dagger K_{xyz}=I∑xyz​Kxyz†​Kxyz​=I, and defines a CPTP map. The explicit map

V∣ψ⟩=∑x,y,zp(y,z∣x)⟨x∣ψ⟩∣y,z⟩BE∣x,y,z⟩S2V|\psi\rangle=\sum_{x,y,z}\sqrt{p(y,z\mid x)}\langle x|\psi\rangle |y,z\rangle^{BE}|x,y,z\rangle^{S_2}V∣ψ⟩=x,y,z∑​p(y,z∣x)​⟨x∣ψ⟩∣y,z⟩BE∣x,y,z⟩S2​

is an isometry. For every normalized density matrix ρ\rhoρ,

∑xyzKxyzρKxyz†=NC(ρ)=Tr⁡S2(VρV†).\sum_{xyz}K_{xyz}\rho K_{xyz}^\dagger =\mathcal N_C(\rho) =\operatorname{Tr}_{S_2}(V\rho V^\dagger).xyz∑​Kxyz​ρKxyz†​=NC​(ρ)=TrS2​​(VρV†).

This embeds a general finite classical wiretap channel, discarding off-diagonal input entries while keeping the dilation record in a shield unavailable to Eve.

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 p.6, Appendix A: for arbitrary finite classical alphabets, the printed Kraus
operators are normalized, their channel is Eq.(14), the explicit dilation is isometric,
and tracing its shield recovers Eq.(14) on every normalized input state. -/
theorem classical_embedding {X Y Z : Type} [Fintype X] [Fintype Y] [Fintype Z]
    [DecidableEq X] [DecidableEq Y] [DecidableEq Z] [Nonempty X]
    (p : X → Y → Z → ℝ) (hp : ∀ x y z, 0 ≤ p x y z)
    (hnorm : ∀ x, ∑ y, ∑ z, p x y z = 1) :
    IsKrausFamily (classicalKraus p) ∧
    IsChannel (classicalEmbedding p) ∧
    (classicalDilation p)ᴴ * classicalDilation p = 1 ∧
    (∀ rho : Matrix X X ℂ, IsDensityMatrix rho →
      krausApply (classicalKraus p) rho = classicalEmbedding p rho ∧
      traceRight (classicalDilation p * rho * (classicalDilation p)ᴴ) =
        classicalEmbedding p rho) := by sorry

end

end QAlgorithms.Papers.Independent.Intakethird100.P74
Source
Polar codes for private classical communication, arXiv:1203.5794v1, PDF p. 6, Appendix A, unnumbered: classical wiretap embedding and explicit dilation
Read-back

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

For finite types X,Y,ZX,Y,ZX,Y,Z with decidable equality, with XXX nonempty, let p:X×Y×Z→Rp:X\times Y\times Z\to\mathbb Rp:X×Y×Z→R satisfy p(x,y,z)≥0p(x,y,z)\ge0p(x,y,z)≥0 for every x,y,zx,y,zx,y,z and ∑y∑zp(x,y,z)=1\sum_y\sum_zp(x,y,z)=1∑y​∑z​p(x,y,z)=1 for every xxx. Define matrices Kx,y,z:CX→CY×ZK_{x,y,z}:\mathbb C^X\to\mathbb C^{Y\times Z}Kx,y,z​:CX→CY×Z and V:CX→C(Y×Z)×(X×Y×Z)V:\mathbb C^X\to\mathbb C^{(Y\times Z)\times(X\times Y\times Z)}V:CX→C(Y×Z)×(X×Y×Z) by

(Kx,y,z)(y′,z′),a={p(x,y,z),(y′,z′)=(y,z), a=x,0,otherwise,(K_{x,y,z})_{(y',z'),a}= \begin{cases}\sqrt{p(x,y,z)},&(y',z')=(y,z),\ a=x,\\0,&\text{otherwise},\end{cases}(Kx,y,z​)(y′,z′),a​={p(x,y,z)​,0,​(y′,z′)=(y,z), a=x,otherwise,​ V((y′,z′),(x,y,z)),a={p(x,y,z),(y′,z′)=(y,z), a=x,0,otherwise,V_{((y',z'),(x,y,z)),a}= \begin{cases}\sqrt{p(x,y,z)},&(y',z')=(y,z),\ a=x,\\0,&\text{otherwise},\end{cases}V((y′,z′),(x,y,z)),a​={p(x,y,z)​,0,​(y′,z′)=(y,z), a=x,otherwise,​

and define Φ\PhiΦ on every complex X×XX\times XX×X matrix by

[Φ(ρ)](y,z),(y′,z′)={∑xρx,xp(x,y,z),(y,z)=(y′,z′),0,otherwise.[\Phi(\rho)]_{(y,z),(y',z')}= \begin{cases} \displaystyle\sum_x\rho_{x,x}p(x,y,z),&(y,z)=(y',z'),\\ 0,&\text{otherwise}. \end{cases}[Φ(ρ)](y,z),(y′,z′)​=⎩⎨⎧​x∑​ρx,x​p(x,y,z),0,​(y,z)=(y′,z′),otherwise.​

Then all of the following hold:

∑x,y,zKx,y,z∗Kx,y,z=IX,V∗V=IX;\sum_{x,y,z}K_{x,y,z}^*K_{x,y,z}=I_X,\qquad V^*V=I_X;x,y,z∑​Kx,y,z∗​Kx,y,z​=IX​,V∗V=IX​;

Φ\PhiΦ is a channel, meaning that there exist a natural number rrr and matrices Lj:CX→CY×ZL_j:\mathbb C^X\to\mathbb C^{Y\times Z}Lj​:CX→CY×Z with ∑j<rLj∗Lj=IX\sum_{j<r}L_j^*L_j=I_X∑j<r​Lj∗​Lj​=IX​ and Φ(ρ)=∑j<rLjρLj∗\Phi(\rho)=\sum_{j<r}L_j\rho L_j^*Φ(ρ)=∑j<r​Lj​ρLj∗​ for every complex matrix ρ\rhoρ; and, for every positive semidefinite complex X×XX\times XX×X matrix ρ\rhoρ with tr⁡ρ=1\operatorname{tr}\rho=1trρ=1,

∑x,y,zKx,y,zρKx,y,z∗=Φ(ρ),Tr⁡X×Y×Z(VρV∗)=Φ(ρ).\sum_{x,y,z}K_{x,y,z}\rho K_{x,y,z}^*=\Phi(\rho), \qquad \operatorname{Tr}_{X\times Y\times Z}(V\rho V^*)=\Phi(\rho).x,y,z∑​Kx,y,z​ρKx,y,z∗​=Φ(ρ),TrX×Y×Z​(VρV∗)=Φ(ρ).

The partial trace in the last equality sums over the second row-and-column factor X×Y×ZX\times Y\times ZX×Y×Z. Nonemptiness of YYY and ZZZ is not separately assumed, but if either is empty the normalization hypotheses cannot hold because XXX is nonempty.

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