Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 4: two Lie-algebra conditions

Open
QAlgorithms.Papers.Independent.Advance50.P50.proposition4

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

prove2quantum

An nnn-qubit input ρ\rhoρ is a positive semidefinite, trace-one matrix on the fixed computational basis, of dimension d=2nd=2^nd=2n. A kkk-copy model has a fixed input-independent unitary UUU, a Hermitian observable OOO, effective observable O~=U†OU\widetilde O=U^\dagger O UO=U†OU, and exact response h(ρ)=Tr⁡[Uρ⊗kU†O]h(\rho)=\operatorname{Tr}[U\rho^{\otimes k}U^\dagger O]h(ρ)=Tr[Uρ⊗kU†O]. Here k≥1k\ge1k≥1. The declared domain RRR consists of density matrices, and its symmetry groups preserve RRR and its binary labels. Invariance means equality of exact expectations on every ρ∈R\rho\in Rρ∈R under the specified conjugation action. Let G0,G1G_0,G_1G0​,G1​ be represented unitary Lie groups with actual algebras g0,g1\mathfrak g_0,\mathfrak g_1g0​,g1​. For each iii, choose DiD_iDi​ to be either gi\mathfrak g_igi​ or gi⊥\mathfrak g_i^\perpgi⊥​, and FiF_iFi​ the other space. Assume iI∈DiiI\in D_iiI∈Di​ and R⊆iD0∩iD1R\subseteq iD_0\cap iD_1R⊆iD0​∩iD1​. For fixed Hermitian factors AjA_jAj​ and complementary-copy operators BjB_jBj​, assume O~∈span⁡{Aj⊗Bj}j\widetilde O\in\operatorname{span}\{A_j\otimes B_j\}_jO∈span{Aj​⊗Bj​}j​, with the factors inserted in their actual slots. Then

(∀i,j, Aj∈iFi) ⟹ h is both G0- and G1-invariant on R.\bigl(\forall i,j,\ A_j\in iF_i\bigr)\ \Longrightarrow\ h\text{ is both }G_0\text{- and }G_1\text{-invariant on }R.(∀i,j, Aj​∈iFi​) ⟹ h is both G0​- and G1​-invariant on R.

For either iii, if all AjA_jAj​ belong to iFiiF_iiFi​ and not to iF1−iiF_{1-i}iF1−i​, GiG_iGi​-invariance still follows. This includes the source's complementary-space extension and makes no converse claim.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Advance50_P50
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P50

open MeasureTheory ProbabilityTheory

open scoped ComplexConjugate ENNReal

-- Exact accepted primitives; no paper-local redeclarations.

open QAlgorithms.Papers.Independent.Information100.P63 (Mat tensorPower)

open QAlgorithms.Papers.Independent.Gap48.P20 (Copies)

open QAlgorithms.Papers.Independent.Gap48.P38 (subsystemReduction)

open QAlgorithms.Papers.Independent.Information100.P32 (purity)

open QAlgorithms.Papers.Independent.Information100.P08 (IsPure)

-- Matrices carry the associative commutator bracket X*Y-Y*X.

attribute [local instance 100] LieRing.ofAssociativeRing

/-- PDF p.6, Proposition 4, including its complementary-space extension.
The common-domain guarantee and both one-sided cases are stated. Printed
`igi` is the other indexed algebra; no failure of the other invariance follows.
Printed: PDF pp.6,24 prints rho in ig0,igi and G0(1)/G1(0); p.5 also gives an erroneous exponential definition of the algebras.
Changed: Use the actual tangent algebras, a common domain in both indexed input spaces, both index orders, and an explicit Bool flag for each stated algebra/complement exchange.
Why: Appendix C reduces the two cases to Proposition 2. The index typo cannot denote an additional independent algebra. The changes only make those two cases and the explicitly stated complementary-space extension precise; nonmembership never becomes a claim of non-invariance. -/
theorem proposition4 {n k : ℕ} (hk : 0 < k) (M : ExpectationModel (Qubits n) k)
    (L : Bool → MatrixLieData (Qubits n)) (complementary : Bool → Bool)
    (hidentity : ∀ i, Complex.I • (1 : Mat (Qubits n)) ∈
      inputLieSpace (L i) (complementary i))
    (R : Set (Mat (Qubits n))) (label : Mat (Qubits n) → Bool)
    (hdata : ∀ i, DatasetSymmetry (groupMatrices (L i).group) R label)
    (hinput : ∀ i, R ⊆ timesI (inputLieSpace (L i) (complementary i)))
    (A : Fin k → Mat (Qubits n))
    (B : (j : Fin k) → Mat ({c : Fin k // c ≠ j} → Qubits n))
    (hA : ∀ j, (A j).IsHermitian) (hobs : M.effective ∈ separatedSpan A B) :
    ((∀ i j, A j ∈ timesI (inputLieSpace (L i) (!(complementary i)))) →
      ∀ i, DomainInvariant (groupMatrices (L i).group) R M.response) ∧
    (∀ i, (∀ j, A j ∈ timesI (inputLieSpace (L i) (!(complementary i)))) →
      (∀ j, A j ∉ timesI (inputLieSpace (L (!i)) (!(complementary (!i))))) →
      DomainInvariant (groupMatrices (L i).group) R M.response) := by sorry

end QAlgorithms.Papers.Independent.Advance50.P50

end
Source
Group-Invariant Quantum Machine Learning, arXiv:2205.02261v2, PDF p. 6, Proposition 4: two Lie-algebra conditions
Read-back

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

Let n≥0n\ge0n≥0 and k>0k>0k>0 be integers, let H=C{0,1}nH=\mathbb C^{\{0,1\}^n}H=C{0,1}n, and let MMM consist of a unitary UUU and a Hermitian observable OOO on H⊗kH^{\otimes k}H⊗k. Write Oeff=U†OUO_{\mathrm{eff}}=U^\dagger OUOeff​=U†OU and h(ρ)=Re⁡tr⁡(Uρ⊗kU†O)h(\rho)=\operatorname{Re}\operatorname{tr}(U\rho^{\otimes k}U^\dagger O)h(ρ)=Retr(Uρ⊗kU†O). For each Boolean index iii, let LiL_iLi​ specify a subgroup GiG_iGi​ of the unitaries on HHH and a real Lie subalgebra gi\mathfrak g_igi​ of matrices. Assume that gi\mathfrak g_igi​ is exactly the set of derivatives at 000 of matrix curves c:R→Gic:\mathbb R\to G_ic:R→Gi​ with c(0)=Ic(0)=Ic(0)=I, and that all its members are skew Hermitian. Define gi⊥={X:X†=−X, tr⁡(X†Y)=0 for every Y∈gi}\mathfrak g_i^\perp=\{X:X^\dagger=-X,\ \operatorname{tr}(X^\dagger Y)=0\text{ for every }Y\in\mathfrak g_i\}gi⊥​={X:X†=−X, tr(X†Y)=0 for every Y∈gi​}. Choose a Boolean flag for each iii, let SiS_iSi​ be gi\mathfrak g_igi​ when its flag is false and gi⊥\mathfrak g_i^\perpgi⊥​ when true, and let Si′S_i'Si′​ use the opposite flag. Assume iI∈Si\mathrm iI\in S_iiI∈Si​ for both indices. Let RRR be a set of matrices and ℓ\ellℓ a Boolean-valued labeling function; assume every ρ∈R\rho\in Rρ∈R is positive semidefinite with trace 111, and, for every iii, V∈GiV\in G_iV∈Gi​, and ρ∈R\rho\in Rρ∈R, one has VρV†∈RV\rho V^\dagger\in RVρV†∈R and ℓ(VρV†)=ℓ(ρ)\ell(V\rho V^\dagger)=\ell(\rho)ℓ(VρV†)=ℓ(ρ). Also assume R⊆{iX:X∈Si}R\subseteq\{\mathrm iX:X\in S_i\}R⊆{iX:X∈Si​} for both iii. For each j<kj<kj<k, choose a Hermitian matrix AjA_jAj​ on HHH and an arbitrary matrix BjB_jBj​ on the other k−1k-1k−1 copies, and assume OeffO_{\mathrm{eff}}Oeff​ belongs to the complex linear span of the kkk matrices whose (x,y)(x,y)(x,y)-entries are Aj(xj,yj)Bj(x≠j,y≠j)A_j(x_j,y_j)B_j(x_{\ne j},y_{\ne j})Aj​(xj​,yj​)Bj​(x=j​,y=j​). The declaration asserts both implications: if Aj∈{iX:X∈Si′}A_j\in\{\mathrm iX:X\in S_i'\}Aj​∈{iX:X∈Si′​} for every i,ji,ji,j, then h(VρV†)=h(ρ)h(V\rho V^\dagger)=h(\rho)h(VρV†)=h(ρ) for every i,V∈Gi,ρ∈Ri,V\in G_i,\rho\in Ri,V∈Gi​,ρ∈R; and, for each iii, the same invariance under GiG_iGi​ follows if every AjA_jAj​ lies in iSi′\mathrm iS_i'iSi′​ and every AjA_jAj​ fails to lie in iS¬i′\mathrm iS_{\neg i}'iS¬i′​. The set RRR may be empty, in which case its membership, symmetry, and response-invariance conditions are vacuous; n=0n=0n=0 is included.

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

    Confirmed by the moderator at approval.

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