Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Positive maps from the walled Brauer algebra

Definition
QAlgorithms_Papers_Independent_Extend50_P12

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

prove2quantum

The objects the formalized statements of Positive maps from the walled Brauer algebra (arXiv:2112.12738) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • LocalMatrix: One-register matrix algebra, PDF p.2.
  • ComplexNonnegative: Complex nonnegativity includes vanishing imaginary part, PDF pp.2-3.
  • tensorMatrices: Ordered tensor product, in the fixed product basis, PDF p.2.
  • joinWords: Join input and output basis words without changing their order, PDF p.2.
  • inputOutputTensor: A tensor product across the cut r|m; the m-register factor is unrestricted, so it includes operators entangled across the output sites, PDF p.6, Eq.(36).
  • productInputContraction: Unnormalized partial-trace contraction tr_inputs[P(X_1 ⊗ ... ⊗ X_r ⊗ I)], written entrywise; the input order is X_i(b_i,a_i), PDF pp.2,6, Eqs.(1),(34).
  • PositiveMap: Positivity on all PSD inputs, without trace normalization, PDF p.2.
  • ComplexMultilinear: Separate complex linearity, including arbitrary matrices as inputs, PDF p.2.
  • InputOutputBlockPositive: Block positivity for 1|...|r|[r+1,...,r+m], in its equivalent PSD trace-pairing form. The whole output is one block; the complex pairing must be real, PDF pp.3,6, Eqs.(13),(36). No PSD or normalization premise is imposed on P.
  • transposeRegisterSet: Ordinary, basis-dependent partial transpose, with zero-based site labels, PDF p.2, Eq.(4). There is no complex conjugation.
  • embedLeading: Embed an operator on the leading s sites and identity on the remaining sites; the suffix Kronecker delta is explicit, PDF pp.8-9, Eq.(51).
  • permutation: Physical permutation matrices, with sigma^{-1} on the word coordinates, exactly Eq.(2) and Eq.(A2), PDF pp.2,11.
  • contractionPairs: Product of the k disjoint, partially transposed swaps in Eq.(A12), PDF p.12. Here N=a+2k and site a+j is paired with site N-1-j.
  • walledNormalization: The normalization in Eq.(52), PDF p.9. Both dimensions are constructed: Specht dimensions are finranks of the regular Young ideals, and Schur multiplicities are finranks of the tensor Young images.
  • walledKernel: The constructed maximal-productInputContraction-sector kernel, Eqs.(51),(52),(A11),(A12), PDF pp.8-9,11-12. The coset sum is written as the full S_(a+k) conjugation sum divided by |S_a|=a!: the core commutes with permutations of its first a sites. The P's are full character isotypic projectors from Eq.(A6), not Young images. Nothing here assumes positivity of this computed physical matrix.
  • walledMap: Reindex the total system count as inputs plus outputs; Eq.(53)'s overloaded n is thus split into r inputs and r+m total sites, PDF p.9.
  • WernerDensity: Density matrix premise of the tripartite section, PDF pp.2,5.
  • bcsWitness: The qutrit witness P(1/4,-1/10), with unnormalized Bell operators obtained by partial transposition of physical swaps, PDF p.4, Eq.(25).
  • wernerPermutations: The six permutation operators in Eq.(26), in the order id,(12),(23),(31), (123),(321); cycles follow the global Eq.(2) convention, PDF p.5.
  • wernerBasis: R_+,R_-,R_0,R_1,R_2,R_3 as defined in Eq.(27), PDF p.5.
  • wernerFromCoefficients: The matrix computed by Eq.(B3), PDF p.13; c has real entries ordered +, -, 0, 1, 2, 3. It is not an unrelated free density matrix.
  • correctedPermutationCoefficients: Coefficients forced by Eq.(27). The printed alpha_2 in Eq.(B5) is corrected from c_+/6-c_minus/6-c_2/sqrt(3) to c_+/6-c_minus/6-c_1/3+c_2/sqrt(3), PDF pp.5,13.
  • example14Kernel: The Example-14 projector constructed from the FIRST line of Eq.(56), PDF p.9, N=4,k=1,d=2. The symmetric two-site and (2,1) three-site isotypic projectors are exactly those in Eq.(55); gamma=1.
  • example14Map: Identify the single output register with M_2, PDF p.9, Eq.(58).
  • example14Formula: The explicitly ordered six products and three trace terms in Eq.(58), PDF p.9; transpose is ordinary matrix transpose.
  • reshuffleSites: Reshuffling R_(ketSite,braSite) of Eq.(44), PDF p.7, with zero-based sites. Its coefficient action swaps the indicated ket and bra coordinates.
  • reshuffleTwo: Two-site reshuffling of Eq.(6), PDF p.2: the first bra and second ket are interchanged. This is R_(2,1) in the later notation.
  • homogeneousTensorPair: Two-factor ordered tensor product, PDF p.2.
  • leadingInput: A single input followed by identities on n-1 sites, PDF pp.7-8.
  • orderedReshuffles: Apply R_(n,n-1), then R_(n,n-2), down to R_(n,1), in that order, using zero-based internal labels. This is the precise ordered sequence of Eq.(46)/(C5), PDF pp.7,14. Its domain n>=2 excludes the printed site-0 endpoint.
  • rankOneThreeOutput: The summed kernel sum_(k,l)|alpha,k,beta><k,l,l| in Eq.(45), PDF p.7.
  • tableSubsets: The six nonempty proper subsets in Table I order 1,2,3,12,13,23, PDF p.13. Site numbers are converted to zero-based labels.
  • permutationExpansion: Construct the matrix in Eqs.(26),(B4) from its six permutation coefficients, PDF pp.5,13. Physical matrices avoid small-d injectivity assumptions.
  • tripartiteF: f_S from Eq.(29), with the unnormalized partial trace, PDF p.5.
  • tripartiteG: g_S from Eq.(30), identifying the single output with M_d, PDF p.5.
  • tableF: All six f rows of Table I, with labelled alpha coefficients and the exact product/reshuffling order retained, PDF p.13 (Example 3 is included).
  • tableG: All six g rows of Table I, PDF p.13. Ordinary transpose and the labelled cycle contributions have exactly their printed order.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_SchurWeylDecomposition

noncomputable section

open scoped BigOperators Matrix ComplexOrder

namespace QAlgorithms.Papers.Independent.Extend50.P12

attribute [local instance] Classical.propDecidable

/-!
Reuse audit (PDF pp.2,3,6): basis labels and operator types below use Mathlib's
function spaces and `Matrix` directly; matrix units use `Matrix.single`.
The indexed frozen homonyms are different objects: Claimed50.P02.contraction
is a two-wire Bell operator; Claimed50.P37.contraction is a full Fock-space
Choi contraction with a transposed input; Claimed50.P49.BlockPositive tests
CP block matrices on arbitrary coupled vectors. Dependency50.P22.tensorTwo
is qubit-only, and Dependency50.P32.partialTranspose / Frontier18.P17.partialTranspose
transpose one factor of a bipartite product index. They cannot replace the
arbitrary-d product-input contraction, multipartite separable-block test,
homogeneous pair, or arbitrary register-set transpose defined here.
-/

/-- One-register matrix algebra, PDF p.2. -/
abbrev LocalMatrix (d : ℕ) := Matrix (Fin d) (Fin d) ℂ

/-- Complex nonnegativity includes vanishing imaginary part, PDF pp.2-3. -/
def ComplexNonnegative (z : ℂ) : Prop := z.im = 0 ∧ 0 ≤ z.re

/-- Ordered tensor product, in the fixed product basis, PDF p.2. -/
def tensorMatrices {d r : ℕ} (X : Fin r → LocalMatrix d) : Matrix (Fin r → Fin d) (Fin r → Fin d) ℂ :=
  fun x y => ∏ i, X i (x i) (y i)

/-- Join input and output basis words without changing their order, PDF p.2. -/
def joinWords {d r m : ℕ} (x : (Fin r → Fin d)) (y : (Fin m → Fin d)) : (Fin (r + m) → Fin d) :=
  Fin.addCases x y

/-- A tensor product across the cut r|m; the m-register factor is unrestricted,
so it includes operators entangled across the output sites, PDF p.6, Eq.(36). -/
def inputOutputTensor {d r m : ℕ} (X : Fin r → LocalMatrix d)
    (C : Matrix (Fin m → Fin d) (Fin m → Fin d) ℂ) : Matrix (Fin (r + m) → Fin d) (Fin (r + m) → Fin d) ℂ :=
  fun x y =>
    (∏ i : Fin r, X i (x (Fin.castAdd m i)) (y (Fin.castAdd m i))) *
      C (fun j => x (Fin.natAdd r j)) (fun j => y (Fin.natAdd r j))

/-- Unnormalized partial-trace contraction tr_inputs[P(X_1 ⊗ ... ⊗ X_r ⊗ I)],
written entrywise; the input order is X_i(b_i,a_i), PDF pp.2,6, Eqs.(1),(34). -/
def productInputContraction {d r m : ℕ} (P : Matrix (Fin (r + m) → Fin d) (Fin (r + m) → Fin d) ℂ)
    (X : Fin r → LocalMatrix d) : Matrix (Fin m → Fin d) (Fin m → Fin d) ℂ :=
  fun y z => ∑ a : (Fin r → Fin d), ∑ b : (Fin r → Fin d),
    P (joinWords a y) (joinWords b z) * ∏ i, X i (b i) (a i)

/-- Positivity on all PSD inputs, without trace normalization, PDF p.2. -/
def PositiveMap {d r m : ℕ} (f : (Fin r → LocalMatrix d) → Matrix (Fin m → Fin d) (Fin m → Fin d) ℂ) : Prop :=
  ∀ X, (∀ i, (X i).PosSemidef) → (f X).PosSemidef

/-- Separate complex linearity, including arbitrary matrices as inputs, PDF p.2. -/
def ComplexMultilinear {d r m : ℕ}
    (f : (Fin r → LocalMatrix d) → Matrix (Fin m → Fin d) (Fin m → Fin d) ℂ) : Prop :=
  (∀ (i : Fin r) (X : Fin r → LocalMatrix d) (A B : LocalMatrix d),
    f (Function.update X i (A + B)) =
    f (Function.update X i A) + f (Function.update X i B)) ∧
  (∀ (i : Fin r) (X : Fin r → LocalMatrix d) (c : ℂ) (A : LocalMatrix d),
    f (Function.update X i (c • A)) = c • f (Function.update X i A))

/-- Block positivity for 1|...|r|[r+1,...,r+m], in its equivalent PSD trace-pairing
form. The whole output is one block; the complex pairing must be real, PDF
pp.3,6, Eqs.(13),(36). No PSD or normalization premise is imposed on P. -/
def InputOutputBlockPositive {d r m : ℕ} (P : Matrix (Fin (r + m) → Fin d) (Fin (r + m) → Fin d) ℂ) : Prop :=
  ∀ X, (∀ i, (X i).PosSemidef) → ∀ C : Matrix (Fin m → Fin d) (Fin m → Fin d) ℂ, C.PosSemidef →
    ComplexNonnegative (Matrix.trace (P * inputOutputTensor X C))

/-- Ordinary, basis-dependent partial transpose, with zero-based site labels,
PDF p.2, Eq.(4). There is no complex conjugation. -/
def transposeRegisterSet {d n : ℕ} (S : Finset (Fin n)) (P : Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ) :
    Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  fun x y => P (fun i => if i ∈ S then y i else x i)
    (fun i => if i ∈ S then x i else y i)

/-- Embed an operator on the leading s sites and identity on the remaining
sites; the suffix Kronecker delta is explicit, PDF pp.8-9, Eq.(51). -/
def embedLeading {d s n : ℕ} (h : s ≤ n) (P : Matrix (Fin s → Fin d) (Fin s → Fin d) ℂ) : Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  fun x y => P (fun i => x ⟨i.val, lt_of_lt_of_le i.isLt h⟩)
    (fun i => y ⟨i.val, lt_of_lt_of_le i.isLt h⟩) *
      if ∀ i : Fin n, s ≤ i.val → x i = y i then 1 else 0

/-- Physical permutation matrices, with sigma^{-1} on the word coordinates,
exactly Eq.(2) and Eq.(A2), PDF pp.2,11. -/
abbrev permutation (d n : ℕ) (pi : Equiv.Perm (Fin n)) : Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  QAlgorithms.Schur.tensorPermutation d n pi

/-- Product of the k disjoint, partially transposed swaps in Eq.(A12), PDF p.12.
Here N=a+2k and site a+j is paired with site N-1-j. -/
def contractionPairs (d a k : ℕ) : Matrix (Fin (a + 2 * k) → Fin d) (Fin (a + 2 * k) → Fin d) ℂ :=
  (List.ofFn fun j : Fin k =>
    let left : Fin (a + 2 * k) := ⟨a + j.val, by omega⟩
    let right : Fin (a + 2 * k) := ⟨a + 2 * k - 1 - j.val, by omega⟩
    transposeRegisterSet {right} (permutation d (a + 2 * k) (Equiv.swap left right))).prod

/-- The normalization in Eq.(52), PDF p.9. Both dimensions are constructed:
Specht dimensions are finranks of the regular Young ideals, and Schur
multiplicities are finranks of the tensor Young images. -/
def walledNormalization {d a k : ℕ} (alpha : QAlgorithms.Schur.Partition d a)
    (mu : QAlgorithms.Schur.Partition d (a + k)) : ℂ :=
  (k.factorial : ℂ) * ((a + k).choose k : ℂ) *
    (Module.finrank ℂ (QAlgorithms.Schur.schurModule mu) : ℂ) *
    (Module.finrank ℂ (QAlgorithms.Schur.spechtSpace alpha) : ℂ) /
    ((Module.finrank ℂ (QAlgorithms.Schur.schurModule alpha) : ℂ) *
      (Module.finrank ℂ (QAlgorithms.Schur.spechtSpace mu) : ℂ))

/-- The constructed maximal-productInputContraction-sector kernel, Eqs.(51),(52),(A11),(A12),
PDF pp.8-9,11-12. The coset sum is written as the full S_(a+k) conjugation sum
divided by |S_a|=a!: the core commutes with permutations of its first a sites.
The P's are full character isotypic projectors from Eq.(A6), not Young images.
Nothing here assumes positivity of this computed physical matrix. -/
def walledKernel {d : ℕ} (a k : ℕ) (alpha : QAlgorithms.Schur.Partition d a)
    (mu : QAlgorithms.Schur.Partition d (a + k)) : Matrix (Fin (a + 2 * k) → Fin d) (Fin (a + 2 * k) → Fin d) ℂ :=
  (walledNormalization alpha mu)⁻¹ •
    (embedLeading (by omega : a + k ≤ a + 2 * k)
      (QAlgorithms.Schur.isotypicProjector mu) *
      ((a.factorial : ℂ)⁻¹ •
        ∑ eta : Equiv.Perm (Fin (a + k)),
          embedLeading (by omega : a + k ≤ a + 2 * k)
            (permutation d (a + k) eta⁻¹) *
          (embedLeading (by omega : a ≤ a + 2 * k)
            (QAlgorithms.Schur.isotypicProjector alpha) * contractionPairs d a k) *
          embedLeading (by omega : a + k ≤ a + 2 * k)
            (permutation d (a + k) eta)))

/-- Reindex the total system count as inputs plus outputs; Eq.(53)'s overloaded
n is thus split into r inputs and r+m total sites, PDF p.9. -/
def walledMap {d a k r m : ℕ} (h : r + m = a + 2 * k)
    (alpha : QAlgorithms.Schur.Partition d a)
    (mu : QAlgorithms.Schur.Partition d (a + k))
    (X : Fin r → LocalMatrix d) : Matrix (Fin m → Fin d) (Fin m → Fin d) ℂ :=
  productInputContraction (h.symm ▸ walledKernel a k alpha mu) X

/-- Density matrix premise of the tripartite section, PDF pp.2,5. -/
def WernerDensity {d : ℕ} (rho : Matrix (Fin 3 → Fin d) (Fin 3 → Fin d) ℂ) : Prop :=
  rho.PosSemidef ∧ Matrix.trace rho = 1 ∧
    ∀ U : Matrix.unitaryGroup (Fin d) ℂ,
      let T := tensorMatrices (fun _ : Fin 3 => (U : LocalMatrix d))
      T * rho * T.conjTranspose = rho

/-- The qutrit witness P(1/4,-1/10), with unnormalized Bell operators obtained
by partial transposition of physical swaps, PDF p.4, Eq.(25). -/
def bcsWitness : Matrix (Fin 3 → Fin 3) (Fin 3 → Fin 3) ℂ :=
  transposeRegisterSet {1} (permutation 3 3 (Equiv.swap 0 1)) +
    permutation 3 3 (Equiv.swap 0 2) + (1 / 4 : ℂ) • 1 -
    (1 / 10 : ℂ) • transposeRegisterSet {1} (permutation 3 3 (Equiv.swap 1 2))

/-- The six permutation operators in Eq.(26), in the order id,(12),(23),(31),
(123),(321); cycles follow the global Eq.(2) convention, PDF p.5. -/
def wernerPermutations (d : ℕ) : Fin 6 → Matrix (Fin 3 → Fin d) (Fin 3 → Fin d) ℂ :=
  ![1, permutation d 3 (Equiv.swap 0 1), permutation d 3 (Equiv.swap 1 2),
    permutation d 3 (Equiv.swap 0 2),
    permutation d 3 (Equiv.swap 0 1 * Equiv.swap 1 2),
    permutation d 3 (Equiv.swap 1 2 * Equiv.swap 0 1)]

/-- R_+,R_-,R_0,R_1,R_2,R_3 as defined in Eq.(27), PDF p.5. -/
def wernerBasis (d : ℕ) : Fin 6 → Matrix (Fin 3 → Fin d) (Fin 3 → Fin d) ℂ :=
  let V := wernerPermutations d
  ![(1 / 6 : ℂ) • (V 0 + V 1 + V 2 + V 3 + V 4 + V 5),
    (1 / 6 : ℂ) • (V 0 - V 1 - V 2 - V 3 + V 4 + V 5),
    (1 / 3 : ℂ) • ((2 : ℂ) • V 0 - V 4 - V 5),
    (1 / 3 : ℂ) • ((2 : ℂ) • V 2 - V 3 - V 1),
    ((Real.sqrt 3 : ℂ)⁻¹) • (V 1 - V 3),
    (Complex.I / (Real.sqrt 3 : ℂ)) • (V 4 - V 5)]

/-- The matrix computed by Eq.(B3), PDF p.13; c has real entries ordered
+, -, 0, 1, 2, 3. It is not an unrelated free density matrix. -/
def wernerFromCoefficients (d : ℕ) (c : Fin 6 → ℝ) : Matrix (Fin 3 → Fin d) (Fin 3 → Fin d) ℂ :=
  ∑ j, (c j : ℂ) • wernerBasis d j

/-- Coefficients forced by Eq.(27). The printed alpha_2 in Eq.(B5) is corrected
from c_+/6-c_minus/6-c_2/sqrt(3) to
c_+/6-c_minus/6-c_1/3+c_2/sqrt(3), PDF pp.5,13. -/
def correctedPermutationCoefficients (c : Fin 6 → ℝ) : Fin 6 → ℂ :=
  let p : ℂ := c 0
  let q : ℂ := c 1
  let z : ℂ := c 2
  let x : ℂ := c 3
  let y : ℂ := c 4
  let t : ℂ := c 5
  ![p / 6 + q / 6 + 2 * z / 3,
    p / 6 - q / 6 - x / 3 + y / (Real.sqrt 3 : ℂ),
    p / 6 - q / 6 + 2 * x / 3,
    p / 6 - q / 6 - x / 3 - y / (Real.sqrt 3 : ℂ),
    p / 6 + q / 6 - z / 3 + Complex.I * t / (Real.sqrt 3 : ℂ),
    p / 6 + q / 6 - z / 3 - Complex.I * t / (Real.sqrt 3 : ℂ)]

/-- The Example-14 projector constructed from the FIRST line of Eq.(56),
PDF p.9, N=4,k=1,d=2. The symmetric two-site and (2,1) three-site isotypic
projectors are exactly those in Eq.(55); gamma=1. -/
def example14Kernel : Matrix (Fin 4 → Fin 2) (Fin 4 → Fin 2) ℂ :=
  let pa := (1 / 2 : ℂ) • (1 + permutation 2 4 (Equiv.swap 0 1))
  let cycle := permutation 2 4 (Equiv.swap 0 1 * Equiv.swap 1 2)
  let inverseCycle := permutation 2 4 (Equiv.swap 1 2 * Equiv.swap 0 1)
  let pm := (1 / 3 : ℂ) • ((2 : ℂ) • 1 - cycle - inverseCycle)
  let sigma := transposeRegisterSet {3} (permutation 2 4 (Equiv.swap 2 3))
  let v23 := permutation 2 4 (Equiv.swap 1 2)
  let v13 := permutation 2 4 (Equiv.swap 0 2)
  pm * (pa * sigma + v23 * pa * sigma * v23 + v13 * pa * sigma * v13)

/-- Identify the single output register with M_2, PDF p.9, Eq.(58). -/
def example14Map (A B C : LocalMatrix 2) : LocalMatrix 2 :=
  let M := productInputContraction (r := 3) (m := 1) example14Kernel ![A, B, C]
  fun i j => M (fun _ => i) (fun _ => j)

/-- The explicitly ordered six products and three trace terms in Eq.(58),
PDF p.9; transpose is ordinary matrix transpose. -/
def example14Formula (A B C : LocalMatrix 2) : LocalMatrix 2 :=
  (-1 / 6 : ℂ) • ((A * C * B).transpose + (B * A * C).transpose +
    (C * B * A).transpose + (A * B * C).transpose +
    (B * C * A).transpose + (C * A * B).transpose) +
  (1 / 3 : ℂ) • ((Matrix.trace B * Matrix.trace C) • A.transpose +
    (Matrix.trace A * Matrix.trace C) • B.transpose +
    (Matrix.trace A * Matrix.trace B) • C.transpose)

/-- Sanity: transposing every site is ordinary transpose, without conjugation. -/
example {d n : ℕ} (P : Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ) :
    transposeRegisterSet Finset.univ P = P.transpose := by
  funext x y
  simp [transposeRegisterSet, Matrix.transpose_apply]

/-- Sanity: no contractions means the identity on the remaining sites. -/
example (d a : ℕ) : contractionPairs d a 0 = 1 := by
  simp [contractionPairs]

/-- Sanity: the first permutation is the physical identity. -/
example (d : ℕ) : wernerPermutations d 0 = 1 := by
  rfl

/-- Sanity: the corrected (12) coefficient includes the R_1 contribution. -/
example (c : Fin 6 → ℝ) : correctedPermutationCoefficients c 1 =
    (c 0 : ℂ) / 6 - (c 1 : ℂ) / 6 - (c 3 : ℂ) / 3 +
      (c 4 : ℂ) / (Real.sqrt 3 : ℂ) := by
  rfl

/-- Reshuffling R_(ketSite,braSite) of Eq.(44), PDF p.7, with zero-based sites.
Its coefficient action swaps the indicated ket and bra coordinates. -/
def reshuffleSites {d n : ℕ} (ketSite braSite : Fin n) (P : Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ) :
    Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  fun x y => P (Function.update x ketSite (y braSite))
    (Function.update y braSite (x ketSite))

/-- Two-site reshuffling of Eq.(6), PDF p.2: the first bra and second ket
are interchanged. This is R_(2,1) in the later notation. -/
def reshuffleTwo {d : ℕ} (P : Matrix (Fin 2 → Fin d) (Fin 2 → Fin d) ℂ) : Matrix (Fin 2 → Fin d) (Fin 2 → Fin d) ℂ :=
  reshuffleSites 1 0 P

/-- Two-factor ordered tensor product, PDF p.2. -/
def homogeneousTensorPair {d : ℕ} (A B : LocalMatrix d) : Matrix (Fin 2 → Fin d) (Fin 2 → Fin d) ℂ :=
  tensorMatrices ![A, B]

/-- A single input followed by identities on n-1 sites, PDF pp.7-8. -/
def leadingInput {d : ℕ} (n : ℕ) (hn : 0 < n) (A : LocalMatrix d) : Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  embedLeading (by omega : 1 ≤ n) (tensorMatrices ![A])

/-- Apply R_(n,n-1), then R_(n,n-2), down to R_(n,1), in that order,
using zero-based internal labels. This is the precise ordered sequence of
Eq.(46)/(C5), PDF pp.7,14. Its domain n>=2 excludes the printed site-0 endpoint. -/
def orderedReshuffles {d : ℕ} (n : ℕ) (hn : 2 ≤ n) (P : Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ) :
    Matrix (Fin n → Fin d) (Fin n → Fin d) ℂ :=
  ((List.finRange (n - 1)).reverse).foldl
    (fun M j => reshuffleSites ⟨n - 1, by omega⟩ ⟨j.val, by omega⟩ M) P

/-- The summed kernel sum_(k,l)|alpha,k,beta><k,l,l| in Eq.(45), PDF p.7. -/
def rankOneThreeOutput {d : ℕ} (alpha beta : Fin d) : Matrix (Fin 3 → Fin d) (Fin 3 → Fin d) ℂ :=
  fun x y => if x 0 = alpha ∧ x 2 = beta ∧ x 1 = y 0 ∧ y 1 = y 2 then 1 else 0

/-- The six nonempty proper subsets in Table I order 1,2,3,12,13,23,
PDF p.13. Site numbers are converted to zero-based labels. -/
def tableSubsets : Fin 6 → Finset (Fin 3) :=
  ![{0}, {1}, {2}, {0, 1}, {0, 2}, {1, 2}]

/-- Construct the matrix in Eqs.(26),(B4) from its six permutation coefficients,
PDF pp.5,13. Physical matrices avoid small-d injectivity assumptions. -/
def permutationExpansion (d : ℕ) (alpha : Fin 6 → ℂ) : Matrix (Fin 3 → Fin d) (Fin 3 → Fin d) ℂ :=
  ∑ j, alpha j • wernerPermutations d j

/-- f_S from Eq.(29), with the unnormalized partial trace, PDF p.5. -/
def tripartiteF {d : ℕ} (rho : Matrix (Fin 3 → Fin d) (Fin 3 → Fin d) ℂ) (S : Finset (Fin 3))
    (A : LocalMatrix d) : Matrix (Fin 2 → Fin d) (Fin 2 → Fin d) ℂ :=
  productInputContraction (r := 1) (m := 2) (transposeRegisterSet S rho) ![A]

/-- g_S from Eq.(30), identifying the single output with M_d, PDF p.5. -/
def tripartiteG {d : ℕ} (rho : Matrix (Fin 3 → Fin d) (Fin 3 → Fin d) ℂ) (S : Finset (Fin 3))
    (A B : LocalMatrix d) : LocalMatrix d :=
  let M := productInputContraction (r := 2) (m := 1) (transposeRegisterSet S rho) ![A, B]
  fun i j => M (fun _ => i) (fun _ => j)

/-- All six f rows of Table I, with labelled alpha coefficients and the exact
product/reshuffling order retained, PDF p.13 (Example 3 is included). -/
def tableF {d : ℕ} (a : Fin 6 → ℂ) (A : LocalMatrix d) : Fin 6 → Matrix (Fin 2 → Fin d) (Fin 2 → Fin d) ℂ :=
  let I : LocalMatrix d := 1
  let II := homogeneousTensorPair I I
  let R := reshuffleTwo
  let T := transposeRegisterSet ({1} : Finset (Fin 2))
  let Q := A.transpose
  ![ (a 0 * Matrix.trace A) • II + a 1 • homogeneousTensorPair Q I +
       (a 2 * Matrix.trace A) • T (R II) + a 3 • homogeneousTensorPair I Q +
       a 4 • T (R (homogeneousTensorPair Q I)) + a 5 • T (R (homogeneousTensorPair I A)),
     (a 0 * Matrix.trace A) • II + a 1 • homogeneousTensorPair Q I +
       (a 2 * Matrix.trace A) • R II + a 3 • homogeneousTensorPair I A +
       a 4 • R (homogeneousTensorPair I A) + a 5 • R (homogeneousTensorPair Q I),
     (a 0 * Matrix.trace A) • II + a 1 • homogeneousTensorPair A I +
       (a 2 * Matrix.trace A) • R II + a 3 • homogeneousTensorPair I Q +
       a 4 • R (homogeneousTensorPair A I) + a 5 • R (homogeneousTensorPair I Q),
     (a 0 * Matrix.trace A) • II + a 1 • homogeneousTensorPair A I +
       (a 2 * Matrix.trace A) • R II + a 3 • homogeneousTensorPair I Q +
       a 4 • R (homogeneousTensorPair I Q) + a 5 • R (homogeneousTensorPair A I),
     (a 0 * Matrix.trace A) • II + a 1 • homogeneousTensorPair Q I +
       (a 2 * Matrix.trace A) • R II + a 3 • homogeneousTensorPair I A +
       a 4 • R (homogeneousTensorPair Q I) + a 5 • R (homogeneousTensorPair I A),
     (a 0 * Matrix.trace A) • II + a 1 • homogeneousTensorPair Q I +
       (a 2 * Matrix.trace A) • T (R II) + a 3 • homogeneousTensorPair I Q +
       a 4 • T (R (homogeneousTensorPair I A)) + a 5 • T (R (homogeneousTensorPair Q I)) ]

/-- All six g rows of Table I, PDF p.13. Ordinary transpose and the labelled
cycle contributions have exactly their printed order. -/
def tableG {d : ℕ} (a : Fin 6 → ℂ) (A B : LocalMatrix d) : Fin 6 → LocalMatrix d :=
  let I : LocalMatrix d := 1
  let Q := A.transpose
  let Z := B.transpose
  let c := (a 0 * Matrix.trace A * Matrix.trace B) • I
  ![c + (a 1 * Matrix.trace (Q * B)) • I +
       (a 2 * Matrix.trace A) • B + (a 3 * Matrix.trace B) • Q +
       a 4 • (B * Q) + a 5 • (Q * B),
    c + (a 1 * Matrix.trace (A * Z)) • I +
       (a 2 * Matrix.trace A) • Z + (a 3 * Matrix.trace B) • A +
       a 4 • (Z * A) + a 5 • (A * Z),
    c + (a 1 * Matrix.trace (A * B)) • I +
       (a 2 * Matrix.trace A) • Z + (a 3 * Matrix.trace B) • Q +
       a 4 • (Q * Z) + a 5 • (Z * Q),
    c + (a 1 * Matrix.trace (Q * Z)) • I +
       (a 2 * Matrix.trace A) • Z + (a 3 * Matrix.trace B) • Q +
       a 4 • (Z * Q) + a 5 • (Q * Z),
    c + (a 1 * Matrix.trace (Q * B)) • I +
       (a 2 * Matrix.trace A) • Z + (a 3 * Matrix.trace B) • A +
       a 4 • (A * Z) + a 5 • (Z * A),
    c + (a 1 * Matrix.trace (Q * B)) • I +
       (a 2 * Matrix.trace A) • B + (a 3 * Matrix.trace B) • Q +
       a 4 • (Q * B) + a 5 • (B * Q)]

end QAlgorithms.Papers.Independent.Extend50.P12
Source
Positive maps from the walled Brauer algebra, arXiv:2112.12738v3, https://arxiv.org/abs/2112.12738v3
Read-back

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

QAlgorithms.Papers.Independent.Extend50.P12.ComplexMultilinear

For any natural numbers d,r,md,r,md,r,m and any function fff taking families of rrr complex d×dd\times dd×d matrices to complex matrices indexed by words [m]→[d][m]\to[d][m]→[d], where [k]={j∈N:j<k}[k]=\{j\in\mathbb N:j<k\}[k]={j∈N:j<k}, ComplexMultilinear⁡(f)\operatorname{ComplexMultilinear}(f)ComplexMultilinear(f) means that both of the following hold: for every i∈[r]i\in[r]i∈[r], every input family XXX, and all complex d×dd\times dd×d matrices A,BA,BA,B,

f(X[i←A+B])=f(X[i←A])+f(X[i←B]),f(X[i\leftarrow A+B]) = f(X[i\leftarrow A])+f(X[i\leftarrow B]),f(X[i←A+B])=f(X[i←A])+f(X[i←B]),

and for every i∈[r]i\in[r]i∈[r], every input family XXX, every c∈Cc\in\mathbb Cc∈C, and every complex d×dd\times dd×d matrix AAA,

f(X[i←cA])=c f(X[i←A]).f(X[i\leftarrow cA])=c\,f(X[i\leftarrow A]).f(X[i←cA])=cf(X[i←A]).

Here X[i←A]X[i\leftarrow A]X[i←A] replaces only the iiith matrix of XXX by AAA. When r=0r=0r=0, both requirements are vacuous, so every function of the specified type satisfies this condition, regardless of its value on the empty family. Zero values of ddd and mmm are also allowed; words of length zero form a singleton, whereas positive-length words over [0][0][0] form an empty set.

QAlgorithms.Papers.Independent.Extend50.P12.ComplexNonnegative

For any complex number zzz, ComplexNonnegative⁡(z)\operatorname{ComplexNonnegative}(z)ComplexNonnegative(z) means that Im⁡z=0\operatorname{Im}z=0Imz=0 and 0≤Re⁡z0\leq\operatorname{Re}z0≤Rez. In particular, zero satisfies this condition.

QAlgorithms.Papers.Independent.Extend50.P12.InputOutputBlockPositive

For any natural numbers d,r,md,r,md,r,m and any complex matrix PPP indexed by words [r+m]→[d][r+m]\to[d][r+m]→[d], where [k]={j∈N:j<k}[k]=\{j\in\mathbb N:j<k\}[k]={j∈N:j<k}, InputOutputBlockPositive⁡(P)\operatorname{InputOutputBlockPositive}(P)InputOutputBlockPositive(P) means that for every family X=(Xi)i∈[r]X=(X_i)_{i\in[r]}X=(Xi​)i∈[r]​ of positive semidefinite complex d×dd\times dd×d matrices and every positive semidefinite complex matrix CCC indexed by words [m]→[d][m]\to[d][m]→[d], the number tr⁡(P T(X,C))\operatorname{tr}(P\,T(X,C))tr(PT(X,C)) has imaginary part zero and nonnegative real part, where

T(X,C)x,y=(∏i=0r−1(Xi)xi,yi)C(xr,…,xr+m−1), (yr,…,yr+m−1).T(X,C)_{x,y} = \left(\prod_{i=0}^{r-1}(X_i)_{x_i,y_i}\right) C_{(x_r,\ldots,x_{r+m-1}),\,(y_r,\ldots,y_{r+m-1})}.T(X,C)x,y​=(i=0∏r−1​(Xi​)xi​,yi​​)C(xr​,…,xr+m−1​),(yr​,…,yr+m−1​)​.

When r=0r=0r=0, the family condition is vacuous and T(X,C)=CT(X,C)=CT(X,C)=C; when m=0m=0m=0, CCC is a positive semidefinite 1×11\times11×1 matrix. All zero dimensions are included: the empty product is 111, an empty word is unique, and if d=0d=0d=0 and r+m>0r+m>0r+m>0, the trace is the empty sum 000.

QAlgorithms.Papers.Independent.Extend50.P12.LocalMatrix

For every natural number ddd, LocalMatrix⁡(d)\operatorname{LocalMatrix}(d)LocalMatrix(d) denotes the space of complex matrices whose rows and columns are indexed by [d]={i∈N:i<d}[d]=\{i\in\mathbb N:i<d\}[d]={i∈N:i<d}, that is, complex d×dd\times dd×d matrices. The case d=0d=0d=0 is included and gives the unique matrix with no rows or columns.

QAlgorithms.Papers.Independent.Extend50.P12.PositiveMap

For any natural numbers d,r,md,r,md,r,m and any function fff taking a family X=(Xi)i∈[r]X=(X_i)_{i\in[r]}X=(Xi​)i∈[r]​ of complex d×dd\times dd×d matrices to a complex matrix indexed by words [m]→[d][m]\to[d][m]→[d], where [k]={j∈N:j<k}[k]=\{j\in\mathbb N:j<k\}[k]={j∈N:j<k}, PositiveMap⁡(f)\operatorname{PositiveMap}(f)PositiveMap(f) means that for every such family XXX, if every XiX_iXi​ is positive semidefinite, then f(X)f(X)f(X) is positive semidefinite. When r=0r=0r=0, the input family is uniquely empty, its positivity hypothesis is vacuous, and the condition requires positivity of the single resulting output. When m=0m=0m=0, that output is a 1×11\times11×1 matrix; if d=0d=0d=0 and m>0m>0m>0, its index set is empty.

QAlgorithms.Papers.Independent.Extend50.P12.WernerDensity

For every natural number ddd and every complex matrix ρ\rhoρ indexed by length-three words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, this predicate means that ρ\rhoρ is positive semidefinite, tr⁡(ρ)=1\operatorname{tr}(\rho)=1tr(ρ)=1, and, for every unitary complex d×dd\times dd×d matrix UUU,

TUρTU∗=ρ,(TU)x,y=∏i=02Uxi,yi,T_U\rho T_U^{*}=\rho, \qquad (T_U)_{x,y}=\prod_{i=0}^{2}U_{x_i,y_i},TU​ρTU∗​=ρ,(TU​)x,y​=i=0∏2​Uxi​,yi​​,

where TU∗T_U^{*}TU∗​ is the conjugate transpose. The quantifier includes d=0d=0d=0; then the length-three word set is empty, every such matrix has trace 000, and the trace-one requirement cannot hold.

QAlgorithms.Papers.Independent.Extend50.P12.bcsWitness

This defines a fixed complex matrix indexed by x,y∈{0,1,2}3x,y\in\{0,1,2\}^{3}x,y∈{0,1,2}3, with register positions numbered 0,1,20,1,20,1,2, whose entries are

Bx,y=1{x0=x1}1{y0=y1}1{x2=y2}+1{x0=y2}1{x1=y1}1{x2=y0}+14 1{x=y}−110 1{x1=x2}1{y1=y2}1{x0=y0}.\begin{aligned} B_{x,y}={}& \mathbf 1_{\{x_0=x_1\}}\mathbf 1_{\{y_0=y_1\}}\mathbf 1_{\{x_2=y_2\}} +\mathbf 1_{\{x_0=y_2\}}\mathbf 1_{\{x_1=y_1\}}\mathbf 1_{\{x_2=y_0\}}\\ &+\frac14\,\mathbf 1_{\{x=y\}} -\frac1{10}\, \mathbf 1_{\{x_1=x_2\}}\mathbf 1_{\{y_1=y_2\}}\mathbf 1_{\{x_0=y_0\}}. \end{aligned}Bx,y​=​1{x0​=x1​}​1{y0​=y1​}​1{x2​=y2​}​+1{x0​=y2​}​1{x1​=y1​}​1{x2​=y0​}​+41​1{x=y}​−101​1{x1​=x2​}​1{y1​=y2​}​1{x0​=y0​}​.​

Each indicator denotes the complex number 000 or 111. The first and last terms arise by exchanging the row and column coordinates at register 111 in the swap matrices for registers 0,10,10,1 and 1,21,21,2, respectively.

QAlgorithms.Papers.Independent.Extend50.P12.contractionPairs

For all natural numbers d,a,kd,a,kd,a,k, put N=a+2kN=a+2kN=a+2k and let W={0,…,d−1}NW=\{0,\ldots,d-1\}^{N}W={0,…,d−1}N, with register positions numbered from 000. This defines a complex matrix indexed by W×WW\times WW×W as the ordered product E0E1⋯Ek−1E_0E_1\cdots E_{k-1}E0​E1​⋯Ek−1​. For 0≤j<k0\le j<k0≤j<k, set ℓj=a+j\ell_j=a+jℓj​=a+j and rj=a+2k−1−jr_j=a+2k-1-jrj​=a+2k−1−j; the entries of its factor are

(Ej)x,y=1{xℓj=xrj} 1{yℓj=yrj} ⁣∏0≤i<Ni≠ℓj, i≠rj1{xi=yi},(E_j)_{x,y} = \mathbf 1_{\{x_{\ell_j}=x_{r_j}\}}\, \mathbf 1_{\{y_{\ell_j}=y_{r_j}\}}\! \prod_{\substack{0\le i<N\\i\ne\ell_j,\ i\ne r_j}} \mathbf 1_{\{x_i=y_i\}},(Ej​)x,y​=1{xℓj​​=xrj​​}​1{yℓj​​=yrj​​}​0≤i<Ni=ℓj​, i=rj​​∏​1{xi​=yi​}​,

where each indicator is interpreted as the complex number 000 or 111. Equivalently, EjE_jEj​ is obtained from the register-swap matrix for positions ℓj,rj\ell_j,r_jℓj​,rj​ by exchanging its row and column coordinates at position rjr_jrj​. The product is in increasing order of jjj; when k=0k=0k=0, it is the identity matrix. Zero values of aaa and ddd are included: if d=0<Nd=0<Nd=0<N, the matrix index set is empty, while for N=0N=0N=0 it contains the unique empty word.

QAlgorithms.Papers.Independent.Extend50.P12.correctedPermutationCoefficients

For any six real numbers c0,…,c5c_0,\ldots,c_5c0​,…,c5​, write p=c0p=c_0p=c0​, q=c1q=c_1q=c1​, z=c2z=c_2z=c2​, x=c3x=c_3x=c3​, y=c4y=c_4y=c4​, and t=c5t=c_5t=c5​, regarding these as complex numbers. This defines the ordered six-tuple of complex numbers

(p6+q6+2z3, p6−q6−x3+y3, p6−q6+2x3, p6−q6−x3−y3, p6+q6−z3+it3, p6+q6−z3−it3).\left( \frac p6+\frac q6+\frac{2z}{3},\ \frac p6-\frac q6-\frac x3+\frac y{\sqrt3},\ \frac p6-\frac q6+\frac{2x}{3},\ \frac p6-\frac q6-\frac x3-\frac y{\sqrt3},\ \frac p6+\frac q6-\frac z3+\frac{\mathrm i t}{\sqrt3},\ \frac p6+\frac q6-\frac z3-\frac{\mathrm i t}{\sqrt3} \right).(6p​+6q​+32z​, 6p​−6q​−3x​+3​y​, 6p​−6q​+32x​, 6p​−6q​−3x​−3​y​, 6p​+6q​−3z​+3​it​, 6p​+6q​−3z​−3​it​).

The entries are indexed from 000 to 555, and the input real numbers have no additional restrictions.

QAlgorithms.Papers.Independent.Extend50.P12.embedLeading

For any natural numbers d,s,nd,s,nd,s,n satisfying s≤ns\leq ns≤n and any complex matrix PPP indexed by words [s]→[d][s]\to[d][s]→[d], where [k]={j∈N:j<k}[k]=\{j\in\mathbb N:j<k\}[k]={j∈N:j<k}, the defined matrix is indexed by words x,y:[n]→[d]x,y:[n]\to[d]x,y:[n]→[d] and has entries

E(P)x,y={P(x0,…,xs−1), (y0,…,ys−1)if xi=yi for every s≤i<n,0otherwise.E(P)_{x,y} = \begin{cases} P_{(x_0,\ldots,x_{s-1}),\,(y_0,\ldots,y_{s-1})} &\text{if }x_i=y_i\text{ for every }s\leq i<n,\\ 0&\text{otherwise}. \end{cases}E(P)x,y​={P(x0​,…,xs−1​),(y0​,…,ys−1​)​0​if xi​=yi​ for every s≤i<n,otherwise.​

When s=ns=ns=n, the coordinate agreement condition is vacuous and the result is PPP. When s=0s=0s=0, PPP has one entry and the result is that scalar times the identity on the length-nnn word space. Zero dimensions are included: for n=0n=0n=0 this space has one empty word, while for d=0d=0d=0 and n>0n>0n>0 it is empty.

QAlgorithms.Papers.Independent.Extend50.P12.example14Formula

For arbitrary complex 2×22\times22×2 matrices A,B,CA,B,CA,B,C, this defines the complex 2×22\times22×2 matrix

−16((ACB)T+(BAC)T+(CBA)T+(ABC)T+(BCA)T+(CAB)T)+13(tr⁡(B)tr⁡(C)AT+tr⁡(A)tr⁡(C)BT+tr⁡(A)tr⁡(B)CT).-\frac16\bigl((ACB)^{\mathsf T}+(BAC)^{\mathsf T}+(CBA)^{\mathsf T} +(ABC)^{\mathsf T}+(BCA)^{\mathsf T}+(CAB)^{\mathsf T}\bigr) +\frac13\bigl(\operatorname{tr}(B)\operatorname{tr}(C)A^{\mathsf T} +\operatorname{tr}(A)\operatorname{tr}(C)B^{\mathsf T} +\operatorname{tr}(A)\operatorname{tr}(B)C^{\mathsf T}\bigr).−61​((ACB)T+(BAC)T+(CBA)T+(ABC)T+(BCA)T+(CAB)T)+31​(tr(B)tr(C)AT+tr(A)tr(C)BT+tr(A)tr(B)CT).

Here products are matrix products, scalar coefficients act by scalar multiplication, and T{}^{\mathsf T}T denotes transpose without complex conjugation. No positivity, Hermitian, or trace assumptions are imposed on A,B,CA,B,CA,B,C.

QAlgorithms.Papers.Independent.Extend50.P12.example14Kernel

This defines a fixed complex matrix on words x,y∈{0,1}4x,y\in\{0,1\}^{4}x,y∈{0,1}4, with register positions numbered 0,1,2,30,1,2,30,1,2,3. For a permutation π\piπ of these positions, let (Pπ)x,y=1{x=y∘π−1}(P_\pi)_{x,y}=\mathbf 1_{\{x=y\circ\pi^{-1}\}}(Pπ​)x,y​=1{x=y∘π−1}​, let sijs_{ij}sij​ exchange positions i,ji,ji,j, and define

A0=12(I+Ps01),M0=13(2I−Ps01s12−Ps12s01),Σx,y=1{x2=x3}1{y2=y3}1{x0=y0}1{x1=y1}.A_0=\frac12(I+P_{s_{01}}), \qquad M_0=\frac13\bigl(2I-P_{s_{01}s_{12}}-P_{s_{12}s_{01}}\bigr), \qquad \Sigma_{x,y} =\mathbf 1_{\{x_2=x_3\}}\mathbf 1_{\{y_2=y_3\}} \mathbf 1_{\{x_0=y_0\}}\mathbf 1_{\{x_1=y_1\}}.A0​=21​(I+Ps01​​),M0​=31​(2I−Ps01​s12​​−Ps12​s01​​),Σx,y​=1{x2​=x3​}​1{y2​=y3​}​1{x0​=y0​}​1{x1​=y1​}​.

Here permutation multiplication is composition with the rightmost acting first, and Σ\SigmaΣ is the swap matrix for positions 2,32,32,3 with its row and column coordinates exchanged at position 333. The defined matrix is

K=M0(A0Σ+Ps12A0ΣPs12+Ps02A0ΣPs02),K=M_0\left( A_0\Sigma +P_{s_{12}}A_0\Sigma P_{s_{12}} +P_{s_{02}}A_0\Sigma P_{s_{02}} \right),K=M0​(A0​Σ+Ps12​​A0​ΣPs12​​+Ps02​​A0​ΣPs02​​),

with matrix multiplication in exactly the displayed order.

QAlgorithms.Papers.Independent.Extend50.P12.example14Map

For arbitrary complex 2×22\times22×2 matrices A,B,CA,B,CA,B,C, this defines a complex 2×22\times22×2 matrix as follows. On four-bit words, let (Pπ)x,y=1{x=y∘π−1}(P_\pi)_{x,y}=\mathbf 1_{\{x=y\circ\pi^{-1}\}}(Pπ​)x,y​=1{x=y∘π−1}​, let sijs_{ij}sij​ exchange zero-based register positions i,ji,ji,j, and set

A0=12(I+Ps01),M0=13(2I−Ps01s12−Ps12s01),Σx,y=1{x2=x3}1{y2=y3}1{x0=y0}1{x1=y1},A_0=\frac12(I+P_{s_{01}}), \qquad M_0=\frac13\bigl(2I-P_{s_{01}s_{12}}-P_{s_{12}s_{01}}\bigr), \qquad \Sigma_{x,y} =\mathbf 1_{\{x_2=x_3\}}\mathbf 1_{\{y_2=y_3\}} \mathbf 1_{\{x_0=y_0\}}\mathbf 1_{\{x_1=y_1\}},A0​=21​(I+Ps01​​),M0​=31​(2I−Ps01​s12​​−Ps12​s01​​),Σx,y​=1{x2​=x3​}​1{y2​=y3​}​1{x0​=y0​}​1{x1​=y1​}​,

where permutation products are compositions with the rightmost acting first, and all indicators are complex 000 or 111. Form

K=M0(A0Σ+Ps12A0ΣPs12+Ps02A0ΣPs02).K=M_0\left( A_0\Sigma+ P_{s_{12}}A_0\Sigma P_{s_{12}}+ P_{s_{02}}A_0\Sigma P_{s_{02}} \right).K=M0​(A0​Σ+Ps12​​A0​ΣPs12​​+Ps02​​A0​ΣPs02​​).

For i,j∈{0,1}i,j\in\{0,1\}i,j∈{0,1}, the output entry is

∑u,v∈{0,1}3K(u0,u1,u2,i), (v0,v1,v2,j) Av0,u0Bv1,u1Cv2,u2.\sum_{u,v\in\{0,1\}^{3}} K_{(u_0,u_1,u_2,i),\,(v_0,v_1,v_2,j)} \,A_{v_0,u_0}B_{v_1,u_1}C_{v_2,u_2}.u,v∈{0,1}3∑​K(u0​,u1​,u2​,i),(v0​,v1​,v2​,j)​Av0​,u0​​Bv1​,u1​​Cv2​,u2​​.

There are no positivity, Hermiticity, or normalization hypotheses on A,B,CA,B,CA,B,C, and their entries in this formula are not complex-conjugated.

QAlgorithms.Papers.Independent.Extend50.P12.homogeneousTensorPair

For any natural number ddd and arbitrary complex d×dd\times dd×d matrices A,BA,BA,B, this defines the matrix indexed by two-letter words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} whose entries are

H(A,B)(x0,x1),(y0,y1)=Ax0,y0Bx1,y1.H(A,B)_{(x_0,x_1),(y_0,y_1)} =A_{x_0,y_0}B_{x_1,y_1}.H(A,B)(x0​,x1​),(y0​,y1​)​=Ax0​,y0​​Bx1​,y1​​.

The two input matrices are unrestricted and need not be equal. The definition includes d=0d=0d=0, when its output has empty index set.

QAlgorithms.Papers.Independent.Extend50.P12.inputOutputTensor

For any natural numbers d,r,md,r,md,r,m, any family X=(Xi)i∈[r]X=(X_i)_{i\in[r]}X=(Xi​)i∈[r]​ of complex d×dd\times dd×d matrices, and any complex matrix CCC indexed by words [m]→[d][m]\to[d][m]→[d], where [k]={j∈N:j<k}[k]=\{j\in\mathbb N:j<k\}[k]={j∈N:j<k}, the defined matrix is indexed by words x,y:[r+m]→[d]x,y:[r+m]\to[d]x,y:[r+m]→[d] and has entries

T(X,C)x,y=(∏i=0r−1(Xi)xi,yi)C(xr,…,xr+m−1), (yr,…,yr+m−1).T(X,C)_{x,y} = \left(\prod_{i=0}^{r-1}(X_i)_{x_i,y_i}\right) C_{(x_r,\ldots,x_{r+m-1}),\,(y_r,\ldots,y_{r+m-1})}.T(X,C)x,y​=(i=0∏r−1​(Xi​)xi​,yi​​)C(xr​,…,xr+m−1​),(yr​,…,yr+m−1​)​.

When r=0r=0r=0, the product is 111 and this matrix is CCC; when m=0m=0m=0, CCC is a 1×11\times11×1 matrix and its sole entry multiplies the displayed product. Zero values of ddd are included: words of positive length over [0][0][0] do not exist, whereas there is one empty word.

QAlgorithms.Papers.Independent.Extend50.P12.joinWords

For any natural numbers d,r,md,r,md,r,m and words x:[r]→[d]x:[r]\to[d]x:[r]→[d] and y:[m]→[d]y:[m]\to[d]y:[m]→[d], where [k]={j∈N:j<k}[k]=\{j\in\mathbb N:j<k\}[k]={j∈N:j<k}, their defined concatenation x∥y:[r+m]→[d]x\mathbin{\|}y:[r+m]\to[d]x∥y:[r+m]→[d] satisfies

(x∥y)i=xi(0≤i<r),(x∥y)r+j=yj(0≤j<m).(x\mathbin{\|}y)_i=x_i\quad(0\leq i<r), \qquad (x\mathbin{\|}y)_{r+j}=y_j\quad(0\leq j<m).(x∥y)i​=xi​(0≤i<r),(x∥y)r+j​=yj​(0≤j<m).

Either word may have length zero; if both do, the result is the unique empty word. If d=0d=0d=0, such input words exist only when both lengths are zero.

QAlgorithms.Papers.Independent.Extend50.P12.leadingInput

For any natural number ddd, any positive natural number nnn, with a supplied hypothesis n>0n>0n>0, and any complex d×dd\times dd×d matrix AAA, this defines the matrix indexed by nnn-letter words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} with entries

Ln(A)x,y={Ax0,y0,xi=yi for every 1≤i<n,0,otherwise.L_n(A)_{x,y} = \begin{cases} A_{x_0,y_0},&x_i=y_i\text{ for every }1\le i<n,\\ 0,&\text{otherwise}. \end{cases}Ln​(A)x,y​={Ax0​,y0​​,0,​xi​=yi​ for every 1≤i<n,otherwise.​

Equivalently, it places AAA on register 000 and the identity on every remaining register. For n=1n=1n=1, the condition on the remaining coordinates is vacuous; d=0d=0d=0 is allowed and gives an empty index set.

QAlgorithms.Papers.Independent.Extend50.P12.orderedReshuffles

For any natural number ddd, any natural number nnn with a supplied hypothesis n≥2n\ge2n≥2, and any complex matrix PPP indexed by nnn-letter words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, define Rp,q(M)R_{p,q}(M)Rp,q​(M) by

Rp,q(M)x,y=M x[p←yq],  y[q←xp],R_{p,q}(M)_{x,y}=M_{\,x[p\leftarrow y_q],\;y[q\leftarrow x_p]},Rp,q​(M)x,y​=Mx[p←yq​],y[q←xp​]​,

where replacements use the original x,yx,yx,y and leave all other coordinates unchanged. This definition starts with PPP and successively applies Rn−1,jR_{n-1,j}Rn−1,j​ for j=n−2,n−3,…,0j=n-2,n-3,\ldots,0j=n−2,n−3,…,0, in precisely that order, returning

Rn−1,0(Rn−1,1(⋯Rn−1,n−2(P)⋯ )).R_{n-1,0}\Bigl(R_{n-1,1}\bigl(\cdots R_{n-1,n-2}(P)\cdots\bigr)\Bigr).Rn−1,0​(Rn−1,1​(⋯Rn−1,n−2​(P)⋯)).

For n=2n=2n=2 there is exactly one application, R1,0(P)R_{1,0}(P)R1,0​(P). No assumption is imposed on PPP, and d=0d=0d=0 is permitted, yielding matrices with empty index set.

QAlgorithms.Papers.Independent.Extend50.P12.permutation

For any natural numbers d,nd,nd,n and any permutation π\piπ of [n]={j∈N:j<n}[n]=\{j\in\mathbb N:j<n\}[n]={j∈N:j<n}, the defined complex matrix has rows and columns indexed by words y,x:[n]→[d]y,x:[n]\to[d]y,x:[n]→[d] and entries

V(π)y,x={1if y=x∘π−1,0otherwise.V(\pi)_{y,x} = \begin{cases} 1&\text{if }y=x\circ\pi^{-1},\\ 0&\text{otherwise}. \end{cases}V(π)y,x​={10​if y=x∘π−1,otherwise.​

Equivalently, its entry is 111 exactly when yi=xπ−1(i)y_i=x_{\pi^{-1}(i)}yi​=xπ−1(i)​ for every i∈[n]i\in[n]i∈[n]. When n=0n=0n=0, there is one empty word and this is the 1×11\times11×1 matrix [1][1][1], including when d=0d=0d=0; when d=0d=0d=0 and n>0n>0n>0, the matrix is empty.

QAlgorithms.Papers.Independent.Extend50.P12.permutationExpansion

For every natural number ddd and arbitrary complex coefficients α0,…,α5\alpha_0,\ldots,\alpha_5α0​,…,α5​, this defines the complex matrix

α0I+α1P(01)+α2P(12)+α3P(02)+α4P(01)(12)+α5P(12)(01)\alpha_0 I+\alpha_1P_{(01)}+\alpha_2P_{(12)} +\alpha_3P_{(02)}+\alpha_4P_{(01)(12)}+\alpha_5P_{(12)(01)}α0​I+α1​P(01)​+α2​P(12)​+α3​P(02)​+α4​P(01)(12)​+α5​P(12)(01)​

on triples over D={0,…,d−1}D=\{0,\ldots,d-1\}D={0,…,d−1}, where

(Pσ)x,y={1,xi=yσ−1(i) for every i∈{0,1,2},0,otherwise,(P_\sigma)_{x,y}= \begin{cases} 1,&x_i=y_{\sigma^{-1}(i)}\text{ for every }i\in\{0,1,2\},\\ 0,&\text{otherwise}, \end{cases}(Pσ​)x,y​={1,0,​xi​=yσ−1(i)​ for every i∈{0,1,2},otherwise,​

and permutation products apply the rightmost permutation first. No positivity, normalization, or reality condition is imposed on the coefficients. The definition includes d=0d=0d=0, when the matrix has an empty row and column index set.

QAlgorithms.Papers.Independent.Extend50.P12.productInputContraction

For any natural numbers d,r,md,r,md,r,m, any complex matrix PPP indexed by words [r+m]→[d][r+m]\to[d][r+m]→[d], and any family X=(Xi)i∈[r]X=(X_i)_{i\in[r]}X=(Xi​)i∈[r]​ of complex d×dd\times dd×d matrices, where [k]={j∈N:j<k}[k]=\{j\in\mathbb N:j<k\}[k]={j∈N:j<k}, the defined matrix is indexed by words y,z:[m]→[d]y,z:[m]\to[d]y,z:[m]→[d] and has entries

K(P,X)y,z=∑a:[r]→[d] ∑b:[r]→[d]Pa∥y, b∥z∏i∈[r](Xi)bi,ai,K(P,X)_{y,z} = \sum_{a:[r]\to[d]}\ \sum_{b:[r]\to[d]} P_{a\mathbin{\|}y,\,b\mathbin{\|}z} \prod_{i\in[r]}(X_i)_{b_i,a_i},K(P,X)y,z​=a:[r]→[d]∑​ b:[r]→[d]∑​Pa∥y,b∥z​i∈[r]∏​(Xi​)bi​,ai​​,

where ∥\mathbin{\|}∥ concatenates words with the length-rrr word first. When r=0r=0r=0, each sum has one term and the product is 111, so the result is PPP. When m=0m=0m=0, the result is a 1×11\times11×1 matrix. When d=0d=0d=0 and r>0r>0r>0, the sums are empty and every resulting entry is zero.

QAlgorithms.Papers.Independent.Extend50.P12.rankOneThreeOutput

For every natural number ddd and indices α,β∈D={0,…,d−1}\alpha,\beta\in D=\{0,\ldots,d-1\}α,β∈D={0,…,d−1}, this defines a complex matrix MMM whose rows and columns are indexed by triples in D3D^3D3, with entries

Mx,y={1,x0=α, x2=β, x1=y0, and y1=y2,0,otherwise.M_{x,y}= \begin{cases} 1,&x_0=\alpha,\ x_2=\beta,\ x_1=y_0,\ \text{and }y_1=y_2,\\ 0,&\text{otherwise}. \end{cases}Mx,y​={1,0,​x0​=α, x2​=β, x1​=y0​, and y1​=y2​,otherwise.​

There is no requirement that α\alphaα and β\betaβ be distinct. When d=0d=0d=0, there are no choices of α,β\alpha,\betaα,β.

QAlgorithms.Papers.Independent.Extend50.P12.reshuffleSites

For natural numbers d,nd,nd,n, register positions p,q∈{0,…,n−1}p,q\in\{0,\ldots,n-1\}p,q∈{0,…,n−1}, and any complex matrix PPP indexed by nnn-letter words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, this defines the matrix Rp,q(P)R_{p,q}(P)Rp,q​(P) by

Rp,q(P)x,y=P x[p←yq],  y[q←xp],R_{p,q}(P)_{x,y} =P_{\,x[p\leftarrow y_q],\;y[q\leftarrow x_p]},Rp,q​(P)x,y​=Px[p←yq​],y[q←xp​]​,

where x[p←v]x[p\leftarrow v]x[p←v] means replacing coordinate ppp of xxx by vvv and leaving every other coordinate unchanged; both replacements use the original words x,yx,yx,y. The positions p,qp,qp,q need not be distinct; when they coincide, their row and column coordinates are exchanged. Supplying either position requires n>0n>0n>0; d=0d=0d=0 is permitted, in which case the word index set is empty.

QAlgorithms.Papers.Independent.Extend50.P12.reshuffleTwo

For any natural number ddd and any complex matrix PPP indexed by two-letter words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, this defines the matrix R(P)R(P)R(P) by

R(P)(x0,x1),(y0,y1)=P(x0,y0),(x1,y1).R(P)_{(x_0,x_1),(y_0,y_1)} =P_{(x_0,y_0),(x_1,y_1)}.R(P)(x0​,x1​),(y0​,y1​)​=P(x0​,y0​),(x1​,y1​)​.

Thus the row coordinate at position 111 is replaced by the original column coordinate at position 000, and the column coordinate at position 000 is replaced by the original row coordinate at position 111. No conjugation is performed and no assumption is imposed on PPP; d=0d=0d=0 is included, yielding a matrix with empty index set.

QAlgorithms.Papers.Independent.Extend50.P12.tableF

For every natural number ddd, arbitrary complex coefficients a0,…,a5a_0,\ldots,a_5a0​,…,a5​, and arbitrary complex d×dd\times dd×d matrix AAA, this defines six complex matrices indexed by pairs over D={0,…,d−1}D=\{0,\ldots,d-1\}D={0,…,d−1}. Set I=IdI=I_dI=Id​, Q=ATQ=A^{\mathsf T}Q=AT, and h=tr⁡Ah=\operatorname{tr}Ah=trA, where the transpose does not conjugate entries. Define

H(U,V)x,y=Ux0,y0Vx1,y1,(RM)x,y=M(x0,y0),(x1,y1),(TM)x,y=M(x0,y1),(y0,x1),H(U,V)_{x,y}=U_{x_0,y_0}V_{x_1,y_1},\qquad (RM)_{x,y}=M_{(x_0,y_0),(x_1,y_1)},\qquad (TM)_{x,y}=M_{(x_0,y_1),(y_0,x_1)},H(U,V)x,y​=Ux0​,y0​​Vx1​,y1​​,(RM)x,y​=M(x0​,y0​),(x1​,y1​)​,(TM)x,y​=M(x0​,y1​),(y0​,x1​)​,

and put J=H(I,I)J=H(I,I)J=H(I,I) and C=a0hJC=a_0hJC=a0​hJ. The values at indices 0,…,50,\ldots,50,…,5, respectively, are

F0=C+a1H(Q,I)+a2h T(RJ)+a3H(I,Q)+a4T(R(H(Q,I)))+a5T(R(H(I,A))),F1=C+a1H(Q,I)+a2h RJ+a3H(I,A)+a4R(H(I,A))+a5R(H(Q,I)),F2=C+a1H(A,I)+a2h RJ+a3H(I,Q)+a4R(H(A,I))+a5R(H(I,Q)),F3=C+a1H(A,I)+a2h RJ+a3H(I,Q)+a4R(H(I,Q))+a5R(H(A,I)),F4=C+a1H(Q,I)+a2h RJ+a3H(I,A)+a4R(H(Q,I))+a5R(H(I,A)),F5=C+a1H(Q,I)+a2h T(RJ)+a3H(I,Q)+a4T(R(H(I,A)))+a5T(R(H(Q,I))).\begin{aligned} F_0={}&C+a_1H(Q,I)+a_2h\,T(RJ)+a_3H(I,Q) +a_4T(R(H(Q,I)))+a_5T(R(H(I,A))),\\ F_1={}&C+a_1H(Q,I)+a_2h\,RJ+a_3H(I,A) +a_4R(H(I,A))+a_5R(H(Q,I)),\\ F_2={}&C+a_1H(A,I)+a_2h\,RJ+a_3H(I,Q) +a_4R(H(A,I))+a_5R(H(I,Q)),\\ F_3={}&C+a_1H(A,I)+a_2h\,RJ+a_3H(I,Q) +a_4R(H(I,Q))+a_5R(H(A,I)),\\ F_4={}&C+a_1H(Q,I)+a_2h\,RJ+a_3H(I,A) +a_4R(H(Q,I))+a_5R(H(I,A)),\\ F_5={}&C+a_1H(Q,I)+a_2h\,T(RJ)+a_3H(I,Q) +a_4T(R(H(I,A)))+a_5T(R(H(Q,I))). \end{aligned}F0​=F1​=F2​=F3​=F4​=F5​=​C+a1​H(Q,I)+a2​hT(RJ)+a3​H(I,Q)+a4​T(R(H(Q,I)))+a5​T(R(H(I,A))),C+a1​H(Q,I)+a2​hRJ+a3​H(I,A)+a4​R(H(I,A))+a5​R(H(Q,I)),C+a1​H(A,I)+a2​hRJ+a3​H(I,Q)+a4​R(H(A,I))+a5​R(H(I,Q)),C+a1​H(A,I)+a2​hRJ+a3​H(I,Q)+a4​R(H(I,Q))+a5​R(H(A,I)),C+a1​H(Q,I)+a2​hRJ+a3​H(I,A)+a4​R(H(Q,I))+a5​R(H(I,A)),C+a1​H(Q,I)+a2​hT(RJ)+a3​H(I,Q)+a4​T(R(H(I,A)))+a5​T(R(H(Q,I))).​

All coefficients multiply matrices as scalars. The definition also includes d=0d=0d=0, when all six output matrices have empty index sets.

QAlgorithms.Papers.Independent.Extend50.P12.tableG

For every natural number ddd, arbitrary complex coefficients a0,…,a5a_0,\ldots,a_5a0​,…,a5​, and arbitrary complex d×dd\times dd×d matrices A,BA,BA,B, this defines six complex d×dd\times dd×d matrices. Write I=IdI=I_dI=Id​, Q=ATQ=A^{\mathsf T}Q=AT, Z=BTZ=B^{\mathsf T}Z=BT, h=tr⁡Ah=\operatorname{tr}Ah=trA, k=tr⁡Bk=\operatorname{tr}Bk=trB, and C=a0hkIC=a_0hkIC=a0​hkI, with ordinary transpose and no conjugation. The values at indices 0,…,50,\ldots,50,…,5, respectively, are

G0=C+a1tr⁡(QB)I+a2hB+a3kQ+a4BQ+a5QB,G1=C+a1tr⁡(AZ)I+a2hZ+a3kA+a4ZA+a5AZ,G2=C+a1tr⁡(AB)I+a2hZ+a3kQ+a4QZ+a5ZQ,G3=C+a1tr⁡(QZ)I+a2hZ+a3kQ+a4ZQ+a5QZ,G4=C+a1tr⁡(QB)I+a2hZ+a3kA+a4AZ+a5ZA,G5=C+a1tr⁡(QB)I+a2hB+a3kQ+a4QB+a5BQ.\begin{aligned} G_0={}&C+a_1\operatorname{tr}(QB)I+a_2hB+a_3kQ+a_4BQ+a_5QB,\\ G_1={}&C+a_1\operatorname{tr}(AZ)I+a_2hZ+a_3kA+a_4ZA+a_5AZ,\\ G_2={}&C+a_1\operatorname{tr}(AB)I+a_2hZ+a_3kQ+a_4QZ+a_5ZQ,\\ G_3={}&C+a_1\operatorname{tr}(QZ)I+a_2hZ+a_3kQ+a_4ZQ+a_5QZ,\\ G_4={}&C+a_1\operatorname{tr}(QB)I+a_2hZ+a_3kA+a_4AZ+a_5ZA,\\ G_5={}&C+a_1\operatorname{tr}(QB)I+a_2hB+a_3kQ+a_4QB+a_5BQ. \end{aligned}G0​=G1​=G2​=G3​=G4​=G5​=​C+a1​tr(QB)I+a2​hB+a3​kQ+a4​BQ+a5​QB,C+a1​tr(AZ)I+a2​hZ+a3​kA+a4​ZA+a5​AZ,C+a1​tr(AB)I+a2​hZ+a3​kQ+a4​QZ+a5​ZQ,C+a1​tr(QZ)I+a2​hZ+a3​kQ+a4​ZQ+a5​QZ,C+a1​tr(QB)I+a2​hZ+a3​kA+a4​AZ+a5​ZA,C+a1​tr(QB)I+a2​hB+a3​kQ+a4​QB+a5​BQ.​

Products of matrices retain the displayed order. The definition includes d=0d=0d=0, giving six empty matrices.

QAlgorithms.Papers.Independent.Extend50.P12.tableSubsets

This defines the following function from {0,…,5}\{0,\ldots,5\}{0,…,5} to finite subsets of {0,1,2}\{0,1,2\}{0,1,2}:

0↦{0},1↦{1},2↦{2},3↦{0,1},4↦{0,2},5↦{1,2}.0\mapsto\{0\},\qquad 1\mapsto\{1\},\qquad 2\mapsto\{2\},\qquad 3\mapsto\{0,1\},\qquad 4\mapsto\{0,2\},\qquad 5\mapsto\{1,2\}.0↦{0},1↦{1},2↦{2},3↦{0,1},4↦{0,2},5↦{1,2}.

QAlgorithms.Papers.Independent.Extend50.P12.tensorMatrices

For any natural numbers d,rd,rd,r and any family X=(Xi)i∈[r]X=(X_i)_{i\in[r]}X=(Xi​)i∈[r]​ of complex d×dd\times dd×d matrices, where [k]={j∈N:j<k}[k]=\{j\in\mathbb N:j<k\}[k]={j∈N:j<k}, the defined matrix has rows and columns indexed by words x,y:[r]→[d]x,y:[r]\to[d]x,y:[r]→[d] and entries

T(X)x,y=∏i∈[r](Xi)xi,yi.T(X)_{x,y}=\prod_{i\in[r]}(X_i)_{x_i,y_i}.T(X)x,y​=i∈[r]∏​(Xi​)xi​,yi​​.

When r=0r=0r=0, there is one empty word and the empty product is 111, so this is the 1×11\times11×1 matrix [1][1][1], including when d=0d=0d=0. When d=0d=0d=0 and r>0r>0r>0, there are no indexing words and the matrix is empty.

QAlgorithms.Papers.Independent.Extend50.P12.transposeRegisterSet

For any natural numbers d,nd,nd,n, any finite subset S⊆[n]S\subseteq[n]S⊆[n], and any complex matrix PPP indexed by words [n]→[d][n]\to[d][n]→[d], where [k]={j∈N:j<k}[k]=\{j\in\mathbb N:j<k\}[k]={j∈N:j<k}, the defined matrix has entries

(PTS)x,y=Pu,v,ui={yii∈S,xii∉S,vi={xii∈S,yii∉S.(P^{T_S})_{x,y}=P_{u,v}, \qquad u_i= \begin{cases} y_i&i\in S,\\ x_i&i\notin S, \end{cases} \qquad v_i= \begin{cases} x_i&i\in S,\\ y_i&i\notin S. \end{cases}(PTS​)x,y​=Pu,v​,ui​={yi​xi​​i∈S,i∈/S,​vi​={xi​yi​​i∈S,i∈/S.​

Thus it exchanges the row and column coordinates at precisely the positions in SSS, without complex conjugation. For S=∅S=\varnothingS=∅ it leaves PPP unchanged, and for S=[n]S=[n]S=[n] it gives the ordinary transpose. When n=0n=0n=0, the matrix is 1×11\times11×1 and unchanged; when d=0d=0d=0 and n>0n>0n>0, it is empty.

QAlgorithms.Papers.Independent.Extend50.P12.tripartiteF

For every natural number ddd, arbitrary complex matrix ρ\rhoρ indexed by triples over D={0,…,d−1}D=\{0,\ldots,d-1\}D={0,…,d−1}, subset S⊆{0,1,2}S\subseteq\{0,1,2\}S⊆{0,1,2}, and arbitrary complex d×dd\times dd×d matrix AAA, this defines a complex matrix FFF indexed by pairs over DDD. For triples u,vu,vu,v, let uiS=viu^S_i=v_iuiS​=vi​ and viS=uiv^S_i=u_iviS​=ui​ when i∈Si\in Si∈S, and let uiS=uiu^S_i=u_iuiS​=ui​ and viS=viv^S_i=v_iviS​=vi​ otherwise. Its entries are

Fx,y=∑p,q∈Dρ uS,vS Aq,p,u=(p,x0,x1),v=(q,y0,y1).F_{x,y} =\sum_{p,q\in D} \rho_{\,u^S,v^S}\,A_{q,p}, \qquad u=(p,x_0,x_1),\quad v=(q,y_0,y_1).Fx,y​=p,q∈D∑​ρuS,vS​Aq,p​,u=(p,x0​,x1​),v=(q,y0​,y1​).

Thus the coordinates selected by SSS are exchanged between the row and column arguments of ρ\rhoρ before the sum is taken. The definition permits every subset SSS, including the empty and full subsets, and includes d=0d=0d=0, when the output matrix has empty index sets.

QAlgorithms.Papers.Independent.Extend50.P12.tripartiteG

For every natural number ddd, arbitrary complex matrix ρ\rhoρ indexed by triples over D={0,…,d−1}D=\{0,\ldots,d-1\}D={0,…,d−1}, subset S⊆{0,1,2}S\subseteq\{0,1,2\}S⊆{0,1,2}, and arbitrary complex d×dd\times dd×d matrices A,BA,BA,B, this defines the complex d×dd\times dd×d matrix GGG with entries

Gi,j=∑p0,p1,q0,q1∈Dρ uS,vS Aq0,p0Bq1,p1,u=(p0,p1,i),v=(q0,q1,j),G_{i,j} =\sum_{p_0,p_1,q_0,q_1\in D} \rho_{\,u^S,v^S}\,A_{q_0,p_0}B_{q_1,p_1}, \qquad u=(p_0,p_1,i),\quad v=(q_0,q_1,j),Gi,j​=p0​,p1​,q0​,q1​∈D∑​ρuS,vS​Aq0​,p0​​Bq1​,p1​​,u=(p0​,p1​,i),v=(q0​,q1​,j),

where uℓS=vℓu^S_\ell=v_\elluℓS​=vℓ​ and vℓS=uℓv^S_\ell=u_\ellvℓS​=uℓ​ for ℓ∈S\ell\in Sℓ∈S, while uℓS=uℓu^S_\ell=u_\elluℓS​=uℓ​ and vℓS=vℓv^S_\ell=v_\ellvℓS​=vℓ​ for ℓ∉S\ell\notin Sℓ∈/S. Every subset SSS, including the empty and full subsets, is allowed. The definition includes d=0d=0d=0, giving an empty matrix.

QAlgorithms.Papers.Independent.Extend50.P12.walledKernel

For natural numbers d,a,kd,a,kd,a,k, a finite downward-closed Young diagram α\alphaα with aaa cells and at most ddd rows, and another such diagram μ\muμ with a+ka+ka+k cells, this defines a complex matrix on words of length L=a+2kL=a+2kL=a+2k over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1} as follows. For any length nnn, let PπP_\piPπ​ denote the permutation matrix with entries (Pπ)x,y=1{x=y∘π−1}(P_\pi)_{x,y}=\mathbf 1_{\{x=y\circ\pi^{-1}\}}(Pπ​)x,y​=1{x=y∘π−1}​. For each λ∈{α,μ}\lambda\in\{\alpha,\mu\}λ∈{α,μ}, with n=∣λ∣n=|\lambda|n=∣λ∣, use its fixed chosen numbering of cells by {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}; let RλR_\lambdaRλ​ and CλC_\lambdaCλ​ be the permutations preserving each cell’s row and column, respectively, and define

(Yλ)g,h=∑u∈Rλ∑v∈Cλsgn⁡(v)1{g=huv},Zλ=∑u∈Rλ∑v∈Cλsgn⁡(v)Puv.(Y_\lambda)_{g,h} =\sum_{u\in R_\lambda}\sum_{v\in C_\lambda} \operatorname{sgn}(v)\mathbf 1_{\{g=huv\}}, \qquad Z_\lambda=\sum_{u\in R_\lambda}\sum_{v\in C_\lambda} \operatorname{sgn}(v)P_{uv}.(Yλ​)g,h​=u∈Rλ​∑​v∈Cλ​∑​sgn(v)1{g=huv}​,Zλ​=u∈Rλ​∑​v∈Cλ​∑​sgn(v)Puv​.

Here YλY_\lambdaYλ​ acts on CSn\mathbb C^{S_n}CSn​, while ZλZ_\lambdaZλ​ acts on C{0,…,d−1}n\mathbb C^{\{0,\ldots,d-1\}^{n}}C{0,…,d−1}n. Set fλ=dim⁡Crange⁡(Yλ)f_\lambda=\dim_{\mathbb C}\operatorname{range}(Y_\lambda)fλ​=dimC​range(Yλ​), sλ=dim⁡Crange⁡(Zλ)s_\lambda=\dim_{\mathbb C}\operatorname{range}(Z_\lambda)sλ​=dimC​range(Zλ​), let Πλ\Pi_\lambdaΠλ​ be the orthogonal projection onto range⁡(Yλ)\operatorname{range}(Y_\lambda)range(Yλ​), and define

(Lπ)g,h=1{g=πh},χλ(π)=tr⁡(LπΠλ),Jλ=fλn!∑π∈Snχλ(π−1)Pπ.(L_\pi)_{g,h}=\mathbf 1_{\{g=\pi h\}}, \qquad \chi_\lambda(\pi)=\operatorname{tr}(L_\pi\Pi_\lambda), \qquad J_\lambda=\frac{f_\lambda}{n!}\sum_{\pi\in S_n}\chi_\lambda(\pi^{-1})P_\pi.(Lπ​)g,h​=1{g=πh}​,χλ​(π)=tr(Lπ​Πλ​),Jλ​=n!fλ​​π∈Sn​∑​χλ​(π−1)Pπ​.

For s≤Ls\le Ls≤L, extend a matrix BBB on sss registers to LLL registers by

(EsL(B))x,y=B(x0,…,xs−1),(y0,…,ys−1)∏i=sL−11{xi=yi}.\bigl(\mathcal E_s^L(B)\bigr)_{x,y} =B_{(x_0,\ldots,x_{s-1}),(y_0,\ldots,y_{s-1})} \prod_{i=s}^{L-1}\mathbf 1_{\{x_i=y_i\}}.(EsL​(B))x,y​=B(x0​,…,xs−1​),(y0​,…,ys−1​)​i=s∏L−1​1{xi​=yi​}​.

For 0≤j<k0\le j<k0≤j<k, put ℓj=a+j\ell_j=a+jℓj​=a+j, rj=L−1−jr_j=L-1-jrj​=L−1−j, and define

(Fj)x,y=1{xℓj=xrj}1{yℓj=yrj}∏i∉{ℓj,rj}1{xi=yi},F=F0F1⋯Fk−1,c=k!(a+kk)sμfαsαfμ.(F_j)_{x,y} =\mathbf 1_{\{x_{\ell_j}=x_{r_j}\}} \mathbf 1_{\{y_{\ell_j}=y_{r_j}\}} \prod_{i\notin\{\ell_j,r_j\}}\mathbf 1_{\{x_i=y_i\}}, \qquad F=F_0F_1\cdots F_{k-1}, \qquad c=\frac{k!\binom{a+k}{k}s_\mu f_\alpha}{s_\alpha f_\mu}.(Fj​)x,y​=1{xℓj​​=xrj​​}​1{yℓj​​=yrj​​}​i∈/{ℓj​,rj​}∏​1{xi​=yi​}​,F=F0​F1​⋯Fk−1​,c=sα​fμ​k!(ka+k​)sμ​fα​​.

The resulting matrix is precisely

c−1 Ea+kL(Jμ)[1a!∑η∈Sa+kEa+kL(Pη−1)(EaL(Jα)F)Ea+kL(Pη)].c^{-1}\, \mathcal E_{a+k}^{L}(J_\mu) \left[ \frac1{a!}\sum_{\eta\in S_{a+k}} \mathcal E_{a+k}^{L}(P_{\eta^{-1}}) \bigl(\mathcal E_a^{L}(J_\alpha)F\bigr) \mathcal E_{a+k}^{L}(P_\eta) \right].c−1Ea+kL​(Jμ​)​a!1​η∈Sa+k​∑​Ea+kL​(Pη−1​)(EaL​(Jα​)F)Ea+kL​(Pη​)​.

The order of all matrix factors is as displayed. No relation between α\alphaα and μ\muμ beyond their stated sizes and row bounds is assumed. Zero parameters and empty diagrams are included, empty products are identities, and complex inversion and division take value 000 at zero; in particular, if c=0c=0c=0, the resulting matrix is zero.

QAlgorithms.Papers.Independent.Extend50.P12.walledMap

For natural numbers d,a,k,r,md,a,k,r,md,a,k,r,m, an equality r+m=a+2kr+m=a+2kr+m=a+2k, a finite downward-closed Young diagram α\alphaα with aaa cells and at most ddd rows, a diagram μ\muμ with a+ka+ka+k cells and at most ddd rows, and arbitrary complex d×dd\times dd×d matrices X0,…,Xr−1X_0,\ldots,X_{r-1}X0​,…,Xr−1​, this defines a complex matrix MMM indexed by length-mmm words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. The matrix used in its definition is specified by the following constructions. Write L=a+2k=r+mL=a+2k=r+mL=a+2k=r+m, and for a permutation π\piπ of nnn positions define (Pπ)x,y=1{x=y∘π−1}(P_\pi)_{x,y}=\mathbf 1_{\{x=y\circ\pi^{-1}\}}(Pπ​)x,y​=1{x=y∘π−1}​ on length-nnn words. For each λ∈{α,μ}\lambda\in\{\alpha,\mu\}λ∈{α,μ}, with n=∣λ∣n=|\lambda|n=∣λ∣, use its fixed chosen cell numbering, let Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ preserve the row and column of every numbered cell, respectively, and put

(Yλ)g,h=∑u∈Rλ∑v∈Cλsgn⁡(v)1{g=huv},Zλ=∑u∈Rλ∑v∈Cλsgn⁡(v)Puv.(Y_\lambda)_{g,h} =\sum_{u\in R_\lambda}\sum_{v\in C_\lambda} \operatorname{sgn}(v)\mathbf 1_{\{g=huv\}}, \qquad Z_\lambda=\sum_{u\in R_\lambda}\sum_{v\in C_\lambda} \operatorname{sgn}(v)P_{uv}.(Yλ​)g,h​=u∈Rλ​∑​v∈Cλ​∑​sgn(v)1{g=huv}​,Zλ​=u∈Rλ​∑​v∈Cλ​∑​sgn(v)Puv​.

Let fλf_\lambdafλ​ and sλs_\lambdasλ​ be the complex dimensions of the ranges of YλY_\lambdaYλ​ on CSn\mathbb C^{S_n}CSn​ and ZλZ_\lambdaZλ​ on the length-nnn word space, respectively. With Πλ\Pi_\lambdaΠλ​ the orthogonal projection onto the former range and (Lπ)g,h=1{g=πh}(L_\pi)_{g,h}=\mathbf 1_{\{g=\pi h\}}(Lπ​)g,h​=1{g=πh}​, define

Jλ=fλn!∑π∈Sntr⁡(Lπ−1Πλ)Pπ,c=k!(a+kk)sμfαsαfμ.J_\lambda =\frac{f_\lambda}{n!} \sum_{\pi\in S_n}\operatorname{tr}(L_{\pi^{-1}}\Pi_\lambda)P_\pi, \qquad c=\frac{k!\binom{a+k}{k}s_\mu f_\alpha}{s_\alpha f_\mu}.Jλ​=n!fλ​​π∈Sn​∑​tr(Lπ−1​Πλ​)Pπ​,c=sα​fμ​k!(ka+k​)sμ​fα​​.

For s≤Ls\le Ls≤L, define extension to the leading sss registers by

(EsL(B))x,y=B(x0,…,xs−1),(y0,…,ys−1)∏i=sL−11{xi=yi}.\bigl(\mathcal E_s^L(B)\bigr)_{x,y} =B_{(x_0,\ldots,x_{s-1}),(y_0,\ldots,y_{s-1})} \prod_{i=s}^{L-1}\mathbf 1_{\{x_i=y_i\}}.(EsL​(B))x,y​=B(x0​,…,xs−1​),(y0​,…,ys−1​)​i=s∏L−1​1{xi​=yi​}​.

For 0≤j<k0\le j<k0≤j<k, set ℓj=a+j\ell_j=a+jℓj​=a+j, tj=L−1−jt_j=L-1-jtj​=L−1−j, and let

(Fj)x,y=1{xℓj=xtj}1{yℓj=ytj}∏i∉{ℓj,tj}1{xi=yi},F=F0⋯Fk−1.(F_j)_{x,y} =\mathbf 1_{\{x_{\ell_j}=x_{t_j}\}} \mathbf 1_{\{y_{\ell_j}=y_{t_j}\}} \prod_{i\notin\{\ell_j,t_j\}}\mathbf 1_{\{x_i=y_i\}}, \qquad F=F_0\cdots F_{k-1}.(Fj​)x,y​=1{xℓj​​=xtj​​}​1{yℓj​​=ytj​​}​i∈/{ℓj​,tj​}∏​1{xi​=yi​}​,F=F0​⋯Fk−1​.

Form the matrix

K=c−1Ea+kL(Jμ)[1a!∑η∈Sa+kEa+kL(Pη−1)(EaL(Jα)F)Ea+kL(Pη)].K=c^{-1}\mathcal E_{a+k}^{L}(J_\mu) \left[ \frac1{a!}\sum_{\eta\in S_{a+k}} \mathcal E_{a+k}^{L}(P_{\eta^{-1}}) \bigl(\mathcal E_a^{L}(J_\alpha)F\bigr) \mathcal E_{a+k}^{L}(P_\eta) \right].K=c−1Ea+kL​(Jμ​)​a!1​η∈Sa+k​∑​Ea+kL​(Pη−1​)(EaL​(Jα​)F)Ea+kL​(Pη​)​.

Then, writing u∥yu\mathbin{\|}yu∥y for concatenation of an input word uuu and an output word yyy, the defined output is

My,z=∑u,v∈{0,…,d−1}rKu∥y,  v∥z∏i=0r−1(Xi)vi,ui.M_{y,z} =\sum_{u,v\in\{0,\ldots,d-1\}^{r}} K_{u\mathbin{\|}y,\;v\mathbin{\|}z} \prod_{i=0}^{r-1}(X_i)_{v_i,u_i}.My,z​=u,v∈{0,…,d−1}r∑​Ku∥y,v∥z​i=0∏r−1​(Xi​)vi​,ui​​.

Thus the input entries occur with indices vi,uiv_i,u_ivi​,ui​, without complex conjugation. No positivity or normalization condition is imposed on the XiX_iXi​. Zero values of the natural parameters are permitted subject to the equality and the existence of the diagrams; empty products are 111, empty sums are 000, and complex inversion and division are 000 at zero.

QAlgorithms.Papers.Independent.Extend50.P12.walledNormalization

For natural numbers d,a,kd,a,kd,a,k, let α\alphaα be a finite downward-closed Young diagram with aaa cells and at most ddd rows, and let μ\muμ be such a diagram with a+ka+ka+k cells and at most ddd rows. For either diagram λ\lambdaλ, write n=∣λ∣n=|\lambda|n=∣λ∣, use its fixed chosen bijection from its cells to {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1}, and let Rλ,Cλ⊆SnR_\lambda,C_\lambda\subseteq S_nRλ​,Cλ​⊆Sn​ consist respectively of permutations preserving the row and the column of every numbered cell. Define a matrix YλY_\lambdaYλ​ on SnS_nSn​ and a matrix ZλZ_\lambdaZλ​ on Wd,n={0,…,d−1}nW_{d,n}=\{0,\ldots,d-1\}^{n}Wd,n​={0,…,d−1}n by

(Yλ)g,h=∑u∈Rλ∑v∈Cλsgn⁡(v) 1{g=huv},Zλ=∑u∈Rλ∑v∈Cλsgn⁡(v)Puv,(Pπ)x,y=1{x=y∘π−1}.(Y_\lambda)_{g,h} =\sum_{u\in R_\lambda}\sum_{v\in C_\lambda} \operatorname{sgn}(v)\,\mathbf 1_{\{g=huv\}}, \qquad Z_\lambda=\sum_{u\in R_\lambda}\sum_{v\in C_\lambda} \operatorname{sgn}(v)P_{uv}, \quad (P_\pi)_{x,y}=\mathbf 1_{\{x=y\circ\pi^{-1}\}}.(Yλ​)g,h​=u∈Rλ​∑​v∈Cλ​∑​sgn(v)1{g=huv}​,Zλ​=u∈Rλ​∑​v∈Cλ​∑​sgn(v)Puv​,(Pπ​)x,y​=1{x=y∘π−1}​.

Let fλf_\lambdafλ​ be the complex dimension of the range of YλY_\lambdaYλ​ acting on CSn\mathbb C^{S_n}CSn​, and let sλs_\lambdasλ​ be the complex dimension of the range of ZλZ_\lambdaZλ​ acting on CWd,n\mathbb C^{W_{d,n}}CWd,n​. This definition assigns the complex number

k!(a+kk) sμfαsαfμ.\frac{k!\binom{a+k}{k}\,s_\mu f_\alpha}{s_\alpha f_\mu}.sα​fμ​k!(ka+k​)sμ​fα​​.

All integer factors and dimensions are embedded into C\mathbb CC. No nonzero-denominator hypothesis is imposed; division by zero has value 000. Empty diagrams and a=0a=0a=0 or k=0k=0k=0 are included, with 0!=10!=10!=1; if d=0d=0d=0, the permitted diagrams must be empty.

QAlgorithms.Papers.Independent.Extend50.P12.wernerBasis

For every natural number ddd, consider complex matrices indexed by length-three words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. For permutations of the zero-based register positions, define (Pπ)x,y=1{x=y∘π−1}(P_\pi)_{x,y}=\mathbf 1_{\{x=y\circ\pi^{-1}\}}(Pπ​)x,y​=1{x=y∘π−1}​, let sijs_{ij}sij​ exchange positions i,ji,ji,j, and set

(V0,V1,V2,V3,V4,V5)=(I,Ps01,Ps12,Ps02,Ps01s12,Ps12s01),(V_0,V_1,V_2,V_3,V_4,V_5) = \bigl(I,P_{s_{01}},P_{s_{12}},P_{s_{02}}, P_{s_{01}s_{12}},P_{s_{12}s_{01}}\bigr),(V0​,V1​,V2​,V3​,V4​,V5​)=(I,Ps01​​,Ps12​​,Ps02​​,Ps01​s12​​,Ps12​s01​​),

where products of permutations are compositions with the rightmost acting first. This definition assigns the following ordered family:

B0=16(V0+V1+V2+V3+V4+V5),B1=16(V0−V1−V2−V3+V4+V5),B2=13(2V0−V4−V5),B3=13(2V2−V3−V1),B4=13(V1−V3),B5=i3(V4−V5).\begin{aligned} B_0&=\tfrac16(V_0+V_1+V_2+V_3+V_4+V_5),\\ B_1&=\tfrac16(V_0-V_1-V_2-V_3+V_4+V_5),\\ B_2&=\tfrac13(2V_0-V_4-V_5),\\ B_3&=\tfrac13(2V_2-V_3-V_1),\\ B_4&=\tfrac1{\sqrt3}(V_1-V_3),\\ B_5&=\tfrac{\mathrm i}{\sqrt3}(V_4-V_5). \end{aligned}B0​B1​B2​B3​B4​B5​​=61​(V0​+V1​+V2​+V3​+V4​+V5​),=61​(V0​−V1​−V2​−V3​+V4​+V5​),=31​(2V0​−V4​−V5​),=31​(2V2​−V3​−V1​),=3​1​(V1​−V3​),=3​i​(V4​−V5​).​

All coefficients act by complex scalar multiplication. Zero ddd is allowed, giving matrices with empty index sets; d=1d=1d=1 gives B0=IB_0=IB0​=I and B1=⋯=B5=0B_1=\cdots=B_5=0B1​=⋯=B5​=0.

QAlgorithms.Papers.Independent.Extend50.P12.wernerFromCoefficients

For every natural number ddd and arbitrary real numbers c0,…,c5c_0,\ldots,c_5c0​,…,c5​, this defines a complex matrix on length-three words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. Define (Pπ)x,y=1{x=y∘π−1}(P_\pi)_{x,y}=\mathbf 1_{\{x=y\circ\pi^{-1}\}}(Pπ​)x,y​=1{x=y∘π−1}​, let sijs_{ij}sij​ exchange zero-based register positions i,ji,ji,j, and put

(V0,V1,V2,V3,V4,V5)=(I,Ps01,Ps12,Ps02,Ps01s12,Ps12s01),(V_0,V_1,V_2,V_3,V_4,V_5) = \bigl(I,P_{s_{01}},P_{s_{12}},P_{s_{02}}, P_{s_{01}s_{12}},P_{s_{12}s_{01}}\bigr),(V0​,V1​,V2​,V3​,V4​,V5​)=(I,Ps01​​,Ps12​​,Ps02​​,Ps01​s12​​,Ps12​s01​​),

with the rightmost permutation acting first in each composition. The assigned matrix is

c06(V0+V1+V2+V3+V4+V5)+c16(V0−V1−V2−V3+V4+V5)+c23(2V0−V4−V5)+c33(2V2−V3−V1)+c43(V1−V3)+ic53(V4−V5).\begin{aligned} &\frac{c_0}{6}(V_0+V_1+V_2+V_3+V_4+V_5) +\frac{c_1}{6}(V_0-V_1-V_2-V_3+V_4+V_5)\\ &\quad+\frac{c_2}{3}(2V_0-V_4-V_5) +\frac{c_3}{3}(2V_2-V_3-V_1) +\frac{c_4}{\sqrt3}(V_1-V_3) +\frac{\mathrm i c_5}{\sqrt3}(V_4-V_5). \end{aligned}​6c0​​(V0​+V1​+V2​+V3​+V4​+V5​)+6c1​​(V0​−V1​−V2​−V3​+V4​+V5​)+3c2​​(2V0​−V4​−V5​)+3c3​​(2V2​−V3​−V1​)+3​c4​​(V1​−V3​)+3​ic5​​(V4​−V5​).​

Real coefficients are embedded into C\mathbb CC, with no sign, size, or normalization restrictions. The case d=0d=0d=0 is included and gives a matrix with empty index set.

QAlgorithms.Papers.Independent.Extend50.P12.wernerPermutations

For every natural number ddd, this defines an ordered six-element family of complex matrices on length-three words over {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. For a permutation π\piπ of the three register positions, let

(Pπ)x,y=1{x=y∘π−1},(P_\pi)_{x,y}=\mathbf 1_{\{x=y\circ\pi^{-1}\}},(Pπ​)x,y​=1{x=y∘π−1}​,

and let sijs_{ij}sij​ exchange positions i,ji,ji,j, numbered from 000. The family, indexed from 000 through 555, is

(V0,V1,V2,V3,V4,V5)=(I, Ps01, Ps12, Ps02,Ps01s12, Ps12s01).(V_0,V_1,V_2,V_3,V_4,V_5) = \bigl(I,\ P_{s_{01}},\ P_{s_{12}},\ P_{s_{02}}, P_{s_{01}s_{12}},\ P_{s_{12}s_{01}}\bigr).(V0​,V1​,V2​,V3​,V4​,V5​)=(I, Ps01​​, Ps12​​, Ps02​​,Ps01​s12​​, Ps12​s01​​).

Permutation multiplication is composition, so the rightmost permutation acts first. The definition includes d=0d=0d=0, when the matrix index set is empty, and d=1d=1d=1, when all six matrices are the same one-by-one identity matrix.

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