Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Trace preservation criterion and affine covariance action

Open
QAlgorithms.Papers.Independent.Intake100.P22.trace_preservation_criterion

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

prove2quantum

Fix a finite number n≥0n\ge0n≥0 of fermionic modes. Let C2n=End⁡(C2n)\mathcal C_{2n}=\operatorname{End}(\mathbb C^{2^n})C2n​=End(C2n) have Hermitian Majorana generators cac_aca​ satisfying cacb+cbca=2δabIc_ac_b+c_bc_a=2\delta_{ab}Ica​cb​+cb​ca​=2δab​I. The symbol map ω\omegaω sends each ordered Majorana monomial linearly to the corresponding ordered Grassmann monomial; it is not multiplicative. Gaussian states, operators, and maps have the meanings of Definitions 1–3 of the paper. All maps act on the full complex operator algebra, including its odd sector.

For a Gaussian map EEE with given parameters (A,B,D,C)(A,B,D,C)(A,B,D,C), trace preservation on every operator is equivalent to

E is trace preserving⟺D=0 and C=1.E\text{ is trace preserving}\quad\Longleftrightarrow\quad D=0\text{ and }C=1.E is trace preserving⟺D=0 and C=1.

For every regular Gaussian operator with complex covariance MMM, a trace-preserving EEE has a regular output and

M′=BMBT+A.M'=BMB^T+A.M′=BMBT+A.

Covariances are normalized by the nonzero operator trace. The affine term AAA is retained. This separates trace preservation from positivity and unitality.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P22
Formal statement
noncomputable section

open scoped BigOperators Matrix ComplexConjugate ComplexOrder

namespace QAlgorithms.Papers.Independent.Intake100.P22

open QAlgorithms.Papers.Independent.Advance50.P19
  (CARSystem Major monomial wick totalFermionParity)

open QAlgorithms.Papers.Independent.Information100.P21 (Op)

attribute [local instance] Classical.propDecidable Classical.decEq

/-- PDF p.9: TP on every operator iff D=0,C=1; the affine A term remains. -/
theorem trace_preservation_criterion {n : ℕ} (s : CARSystem n)
    (E : Superop (Qubits n) (Qubits n)) (K : GrassmannKernel n) (hE : HasGrassmannKernel s E K) :
    (FullTracePreserving E ↔ K.D = 0 ∧ K.C = 1) ∧
    (FullTracePreserving E → ∀ X M, RegularWith s X M →
      RegularWith s (E X) (K.B * M * K.B.transpose + K.A) ∧
        regularCorrelation s (E X) = K.B * M * K.B.transpose + K.A) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P22

end
Source
Lagrangian representation for fermionic linear optics, arXiv:quant-ph/0404180v2, PDF p. 9, §VI: trace preservation criterion and affine covariance action
Read-back

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

For every natural number nnn, including 000, let Q={0,1}nQ=\{0,1\}^nQ={0,1}n, J={0,…,2n−1}J=\{0,\ldots,2n-1\}J={0,…,2n−1}, and let s=(ca)a∈Js=(c_a)_{a\in J}s=(ca​)a∈J​ be Hermitian matrices on CQ\mathbb C^QCQ satisfying cacb+cbca=2δabIc_ac_b+c_bc_a=2\delta_{ab}Ica​cb​+cb​ca​=2δab​I. Write cSc_ScS​ for the increasing product over S⊆JS\subseteq JS⊆J, with empty product III, and X^=∑S2−ntr⁡(cS†X)θS\widehat X=\sum_S2^{-n}\operatorname{tr}(c_S^\dagger X)\theta_SX=∑S​2−ntr(cS†​X)θS​. The exterior generators anticommute and square to zero, and exp⁡∧,r(q)\exp_{\wedge,r}(q)exp∧,r​(q) means the finite sum ∑k=0rqk/k!\sum_{k=0}^{r}q^k/k!∑k=0r​qk/k! in rrr generators. Let EEE be a map on complex Q×QQ\times QQ×Q matrices, and let K=(AK,BK,DK,CK)K=(A_K,B_K,D_K,C_K)K=(AK​,BK​,DK​,CK​) have complex J×JJ\times JJ×J matrices AK,BK,DKA_K,B_K,D_KAK​,BK​,DK​, with AKT=−AKA_K^{\mathsf T}=-A_KAKT​=−AK​ and DKT=−DKD_K^{\mathsf T}=-D_KDKT​=−DK​, and scalar CK∈CC_K\in\mathbb CCK​∈C. Assume E(aX+bY)=aE(X)+bE(Y)E(aX+bY)=aE(X)+bE(Y)E(aX+bY)=aE(X)+bE(Y) for all matrices X,YX,YX,Y and scalars a,ba,ba,b, and that its action on symbols is

E(X)^=CK[ηJξJ] ⁣[exp⁡∧,6n ⁣(i2∑a,b(AK)abθaθb+i∑a,b(BK)abθaηb+i2∑a,b(DK)abηaηb+i∑aηaξa)X^(ξ)],\widehat{E(X)} =C_K[\eta_J\xi_J]\!\left[ \exp_{\wedge,6n}\!\left( \frac{i}{2}\sum_{a,b}(A_K)_{ab}\theta_a\theta_b +i\sum_{a,b}(B_K)_{ab}\theta_a\eta_b +\frac{i}{2}\sum_{a,b}(D_K)_{ab}\eta_a\eta_b +i\sum_a\eta_a\xi_a\right)\widehat X(\xi)\right],E(X)​=CK​[ηJ​ξJ​]​exp∧,6n​​2i​a,b∑​(AK​)ab​θa​θb​+ia,b∑​(BK​)ab​θa​ηb​+2i​a,b∑​(DK​)ab​ηa​ηb​+ia∑​ηa​ξa​​X(ξ)​,

where the three blocks are ordered θ,η,ξ\theta,\eta,\xiθ,η,ξ, and the bracket extracts the product of every η\etaη- and ξ\xiξ-generator. Then tr⁡E(X)=tr⁡X\operatorname{tr}E(X)=\operatorname{tr}XtrE(X)=trX for every complex matrix XXX if and only if DK=0D_K=0DK​=0 and CK=1C_K=1CK​=1. Moreover, if this trace preservation holds, then for every complex matrix XXX and complex J×JJ\times JJ×J matrix MMM with tr⁡X≠0\operatorname{tr}X\ne0trX=0, MT=−MM^{\mathsf T}=-MMT=−M, and

X^=tr⁡X2nexp⁡∧,2n ⁣(i2∑a,bMabθaθb),\widehat X=\frac{\operatorname{tr}X}{2^n} \exp_{\wedge,2n}\!\left(\frac{i}{2}\sum_{a,b}M_{ab}\theta_a\theta_b\right),X=2ntrX​exp∧,2n​​2i​a,b∑​Mab​θa​θb​​,

the matrix N=BKMBKT+AKN=B_KMB_K^{\mathsf T}+A_KN=BK​MBKT​+AK​ satisfies tr⁡E(X)≠0\operatorname{tr}E(X)\ne0trE(X)=0, NT=−NN^{\mathsf T}=-NNT=−N, the identical symbol formula for E(X)E(X)E(X) with NNN replacing MMM, and

i2tr⁡E(X)tr⁡ ⁣(E(X)(cacb−cbca))=Nab(a,b∈J).\frac{i}{2\operatorname{tr}E(X)} \operatorname{tr}\!\left(E(X)(c_ac_b-c_bc_a)\right)=N_{ab} \quad(a,b\in J).2trE(X)i​tr(E(X)(ca​cb​−cb​ca​))=Nab​(a,b∈J).

Neither positivity nor unit trace is required of these XXX. When n=0n=0n=0, all JJJ-indexed matrices are empty and the exterior algebra has only its constant coefficient.

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

    Confirmed by the moderator at approval.

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