Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Theorem 30: all five polynomial construction recipes

Open
QAlgorithms.Papers.Independent.Extend50.P13.polynomial_construction_recipes

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

prove2quantum

All matrices are complex, d×dd\times dd×d, with d≥1d\ge1d≥1. Write III for the identity and tr⁡\operatorname{tr}tr for the ordinary, unnormalized trace. Matrix inequalities use the Löwner order, so A≥0A\ge0A≥0 includes Hermiticity. Let Jd(C[Sk])J_d(\mathbb C[S_k])Jd​(C[Sk​]) be the sum of the central-idempotent-generated isotypic ideals indexed by shapes with more than ddd rows. For constant-coefficient α\alphaα, write gα(X)=tr⁡≠k[T^(α)(⨂i=1kXi)]g_\alpha(X)=\operatorname{tr}_{\ne k}[\widehat T(\alpha)(\bigotimes_{i=1}^kX_i)]gα​(X)=tr=k​[T(α)(⨂i=1k​Xi​)] and let hαh_\alphahα​ contract all input slots against the inputs, retaining all last ttt output slots with identities there. Support means nonzero coefficient support. The following five recipes hold universally over the complex inputs:

  1. For k≥1k\ge1k≥1 and α∈Jd\alpha\in J_dα∈Jd​, if every supported permutation is one full cycle acting nontrivially on every slot, gαg_\alphagα​ is a noncommutative polynomial identity.
  2. If α=β+γ\alpha=\beta+\gammaα=β+γ, every supported permutation of β\betaβ is such a full cycle, and every supported permutation of γ\gammaγ fixes some input slot i<ki<ki<k, then gβg_\betagβ​ is a noncommutative polynomial vanishing on every traceless input tuple.
  3. With the same full-cycle condition on β\betaβ, if every supported permutation of γ\gammaγ fixes slot kkk, then gβ(X1,…,Xk−1,I)g_\beta(X_1,\ldots,X_{k-1},I)gβ​(X1​,…,Xk−1​,I) is a noncommutative polynomial taking a scalar multiple of III at every tuple.
  4. For k=r+2k=r+2k=r+2, if every supported permutation of β\betaβ has exactly two cycles, each containing exactly one of the last two outputs and acting nontrivially there, and every supported permutation of γ\gammaγ has the closed output transposition, then hβh_\betahβ​ is a tensor polynomial taking a scalar multiple of the swap. More generally, for k=r+tk=r+tk=r+t, 1≤t≤k1\le t\le k1≤t≤k, exactly ttt such output-marked cycles in β\betaβ and a prescribed closed output action ρ∈St\rho\in S_tρ∈St​ in γ\gammaγ give hβ(X)=c(X)T(ρ)h_\beta(X)=c(X)T(\rho)hβ​(X)=c(X)T(ρ).
  5. If α∈Jd\alpha\in J_dα∈Jd​ is supported on exactly ttt cycles with exactly one marked output apiece, each output acted on nontrivially, then hαh_\alphahα​ is a tensor polynomial identity on all ttt outputs.

Thus the universal conclusions include

gα(X)=0,gβ(X)=0 (tr⁡Xi=0),gβ(X1,…,Xk−1,I)=c(X)I,hβ(X)=c(X)T(ρ),hα(X)=0,g_\alpha(X)=0,\qquad g_\beta(X)=0\ (\operatorname{tr}X_i=0),\qquad g_\beta(X_1,\ldots,X_{k-1},I)=c(X)I,\qquad h_\beta(X)=c(X)T(\rho),\qquad h_\alpha(X)=0,gα​(X)=0,gβ​(X)=0 (trXi​=0),gβ​(X1​,…,Xk−1​,I)=c(X)I,hβ​(X)=c(X)T(ρ),hα​(X)=0,

under their respective hypotheses. Scalars may be zero, as Definition 29 permits. Formal polynomial evaluation is required in addition to each evaluated identity.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Extend50_P13
Formal statement
noncomputable section

open scoped Matrix ComplexConjugate ComplexOrder

namespace QAlgorithms.Papers.Independent.Extend50.P13

attribute [local instance] Classical.propDecidable

/-- Theorem 30, all five construction recipes including the C4 generalization
(PDF pp.25–26). J_d is the independently constructed isotypic-ideal sum.
SOURCE CORRECTION in C5: beta becomes alpha, k−2 arguments become k−t, and all t
output slots are retained. Exactly one output per cycle is enforced. Definition 29
allows the resulting scalar to be zero. -/
theorem polynomial_construction_recipes {d : ℕ} (hd : 0 < d) :
    (∀ (r : ℕ) (a : GroupCoefficients (r+1)), InAntisymmetricIdeal d a →
      ((∀ pi, a pi ≠ 0 → FullNontrivialCycle pi) →
        IsNoncommutativePolynomial (gPolynomial (d := d) a) ∧
        ∀ X : Fin (r+1) → (Matrix (Fin d) (Fin d) ℂ), gPolynomial a X = 0) ∧
      (∀ b c : GroupCoefficients (r+1), a = b+c →
        (∀ pi, b pi ≠ 0 → FullNontrivialCycle pi) →
        (∀ pi, c pi ≠ 0 → ∃ i : Fin (r+1), i ≠ Fin.last r ∧ pi i = i) →
        IsNoncommutativePolynomial (gPolynomial (d := d) b) ∧
        ∀ X : Fin (r+1) → (Matrix (Fin d) (Fin d) ℂ), (∀ i, Matrix.trace (X i) = 0) →
          gPolynomial b X = 0) ∧
      (∀ b c : GroupCoefficients (r+1), a = b+c →
        (∀ pi, b pi ≠ 0 → FullNontrivialCycle pi) →
        (∀ pi, c pi ≠ 0 → pi (Fin.last r) = Fin.last r) →
        IsNoncommutativePolynomial
          (fun X : Fin r → (Matrix (Fin d) (Fin d) ℂ) => gPolynomial b (Fin.lastCases 1 X)) ∧
        ∀ X : Fin r → (Matrix (Fin d) (Fin d) ℂ), ∃ z : ℂ,
          gPolynomial b (Fin.lastCases 1 X) = z • (1 : (Matrix (Fin d) (Fin d) ℂ)))) ∧
    (∀ (r : ℕ) (a b c : GroupCoefficients (r+2)),
      InAntisymmetricIdeal d a → a = b+c →
      (∀ pi, b pi ≠ 0 → OutputMarkedCycles (r := r) (t := 2) pi) →
      (∀ pi, c pi ≠ 0 → ClosedOutputAction (r := r) (Equiv.swap (0 : Fin 2) 1) pi) →
      IsTensorPolynomial (hPolynomial (d := d) (r := r) (t := 2) b) ∧
      ∀ X : Fin r → (Matrix (Fin d) (Fin d) ℂ), ∃ z : ℂ,
        hPolynomial b X = z • QAlgorithms.Schur.tensorPermutation d 2 (Equiv.swap 0 1)) ∧
    (∀ (r t : ℕ), 1 ≤ t → ∀ (a b c : GroupCoefficients (r+t))
      (rho : Equiv.Perm (Fin t)), InAntisymmetricIdeal d a → a = b+c →
      (∀ pi, b pi ≠ 0 → OutputMarkedCycles (r := r) (t := t) pi) →
      (∀ pi, c pi ≠ 0 → ClosedOutputAction (r := r) rho pi) →
      IsTensorPolynomial (hPolynomial (d := d) (r := r) (t := t) b) ∧
      ∀ X : Fin r → (Matrix (Fin d) (Fin d) ℂ), ∃ z : ℂ,
        hPolynomial b X = z • QAlgorithms.Schur.tensorPermutation d t rho) ∧
    (∀ (r t : ℕ), 1 ≤ t → ∀ a : GroupCoefficients (r+t), InAntisymmetricIdeal d a →
      (∀ pi, a pi ≠ 0 → OutputMarkedCycles (r := r) (t := t) pi) →
      IsTensorPolynomial (hPolynomial (d := d) (r := r) (t := t) a) ∧
      ∀ X : Fin r → (Matrix (Fin d) (Fin d) ℂ), hPolynomial a X = 0) := by sorry

end QAlgorithms.Papers.Independent.Extend50.P13

end
Source
Positive maps and trace polynomials from the symmetric group, arXiv:2002.12887v2, PDF p. 26, Theorem 30: all five polynomial construction recipes
Read-back

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

For every natural number d>0d>0d>0, the theorem gives the following four sets of conclusions, with all coefficient functions complex-valued. To state them explicitly, for a coefficient function aaa on permutations of kkk labels, let Gd(a)=∑πa(π)PπG_d(a)=\sum_\pi a(\pi)P_\piGd​(a)=∑π​a(π)Pπ​, where Pπ(y,x)=1P_\pi(y,x)=1Pπ​(y,x)=1 if y=x∘π−1y=x\circ\pi^{-1}y=x∘π−1 and is 000 otherwise. For k=r+tk=r+tk=r+t, define

Ha(X)u,v=∑x,y∈{0,…,d−1}rGd(a)(x,u),(y,v)∏i=0r−1(Xi)yi,xi,H_a(X)_{u,v} =\sum_{x,y\in\{0,\ldots,d-1\}^r} G_d(a)_{(x,u),(y,v)} \prod_{i=0}^{r-1}(X_i)_{y_i,x_i},Ha​(X)u,v​=x,y∈{0,…,d−1}r∑​Gd​(a)(x,u),(y,v)​i=0∏r−1​(Xi​)yi​,xi​​,

where u,vu,vu,v are ttt-tuples and concatenation places the rrr inputs first. For k=r+1k=r+1k=r+1, define Gaopen(X)G_a^{\mathrm{open}}(X)Gaopen​(X), for a tuple of r+1r+1r+1 matrices, by

Gaopen(X)u,v=∑x∈{0,…,d−1}r(Gd(a)⨂i=0rXi)(x,u),(x,v).G_a^{\mathrm{open}}(X)_{u,v} =\sum_{x\in\{0,\ldots,d-1\}^r} \left(G_d(a)\bigotimes_{i=0}^{r}X_i\right)_{(x,u),(x,v)}.Gaopen​(X)u,v​=x∈{0,…,d−1}r∑​(Gd​(a)i=0⨂r​Xi​)(x,u),(x,v)​.

The ideal condition on aaa means the following: for each Young diagram λ\lambdaλ with kkk cells and at most kkk rows, use the chosen cell numbering to form its row-preserving and column-preserving permutation groups Rλ,CλR_\lambda,C_\lambdaRλ​,Cλ​, the matrix Yλ(g,h)=∑α∈Rλ,β∈Cλsgn⁡(β)1{g=hαβ}Y_\lambda(g,h)=\sum_{\alpha\in R_\lambda,\beta\in C_\lambda}\operatorname{sgn}(\beta)\mathbf1_{\{g=h\alpha\beta\}}Yλ​(g,h)=∑α∈Rλ​,β∈Cλ​​sgn(β)1{g=hαβ}​, and the orthogonal projection Πλ\Pi_\lambdaΠλ​ onto its range; set χλ(σ)=tr⁡(LσΠλ)\chi_\lambda(\sigma)=\operatorname{tr}(L_\sigma\Pi_\lambda)χλ​(σ)=tr(Lσ​Πλ​), where Lσ(g,h)=1{g=σh}L_\sigma(g,h)=\mathbf1_{\{g=\sigma h\}}Lσ​(g,h)=1{g=σh}​, and cλ(σ)=χλ(1)χλ(σ−1)/k!c_\lambda(\sigma)=\chi_\lambda(1)\chi_\lambda(\sigma^{-1})/k!cλ​(σ)=χλ​(1)χλ​(σ−1)/k!. The condition is that there exist coefficient functions bλb_\lambdabλ​ with

a(π)=∑λ: height⁡(λ)>d∑σcλ(σ)bλ(σ−1π)for every π.a(\pi)= \sum_{\lambda:\,\operatorname{height}(\lambda)>d} \sum_\sigma c_\lambda(\sigma)b_\lambda(\sigma^{-1}\pi) \quad\text{for every }\pi.a(π)=λ:height(λ)>d∑​σ∑​cλ​(σ)bλ​(σ−1π)for every π.

A full nontrivial cycle means a permutation with no fixed labels whose cycle at any label contains every label. The output-marked cycle condition means that every cycle contains exactly one of the output slots r,…,r+t−1r,\ldots,r+t-1r,…,r+t−1, and every output slot is moved. The closed output action specified by ρ\rhoρ means π(r+j)=r+ρ(j)\pi(r+j)=r+\rho(j)π(r+j)=r+ρ(j) for every output label jjj. These cycle conditions use the singleton cycle list for a fixed label and otherwise the ordered permutation-cycle list rotated left once. First, for every r∈Nr\in\mathbb Nr∈N and every coefficient function aaa on r+1r+1r+1 labels satisfying the ideal condition, all three of these statements hold: if every permutation with nonzero aaa-coefficient is a full nontrivial cycle, then GaopenG_a^{\mathrm{open}}Gaopen​ is a noncommutative polynomial and vanishes on every tuple of r+1r+1r+1 complex d×dd\times dd×d matrices; for every pointwise decomposition a=b+ca=b+ca=b+c, if every permutation with nonzero bbb-coefficient is a full nontrivial cycle and every permutation with nonzero ccc-coefficient fixes some label other than the last label rrr, then GbopenG_b^{\mathrm{open}}Gbopen​ is a noncommutative polynomial and vanishes whenever all r+1r+1r+1 input matrices have trace zero; and, for every decomposition a=b+ca=b+ca=b+c, if the nonzero bbb-coefficients occur only on full nontrivial cycles and the nonzero ccc-coefficients occur only on permutations fixing the last label, then the map X↦Gbopen(X0,…,Xr−1,Id)X\mapsto G_b^{\mathrm{open}}(X_0,\ldots,X_{r-1},I_d)X↦Gbopen​(X0​,…,Xr−1​,Id​) is a noncommutative polynomial and, for every XXX, equals zIdzI_dzId​ for some z∈Cz\in\mathbb Cz∈C that may depend on XXX. Here “noncommutative polynomial” means representability as a finite complex linear combination of ordered matrix words, allowing repeated labels and empty words, with an empty word evaluating to IdI_dId​. Second, for every r∈Nr\in\mathbb Nr∈N and coefficient functions a,b,ca,b,ca,b,c on r+2r+2r+2 labels, if aaa satisfies the ideal condition, a=b+ca=b+ca=b+c, every permutation with nonzero bbb-coefficient satisfies the output-marked cycle condition for two outputs, and every permutation with nonzero ccc-coefficient exchanges the two output slots, then HbH_bHb​ is a tensor polynomial and, for every rrr-tuple XXX, Hb(X)=zP(01)H_b(X)=zP_{(01)}Hb​(X)=zP(01)​ for some z∈Cz\in\mathbb Cz∈C. Third, for every r,t∈Nr,t\in\mathbb Nr,t∈N with t≥1t\ge1t≥1, every a,b,ca,b,ca,b,c on r+tr+tr+t labels, and every permutation ρ\rhoρ of the ttt output labels, the analogous hypotheses—aaa satisfies the ideal condition, a=b+ca=b+ca=b+c, the nonzero bbb-coefficients satisfy the output-marked cycle condition, and the nonzero ccc-coefficients have closed output action ρ\rhoρ—imply that HbH_bHb​ is a tensor polynomial and Hb(X)=zPρH_b(X)=zP_\rhoHb​(X)=zPρ​ for some scalar zzz for every XXX. Fourth, for every r,tr,tr,t with t≥1t\ge1t≥1 and every aaa on r+tr+tr+t labels satisfying the ideal condition and supported only on permutations satisfying the output-marked cycle condition, HaH_aHa​ is a tensor polynomial and vanishes for every XXX. In these conclusions, a tensor polynomial means a finite complex linear combination of tensor products of ttt ordered matrix words, with every input label occurring exactly once across the output words and with no closed trace words; empty output words give identity factors. All unrestricted matrix inputs are arbitrary complex d×dd\times dd×d matrices. The quantifiers include r=0r=0r=0; support conditions may force coefficient functions to vanish, and the output-marked condition is impossible when there are more outputs than inputs.

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