Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§II Eqs.(24)–(25): exponentially many equivariant phase features

Open
QAlgorithms.Papers.Independent.Extend50.P01.basis_projector_embedding

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

prove2quantum

Let m≤2nm\le2^nm≤2n feature labels be injected into the computational basis of nnn qubits by eee. Put E(x)=exp⁡[−i∑k<mxk∣e(k)⟩⟨e(k)∣]E(x)=\exp[-i\sum_{k<m}x_k|e(k)\rangle\langle e(k)|]E(x)=exp[−i∑k<m​xk​∣e(k)⟩⟨e(k)∣]. Extend a feature permutation σ\sigmaσ by identity on every unused basis label. Its permutation matrix UσU_\sigmaUσ​ is unitary, obeys the group law, and satisfies E(σx)=UσE(x)Uσ†E(\sigma x)=U_\sigma E(x)U_\sigma^\daggerE(σx)=Uσ​E(x)Uσ†​. For distinct k,lk,lk,l,

U(kl)=∣e(k)⟩⟨e(l)∣+∣e(l)⟩⟨e(k)∣+∑j≠e(k),e(l)∣j⟩⟨j∣.U_{(kl)}=|e(k)\rangle\langle e(l)|+|e(l)\rangle\langle e(k)|+\sum_{j\ne e(k),e(l)}|j\rangle\langle j|.U(kl)​=∣e(k)⟩⟨e(l)∣+∣e(l)⟩⟨e(k)∣+j=e(k),e(l)∑​∣j⟩⟨j∣.

All 2n2^n2n labels can be used. This is a capacity for phase labels, without injectivity modulo global phase or an implementation-efficiency claim.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P01
Formal statement
noncomputable section

open scoped Matrix Kronecker ComplexConjugate Matrix.Norms.L2Operator Manifold ContDiff

open MeasureTheory

namespace QAlgorithms.Papers.Independent.Extend50.P01

attribute [local instance] Classical.propDecidable Classical.decEq

-- PDF pp.3,8: reuse the accepted operator type, exp(-itH), and A X A†.
-- Notation specializes the imported interfaces without introducing duplicate declarations.

local notation "Op" => (fun n : ℕ => QAlgorithms.Papers.Independent.Information100.P21.Op (Qubits n))

local notation "evolve" => QAlgorithms.Papers.Independent.Information100.P32.evolution

local notation "conjugate" => QAlgorithms.conjSuperop

-- PDF pp.3,10–11: the imported quadratic form is Re(psi† A psi).

local notation "expectation" => QAlgorithms.Papers.Independent.Information100.P21.quad

-- PDF pp.5,16–19: accepted active-wire operator, with identities on all spectators.

local notation "onWire" => QAlgorithms.Papers.Independent.Advance50.P49.onWire

-- PDF p.5: the imported phase-free Pauli tensor uses 0=I,1=X,2=Y,3=Z.

local notation "pauliWord" => QAlgorithms.Papers.Independent.Gap48.P33.pauliWord

/-- PDF pp.5–6, Eqs.(24),(25): all unused labels are fixed. Capacity counts basis labels,
not independent physical phases modulo global phase. -/
theorem basis_projector_embedding (n m : ℕ) (hm : m ≤ 2 ^ n) (e : Fin m ↪ Qubits n) :
    featureMatrix e 1 = 1 ∧
    (∀ s t, featureMatrix e (s * t) = featureMatrix e s * featureMatrix e t) ∧
    (∀ s, featureMatrix e s ∈ Matrix.unitaryGroup (Qubits n) ℂ) ∧
    (∀ s x, basisEncoding e (featurePullback s x) = conjugate (featureMatrix e s) (basisEncoding e x)) ∧
    (∀ k l : Fin m, k ≠ l → featureMatrix e (Equiv.swap k l) =
      Matrix.single (e k) (e l) 1 + Matrix.single (e l) (e k) 1 +
        ∑ j ∈ (Finset.univ : Finset (Qubits n)).filter (fun j => j ≠ e k ∧ j ≠ e l),
          Matrix.single j j 1) ∧
    (∃ f : Fin (2 ^ n) ↪ Qubits n, Function.Surjective f) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P01

end
Source
Exploiting symmetry in variational quantum machine learning, arXiv:2205.06217v1, PDF p. 6, §II Eqs.(24)–(25): exponentially many equivariant phase features
Read-back

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

For all natural numbers n,mn,mn,m, assuming m≤2nm\le 2^nm≤2n, and every injection e:{0,…,m−1}↪{0,1}ne:\{0,\ldots,m-1\}\hookrightarrow\{0,1\}^ne:{0,…,m−1}↪{0,1}n, extend each permutation sss of {0,…,m−1}\{0,\ldots,m-1\}{0,…,m−1} to a permutation s~\widetilde ss of all nnn-bit strings by s~(e(k))=e(s(k))\widetilde s(e(k))=e(s(k))s(e(k))=e(s(k)) and by fixing strings outside the image of eee. Let FsF_sFs​ be its permutation matrix, so (Fs)ab=1(F_s)_{ab}=1(Fs​)ab​=1 if a=s~(b)a=\widetilde s(b)a=s(b), and 000 otherwise; for x∈Rmx\in\mathbb R^mx∈Rm, let Be(x)=exp⁡(−i∑kxk∣e(k)⟩⟨e(k)∣)B_e(x)=\exp(-i\sum_k x_k|e(k)\rangle\langle e(k)|)Be​(x)=exp(−i∑k​xk​∣e(k)⟩⟨e(k)∣), where ∣a⟩|a\rangle∣a⟩ is the coordinate vector at aaa. Then Fid=IF_{\mathrm{id}}=IFid​=I, Fst=FsFtF_{st}=F_sF_tFst​=Fs​Ft​ for every s,ts,ts,t, every FsF_sFs​ is unitary, and, writing (s∗x)k=xs−1(k)(s^*x)_k=x_{s^{-1}(k)}(s∗x)k​=xs−1(k)​, Be(s∗x)=FsBe(x)Fs†B_e(s^*x)=F_sB_e(x)F_s^\daggerBe​(s∗x)=Fs​Be​(x)Fs†​ for every s,xs,xs,x. For every distinct k,l<mk,l<mk,l<m,

F(k l)=∣e(k)⟩⟨e(l)∣+∣e(l)⟩⟨e(k)∣+∑a∈{0,1}na≠e(k), a≠e(l)∣a⟩⟨a∣.F_{(k\,l)} =|e(k)\rangle\langle e(l)|+|e(l)\rangle\langle e(k)| +\sum_{\substack{a\in\{0,1\}^n\\a\ne e(k),\ a\ne e(l)}}|a\rangle\langle a|.F(kl)​=∣e(k)⟩⟨e(l)∣+∣e(l)⟩⟨e(k)∣+a∈{0,1}na=e(k), a=e(l)​∑​∣a⟩⟨a∣.

There also exists a surjective injection from {0,…,2n−1}\{0,\ldots,2^n-1\}{0,…,2n−1} to {0,1}n\{0,1\}^n{0,1}n. The statement includes n=0n=0n=0 and m=0m=0m=0; when m=0m=0m=0, the assertions concerning distinct k,lk,lk,l have no instances.

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