Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Column vectorization and the real representation of adjoining

Open
QAlgorithms.Papers.Independent.Intake100.P95.vectorizationRealification

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

prove2quantum

Let n≥1n\ge1n≥1 and let K1,K2,MK_1,K_2,MK1​,K2​,M be arbitrary complex 2n×2n2^n\times2^n2n×2n matrices. Stack matrix columns to define vec⁡\operatorname{vec}vec and put vR(M)=(vec⁡Re⁡M,vec⁡Im⁡M)v_\mathbb R(M)=(\operatorname{vec}\operatorname{Re}M,\operatorname{vec}\operatorname{Im}M)vR​(M)=(vecReM,vecImM). If B=K2T⊗K1B=K_2^T\otimes K_1B=K2T​⊗K1​, then

vec⁡(K1MK2)=Bvec⁡M,vR(K1MK2)=(Re⁡B−Im⁡BIm⁡BRe⁡B)vR(M).\operatorname{vec}(K_1MK_2)=B\operatorname{vec}M,\qquad v_\mathbb R(K_1MK_2)=\begin{pmatrix}\operatorname{Re}B&-\operatorname{Im}B\\\operatorname{Im}B&\operatorname{Re}B\end{pmatrix}v_\mathbb R(M).vec(K1​MK2​)=BvecM,vR​(K1​MK2​)=(ReBImB​−ImBReB​)vR​(M).

Writing TTT for the transpose permutation on stacked coordinates gives

vR(M†)=diag⁡(T,−T)vR(M).v_\mathbb R(M^\dagger)=\operatorname{diag}(T,-T)v_\mathbb R(M).vR​(M†)=diag(T,−T)vR​(M).

No complex matrix acts on every vec⁡M\operatorname{vec}MvecM to produce vec⁡(M†)\operatorname{vec}(M^\dagger)vec(M†). Thus adjoining has the stated real representation, and is not a complex-linear universal inverter. Locality and unitarity are unnecessary for these algebraic identities.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P95
Formal statement
namespace QAlgorithms.Papers.Independent.Intake100.P95

open scoped BigOperators

open QAlgorithms.Papers.Independent.Information100.P32 (Op evolution)

open QAlgorithms.Papers.Independent.Advance50.P38 (comm realHSPairing)

open QAlgorithms.Papers.Independent.Information100.P10 (pauli)

open QAlgorithms.Papers.Independent.Claimed50.P03 (wordMatrix wordSupport)

noncomputable section

/-- (70)–(75), PDF pp.13–14: column stacking, real blocks, and the real
adjoining operator. Arbitrary complex matrices are allowed in these identities.
Adjoining has no complex-linear matrix representation, even though its real
representation is explicit; no universal physical inverter is claimed. -/
theorem vectorizationRealification {n : ℕ} (hn : 0 < n) :
    (∀ K1 K2 M : Op (QAlgorithms.Qubits n),
      Matrix.vec (K1 * M * K2) =
        (Matrix.kronecker K2.transpose K1).mulVec (Matrix.vec M)) ∧
    (∀ K1 K2 M : Op (QAlgorithms.Qubits n),
      realVec (K1 * M * K2) =
        (realRepresentation (Matrix.kronecker K2.transpose K1)).mulVec (realVec M)) ∧
    (∀ M : Op (QAlgorithms.Qubits n), realVec M.conjTranspose = adjoiningReal.mulVec (realVec M)) ∧
    (¬ ∃ B : Matrix (QAlgorithms.Qubits n × QAlgorithms.Qubits n)
      (QAlgorithms.Qubits n × QAlgorithms.Qubits n) ℂ,
      ∀ M : Op (QAlgorithms.Qubits n), B.mulVec (Matrix.vec M) = Matrix.vec M.conjTranspose) := by sorry

end

end QAlgorithms.Papers.Independent.Intake100.P95
Source
Which Quantum Evolutions Can Be Reversed by Local Unitary Operations? Algebraic Classification and Gradient-Flow-Based Numerical Checks, arXiv:quant-ph/0610061v1, PDF p. 13, (70)–(75): vectorization and real representation of adjoining
Read-back

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

Let n>0n>0n>0 be a natural number and QQQ the set of nnn-bit strings. For a complex matrix MMM indexed by QQQ, let v(M)v(M)v(M) be its column vectorization, so v(M)(j,i)=Mijv(M)_{(j,i)}=M_{ij}v(M)(j,i)​=Mij​, and let r(M)r(M)r(M) be indexed by {false,true}×(Q×Q)\{\mathrm{false},\mathrm{true}\}\times(Q\times Q){false,true}×(Q×Q), with its false block equal to Re⁡v(M)\operatorname{Re}v(M)Rev(M) and its true block equal to Im⁡v(M)\operatorname{Im}v(M)Imv(M). For a complex square matrix BBB, define its real representation by

R(B)=(Re⁡B−Im⁡BIm⁡BRe⁡B).\mathcal R(B)= \begin{pmatrix}\operatorname{Re}B&-\operatorname{Im}B\\ \operatorname{Im}B&\operatorname{Re}B\end{pmatrix}.R(B)=(ReBImB​−ImBReB​).

Let JJJ be the real matrix whose action swaps the two vectorization indices in both blocks and additionally negates the true, imaginary block. Then, for all complex matrices K1,K2,MK_1,K_2,MK1​,K2​,M indexed by QQQ, v(K1MK2)=(K2T⊗K1)v(M)v(K_1MK_2)=(K_2^{\mathsf T}\otimes K_1)v(M)v(K1​MK2​)=(K2T​⊗K1​)v(M) and r(K1MK2)=R(K2T⊗K1)r(M)r(K_1MK_2)=\mathcal R(K_2^{\mathsf T}\otimes K_1)r(M)r(K1​MK2​)=R(K2T​⊗K1​)r(M). For every MMM, r(M†)=Jr(M)r(M^\dagger)=Jr(M)r(M†)=Jr(M). Finally, there is no complex matrix BBB indexed by Q×QQ\times QQ×Q such that Bv(M)=v(M†)Bv(M)=v(M^\dagger)Bv(M)=v(M†) for every complex matrix MMM indexed by QQQ. No unitarity or Hermiticity assumptions are imposed on K1,K2,MK_1,K_2,MK1​,K2​,M.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 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