Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Ordinary and fermionic extension positivity coincide

Open
QAlgorithms.Papers.Independent.Intake100.P22.tensor_positivity_equivalence

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.

Let EEE be a complex-linear parity-preserving map. On the ordinary two-copy algebra let E⊗IdE\otimes\mathrm{Id}E⊗Id act on the first factor. On disjoint CAR halves define (E⊗fId)(Z′Z′′)=E(Z′)Z′′(E\otimes_f\mathrm{Id})(Z'Z'')=E(Z')Z''(E⊗f​Id)(Z′Z′′)=E(Z′)Z′′ on ordered monomials, extending linearly. Then

E⊗Id is positive⟺E⊗fId is positive.E\otimes\mathrm{Id}\text{ is positive}\quad\Longleftrightarrow\quad E\otimes_f\mathrm{Id}\text{ is positive}.E⊗Id is positive⟺E⊗f​Id is positive.

The CAR identification uses ca↦ca⊗Pc_a\mapsto c_a\otimes Pca​↦ca​⊗P in the first half and c2n+a↦I⊗cac_{2n+a}\mapsto I\otimes c_ac2n+a​↦I⊗ca​ in the second, where P=inc1⋯c2nP=i^nc_1\cdots c_{2n}P=inc1​⋯c2n​. Neither Gaussianity nor positivity of EEE is assumed. This transfers the positivity test across the fermionic identification.

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 pp.9-10, Lemma 5: ordinary and fermionic positivity tests coincide
for a complex-linear parity-preserving map. Neither positivity nor Gaussianity
of E is an input hypothesis. -/
theorem tensor_positivity_equivalence {n : ℕ} (s : CARSystem n)
    (E : Superop (Qubits n) (Qubits n))
    (hlinear : ComplexLinear E) (hparity : ParityPreserving s E) :
    PositiveMap (ordinaryExtension E) ↔ PositiveMap (fermionicExtension s E) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P22

end
Source
Lagrangian representation for fermionic linear optics, arXiv:quant-ph/0404180v2, PDF p. 9, Lemma 5: ordinary and fermionic positivity tests coincide
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. Define cS=∏a∈Sincreasingcac_S=\prod_{a\in S}^{\mathrm{increasing}}c_acS​=∏a∈Sincreasing​ca​, c∅=Ic_\varnothing=Ic∅​=I, Π=inc0⋯c2n−1\Pi=i^n c_0\cdots c_{2n-1}Π=inc0​⋯c2n−1​, and X^S=2−ntr⁡(cS†X)\widehat X_S=2^{-n}\operatorname{tr}(c_S^\dagger X)XS​=2−ntr(cS†​X). Let EEE be a map on complex Q×QQ\times QQ×Q matrices such that E(aX+bY)=aE(X)+bE(Y)E(aX+bY)=aE(X)+bE(Y)E(aX+bY)=aE(X)+bE(Y) for all X,Y,a,bX,Y,a,bX,Y,a,b. Assume also that, for each p∈{0,1}p\in\{0,1\}p∈{0,1}, whenever X^S=0\widehat X_S=0XS​=0 for every SSS with ∣S∣ mod 2≠p|S|\bmod2\ne p∣S∣mod2=p, the same vanishing condition holds for E(X)^S\widehat{E(X)}_SE(X)​S​. For matrices ZZZ indexed by Q×QQ\times QQ×Q, define

OE(Z)(x,r),(y,t)=E ⁣((Z(u,r),(v,t))u,v∈Q)x,y,DS,T=cS⊗(Π∣S∣cT),βS,T(Z)=2−2ntr⁡(DS,T†Z),J(X)=∑S⊆JX^S cS⊗Π∣S∣,FE(Z)=∑S,T⊆JβS,T(Z) J(E(cS))(I⊗cT).\begin{aligned} \mathcal O_E(Z)_{(x,r),(y,t)} &=E\!\left((Z_{(u,r),(v,t)})_{u,v\in Q}\right)_{x,y},\\ D_{S,T}&=c_S\otimes(\Pi^{|S|}c_T),\qquad \beta_{S,T}(Z)=2^{-2n}\operatorname{tr}(D_{S,T}^\dagger Z),\\ \mathcal J(X)&=\sum_{S\subseteq J}\widehat X_S\,c_S\otimes\Pi^{|S|},\\ \mathcal F_E(Z)&=\sum_{S,T\subseteq J} \beta_{S,T}(Z)\,\mathcal J(E(c_S))(I\otimes c_T). \end{aligned}OE​(Z)(x,r),(y,t)​DS,T​J(X)FE​(Z)​=E((Z(u,r),(v,t)​)u,v∈Q​)x,y​,=cS​⊗(Π∣S∣cT​),βS,T​(Z)=2−2ntr(DS,T†​Z),=S⊆J∑​XS​cS​⊗Π∣S∣,=S,T⊆J∑​βS,T​(Z)J(E(cS​))(I⊗cT​).​

Then OE(Z)⪰0\mathcal O_E(Z)\succeq0OE​(Z)⪰0 for every positive semidefinite ZZZ if and only if FE(Z)⪰0\mathcal F_E(Z)\succeq0FE​(Z)⪰0 for every positive semidefinite ZZZ. These tests concern all positive semidefinite matrices on Q×QQ\times QQ×Q, without a trace normalization. No Gaussian kernel or trace preservation is assumed. Empty generator products are III, so these definitions and the equivalence include n=0n=0n=0.

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