Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

§II permutation symmetries, Eqs.(18)–(20): local rotation and sign equivariance

Open
QAlgorithms.Papers.Independent.Extend50.P01.permutation_embedding

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

prove2quantum

For ddd real features, define E(x)=⨂ie−ixiZ/2E(x)=\bigotimes_i e^{-ix_iZ/2}E(x)=⨂i​e−ixi​Z/2. A signed permutation g=(σ,b)g=(\sigma,b)g=(σ,b) acts by (gx)i=(−1)bixσ−1(i)(gx)_i=(-1)^{b_i}x_{\sigma^{-1}(i)}(gx)i​=(−1)bi​xσ−1(i)​. Its Hilbert-space action sends ∣q⟩|q\rangle∣q⟩ to the basis vector with bits qσ−1(i)⊕biq_{\sigma^{-1}(i)}\oplus b_iqσ−1(i)​⊕bi​. With multiplication (σ,b)(τ,c)=(στ,b⊕c∘σ−1)(\sigma,b)(\tau,c)=(\sigma\tau,b\oplus c\circ\sigma^{-1})(σ,b)(τ,c)=(στ,b⊕c∘σ−1), these operations form a group and their matrices form an ordinary unitary representation. For every xxx and ggg,

E(gx)=UgE(x)Ug†.E(gx)=U_gE(x)U_g^\dagger.E(gx)=Ug​E(x)Ug†​.

Thus every subgroup of signed feature permutations inherits equivariance. Inverse pullback consistently implements a left action, equivalent to relabeling the printed permutation convention.

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 p.5, Eqs.(18)–(20): left-action relabeling and honest signed-permutation representation. -/
theorem permutation_embedding (d : ℕ) :
    (∀ g h k : SignedPerm d, signedMul (signedMul g h) k = signedMul g (signedMul h k)) ∧
    (∀ g : SignedPerm d, signedMul (1, fun _ => false) g = g ∧
      signedMul g (1, fun _ => false) = g ∧
      signedMul (signedInv g) g = (1, fun _ => false) ∧
      signedMul g (signedInv g) = (1, fun _ => false)) ∧
    signedMatrix (1, fun _ : Fin d => false) = 1 ∧
    (∀ g h : SignedPerm d, signedMatrix (signedMul g h) = signedMatrix g * signedMatrix h) ∧
    (∀ g : SignedPerm d, signedMatrix g ∈ Matrix.unitaryGroup (Qubits d) ℂ) ∧
    (∀ (g h : SignedPerm d) (x : Fin d → ℝ),
      signedData (signedMul g h) x = signedData g (signedData h x)) ∧
    (∀ (g : SignedPerm d) (x : Fin d → ℝ),
      localEncoding pauliZ (signedData g x) = conjugate (signedMatrix g) (localEncoding pauliZ x)) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P01

end
Source
Exploiting symmetry in variational quantum machine learning, arXiv:2205.06217v1, PDF p. 5, §II permutation symmetries, Eqs.(18)–(20): local rotation and sign equivariance
Read-back

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

For every natural number ddd, consider pairs g=(πg,bg)g=(\pi_g,b_g)g=(πg​,bg​) consisting of a permutation of {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} and a Boolean vector on that set, with operations

g⋆h=(πgπh, i↦bg(i)⊕bh(πg−1i)),g−1=(πg−1, i↦bg(πgi)).g\star h=\left(\pi_g\pi_h,\ i\mapsto b_g(i)\mathbin{\oplus}b_h(\pi_g^{-1}i)\right), \qquad g^{-1}=\left(\pi_g^{-1},\ i\mapsto b_g(\pi_gi)\right).g⋆h=(πg​πh​, i↦bg​(i)⊕bh​(πg−1​i)),g−1=(πg−1​, i↦bg​(πg​i)).

Define DgxD_gxDg​x for real vectors by (Dgx)i=(−1)bg(i)xπg−1i(D_gx)_i=(-1)^{b_g(i)}x_{\pi_g^{-1}i}(Dg​x)i​=(−1)bg​(i)xπg−1​i​, define PgP_gPg​ to have row-aaa, column-ccc entry 111 exactly when ai=cπg−1i⊕bg(i)a_i=c_{\pi_g^{-1}i}\mathbin{\oplus}b_g(i)ai​=cπg−1​i​⊕bg​(i) for every iii, and 000 otherwise, and put EZ(x)=⨂i<dexp⁡(−ixiZ/2)E_Z(x)=\bigotimes_{i<d}\exp(-\mathrm i x_iZ/2)EZ​(x)=⨂i<d​exp(−ixi​Z/2), where ZZZ is the Pauli matrix. The declaration asserts associativity of ⋆\star⋆; both identity laws for (id,0)(\mathrm{id},0)(id,0); both inverse laws for the displayed inverse; P(id,0)=IP_{(\mathrm{id},0)}=IP(id,0)​=I; Pg⋆h=PgPhP_{g\star h}=P_gP_hPg⋆h​=Pg​Ph​; unitarity of every PgP_gPg​; Dg⋆hx=Dg(Dhx)D_{g\star h}x=D_g(D_hx)Dg⋆h​x=Dg​(Dh​x) for all g,h,xg,h,xg,h,x; and EZ(Dgx)=PgEZ(x)Pg†E_Z(D_gx)=P_gE_Z(x)P_g^\daggerEZ​(Dg​x)=Pg​EZ​(x)Pg†​ for all g,xg,xg,x. The case d=0d=0d=0 is included: there is one such pair, one empty feature vector, and all the matrices are the one-dimensional identity.

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