Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Unnumbered complementary case of Proposition 2

Open
QAlgorithms.Papers.Independent.Advance50.P50.proposition2_complement

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 g\mathfrak gg be the actual tangent Lie algebra of GGG and g⊥\mathfrak g^\perpg⊥ its Hilbert–Schmidt complement inside the skew-Hermitian matrices. Assume iI∈g⊥iI\in\mathfrak g^\perpiI∈g⊥ and R⊆ig⊥R\subseteq i\mathfrak g^\perpR⊆ig⊥. For each copy fix Hermitian Aj∈igA_j\in i\mathfrak gAj​∈ig and arbitrary complementary-copy operator BjB_jBj​. If O~\widetilde OO lies in their separated-term span, then

h(ρ)=h(VρV†)=0(ρ∈R,V∈G).h(\rho)=h(V\rho V^\dagger)=0\quad(\rho\in R,V\in G).h(ρ)=h(VρV†)=0(ρ∈R,V∈G).

The complementary space is a real vector space, with no Lie-algebra assumption.

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.5, complementary case, Eq.(B8) p.24: interchange the two orthogonal
real spaces. The complement is not assumed to be a Lie algebra.
Printed: PDF p.24 after Eq.(B8) writes Tr[rho V-dagger A_j V] in ig; the p.5 Lie-algebra exposition uses the erroneous exponential rule.
Changed: Read V-dagger A_j V as the matrix in ig, and use the actual tangent algebra. Retain iI in g-perp, rho in i(g-perp), A_j in ig and both zero and invariance conclusions.
Why: The trace is a scalar, whereas ig is a matrix space. The displayed B8 calculation and the following adjoint-invariance explanation uniquely identify the missing matrix; no trace-zero assertion is added as a hypothesis. -/
theorem proposition2_complement {n k : ℕ} (hk : 0 < k) (M : ExpectationModel (Qubits n) k)
    (L : MatrixLieData (Qubits n))
    (hidentity : Complex.I • (1 : Mat (Qubits n)) ∈ lieComplement L)
    (R : Set (Mat (Qubits n))) (label : Mat (Qubits n) → Bool)
    (hdata : DatasetSymmetry (groupMatrices L.group) R label)
    (hinput : R ⊆ timesI (lieComplement L))
    (A : Fin k → Mat (Qubits n))
    (B : (j : Fin k) → Mat ({c : Fin k // c ≠ j} → Qubits n))
    (hA : ∀ j, A j ∈ timesI (L.algebra : Set (Mat (Qubits n))) ∧ (A j).IsHermitian)
    (hobs : M.effective ∈ separatedSpan A B) :
    DomainInvariant (groupMatrices L.group) R M.response ∧
      ∀ rho ∈ R, M.response rho = 0 := by sorry

end QAlgorithms.Papers.Independent.Advance50.P50

end
Source
Group-Invariant Quantum Machine Learning, arXiv:2205.02261v2, PDF p. 5, Unnumbered complementary case of Proposition 2
Read-back

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

Let n,kn,kn,k be natural numbers with k>0k>0k>0, and let H\mathcal HH be the complex Euclidean space indexed by nnn-bit strings. An expectation model supplies a unitary UUU and a Hermitian matrix OOO on H⊗k\mathcal H^{\otimes k}H⊗k; put Heff=U†OUH_{\mathrm{eff}}=U^\dagger O UHeff​=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), where tensor-power entries are ∏cρxc,yc\prod_c\rho_{x_c,y_c}∏c​ρxc​,yc​​. Let LLL consist of a unitary subgroup GGG and a real Lie subalgebra g\mathfrak gg of matrices on H\mathcal HH, all satisfying X†=−XX^\dagger=-XX†=−X, with g\mathfrak gg exactly the set of derivatives c′(0)c'(0)c′(0) of curves c:R→Mat⁡(H)c:\mathbb R\to\operatorname{Mat}(\mathcal H)c:R→Mat(H) satisfying c(0)=Ic(0)=Ic(0)=I and c(t)∈Gc(t)\in Gc(t)∈G for every real ttt. Define

gskew⊥={X:X†=−X, Tr⁡(X†Y)=0 for every Y∈g},iS={iX:X∈S}.\mathfrak g^\perp_{\mathrm{skew}} =\{X:X^\dagger=-X,\ \operatorname{Tr}(X^\dagger Y)=0\text{ for every }Y\in\mathfrak g\}, \qquad iS=\{iX:X\in S\}.gskew⊥​={X:X†=−X, Tr(X†Y)=0 for every Y∈g},iS={iX:X∈S}.

Assume iI∈gskew⊥iI\in\mathfrak g^\perp_{\mathrm{skew}}iI∈gskew⊥​. Let RRR be a set of matrices and ℓ\ellℓ a Boolean-valued function such that every ρ∈R\rho\in Rρ∈R is positive semidefinite with trace 111, and for every V∈GV\in GV∈G and ρ∈R\rho\in Rρ∈R, VρV†∈RV\rho V^\dagger\in RVρV†∈R and ℓ(VρV†)=ℓ(ρ)\ell(V\rho V^\dagger)=\ell(\rho)ℓ(VρV†)=ℓ(ρ). Assume R⊆igskew⊥R\subseteq i\mathfrak g^\perp_{\mathrm{skew}}R⊆igskew⊥​. For each j<kj<kj<k, let AjA_jAj​ be a Hermitian matrix in igi\mathfrak gig, and let BjB_jBj​ be any complex matrix indexed by assignments of nnn-bit strings to all copy positions other than jjj. Assume HeffH_{\mathrm{eff}}Heff​ lies in the complex span of the matrices with entries

(Sj)x,y=(Aj)xj,yj(Bj)x∣{c:c≠j}, y∣{c:c≠j}.(S_j)_{x,y}=(A_j)_{x_j,y_j} (B_j)_{x|_{\{c:c\ne j\}},\,y|_{\{c:c\ne j\}}}.(Sj​)x,y​=(Aj​)xj​,yj​​(Bj​)x∣{c:c=j}​,y∣{c:c=j}​​.

Then h(VρV†)=h(ρ)h(V\rho V^\dagger)=h(\rho)h(VρV†)=h(ρ) for every V∈GV\in GV∈G and ρ∈R\rho\in Rρ∈R, and h(ρ)=0h(\rho)=0h(ρ)=0 for every ρ∈R\rho\in Rρ∈R. The statement includes n=0n=0n=0, imposes no Hermiticity requirement on the BjB_jBj​, and permits empty RRR, for which the conclusions are vacuous.

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