Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§III A, Eq.(21): distortion-free factorization

Open
QAlgorithms.Papers.Independent.Intakethird100.P67.distortion_free

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

prove2quantum

Fix normalized pure samples generating the full supported algebra, an anchor, K≥2K\ge2K≥2, and T≥0T\ge0T≥0. Construct EI\mathcal E_IEI​ by the same Appendix-A emulator with target equal to the identity. For every ambient unitary UUU and input density operator ρ\rhoρ,

EU(ρ)=UEI(ρ)U†.\mathcal E_U(\rho)=U\mathcal E_I(\rho)U^\dagger.EU​(ρ)=UEI​(ρ)U†.

Thus the distortion channel is fixed by the input samples before UUU is chosen. It is the constructed main-system channel, rather than an arbitrary channel selected afterward or the outcome-dependent discarded SWAP wire.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P67
Formal statement
noncomputable section

open scoped ComplexConjugate Matrix Matrix.Norms.L2Operator

attribute [local instance] Classical.propDecidable

open MeasureTheory Filter

namespace QAlgorithms.Papers.Independent.Intakethird100.P67

variable {I J K L A : Type*} [Fintype I] [DecidableEq I]
  [Fintype J] [DecidableEq J] [Fintype K] [DecidableEq K]
  [Fintype L] [DecidableEq L] [Fintype A] [DecidableEq A]

/-- PDF p.6, Eq.(21): factorization through the constructed target-I channel. -/
theorem distortion_free (phi : K → EuclideanSpace ℂ I) (a : K) (hK : 2 ≤ Fintype.card K)
    (hphi : ∀ k, IsState (phi k)) (hgen : Generates (pureSamples phi)) (T : ℕ) :
    ∀ U : Matrix.unitaryGroup I ℂ, ∀ rho : Matrix I I ℂ, IsDensityMatrix rho →
      emulate phi a (U : Matrix I I ℂ) T rho = densityConjugation (U : Matrix I I ℂ) (emulate phi a 1 T rho) := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P67

end
Source
Universal Quantum Emulator, arXiv:1606.02734v2, PDF p. 6, §III A, Eq.(21): distortion-free factorization
Read-back

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

Let I,KI,KI,K be finite types with decidable equality, let ∣K∣≥2|K|\ge2∣K∣≥2, choose a∈Ka\in Ka∈K, and let ϕk∈CI\phi_k\in\mathbb C^Iϕk​∈CI have norm 111 for every kkk. Set Sk=∣ϕk⟩⟨ϕk∣S_k=|\phi_k\rangle\langle\phi_k|Sk​=∣ϕk​⟩⟨ϕk​∣, Π=f(∑kSk)\Pi=f(\sum_kS_k)Π=f(∑k​Sk​), where continuous functional calculus uses f(0)=0f(0)=0f(0)=0 and f(t)=1f(t)=1f(t)=1 otherwise, and suppose that the complex span of all nonempty finite products of the SkS_kSk​ is exactly {X:ΠXΠ=X}\{X:\Pi X\Pi=X\}{X:ΠXΠ=X}. For any natural number TTT, define pa=0p_a=0pa​=0 and pk=(∣K∣−1)−1p_k=(|K|-1)^{-1}pk​=(∣K∣−1)−1 for k≠ak\ne ak=a, Rk=1−2SkR_k=1-2S_kRk​=1−2Sk​, and Wk=C(Rk)(1⊗H)C(Ra)W_k=C(R_k)(1\otimes H)C(R_a)Wk​=C(Rk​)(1⊗H)C(Ra​), where C(R)C(R)C(R) applies RRR precisely when its Boolean ancilla is true and H=2−1/2(111−1)H=2^{-1/2}\begin{pmatrix}1&1\\1&-1\end{pmatrix}H=2−1/2(11​1−1​). Put μT=∣−⟩⟨−∣⊗T\mu_T=|-\rangle\langle-|^{\otimes T}μT​=∣−⟩⟨−∣⊗T, with ∣−⟩=(∣0⟩−∣1⟩)/2|-\rangle=(|0\rangle-|1\rangle)/\sqrt2∣−⟩=(∣0⟩−∣1⟩)/2​; for each history h:{0,…,T−1}→Kh:\{0,\ldots,T-1\}\to Kh:{0,…,T−1}→K, let ph=∏j<Tph(j)p_h=\prod_{j<T}p_{h(j)}ph​=∏j<T​ph(j)​, let HhH_hHh​ apply Wh(j)W_{h(j)}Wh(j)​ to the system and ancilla jjj in increasing order of jjj, and define Hh(V)=(V⊗1)Hh(V†⊗1)H_h^{(V)}=(V\otimes1)H_h(V^\dagger\otimes1)Hh(V)​=(V⊗1)Hh​(V†⊗1). With Qfalse=SaQ_{\mathrm{false}}=S_aQfalse​=Sa​ and Qtrue=1−SaQ_{\mathrm{true}}=1-S_aQtrue​=1−Sa​, define

MV(ρ)=Tr⁡anc∑b∈{false,true}∑hph Hh(V)†[∣Vϕa⟩⟨Vϕa∣⊗Tr⁡I ⁣((Qb⊗1)Hh(ρ⊗μT)Hh†(Qb⊗1)†)]Hh(V).\mathcal M_V(\rho)= \operatorname{Tr}_{\mathrm{anc}} \sum_{b\in\{\mathrm{false},\mathrm{true}\}}\sum_h p_h\, H_h^{(V)\dagger} \left[ |V\phi_a\rangle\langle V\phi_a|\otimes \operatorname{Tr}_{I}\!\left( (Q_b\otimes1)H_h(\rho\otimes\mu_T)H_h^\dagger(Q_b\otimes1)^\dagger \right) \right]H_h^{(V)}.MV​(ρ)=Tranc​b∈{false,true}∑​h∑​ph​Hh(V)†​[∣Vϕa​⟩⟨Vϕa​∣⊗TrI​((Qb​⊗1)Hh​(ρ⊗μT​)Hh†​(Qb​⊗1)†)]Hh(V)​.

Then, for every unitary matrix UUU on III and every positive semidefinite trace-one matrix ρ\rhoρ on III,

MU(ρ)=U M1(ρ) U†.\mathcal M_U(\rho)=U\,\mathcal M_1(\rho)\,U^\dagger.MU​(ρ)=UM1​(ρ)U†.

There is no requirement that ρ\rhoρ satisfy ΠρΠ=ρ\Pi\rho\Pi=\rhoΠρΠ=ρ. The case T=0T=0T=0 is included, using the single empty history with weight 111, identity history matrix, and a one-dimensional empty ancilla register.

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