Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Unconditional privacy over channels which cannot convey quantum information

Definition
QAlgorithms_Papers_Independent_Advance50_P30

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

prove2quantum

The objects the formalized statements of Unconditional privacy over channels which cannot convey quantum information (arXiv:quant-ph/0702077) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • DensityState: PDF p.11: the space of normalized, positive single-site mixed states.
  • joinCopies: PDF p.13: regroup the first k coordinates and the discarded suffix.
  • reduceCopies: PDF pp.11,13: partial trace, retaining the first k sites.
  • InvariantCopyState: PDF p.11: operator invariance; no pure symmetric-support restriction.
  • defectTensor: PDF p.12, Eq.(10): a spanning tensor with arbitrary amplitudes on S and copies of theta elsewhere. Allowing |S| ≤ r gives the same span as exactly r when r ≤ n: extra defect slots can be filled with theta.
  • AlmostPure: PDF p.12, Definition 1: unit vectors in Sym intersect span(V), with the source's domain r ≤ n. The span is a complex linear span, not V itself.
  • AlmostMixed: PDF pp.12--13: convex mixtures of normalized almost-power projectors.
  • discardReferences: PDF p.15: trace out every reference factor of paired sites.
  • AlmostAlong: PDF pp.15--16: mixed almost-power along sigma is the reduction of a mixture along a unit purification of sigma. Mixtures are allowed because conditioning the purification measure on its single-site reduction can mix purifications. Equal purifications differ by a reference unitary; this leaves the reduced convex class unchanged. No concentration inequality is a field.
  • empiricalFrequency: PDF pp.12,19: normalized empirical distribution on the stated alphabet. The n=0 totalized value is zero; concentration statements require n>0.
  • l1: PDF pp.12,17: full classical L1 norm, with no factor one half.
  • tensorEffect: PDF p.12: exact product POVM effect on a specified outcome string.
  • iidEvent: PDF pp.12,14: the actual joint Born probability of an event under E^tensor n.
  • chernoffError: PDF pp.12,14,19, Eq.(22): generalized Chernoff error function in bits.
  • deFinettiError: PDF pp.11,22: exponential finite de Finetti error on mixed states; the squared single-site dimension is inside the exponent.
  • Spectral: PDF pp.17--20: the genuine finite spectral measurement of an observable. Nonzero orthogonal projections and distinct real eigenvalues give its spectral alphabet; its cardinality is at most dim H.
  • Spectral.operator: PDF p.17: reconstruct the Hermitian operator from its spectral measurement.
  • HSDecomposition: PDF pp.17--18, Eq.(18): arbitrary real signed coefficients in a Hermitian Hilbert--Schmidt orthonormal decomposition. There is no positivity constraint on the coefficients and no operator-norm equality assumption.
  • HSDecomposition.operator: PDF pp.17--18: the observable is computed from its decomposition.
  • Outcomes: PDF pp.19--21: all outcomes of the disjoint indirect and direct blocks.
  • tensorBlockEffect: PDF pp.19--22: tensor effect of precisely L_1^mp tensor ... tensor L_t^mp tensor M^q. The flattening puts all indirect blocks first.
  • estimationEvent: PDF pp.21--22: P' and P'' are evaluated from the input state, never chosen as couplings. Events involving one block automatically use its marginal.
  • indirectMean: PDF p.20, Eq.(25): sum of coefficient-weighted, normalized block means.
  • directMean: PDF pp.20,22: the direct mean, normalized by the actual direct-block size.
  • samplingError: PDF p.22, Eq.(36): the classical sampling allowance in full L1 convention.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_Ensemble
import Definitions.Def_QAlgorithms_Defs_Measurement
import Definitions.Def_QAlgorithms_Defs_MatrixDistances
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P20
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P21
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P69

/-!
Horodecki et al., arXiv:quant-ph/0702077v1. Page numbers are PDF pages.
Accepted register/vector/permutation definitions are imported. Paper-local
constructions implement the appendix's finite experiments.
All trace norms are full Schatten 1-norms. Entropy and logb 2 are in bits;
Real.exp and Real.log in de Finetti and sampling terms are natural.
Operational security claims and ambiguous printed specializations are deferred
in the unit's HARD.md; no passive-capacity surrogate is asserted here.
-/

noncomputable section

namespace QAlgorithms.Papers.Independent.Advance50.P30

open QAlgorithms MeasureTheory
open QAlgorithms.Papers.Independent.Gap48.P20 (Copies)
open QAlgorithms.Papers.Independent.Information100.P21 (Op Vec)
open QAlgorithms.Papers.Independent.Information100.P69 (permute)
open scoped Matrix ComplexConjugate ComplexOrder Matrix.Norms.Elementwise

attribute [local instance] Classical.decEq Classical.propDecidable

/-- PDF pp.11,21: the finite-coordinate extended norm is continuous for the
matrix product topology, as on the underlying finite function space. -/
local instance matrixContinuousENorm (I : Type) [Fintype I] : ContinuousENorm (Op I) :=
  inferInstanceAs (ContinuousENorm (I → I → ℂ))

/-- PDF pp.11,15: ordinary Borel measurable finite matrix coordinates. -/
local instance matrixMeasurable (I : Type) : MeasurableSpace (Op I) := borel _

/-- The measurable structure used by the integrals is the matrix Borel structure. -/
local instance matrixBorel (I : Type) : BorelSpace (Op I) := ⟨rfl⟩

/-- PDF p.14, Theorem 2: the unit-vector parameter space has its Borel structure. -/
local instance vectorMeasurable (I : Type) : MeasurableSpace (Vec I) := borel _

/-- PDF p.14: the Borel structure on pure-state directions, before taking the unit subtype. -/
local instance vectorBorel (I : Type) : BorelSpace (Vec I) := ⟨rfl⟩

/-- PDF p.11: the space of normalized, positive single-site mixed states. -/
abbrev DensityState (I : Type) [Fintype I] := {rho : Op I // IsDensityMatrix rho}

/-- PDF p.13: regroup the first k coordinates and the discarded suffix. -/
def joinCopies {I : Type} {n k : ℕ} (_h : k ≤ n)
    (x : Copies I k) (z : Copies I (n - k)) : Copies I n :=
  fun i => if hi : i.val < k then x ⟨i.val, hi⟩ else z ⟨i.val - k, by omega⟩

/-- PDF pp.11,13: partial trace, retaining the first k sites. -/
def reduceCopies {I : Type} [Fintype I] {n : ℕ} (rho : Op (Copies I n))
    (k : ℕ) (h : k ≤ n) : Op (Copies I k) :=
  fun x y => ∑ z : Copies I (n - k), rho (joinCopies h x z) (joinCopies h y z)

/-- PDF p.11: operator invariance; no pure symmetric-support restriction. -/
def InvariantCopyState {I : Type} {n : ℕ} (rho : Op (Copies I n)) : Prop :=
  ∀ pi : Equiv.Perm (Fin n), permute pi rho = rho

/-- PDF p.12, Eq.(10): a spanning tensor with arbitrary amplitudes on S and
copies of theta elsewhere. Allowing |S| ≤ r gives the same span as exactly r
when r ≤ n: extra defect slots can be filled with theta. -/
def defectTensor {I : Type} {n : ℕ} (theta : Vec I) (S : Finset (Fin n))
    (chi : (S → I) → ℂ) : Vec (Copies I n) :=
  WithLp.toLp 2 fun x => (∏ i ∈ Finset.univ \ S, theta (x i)) * chi (fun i => x i)

/-- PDF p.12, Definition 1: unit vectors in Sym intersect span(V), with the
source's domain r ≤ n. The span is a complex linear span, not V itself. -/
def AlmostPure {I : Type} [Fintype I] (theta : Vec I) (n r : ℕ)
    (psi : Vec (Copies I n)) : Prop :=
  r ≤ n ∧ IsState theta ∧ IsState psi ∧
    (∀ (pi : Equiv.Perm (Fin n)) (x : Copies I n), psi (x ∘ pi) = psi x) ∧
    psi ∈ Submodule.span ℂ {v | ∃ (S : Finset (Fin n)) (chi : (S → I) → ℂ),
      S.card ≤ r ∧ v = defectTensor theta S chi}

/-- PDF pp.12--13: convex mixtures of normalized almost-power projectors. -/
def AlmostMixed {I : Type} [Fintype I] (theta : Vec I) (n r : ℕ)
    (rho : Op (Copies I n)) : Prop :=
  IsDensityMatrix rho ∧ rho ∈ convexHull ℝ
    {A | ∃ psi : Vec (Copies I n), AlmostPure theta n r psi ∧ A = pureDensity psi}

/-- PDF p.15: trace out every reference factor of paired sites. -/
def discardReferences {I : Type} [Fintype I] {n : ℕ}
    (rho : Op (Copies (I × I) n)) : Op (Copies I n) :=
  fun x y => ∑ z : Copies I n,
    rho (fun i => (x i, z i)) (fun i => (y i, z i))

/-- PDF pp.15--16: mixed almost-power along sigma is the reduction of a
mixture along a unit purification of sigma. Mixtures are allowed because
conditioning the purification measure on its single-site reduction can mix
purifications. Equal purifications differ by a reference unitary; this leaves
the reduced convex class unchanged. No concentration inequality is a field. -/
def AlmostAlong {I : Type} [Fintype I] (sigma : DensityState I) (n r : ℕ)
    (rho : Op (Copies I n)) : Prop :=
  IsDensityMatrix rho ∧ ∃ theta : Vec (I × I), IsState theta ∧
    traceRight (pureDensity theta) = sigma.val ∧
    ∃ omega : Op (Copies (I × I) n), AlmostMixed theta n r omega ∧
      discardReferences omega = rho

/-- PDF pp.12,19: normalized empirical distribution on the stated alphabet.
The n=0 totalized value is zero; concentration statements require n>0. -/
def empiricalFrequency {W : Type} [Fintype W] {n : ℕ} (out : Fin n → W) (w : W) : ℝ :=
  ((Finset.univ.filter fun i => out i = w).card : ℝ) / (n : ℝ)

/-- PDF pp.12,17: full classical L1 norm, with no factor one half. -/
def l1 {W : Type} [Fintype W] (p q : W → ℝ) : ℝ :=
  ∑ w, |p w - q w|

/-- PDF p.12: exact product POVM effect on a specified outcome string. -/
def tensorEffect {I W : Type} {n : ℕ} (E : W → Op I)
    (out : Fin n → W) : Op (Copies I n) :=
  fun x y => ∏ i, E (out i) (x i) (y i)

/-- PDF pp.12,14: the actual joint Born probability of an event under E^tensor n. -/
def iidEvent {I W : Type} [Fintype I] [Fintype W] {n : ℕ}
    (rho : Op (Copies I n)) (E : W → Op I) (event : (Fin n → W) → Prop) : ℝ :=
  ∑ out, if event out then effectProb (tensorEffect E out) rho else 0

/-- PDF pp.12,14,19, Eq.(22): generalized Chernoff error function in bits. -/
def chernoffError (delta : ℝ) (n r w : ℕ) : ℝ :=
  (2 : ℝ) ^ (-(n : ℝ) * (delta ^ 2 / 4 - binEntropy2 ((r : ℝ) / n)) +
    (w : ℝ) * Real.logb 2 ((n : ℝ) / 2 + 1))

/-- PDF pp.11,22: exponential finite de Finetti error on mixed states;
the squared single-site dimension is inside the exponent. -/
def deFinettiError (n k r d : ℕ) : ℝ :=
  2 * Real.exp (-((k : ℝ) * ((r : ℝ) + 1)) / (2 * ((n : ℝ) + k)) +
    (d : ℝ) ^ 2 / 2 * Real.log k)

/-- PDF pp.17--20: the genuine finite spectral measurement of an observable.
Nonzero orthogonal projections and distinct real eigenvalues give its spectral
alphabet; its cardinality is at most dim H. -/
structure Spectral (I : Type) [Fintype I] [DecidableEq I] where
  count : ℕ
  count_pos : 0 < count
  count_le : count ≤ Fintype.card I
  effect : Fin count → Op I
  value : Fin count → ℝ
  povm : IsPOVM effect
  idempotent : ∀ j, effect j * effect j = effect j
  orthogonal : ∀ j k, j ≠ k → effect j * effect k = 0
  nonzero : ∀ j, effect j ≠ 0
  distinct : Function.Injective value

/-- PDF p.17: reconstruct the Hermitian operator from its spectral measurement. -/
def Spectral.operator {I : Type} [Fintype I] [DecidableEq I] (S : Spectral I) : Op I :=
  ∑ j, (S.value j : ℂ) • S.effect j

/-- PDF pp.17--18, Eq.(18): arbitrary real signed coefficients in a Hermitian
Hilbert--Schmidt orthonormal decomposition. There is no positivity constraint
on the coefficients and no operator-norm equality assumption. -/
structure HSDecomposition (I : Type) [Fintype I] [DecidableEq I] (t : ℕ) where
  intermediate : Fin t → Spectral I
  coeff : Fin t → ℝ
  orthonormal : ∀ i j,
    ((intermediate i).operator * (intermediate j).operatorᴴ).trace =
      if i = j then 1 else 0

/-- PDF pp.17--18: the observable is computed from its decomposition. -/
def HSDecomposition.operator {I : Type} [Fintype I] [DecidableEq I] {t : ℕ}
    (D : HSDecomposition I t) : Op I :=
  ∑ i, (D.coeff i : ℂ) • (D.intermediate i).operator

/-- PDF pp.19--21: all outcomes of the disjoint indirect and direct blocks. -/
abbrev Outcomes {I : Type} [Fintype I] [DecidableEq I] {t : ℕ}
    (D : HSDecomposition I t) (S : Spectral I) (mp q : ℕ) :=
  ((i : Fin t) → Fin mp → Fin (D.intermediate i).count) × (Fin q → Fin S.count)

/-- PDF pp.19--22: tensor effect of precisely L_1^mp tensor ... tensor
L_t^mp tensor M^q. The flattening puts all indirect blocks first. -/
def tensorBlockEffect {I : Type} [Fintype I] [DecidableEq I] {t : ℕ}
    (D : HSDecomposition I t) (S : Spectral I) (mp q : ℕ)
    (out : Outcomes D S mp q) : Op (Copies I (t * mp + q)) :=
  fun x y =>
    (∏ i : Fin t, ∏ j : Fin mp,
      (D.intermediate i).effect (out.1 i j)
        (x (Fin.castAdd q (finProdFinEquiv (i, j))))
        (y (Fin.castAdd q (finProdFinEquiv (i, j))))) *
    ∏ j : Fin q, S.effect (out.2 j)
      (x (Fin.natAdd (t * mp) j)) (y (Fin.natAdd (t * mp) j))

/-- PDF pp.21--22: P' and P'' are evaluated from the input state, never chosen
as couplings. Events involving one block automatically use its marginal. -/
def estimationEvent {I : Type} [Fintype I] [DecidableEq I] {t : ℕ}
    (D : HSDecomposition I t) (S : Spectral I) (mp q : ℕ)
    (rho : Op (Copies I (t * mp + q))) (event : Outcomes D S mp q → Prop) : ℝ :=
  ∑ out, if event out then effectProb (tensorBlockEffect D S mp q out) rho else 0

/-- PDF p.20, Eq.(25): sum of coefficient-weighted, normalized block means. -/
def indirectMean {I : Type} [Fintype I] [DecidableEq I] {t : ℕ}
    (D : HSDecomposition I t) {S : Spectral I} {mp q : ℕ}
    (out : Outcomes D S mp q) : ℝ :=
  ∑ i, D.coeff i * ((∑ j, (D.intermediate i).value (out.1 i j)) / (mp : ℝ))

/-- PDF pp.20,22: the direct mean, normalized by the actual direct-block size. -/
def directMean {I : Type} [Fintype I] [DecidableEq I] {t : ℕ}
    {D : HSDecomposition I t} (S : Spectral I) {mp q : ℕ}
    (out : Outcomes D S mp q) : ℝ :=
  (∑ j, S.value (out.2 j)) / (q : ℝ)

/-- PDF p.22, Eq.(36): the classical sampling allowance in full L1 convention. -/
def samplingError (delta : ℝ) (m d : ℕ) (hs : ℝ) : ℝ :=
  (d : ℝ) * Real.exp (-((m : ℝ) * delta ^ 2) / (8 * (d : ℝ) * hs ^ 2))

/-- Sanity: PDF p.12, empty tensor product is the scalar identity. -/
example {I W : Type} (E : W → Op I) (out : Fin 0 → W)
    (x y : Copies I 0) : tensorEffect E out x y = 1 := by
  simp [tensorEffect]

/-- Sanity: PDF p.19, a single outcome has frequency one, including normalization. -/
example {W : Type} [Fintype W] (w : W) :
    empiricalFrequency (fun _ : Fin 1 => w) w = 1 := by
  simp [empiricalFrequency]

/-- Sanity: PDF p.17, this is full L1, not half of it. -/
example : l1 (![1, 0] : Fin 2 → ℝ) ![0, 1] = 2 := by
  norm_num [l1, Fin.sum_univ_two]

/-- Sanity: PDF p.19, zero defect and n=2,w=2,delta=0 give 4. -/
example : chernoffError 0 2 0 2 = 4 := by
  norm_num [chernoffError, binEntropy2,
    Real.logb_self_eq_one (by norm_num : (1 : ℝ) < 2)]

end QAlgorithms.Papers.Independent.Advance50.P30
Source
Unconditional privacy over channels which cannot convey quantum information, arXiv:quant-ph/0702077v1, https://arxiv.org/abs/quant-ph/0702077v1
Read-back

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

QAlgorithms.Papers.Independent.Advance50.P30.AlmostAlong

For any finite type III, positive semidefinite matrix σ\sigmaσ on III with trace 111, natural numbers n,rn,rn,r, and complex matrix ρ\rhoρ indexed by functions from the nnn positions to III, this predicate requires that ρ\rhoρ be positive semidefinite with trace 111, and that there exist a vector θ∈CI×I\theta\in\mathbb C^{I\times I}θ∈CI×I of norm 111 and a matrix ω\omegaω on (I×I){0,…,n−1}(I\times I)^{\{0,\ldots,n-1\}}(I×I){0,…,n−1} such that

∑b∈Iθ(a,b)θ(a′,b)‾=σ(a,a′),ρ(x,y)=∑z:{0,…,n−1}→Iω(i↦(x(i),z(i)),  i↦(y(i),z(i))).\sum_{b\in I}\theta(a,b)\overline{\theta(a',b)}=\sigma(a,a'), \qquad \rho(x,y)=\sum_{z:\{0,\ldots,n-1\}\to I} \omega\bigl(i\mapsto(x(i),z(i)),\;i\mapsto(y(i),z(i))\bigr).b∈I∑​θ(a,b)θ(a′,b)​=σ(a,a′),ρ(x,y)=z:{0,…,n−1}→I∑​ω(i↦(x(i),z(i)),i↦(y(i),z(i))).

The matrix ω\omegaω must be positive semidefinite with trace 111 and a finite real convex combination of matrices ψψ†\psi\psi^\daggerψψ†, with nonnegative weights summing to 111, where every ψ\psiψ has norm 111, is invariant under all permutations of the nnn positions, and belongs to the complex linear span of vectors u↦(∏i∉Sθ(u(i)))χ(u∣S)u\mapsto(\prod_{i\notin S}\theta(u(i)))\chi(u|_S)u↦(∏i∈/S​θ(u(i)))χ(u∣S​), for subsets SSS of at most rrr positions and arbitrary χ:(S→I×I)→C\chi:(S\to I\times I)\to\mathbb Cχ:(S→I×I)→C; also r≤nr\le nr≤n is required. No closure of the convex hull is taken. If III is empty, no admissible σ\sigmaσ exists; if r>nr>nr>n, the predicate is impossible. For n=0n=0n=0, necessarily r=0r=0r=0, and ρ\rhoρ's unique entry is 111.

QAlgorithms.Papers.Independent.Advance50.P30.AlmostMixed

For any finite type III, vector θ∈CI\theta\in\mathbb C^Iθ∈CI, natural numbers n,rn,rn,r, and complex matrix ρ\rhoρ indexed by functions from the nnn positions to III, this predicate requires that ρ\rhoρ be positive semidefinite with trace 111, and that it be a finite real convex combination of matrices ψψ†\psi\psi^\daggerψψ†, whose entries are ψ(x)ψ(y)‾\psi(x)\overline{\psi(y)}ψ(x)ψ(y)​. Each vector ψ\psiψ used in that combination must satisfy r≤nr\le nr≤n, ∥θ∥=∥ψ∥=1\|\theta\|=\|\psi\|=1∥θ∥=∥ψ∥=1, and ψ(x∘π)=ψ(x)\psi(x\circ\pi)=\psi(x)ψ(x∘π)=ψ(x) for every permutation of the positions, and must belong to the complex linear span of the vectors x↦(∏i∉Sθ(x(i)))χ(x∣S)x\mapsto(\prod_{i\notin S}\theta(x(i)))\chi(x|_S)x↦(∏i∈/S​θ(x(i)))χ(x∣S​), for all subsets SSS of at most rrr positions and arbitrary χ:(S→I)→C\chi:(S\to I)\to\mathbb Cχ:(S→I)→C. “Finite real convex combination” means nonnegative real weights summing to 111; no closure is taken. The predicate is impossible if r>nr>nr>n or ∥θ∥≠1\|\theta\|\ne1∥θ∥=1. When n=r=0n=r=0n=r=0, it requires ∥θ∥=1\|\theta\|=1∥θ∥=1 and ρ\rhoρ's unique entry to equal 111.

QAlgorithms.Papers.Independent.Advance50.P30.AlmostPure

For any finite type III, vector θ∈CI\theta\in\mathbb C^Iθ∈CI, natural numbers n,rn,rn,r, and vector ψ∈CI{0,…,n−1}\psi\in\mathbb C^{I^{\{0,\ldots,n-1\}}}ψ∈CI{0,…,n−1}, this predicate requires r≤nr\le nr≤n, ∥θ∥=∥ψ∥=1\|\theta\|=\|\psi\|=1∥θ∥=∥ψ∥=1, invariance ψ(x∘π)=ψ(x)\psi(x\circ\pi)=\psi(x)ψ(x∘π)=ψ(x) for every permutation π\piπ of the nnn positions and every indexing function xxx, and membership of ψ\psiψ in the complex linear span of all vectors

vS,χ(x)=(∏i∉Sθ(x(i)))χ(x∣S),S⊆{0,…,n−1},∣S∣≤r,v_{S,\chi}(x)= \left(\prod_{i\notin S}\theta(x(i))\right)\chi(x|_S), \qquad S\subseteq\{0,\ldots,n-1\},\quad |S|\le r,vS,χ​(x)=​i∈/S∏​θ(x(i))​χ(x∣S​),S⊆{0,…,n−1},∣S∣≤r,

where χ:(S→I)→C\chi:(S\to I)\to\mathbb Cχ:(S→I)→C is arbitrary. The generators themselves need not be symmetric or normalized. For r=0r=0r=0, this span is generated by x↦∏iθ(x(i))x\mapsto\prod_i\theta(x(i))x↦∏i​θ(x(i)); for n=0n=0n=0, necessarily r=0r=0r=0, and ψ\psiψ's unique coordinate has modulus 111, while θ\thetaθ must still have norm 111. If III is empty, the requirement on θ\thetaθ is impossible.

QAlgorithms.Papers.Independent.Advance50.P30.DensityState

For any finite type III, a density state on III is a complex matrix ρ\rhoρ indexed by I×II\times II×I, together with the conditions that ρ\rhoρ is positive semidefinite and Tr⁡ρ=1\operatorname{Tr}\rho=1Trρ=1. If III is empty, there are no such density states, since the trace of its unique matrix is zero.

QAlgorithms.Papers.Independent.Advance50.P30.HSDecomposition

For a finite type III with decidable equality and a natural number ttt, this structure consists of ttt spectral data and real coefficients aia_iai​, indexed by 0≤i<t0\le i<t0≤i<t. Each spectral datum has 0<ci≤∣I∣0<c_i\le |I|0<ci​≤∣I∣, nonzero positive semidefinite matrices Pi,jP_{i,j}Pi,j​ summing to the identity, satisfying Pi,j2=Pi,jP_{i,j}^2=P_{i,j}Pi,j2​=Pi,j​ and Pi,jPi,k=0P_{i,j}P_{i,k}=0Pi,j​Pi,k​=0 for j≠kj\ne kj=k, and pairwise distinct real values λi,j\lambda_{i,j}λi,j​. Writing Ai=∑j=0ci−1λi,jPi,jA_i=\sum_{j=0}^{c_i-1}\lambda_{i,j}P_{i,j}Ai​=∑j=0ci​−1​λi,j​Pi,j​, the additional requirement is the complex equality

tr⁡(AiAj†)={1i=j,0i≠j,0≤i,j<t.\operatorname{tr}(A_iA_j^\dagger) =\begin{cases}1&i=j,\\0&i\ne j,\end{cases} \qquad 0\le i,j<t.tr(Ai​Aj†​)={10​i=j,i=j,​0≤i,j<t.

The coefficients aia_iai​ have no further restrictions. The case t=0t=0t=0 is allowed, with all requirements vacuous; if III is empty, only t=0t=0t=0 is possible.

QAlgorithms.Papers.Independent.Advance50.P30.HSDecomposition.operator

For any finite type III with decidable equality, natural number ttt, and decomposition DDD, this defines

Dop=∑i=0t−1aiAi,Ai=∑j=0ci−1λi,jPi,j.D_{\mathrm{op}}=\sum_{i=0}^{t-1}a_iA_i, \qquad A_i=\sum_{j=0}^{c_i-1}\lambda_{i,j}P_{i,j}.Dop​=i=0∑t−1​ai​Ai​,Ai​=j=0∑ci​−1​λi,j​Pi,j​.

Here aia_iai​ are arbitrary real coefficients; for each iii, 0<ci≤∣I∣0<c_i\le |I|0<ci​≤∣I∣, the Pi,jP_{i,j}Pi,j​ are nonzero positive semidefinite idempotent matrices summing to the identity and satisfying Pi,jPi,k=0P_{i,j}P_{i,k}=0Pi,j​Pi,k​=0 for j≠kj\ne kj=k, and the real values λi,j\lambda_{i,j}λi,j​ are pairwise distinct. The decomposition also requires tr⁡(AiAh†)=1\operatorname{tr}(A_iA_h^\dagger)=1tr(Ai​Ah†​)=1 when i=hi=hi=h and 000 otherwise. Real scalars are embedded in C\mathbb CC; when t=0t=0t=0, the defined matrix is 000, including when III is empty.

QAlgorithms.Papers.Independent.Advance50.P30.InvariantCopyState

For any type III, natural number nnn, and arbitrary complex matrix ρ\rhoρ indexed by functions {0,…,n−1}→I\{0,\ldots,n-1\}\to I{0,…,n−1}→I, this predicate means that for every permutation π\piπ of {0,…,n−1}\{0,\ldots,n-1\}{0,…,n−1} and all indexing functions x,yx,yx,y,

ρ(x∘π,  y∘π)=ρ(x,y).\rho(x\circ\pi,\;y\circ\pi)=\rho(x,y).ρ(x∘π,y∘π)=ρ(x,y).

There is no positivity, trace, or normalization requirement. For n=0n=0n=0 or n=1n=1n=1, every such matrix satisfies the predicate.

QAlgorithms.Papers.Independent.Advance50.P30.Outcomes

For any finite type III with decidable equality, natural numbers t,mp,qt,m_p,qt,mp​,q, decomposition DDD, and spectral datum SSS, this abbreviates the set of pairs of outcome arrays

(o,v),oi,j∈{0,…,ci−1}(0≤i<t, 0≤j<mp),vj∈{0,…,c−1}(0≤j<q).(o,v),\qquad o_{i,j}\in\{0,\ldots,c_i-1\}\quad(0\le i<t,\ 0\le j<m_p), \qquad v_j\in\{0,\ldots,c-1\}\quad(0\le j<q).(o,v),oi,j​∈{0,…,ci​−1}(0≤i<t, 0≤j<mp​),vj​∈{0,…,c−1}(0≤j<q).

The decomposition DDD supplies real coefficients aia_iai​ and spectral matrices Ai=∑ℓ<ciλi,ℓPi,ℓA_i=\sum_{\ell<c_i}\lambda_{i,\ell}P_{i,\ell}Ai​=∑ℓ<ci​​λi,ℓ​Pi,ℓ​ with tr⁡(AiAh†)=1\operatorname{tr}(A_iA_h^\dagger)=1tr(Ai​Ah†​)=1 for i=hi=hi=h and 000 otherwise; SSS supplies matrices PℓP_\ellPℓ​ and real values λℓ\lambda_\ellλℓ​. Each of these spectral data has a positive count at most ∣I∣|I|∣I∣, nonzero positive semidefinite idempotent matrices summing to the identity and having zero products at distinct indices, and pairwise distinct real values. Empty index ranges contribute unique empty arrays: if t=0t=0t=0 or mp=0m_p=0mp​=0, the first array is unique, and if q=0q=0q=0, the second is unique. The supplied datum SSS precludes empty III.

QAlgorithms.Papers.Independent.Advance50.P30.Spectral

For a finite type III with decidable equality, a spectral datum consists of a natural number ccc satisfying 0<c≤∣I∣0<c\le |I|0<c≤∣I∣, complex I×II\times II×I matrices PjP_jPj​, and real numbers λj\lambda_jλj​, indexed by 0≤j<c0\le j<c0≤j<c, such that every PjP_jPj​ is positive semidefinite,

∑j=0c−1Pj=1,Pj2=Pj,j≠k⟹PjPk=0,Pj≠0,\sum_{j=0}^{c-1}P_j=1,\qquad P_j^2=P_j,\qquad j\ne k\Longrightarrow P_jP_k=0,\qquad P_j\ne0,j=0∑c−1​Pj​=1,Pj2​=Pj​,j=k⟹Pj​Pk​=0,Pj​=0,

and the values are pairwise distinct: λj=λk\lambda_j=\lambda_kλj​=λk​ implies j=kj=kj=k. Here 111 is the identity matrix. No such datum exists when III is empty.

QAlgorithms.Papers.Independent.Advance50.P30.Spectral.operator

For any finite type III with decidable equality and any spectral datum SSS, consisting of 0<c≤∣I∣0<c\le |I|0<c≤∣I∣, nonzero positive semidefinite matrices PjP_jPj​ with Pj2=PjP_j^2=P_jPj2​=Pj​, ∑jPj=1\sum_jP_j=1∑j​Pj​=1, and PjPk=0P_jP_k=0Pj​Pk​=0 for j≠kj\ne kj=k, together with pairwise distinct real values λj\lambda_jλj​, this defines the complex I×II\times II×I matrix

Sop=∑j=0c−1λjPj.S_{\mathrm{op}}=\sum_{j=0}^{c-1}\lambda_jP_j.Sop​=j=0∑c−1​λj​Pj​.

The real coefficients are embedded in C\mathbb CC. The required spectral datum cannot exist for empty III.

QAlgorithms.Papers.Independent.Advance50.P30.chernoffError

For every real δ\deltaδ and natural numbers n,r,wn,r,wn,r,w, this defines the real number

chernoffError⁡(δ,n,r,w)=2−n(δ2/4−H2(r/n))+wlog⁡2(n/2+1),H2(p)=−plog⁡p−(1−p)log⁡(1−p)log⁡2.\operatorname{chernoffError}(\delta,n,r,w) =2^{-n\left(\delta^2/4-H_2(r/n)\right) +w\log_2(n/2+1)}, \qquad H_2(p)=\frac{-p\log p-(1-p)\log(1-p)}{\log 2}.chernoffError(δ,n,r,w)=2−n(δ2/4−H2​(r/n))+wlog2​(n/2+1),H2​(p)=log2−plogp−(1−p)log(1−p)​.

All natural numbers in this formula are interpreted as real numbers, and the power of 222 is a real power. No positivity or size restrictions are imposed on the parameters, including no requirement r≤nr\le nr≤n. The formula uses total real operations: division by zero is 000, log⁡0=0\log 0=0log0=0, and the real logarithm of a negative number is the logarithm of its absolute value. In particular, n=0n=0n=0 gives the value 111.

QAlgorithms.Papers.Independent.Advance50.P30.deFinettiError

For any natural numbers n,k,r,dn,k,r,dn,k,r,d, this defines

deFinettiError⁡(n,k,r,d)=2exp⁡ ⁣(−k(r+1)2(n+k)+d22log⁡k),\operatorname{deFinettiError}(n,k,r,d) =2\exp\!\left( -\frac{k(r+1)}{2(n+k)} +\frac{d^2}{2}\log k \right),deFinettiError(n,k,r,d)=2exp(−2(n+k)k(r+1)​+2d2​logk),

where the natural numbers are interpreted as real numbers and log⁡\loglog is the natural logarithm. No parameter is required to be positive. Division by zero and log⁡0\log 0log0 both take the value 000; consequently, when k=0k=0k=0, including when n=0n=0n=0, the defined value is 222.

QAlgorithms.Papers.Independent.Advance50.P30.defectTensor

For any type III, natural number nnn, complex Euclidean coordinate vector θ\thetaθ indexed by III, finite set S⊆{0,…,n−1}S\subseteq\{0,\ldots,n-1\}S⊆{0,…,n−1}, and arbitrary function χ:(S→I)→C\chi:(S\to I)\to\mathbb Cχ:(S→I)→C, this defines the vector indexed by functions x:{0,…,n−1}→Ix:\{0,\ldots,n-1\}\to Ix:{0,…,n−1}→I with coordinates

v(x)=(∏i∉Sθ(x(i)))χ(x∣S).v(x)=\left(\prod_{i\notin S}\theta(x(i))\right)\chi(x|_S).v(x)=​i∈/S∏​θ(x(i))​χ(x∣S​).

Neither θ\thetaθ nor χ\chiχ is required to be normalized. An empty product is 111: if SSS is the entire index set, v(x)=χ(x)v(x)=\chi(x)v(x)=χ(x), while if S=∅S=\varnothingS=∅, vvv is the scalar χ(∅)\chi(\varnothing)χ(∅) times the coordinate product of θ\thetaθ. For n=0n=0n=0, the unique coordinate is χ(∅)\chi(\varnothing)χ(∅).

QAlgorithms.Papers.Independent.Advance50.P30.directMean

For any finite type III with decidable equality, natural numbers t,mp,qt,m_p,qt,mp​,q, decomposition DDD, spectral datum SSS, and outcome arrays oi,j<cio_{i,j}<c_ioi,j​<ci​, vj<cv_j<cvj​<c, this defines

directMean⁡(S,o,v)=∑j=0q−1λvjq.\operatorname{directMean}(S,o,v) =\frac{\sum_{j=0}^{q-1}\lambda_{v_j}}{q}.directMean(S,o,v)=q∑j=0q−1​λvj​​​.

Here SSS has 0<c≤∣I∣0<c\le |I|0<c≤∣I∣, nonzero positive semidefinite idempotent matrices PℓP_\ellPℓ​ summing to the identity and satisfying PℓPh=0P_\ell P_h=0Pℓ​Ph​=0 for ℓ≠h\ell\ne hℓ=h, and pairwise distinct real values λℓ\lambda_\ellλℓ​. The supplied decomposition DDD contains arbitrary real coefficients aia_iai​ and spectral matrices Ai=∑ℓ<ciλi,ℓPi,ℓA_i=\sum_{\ell<c_i}\lambda_{i,\ell}P_{i,\ell}Ai​=∑ℓ<ci​​λi,ℓ​Pi,ℓ​ satisfying tr⁡(AiAh†)=1\operatorname{tr}(A_iA_h^\dagger)=1tr(Ai​Ah†​)=1 for i=hi=hi=h and 000 otherwise; each constituent spectral datum satisfies the same count, positivity, idempotence, orthogonality, nonzero, and distinct-value conditions as SSS. The first outcome array consists of mpm_pmp​ outcomes for each of these ttt data and does not enter the displayed sum. When q=0q=0q=0, the empty numerator and division-by-zero convention give 000; SSS precludes empty III.

QAlgorithms.Papers.Independent.Advance50.P30.discardReferences

For any finite type III, natural number nnn, and arbitrary complex matrix ρ\rhoρ indexed by functions from the nnn positions to I×II\times II×I, this defines a matrix indexed by functions x,y:{0,…,n−1}→Ix,y:\{0,\ldots,n-1\}\to Ix,y:{0,…,n−1}→I through

ρdiscard(x,y)=∑z:{0,…,n−1}→Iρ(i↦(x(i),z(i)),  i↦(y(i),z(i))).\rho_{\mathrm{discard}}(x,y) =\sum_{z:\{0,\ldots,n-1\}\to I} \rho\bigl(i\mapsto(x(i),z(i)),\;i\mapsto(y(i),z(i))\bigr).ρdiscard​(x,y)=z:{0,…,n−1}→I∑​ρ(i↦(x(i),z(i)),i↦(y(i),z(i))).

No positivity or normalization is assumed. For n=0n=0n=0, all the function index sets are singletons, so the unique matrix entry is preserved.

QAlgorithms.Papers.Independent.Advance50.P30.empiricalFrequency

For any finite type WWW, natural number nnn, outcome function o:{0,…,n−1}→Wo:\{0,\ldots,n-1\}\to Wo:{0,…,n−1}→W, and w∈Ww\in Ww∈W, the empirical frequency is the real number

∣{i<n:o(i)=w}∣n.\frac{|\{i<n:o(i)=w\}|}{n}.n∣{i<n:o(i)=w}∣​.

For n=0n=0n=0, the numerator and denominator are both zero, and the defined value is 000, using the convention 0/0=00/0=00/0=0.

QAlgorithms.Papers.Independent.Advance50.P30.estimationEvent

For any finite type III with decidable equality, natural numbers t,mp,qt,m_p,qt,mp​,q, decomposition DDD, spectral datum SSS, arbitrary complex matrix ρ\rhoρ on Itmp+qI^{tm_p+q}Itmp​+q, and predicate A\mathcal AA on pairs of arrays oi,j<cio_{i,j}<c_ioi,j​<ci​, vj<cv_j<cvj​<c, this defines

estimationEvent⁡(D,S,mp,q,ρ,A)=∑(o,v)A(o,v)Re⁡tr⁡(To,vρ),To,v(x,y)=∏i<t∏j<mpPi,oi,j(xi,j,yi,j)∏j<qPvj(xj′,yj′).\operatorname{estimationEvent}(D,S,m_p,q,\rho,\mathcal A) =\sum_{\substack{(o,v)\\\mathcal A(o,v)}} \operatorname{Re}\operatorname{tr}(T_{o,v}\rho), \qquad T_{o,v}(x,y) =\prod_{i<t}\prod_{j<m_p}P_{i,o_{i,j}}(x_{i,j},y_{i,j}) \prod_{j<q}P_{v_j}(x'_j,y'_j).estimationEvent(D,S,mp​,q,ρ,A)=(o,v)A(o,v)​∑​Retr(To,v​ρ),To,v​(x,y)=i<t∏​j<mp​∏​Pi,oi,j​​(xi,j​,yi,j​)j<q∏​Pvj​​(xj′​,yj′​).

The paired coordinates enumerate the first tmptm_ptmp​ positions using the canonical finite product indexing, and the primed coordinates enumerate the last qqq. The datum DDD contains arbitrary real coefficients aia_iai​ and Ai=∑ℓ<ciλi,ℓPi,ℓA_i=\sum_{\ell<c_i}\lambda_{i,\ell}P_{i,\ell}Ai​=∑ℓ<ci​​λi,ℓ​Pi,ℓ​ with tr⁡(AiAh†)\operatorname{tr}(A_iA_h^\dagger)tr(Ai​Ah†​) equal to 111 for i=hi=hi=h and 000 otherwise; SSS supplies Pℓ,λℓP_\ell,\lambda_\ellPℓ​,λℓ​. Every spectral count is positive and at most ∣I∣|I|∣I∣; its matrices are nonzero positive semidefinite idempotents summing to the identity with zero products at distinct indices, and its real values are pairwise distinct. No density assumption is imposed on ρ\rhoρ. If tmp+q=0tm_p+q=0tmp​+q=0, there is one empty outcome and the result is Re⁡tr⁡ρ\operatorname{Re}\operatorname{tr}\rhoRetrρ if that outcome satisfies the predicate, and 000 otherwise; SSS precludes empty III.

QAlgorithms.Papers.Independent.Advance50.P30.iidEvent

For any finite types I,WI,WI,W, any natural number nnn, any complex matrix ρ\rhoρ indexed by In={x:{0,…,n−1}→I}I^n=\{x:\{0,\ldots,n-1\}\to I\}In={x:{0,…,n−1}→I}, any family EwE_wEw​ of complex matrices indexed by III, and any predicate A\mathcal AA on WnW^nWn, this defines

iidEvent⁡(ρ,E,A)=∑o∈WnA(o)Re⁡tr⁡(Toρ),To(x,y)=∏i=0n−1Eoi(xi,yi).\operatorname{iidEvent}(\rho,E,\mathcal A) =\sum_{\substack{o\in W^n\\\mathcal A(o)}}\operatorname{Re}\operatorname{tr}(T_o\rho), \qquad T_o(x,y)=\prod_{i=0}^{n-1}E_{o_i}(x_i,y_i).iidEvent(ρ,E,A)=o∈WnA(o)​∑​Retr(To​ρ),To​(x,y)=i=0∏n−1​Eoi​​(xi​,yi​).

There are no positivity, normalization, or measurement assumptions on ρ\rhoρ or EEE. When n=0n=0n=0, both configuration spaces contain one empty tuple and the empty product is 111, so the result is Re⁡tr⁡ρ\operatorname{Re}\operatorname{tr}\rhoRetrρ if the event contains the empty outcome, and 000 otherwise; when WWW is empty and n>0n>0n>0, the sum is 000.

QAlgorithms.Papers.Independent.Advance50.P30.indirectMean

For any finite type III with decidable equality, natural numbers t,mp,qt,m_p,qt,mp​,q, decomposition DDD, spectral datum SSS, and pair of outcome arrays oi,j<cio_{i,j}<c_ioi,j​<ci​, vj<cv_j<cvj​<c, this defines

indirectMean⁡(D,o,v)=∑i=0t−1ai∑j=0mp−1λi,oi,jmp.\operatorname{indirectMean}(D,o,v) =\sum_{i=0}^{t-1}a_i \frac{\sum_{j=0}^{m_p-1}\lambda_{i,o_{i,j}}}{m_p}.indirectMean(D,o,v)=i=0∑t−1​ai​mp​∑j=0mp​−1​λi,oi,j​​​.

Here DDD contains arbitrary real coefficients aia_iai​ and spectral matrices Ai=∑ℓ<ciλi,ℓPi,ℓA_i=\sum_{\ell<c_i}\lambda_{i,\ell}P_{i,\ell}Ai​=∑ℓ<ci​​λi,ℓ​Pi,ℓ​ satisfying tr⁡(AiAh†)=1\operatorname{tr}(A_iA_h^\dagger)=1tr(Ai​Ah†​)=1 for i=hi=hi=h and 000 otherwise; SSS contains matrices PℓP_\ellPℓ​ and real values λℓ\lambda_\ellλℓ​. Each spectral count is positive and at most ∣I∣|I|∣I∣, its matrices are nonzero positive semidefinite idempotents summing to the identity and having zero products at distinct indices, and its real values are pairwise distinct. The second outcome array has length qqq and does not enter the displayed sum. Both t=0t=0t=0 and mp=0m_p=0mp​=0 give 000, using the empty-sum and division-by-zero conventions; SSS precludes empty III.

QAlgorithms.Papers.Independent.Advance50.P30.joinCopies

For any type III, natural numbers n,kn,kn,k, a hypothesis k≤nk\le nk≤n, and functions x:{0,…,k−1}→Ix:\{0,\ldots,k-1\}\to Ix:{0,…,k−1}→I and z:{0,…,n−k−1}→Iz:\{0,\ldots,n-k-1\}\to Iz:{0,…,n−k−1}→I, their joined function j:{0,…,n−1}→Ij:\{0,\ldots,n-1\}\to Ij:{0,…,n−1}→I is defined by

j(i)={x(i),i<k,z(i−k),k≤i.j(i)= \begin{cases} x(i),&i<k,\\ z(i-k),&k\le i. \end{cases}j(i)={x(i),z(i−k),​i<k,k≤i.​

The subtraction is natural-number subtraction; the second branch is used only when i≥ki\ge ki≥k. The definition includes k=0k=0k=0, when the result is zzz, and k=nk=nk=n, when the result is xxx, including n=k=0n=k=0n=k=0.

QAlgorithms.Papers.Independent.Advance50.P30.l1

For any finite type WWW and arbitrary functions p,q:W→Rp,q:W\to\mathbb Rp,q:W→R, this defines

∑w∈W∣p(w)−q(w)∣.\sum_{w\in W}|p(w)-q(w)|.w∈W∑​∣p(w)−q(w)∣.

Neither function is required to be nonnegative or to sum to 111. If WWW is empty, the value is 000.

QAlgorithms.Papers.Independent.Advance50.P30.reduceCopies

For any finite type III, natural number nnn, arbitrary complex matrix ρ\rhoρ indexed by functions {0,…,n−1}→I\{0,\ldots,n-1\}\to I{0,…,n−1}→I, natural number kkk, and hypothesis k≤nk\le nk≤n, the reduced matrix is indexed by functions x,y:{0,…,k−1}→Ix,y:\{0,\ldots,k-1\}\to Ix,y:{0,…,k−1}→I and has entries

ρred(x,y)=∑z:{0,…,n−k−1}→Iρ(x∥z,  y∥z),\rho_{\mathrm{red}}(x,y) =\sum_{z:\{0,\ldots,n-k-1\}\to I} \rho(x\mathbin{\|}z,\;y\mathbin{\|}z),ρred​(x,y)=z:{0,…,n−k−1}→I∑​ρ(x∥z,y∥z),

where x∥zx\mathbin{\|}zx∥z uses x(i)x(i)x(i) for i<ki<ki<k and z(i−k)z(i-k)z(i−k) for i≥ki\ge ki≥k. No positivity or normalization of ρ\rhoρ is required. When k=nk=nk=n, the summation has the unique empty function as its index and gives ρ\rhoρ; when k=0k=0k=0, the result is a one-entry matrix whose entry is Tr⁡ρ\operatorname{Tr}\rhoTrρ.

QAlgorithms.Papers.Independent.Advance50.P30.samplingError

For arbitrary real numbers δ,hs\delta,h_sδ,hs​ and natural numbers m,dm,dm,d, including zero, this defines

samplingError⁡(δ,m,d,hs)=dexp⁡ ⁣(−mδ28dhs2).\operatorname{samplingError}(\delta,m,d,h_s) = d\exp\!\left(-\frac{m\delta^2}{8dh_s^2}\right).samplingError(δ,m,d,hs​)=dexp(−8dhs2​mδ2​).

No positivity assumptions are imposed. Division is total real division: division by zero is defined to be zero. Consequently, if d=0d=0d=0 or hs=0h_s=0hs​=0, the value is ddd; the value is also ddd whenever m=0m=0m=0 or δ=0\delta=0δ=0.

QAlgorithms.Papers.Independent.Advance50.P30.tensorBlockEffect

For any finite type III with decidable equality, natural numbers t,mp,qt,m_p,qt,mp​,q, decomposition DDD, spectral datum SSS, and outcome arrays oi,j<cio_{i,j}<c_ioi,j​<ci​ and vj<cv_j<cvj​<c, this defines a complex matrix To,vT_{o,v}To,v​ on Itmp+qI^{tm_p+q}Itmp​+q by

To,v(x,y)=(∏i<t∏j<mpPi,oi,j(xi,j,yi,j))(∏j<qPvj(xj′,yj′)).T_{o,v}(x,y) =\left(\prod_{i<t}\prod_{j<m_p} P_{i,o_{i,j}}(x_{i,j},y_{i,j})\right) \left(\prod_{j<q}P_{v_j}(x'_j,y'_j)\right).To,v​(x,y)=​i<t∏​j<mp​∏​Pi,oi,j​​(xi,j​,yi,j​)​(j<q∏​Pvj​​(xj′​,yj′​)).

The coordinates (i,j)(i,j)(i,j) identify the first tmptm_ptmp​ positions through the canonical bijection between a product of finite index sets and an index set of their product size, and the primed coordinates are the final qqq positions. Here DDD contains arbitrary real coefficients aia_iai​ and spectral matrices Ai=∑ℓ<ciλi,ℓPi,ℓA_i=\sum_{\ell<c_i}\lambda_{i,\ell}P_{i,\ell}Ai​=∑ℓ<ci​​λi,ℓ​Pi,ℓ​, satisfying tr⁡(AiAh†)=1\operatorname{tr}(A_iA_h^\dagger)=1tr(Ai​Ah†​)=1 for i=hi=hi=h and 000 otherwise; SSS contains matrices PℓP_\ellPℓ​ and real values λℓ\lambda_\ellλℓ​. Each spectral count is positive and at most ∣I∣|I|∣I∣, its matrices are nonzero positive semidefinite idempotents summing to the identity with zero products at distinct indices, and its real values are pairwise distinct. All empty products equal 111; in particular, if tmp+q=0tm_p+q=0tmp​+q=0, this is the one-by-one matrix with entry 111. The supplied datum SSS precludes empty III.

QAlgorithms.Papers.Independent.Advance50.P30.tensorEffect

For any types I,WI,WI,W, natural number nnn, arbitrary family of complex matrices E(w)E(w)E(w) indexed by I×II\times II×I, and function o:{0,…,n−1}→Wo:\{0,\ldots,n-1\}\to Wo:{0,…,n−1}→W, this defines the complex matrix indexed by functions x,y:{0,…,n−1}→Ix,y:\{0,\ldots,n-1\}\to Ix,y:{0,…,n−1}→I with entries

To(x,y)=∏i=0n−1E(o(i))x(i),y(i).T_o(x,y)=\prod_{i=0}^{n-1}E(o(i))_{x(i),y(i)}.To​(x,y)=i=0∏n−1​E(o(i))x(i),y(i)​.

No finiteness assumption on III or WWW, positivity condition, or measurement completeness condition is imposed. For n=0n=0n=0, the matrix has one entry, equal to the empty product 111.

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