Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for On Weyl-covariant channels

Definition
QAlgorithms_Papers_Independent_Bridge50_P05

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

prove2quantum

The objects the formalized statements of On Weyl-covariant channels (arXiv:quant-ph/0510148) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • W: PDF p.2: the source's forward-shift, positive-clock Weyl operator.
  • rotateWeylLabel: PDF p.2: J(x,y)=(y,-x).
  • duality: PDF p.2: positive ordinary duality character, arithmetic modulo d.
  • residueSymplectic: PDF pp.2,7: alternating pairing in ZMod d, not a chosen real representative.
  • weylFourierCoefficient: PDF pp.2--3: f_X(z)=Tr(X W_z*)/d.
  • WeylCovariantMap: PDF pp.3--4: Weyl covariance on every operator of a complex-linear map.
  • NormalizedWeylMap: PDF p.4: W1 consists of normalized covariant linear maps; CP is not required.
  • symbol: PDF p.4: the map's symbol is computed from its action, never supplied freely.
  • multiplier: PDF p.4: the complex multiplier on the entire Weyl expansion.
  • fourier: PDF p.4: positive-sign Fourier transform, without a probability restriction.
  • weylConvolution: PDF p.4: convolution on the finite additive phase space.
  • maxSq: PDF pp.4,6: finite squared maximum. Its explicitly disclosed d=1 value is zero. For d>1, inserting zero does not change the maximum of nonnegative squared moduli.
  • optimizers: PDF p.6: the set of maximizing NONZERO Weyl labels.
  • saturationValue: PDF p.5, (2.7): the saturation value, with both square roots retained.
  • eigenSet: PDF p.6: G_psi is computed from a vector; unit normalization is a theorem premise.
  • Degenerate: PDF p.7: pairwise degeneracy modulo d, valid also for the empty set.
  • MaximalDegenerate: PDF p.7: inclusion maximality among degenerate subsets, with actual subgroup data. Cardinality d is derived by the geometry result rather than built into this predicate.
  • annihilator: PDF p.8: annihilator for the ordinary duality form.
  • twoSymbol: PDF p.8, (2.13): complex two-parameter symbol; normalization is explicit.
  • subgroupTwirl: PDF p.9, (2.18): the sum is over the ordinary annihilator G-perp.
  • maximallyMixedReplacement: PDF p.8: the completely depolarizing term, extended linearly to all operators.
  • complexDepolarizing: PDF p.8: the complex-parameter depolarizing map, without a CP restriction.
  • twoMap: PDF p.8, (2.17): the two-parameter family for its computed subgroup twirl.
  • HermiticityPreserving: PDF p.7: Hermitian means Hermiticity preserving, not superoperator self-adjointness.
  • channelTriangle: PDF p.10 and Figure p.14: the CLOSED real parameter triangle; used only for d>=2.
  • diagonalBlock: PDF p.12: D_s in cyclic source order r=1,...,d, with d representing residue zero.
  • complementBlock: PDF pp.12--13: concatenated d complementary Kraus blocks, of size d² by d². Column block t has Weyl factor U^(1-t)V^(1-s), retaining all phases.
  • reorderedKraus: PDF pp.11--12: reorder actual Kraus operators by environment (s,r), corresponding to x=1-r,y=1-s. Nonnegative lambda is the canonical square root.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Defs_MatrixMapPositivity
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P34
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P08
import Definitions.Def_QAlgorithms_Papers_Independent_Claimed50_P48
import Definitions.Def_QAlgorithms_Papers_Independent_Gap48_P36
import Definitions.Def_QAlgorithms_Papers_Independent_Information100_P21

/-! Fukuda--Holevo, arXiv:quant-ph/0510148v3. All locators are PDF pages.
The independent-paper override permits imports from the pinned accepted library.
New definitions are confined to this namespace. The two false printed claims are
recorded in HARD.md. Compilation is pending the batch handoff. -/

noncomputable section

namespace QAlgorithms.Papers.Independent.Bridge50.P05

open scoped BigOperators Matrix Kronecker ComplexConjugate ComplexOrder ENNReal
open QAlgorithms.Papers.Independent.Information100.P34 (cyclicPhase weyl dephasing)
open QAlgorithms.Papers.Independent.Information100.P08 (IsPure)
open QAlgorithms.Papers.Independent.Gap48.P36 (WeylLabel)
open QAlgorithms.Papers.Independent.Information100.P21 (Op)
open QAlgorithms.Papers.Independent.Information100.P50 (schattenNorm)
open QAlgorithms.Papers.Independent.Claimed50.P48
  (nu superopTensor UniversalMultiplicative rowKraus indexedKrausDilation)
open QAlgorithms.Papers.Independent.Information100.P67 (complementaryChannel)

attribute [local instance] Classical.propDecidable Classical.decEq

variable {d : ℕ} [NeZero d]

/-- PDF p.2: the source's forward-shift, positive-clock Weyl operator. -/
def W (z : WeylLabel d) : Op (ZMod d) := weyl z.1 z.2

/-- PDF p.2: J(x,y)=(y,-x). -/
def rotateWeylLabel (z : WeylLabel d) : WeylLabel d := (z.2, -z.1)

/-- PDF p.2: positive ordinary duality character, arithmetic modulo d. -/
def duality (g z : WeylLabel d) : ℂ := cyclicPhase d (g.1 * z.1 + g.2 * z.2)

/-- PDF pp.2,7: alternating pairing in ZMod d, not a chosen real representative. -/
def residueSymplectic (u v : WeylLabel d) : ZMod d := u.1 * v.2 - u.2 * v.1

/-- PDF pp.2--3: f_X(z)=Tr(X W_z*)/d. -/
def weylFourierCoefficient (X : Op (ZMod d)) (z : WeylLabel d) : ℂ := (X * (W z)ᴴ).trace / (d : ℂ)

/-- PDF pp.3--4: Weyl covariance on every operator of a complex-linear map. -/
def WeylCovariantMap (Phi : Op (ZMod d) →ₗ[ℂ] Op (ZMod d)) : Prop :=
  ∀ z X, Phi (W z * X * (W z)ᴴ) = W z * Phi X * (W z)ᴴ

/-- PDF p.4: W1 consists of normalized covariant linear maps; CP is not required. -/
def NormalizedWeylMap (Phi : Op (ZMod d) →ₗ[ℂ] Op (ZMod d)) : Prop := WeylCovariantMap Phi ∧ Phi 1 = 1

/-- PDF p.4: the map's symbol is computed from its action, never supplied freely. -/
def symbol (Phi : Superop (ZMod d) (ZMod d)) (z : WeylLabel d) : ℂ :=
  weylFourierCoefficient (Phi (W z)) z

/-- PDF p.4: the complex multiplier on the entire Weyl expansion. -/
def multiplier (phi : WeylLabel d → ℂ) : Superop (ZMod d) (ZMod d) :=
  fun X => ∑ z, (weylFourierCoefficient X z * phi z) • W z

/-- PDF p.4: positive-sign Fourier transform, without a probability restriction. -/
def fourier (phi : WeylLabel d → ℂ) (g : WeylLabel d) : ℂ :=
  (d : ℂ)⁻¹ ^ 2 * ∑ z, phi z * duality g z

/-- PDF p.4: convolution on the finite additive phase space. -/
def weylConvolution (p q : WeylLabel d → ℂ) (g : WeylLabel d) : ℂ := ∑ h, p h * q (g - h)

/-- PDF pp.4,6: finite squared maximum. Its explicitly disclosed d=1 value is zero.
For d>1, inserting zero does not change the maximum of nonnegative squared moduli. -/
def maxSq (phi : WeylLabel d → ℂ) : ℝ :=
  if d = 1 then 0 else
    ((Finset.univ.sup fun z : WeylLabel d =>
      if z = 0 then (0 : NNReal) else (⟨‖phi z‖ ^ 2, sq_nonneg _⟩ : NNReal)) : NNReal)

/-- PDF p.6: the set of maximizing NONZERO Weyl labels. -/
def optimizers (phi : WeylLabel d → ℂ) : Set (WeylLabel d) :=
  {z | z ≠ 0 ∧ ‖phi z‖ ^ 2 = maxSq phi}

/-- PDF p.5, (2.7): the saturation value, with both square roots retained. -/
def saturationValue (phi : WeylLabel d → ℂ) : ℝ :=
  (Real.sqrt d)⁻¹ * Real.sqrt (1 + ((d : ℝ) - 1) * maxSq phi)

/-- PDF p.6: G_psi is computed from a vector; unit normalization is a theorem premise. -/
def eigenSet (psi : EuclideanSpace ℂ (ZMod d)) : Set (WeylLabel d) :=
  {z | ∃ c : ℂ, act (W z) psi = c • psi}

/-- PDF p.7: pairwise degeneracy modulo d, valid also for the empty set. -/
def Degenerate (F : Set (WeylLabel d)) : Prop :=
  ∀ u ∈ F, ∀ v ∈ F, residueSymplectic u v = 0

/-- PDF p.7: inclusion maximality among degenerate subsets, with actual subgroup data.
Cardinality d is derived by the geometry result rather than built into this predicate. -/
def MaximalDegenerate (G : AddSubgroup (WeylLabel d)) : Prop :=
  Degenerate (G : Set (WeylLabel d)) ∧
    ∀ F : Set (WeylLabel d), Degenerate F → (G : Set (WeylLabel d)) ⊆ F → F ⊆ G

/-- PDF p.8: annihilator for the ordinary duality form. -/
def annihilator (G : AddSubgroup (WeylLabel d)) : Set (WeylLabel d) :=
  {g | ∀ z ∈ G, g.1 * z.1 + g.2 * z.2 = 0}

/-- PDF p.8, (2.13): complex two-parameter symbol; normalization is explicit. -/
def twoSymbol (G : AddSubgroup (WeylLabel d)) (a b : ℂ) (z : WeylLabel d) : ℂ :=
  if z = 0 then 1 else if z ∈ G then a + b else b

/-- PDF p.9, (2.18): the sum is over the ordinary annihilator G-perp. -/
def subgroupTwirl (G : AddSubgroup (WeylLabel d)) : Superop (ZMod d) (ZMod d) :=
  fun X => (d : ℂ)⁻¹ • ∑ z ∈ Finset.univ.filter (fun z => z ∈ annihilator G),
    W (rotateWeylLabel z) * X * (W (rotateWeylLabel z))ᴴ

/-- PDF p.8: the completely depolarizing term, extended linearly to all operators. -/
def maximallyMixedReplacement (X : Op (ZMod d)) : Op (ZMod d) := (X.trace / (d : ℂ)) • 1

/-- PDF p.8: the complex-parameter depolarizing map, without a CP restriction. -/
def complexDepolarizing (lam : ℂ) : Superop (ZMod d) (ZMod d) :=
  fun X => lam • X + (1 - lam) • maximallyMixedReplacement X

/-- PDF p.8, (2.17): the two-parameter family for its computed subgroup twirl. -/
def twoMap (G : AddSubgroup (WeylLabel d)) (a b : ℂ) : Superop (ZMod d) (ZMod d) :=
  fun X => a • subgroupTwirl G X + b • X + (1 - a - b) • maximallyMixedReplacement X

/-- PDF p.7: Hermitian means Hermiticity preserving, not superoperator self-adjointness. -/
def HermiticityPreserving (Phi : Op (ZMod d) →ₗ[ℂ] Op (ZMod d)) : Prop :=
  ∀ X, X.IsHermitian → (Phi X).IsHermitian

/-- PDF p.10 and Figure p.14: the CLOSED real parameter triangle; used only for d>=2. -/
def channelTriangle (d : ℕ) : Set (ℝ × ℝ) :=
  convexHull ℝ {((0 : ℝ), (1 : ℝ)), (-1 / ((d : ℝ) - 1), 0),
    ((d : ℝ) / ((d : ℝ) - 1), -1 / ((d : ℝ) - 1))}

/-- PDF p.12: D_s in cyclic source order r=1,...,d, with d representing residue zero. -/
def diagonalBlock (lam : WeylLabel d → ℝ) (s : ZMod d) : Op (ZMod d) :=
  Matrix.diagonal fun r => (lam (1 - r, 1 - s) : ℂ)

/-- PDF pp.12--13: concatenated d complementary Kraus blocks, of size d² by d².
Column block t has Weyl factor U^(1-t)V^(1-s), retaining all phases. -/
def complementBlock (lam : WeylLabel d → ℝ) : Matrix (WeylLabel d) (WeylLabel d) ℂ :=
  fun sr tu =>
    let M : Op (ZMod d) := diagonalBlock lam sr.1 * W (1 - tu.1, 1 - sr.1)
    M sr.2 tu.2

/-- PDF pp.11--12: reorder actual Kraus operators by environment (s,r),
corresponding to x=1-r,y=1-s. Nonnegative lambda is the canonical square root. -/
def reorderedKraus (lam : WeylLabel d → ℝ) (sr : WeylLabel d) : Op (ZMod d) :=
  (lam (1 - sr.2, 1 - sr.1) : ℂ) • W (1 - sr.2, 1 - sr.1)

/-- Sanity checks: J has square minus identity and the d=1 maximum is explicit. -/
example (z : WeylLabel d) : rotateWeylLabel (rotateWeylLabel z) = -z := by
  apply Prod.ext <;> simp [rotateWeylLabel]

example (phi : WeylLabel 1 → ℂ) : maxSq phi = 0 := by simp [maxSq]

example (G : AddSubgroup (WeylLabel d)) (a b : ℂ) : twoSymbol G a b 0 = 1 := by
  simp [twoSymbol]

example (lam : WeylLabel d → ℝ) (s r : ZMod d) :
    diagonalBlock lam s r r = (lam (1 - r, 1 - s) : ℂ) := by
  simp [diagonalBlock]

end QAlgorithms.Papers.Independent.Bridge50.P05
Source
On Weyl-covariant channels, arXiv:quant-ph/0510148v3, https://arxiv.org/abs/quant-ph/0510148v3
Read-back

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

QAlgorithms.Papers.Independent.Bridge50.P05.Degenerate

For a natural number ddd and any subset F⊆(ZMod⁡d)2F\subseteq(\operatorname{ZMod}d)^2F⊆(ZModd)2, this predicate means that every u=(u1,u2)∈Fu=(u_1,u_2)\in Fu=(u1​,u2​)∈F and every v=(v1,v2)∈Fv=(v_1,v_2)\in Fv=(v1​,v2​)∈F satisfy

u1v2−u2v1=0in ZMod⁡d.u_1v_2-u_2v_1=0 \quad\text{in }\operatorname{ZMod}d.u1​v2​−u2​v1​=0in ZModd.

The set need not be a subgroup, and the empty set satisfies the predicate vacuously. For d=0d=0d=0, ZMod⁡0=Z\operatorname{ZMod}0=\mathbb ZZMod0=Z.

QAlgorithms.Papers.Independent.Bridge50.P05.HermiticityPreserving

For a natural number ddd and a complex-linear map Φ\PhiΦ from complex matrices indexed by ZMod⁡d\operatorname{ZMod}dZModd to matrices with the same indices, this predicate means

∀X,X†=X ⟹ (Φ(X))†=Φ(X).\forall X,\qquad X^\dagger=X\ \Longrightarrow\ (\Phi(X))^\dagger=\Phi(X).∀X,X†=X ⟹ (Φ(X))†=Φ(X).

The quantifier covers every Hermitian matrix, without a positivity or trace condition. For d=0d=0d=0, the matrices are indexed by Z\mathbb ZZ.

QAlgorithms.Papers.Independent.Bridge50.P05.MaximalDegenerate

For a natural number ddd and an additive subgroup G≤(ZMod⁡d)2G\le(\operatorname{ZMod}d)^2G≤(ZModd)2, this predicate means that u1v2−u2v1=0u_1v_2-u_2v_1=0u1​v2​−u2​v1​=0 for every u,v∈Gu,v\in Gu,v∈G, and that every subset F⊆(ZMod⁡d)2F\subseteq(\operatorname{ZMod}d)^2F⊆(ZModd)2 satisfying this same pairwise condition and containing GGG is itself contained in GGG, hence equals GGG. Maximality is taken among all subsets satisfying the condition, without requiring those subsets to be subgroups. For d=0d=0d=0, the coordinates lie in Z\mathbb ZZ.

QAlgorithms.Papers.Independent.Bridge50.P05.NormalizedWeylMap

For every natural number d≠0d\ne0d=0 and complex-linear map Φ\PhiΦ on complex matrices indexed by Z/dZ\mathbb Z/d\mathbb ZZ/dZ, this property is the conjunction of Φ(I)=I\Phi(I)=IΦ(I)=I and the identities Φ(WzXWz†)=WzΦ(X)Wz†\Phi(W_zXW_z^\dagger)=W_z\Phi(X)W_z^\daggerΦ(Wz​XWz†​)=Wz​Φ(X)Wz†​ for every matrix XXX and every z=(n,m)∈(Z/dZ)2z=(n,m)\in(\mathbb Z/d\mathbb Z)^2z=(n,m)∈(Z/dZ)2. Here III is the identity matrix, Wz=Sn0Cm0W_z=S^{n_0}C^{m_0}Wz​=Sn0​Cm0​, n0,m0n_0,m_0n0​,m0​ are the least nonnegative representatives, Sab=1S_{ab}=1Sab​=1 when a=b+1a=b+1a=b+1 and zero otherwise, and CCC is diagonal with Caa=exp⁡(2πia0/d)C_{aa}=\exp(2\pi i a_0/d)Caa​=exp(2πia0​/d). The case d=1d=1d=1 is included.

QAlgorithms.Papers.Independent.Bridge50.P05.W

For every natural number d≠0d\ne0d=0 and label z=(n,m)∈(Z/dZ)2z=(n,m)\in(\mathbb Z/d\mathbb Z)^2z=(n,m)∈(Z/dZ)2, this defines the complex matrix Wz=Sn0Cm0W_z=S^{n_0}C^{m_0}Wz​=Sn0​Cm0​ indexed by Z/dZ\mathbb Z/d\mathbb ZZ/dZ, where n0,m0∈{0,…,d−1}n_0,m_0\in\{0,\ldots,d-1\}n0​,m0​∈{0,…,d−1} represent n,mn,mn,m, the shift matrix has entries Sab=1S_{ab}=1Sab​=1 if a=b+1a=b+1a=b+1 and 000 otherwise, and CCC is diagonal with Caa=exp⁡(2πia0/d)C_{aa}=\exp(2\pi i a_0/d)Caa​=exp(2πia0​/d) for the representative a0a_0a0​ of aaa. The case d=1d=1d=1 is included.

QAlgorithms.Papers.Independent.Bridge50.P05.WeylCovariantMap

For every natural number d≠0d\ne0d=0 and complex-linear map Φ\PhiΦ from complex matrices indexed by Z/dZ\mathbb Z/d\mathbb ZZ/dZ to matrices with the same indices, this property means that, for every label z=(n,m)∈(Z/dZ)2z=(n,m)\in(\mathbb Z/d\mathbb Z)^2z=(n,m)∈(Z/dZ)2 and every such matrix XXX, Φ(WzXWz†)=WzΦ(X)Wz†\Phi(W_zXW_z^\dagger)=W_z\Phi(X)W_z^\daggerΦ(Wz​XWz†​)=Wz​Φ(X)Wz†​. Here Wz=Sn0Cm0W_z=S^{n_0}C^{m_0}Wz​=Sn0​Cm0​, the exponents are the least nonnegative representatives of n,mn,mn,m, Sab=1S_{ab}=1Sab​=1 if a=b+1a=b+1a=b+1 and zero otherwise, and CCC is diagonal with Caa=exp⁡(2πia0/d)C_{aa}=\exp(2\pi i a_0/d)Caa​=exp(2πia0​/d). The case d=1d=1d=1 is included, and in that case this property holds for every complex-linear Φ\PhiΦ.

QAlgorithms.Papers.Independent.Bridge50.P05.annihilator

For a natural number ddd and an additive subgroup G≤(ZMod⁡d)2G\le(\operatorname{ZMod}d)^2G≤(ZModd)2, this defines

{g=(g1,g2): ∀z=(z1,z2)∈G,g1z1+g2z2=0},\{g=(g_1,g_2):\ \forall z=(z_1,z_2)\in G,\quad g_1z_1+g_2z_2=0\},{g=(g1​,g2​): ∀z=(z1​,z2​)∈G,g1​z1​+g2​z2​=0},

with the equality and arithmetic taken in ZMod⁡d\operatorname{ZMod}dZModd. For the zero subgroup this is the entire label space; d=0d=0d=0 uses integer arithmetic.

QAlgorithms.Papers.Independent.Bridge50.P05.channelTriangle

For every natural number ddd, this defines the subset of R2\mathbb R^2R2 consisting of all convex combinations of

(0,1),(−1d−1,0),(dd−1,−1d−1),(0,1),\qquad \left(-\frac1{d-1},0\right),\qquad \left(\frac d{d-1},-\frac1{d-1}\right),(0,1),(−d−11​,0),(d−1d​,−d−11​),

where ddd is interpreted as a real number in these coordinates. Division by zero is defined to be zero: consequently, for d=1d=1d=1 this is the line segment joining (0,0)(0,0)(0,0) and (0,1)(0,1)(0,1). For d=0d=0d=0, it is the line segment joining (0,1)(0,1)(0,1) and (1,0)(1,0)(1,0).

QAlgorithms.Papers.Independent.Bridge50.P05.complementBlock

For a nonzero natural number ddd and any real function λ:(Z/dZ)2→R\lambda:(\mathbb Z/d\mathbb Z)^2\to\mathbb Rλ:(Z/dZ)2→R, this defines a complex matrix BλB_\lambdaBλ​ indexed by pairs of residues. Write Sa,b=1S_{a,b}=1Sa,b​=1 when a=b+1a=b+1a=b+1, and Sa,b=0S_{a,b}=0Sa,b​=0 otherwise; let CCC be diagonal with Ca,a=exp⁡(2πi val⁡(a)/d)C_{a,a}=\exp(2\pi i\,\operatorname{val}(a)/d)Ca,a​=exp(2πival(a)/d), where val⁡(a)∈{0,…,d−1}\operatorname{val}(a)\in\{0,\ldots,d-1\}val(a)∈{0,…,d−1} is the standard representative, and put Wn,m=Sval⁡(n)Cval⁡(m)W_{n,m}=S^{\operatorname{val}(n)}C^{\operatorname{val}(m)}Wn,m​=Sval(n)Cval(m). Then

(Bλ)(s,r),(t,u)=λ(1−r,1−s) (W1−t, 1−s)r,u.(B_\lambda)_{(s,r),(t,u)} =\lambda(1-r,1-s)\,(W_{1-t,\,1-s})_{r,u}.(Bλ​)(s,r),(t,u)​=λ(1−r,1−s)(W1−t,1−s​)r,u​.

All label arithmetic is modulo ddd, and λ\lambdaλ is unrestricted in sign and size. The case d=1d=1d=1 is included.

QAlgorithms.Papers.Independent.Bridge50.P05.complexDepolarizing

For a nonzero natural number ddd and any complex number λ\lambdaλ, this defines the function on arbitrary complex d×dd\times dd×d matrices

X⟼λX+(1−λ)tr⁡Xd Id.X\longmapsto\lambda X+(1-\lambda)\frac{\operatorname{tr}X}{d}\,I_d.X⟼λX+(1−λ)dtrX​Id​.

There is no realness or interval restriction on λ\lambdaλ. When d=1d=1d=1, this function is the identity for every λ\lambdaλ.

QAlgorithms.Papers.Independent.Bridge50.P05.diagonalBlock

For a natural number ddd, a real function λ:(Z/dZ)2→R\lambda:(\mathbb Z/d\mathbb Z)^2\to\mathbb Rλ:(Z/dZ)2→R, and s∈Z/dZs\in\mathbb Z/d\mathbb Zs∈Z/dZ, this defines the complex matrix Dλ,sD_{\lambda,s}Dλ,s​, indexed by Z/dZ\mathbb Z/d\mathbb ZZ/dZ, by

(Dλ,s)r,t={λ(1−r,1−s),r=t,0,r≠t.(D_{\lambda,s})_{r,t}= \begin{cases} \lambda(1-r,1-s),&r=t,\\ 0,&r\ne t. \end{cases}(Dλ,s​)r,t​={λ(1−r,1−s),0,​r=t,r=t.​

The real diagonal entries are embedded into C\mathbb CC, and the subtractions take place in Z/dZ\mathbb Z/d\mathbb ZZ/dZ. No nonnegativity or normalization is required of λ\lambdaλ. The definition also permits d=0d=0d=0, for which the residue type used here is Z\mathbb ZZ.

QAlgorithms.Papers.Independent.Bridge50.P05.duality

For every natural number ddd and labels g=(g1,g2)g=(g_1,g_2)g=(g1​,g2​) and z=(z1,z2)z=(z_1,z_2)z=(z1​,z2​) in (Z/dZ)2(\mathbb Z/d\mathbb Z)^2(Z/dZ)2, this defines a complex number by first computing r=g1z1+g2z2r=g_1z_1+g_2z_2r=g1​z1​+g2​z2​ in Z/dZ\mathbb Z/d\mathbb ZZ/dZ and then taking exp⁡(2πir0/d)\exp(2\pi i r_0/d)exp(2πir0​/d), where, when d>0d>0d>0, r0∈{0,…,d−1}r_0\in\{0,\ldots,d-1\}r0​∈{0,…,d−1} represents rrr. For d=0d=0d=0, complex division by zero is defined to give zero, so the resulting value is 111; the value is also 111 for d=1d=1d=1.

QAlgorithms.Papers.Independent.Bridge50.P05.eigenSet

For a nonzero natural number ddd and any vector ψ∈CZ/dZ\psi\in\mathbb C^{\mathbb Z/d\mathbb Z}ψ∈CZ/dZ, this defines the set of labels z=(n,m)∈(Z/dZ)2z=(n,m)\in(\mathbb Z/d\mathbb Z)^2z=(n,m)∈(Z/dZ)2 for which there exists c∈Cc\in\mathbb Cc∈C such that

SnrepCmrepψ=cψ.S^{n_{\mathrm{rep}}}C^{m_{\mathrm{rep}}}\psi=c\psi.Snrep​Cmrep​ψ=cψ.

Here nrep,mrep∈{0,…,d−1}n_{\mathrm{rep}},m_{\mathrm{rep}}\in\{0,\ldots,d-1\}nrep​,mrep​∈{0,…,d−1} are the residue representatives, Sx,y=1S_{x,y}=1Sx,y​=1 when x=y+1x=y+1x=y+1 and is 000 otherwise, and CCC is diagonal with Cx,x=exp⁡(2πi xrep/d)C_{x,x}=\exp(2\pi i\,x_{\mathrm{rep}}/d)Cx,x​=exp(2πixrep​/d). No normalization or nonzero condition is imposed on ψ\psiψ; for ψ=0\psi=0ψ=0, every label belongs to the set.

QAlgorithms.Papers.Independent.Bridge50.P05.fourier

For every natural number d≠0d\ne0d=0, arbitrary function ϕ:(Z/dZ)2→C\phi:(\mathbb Z/d\mathbb Z)^2\to\mathbb Cϕ:(Z/dZ)2→C, and label g=(g1,g2)∈(Z/dZ)2g=(g_1,g_2)\in(\mathbb Z/d\mathbb Z)^2g=(g1​,g2​)∈(Z/dZ)2, this defines

1d2∑z=(z1,z2)∈(Z/dZ)2ϕ(z)exp⁡ ⁣(2πid[g1z1+g2z2]d),\frac{1}{d^2}\sum_{z=(z_1,z_2)\in(\mathbb Z/d\mathbb Z)^2} \phi(z)\exp\!\left(\frac{2\pi i}{d}[g_1z_1+g_2z_2]_d\right),d21​z=(z1​,z2​)∈(Z/dZ)2∑​ϕ(z)exp(d2πi​[g1​z1​+g2​z2​]d​),

where [r]d[r]_d[r]d​ denotes the least nonnegative representative of the residue rrr. The sum includes every label, including zero; for d=1d=1d=1, the result is the value of ϕ\phiϕ at the unique label.

QAlgorithms.Papers.Independent.Bridge50.P05.maxSq

For every natural number d≠0d\ne0d=0 and arbitrary function ϕ:(Z/dZ)2→C\phi:(\mathbb Z/d\mathbb Z)^2\to\mathbb Cϕ:(Z/dZ)2→C, this defines a real number equal to zero when d=1d=1d=1. Otherwise it is the maximum over all labels zzz of the nonnegative quantity that is zero at z=0z=0z=0 and ∣ϕ(z)∣2|\phi(z)|^2∣ϕ(z)∣2 at every nonzero label; equivalently, for d≥2d\ge2d≥2, it is max⁡z≠0∣ϕ(z)∣2\max_{z\ne0}|\phi(z)|^2maxz=0​∣ϕ(z)∣2. Thus the value ϕ(0)\phi(0)ϕ(0) does not contribute.

QAlgorithms.Papers.Independent.Bridge50.P05.maximallyMixedReplacement

For a nonzero natural number ddd and any complex matrix XXX indexed by Z/dZ\mathbb Z/d\mathbb ZZ/dZ, this defines

X⟼tr⁡Xd Id.X\longmapsto\frac{\operatorname{tr}X}{d}\,I_d.X⟼dtrX​Id​.

No positivity or trace normalization is assumed for XXX; when d=1d=1d=1, the result equals XXX.

QAlgorithms.Papers.Independent.Bridge50.P05.multiplier

For every natural number d≠0d\ne0d=0 and arbitrary function ϕ:(Z/dZ)2→C\phi:(\mathbb Z/d\mathbb Z)^2\to\mathbb Cϕ:(Z/dZ)2→C, this defines a function on complex matrices indexed by Z/dZ\mathbb Z/d\mathbb ZZ/dZ by

X⟼∑z∈(Z/dZ)2tr⁡(XWz†)d ϕ(z) Wz.X\longmapsto \sum_{z\in(\mathbb Z/d\mathbb Z)^2} \frac{\operatorname{tr}(XW_z^\dagger)}{d}\,\phi(z)\,W_z.X⟼z∈(Z/dZ)2∑​dtr(XWz†​)​ϕ(z)Wz​.

Here, for z=(n,m)z=(n,m)z=(n,m), Wz=Sn0Cm0W_z=S^{n_0}C^{m_0}Wz​=Sn0​Cm0​, with least nonnegative representatives n0,m0n_0,m_0n0​,m0​, shift entries Sab=1S_{ab}=1Sab​=1 when a=b+1a=b+1a=b+1 and zero otherwise, and diagonal entries Caa=exp⁡(2πia0/d)C_{aa}=\exp(2\pi i a_0/d)Caa​=exp(2πia0​/d). The input XXX is arbitrary, the sum includes the zero label, and d=1d=1d=1 is allowed.

QAlgorithms.Papers.Independent.Bridge50.P05.optimizers

For a nonzero natural number ddd and any function ϕ:(Z/dZ)2→C\phi:(\mathbb Z/d\mathbb Z)^2\to\mathbb Cϕ:(Z/dZ)2→C, this defines the set

{z∈(Z/dZ)2:z≠(0,0), ∣ϕ(z)∣2=Mϕ},\{z\in(\mathbb Z/d\mathbb Z)^2:z\ne(0,0),\ |\phi(z)|^2=M_\phi\},{z∈(Z/dZ)2:z=(0,0), ∣ϕ(z)∣2=Mϕ​},

where Mϕ=0M_\phi=0Mϕ​=0 if d=1d=1d=1, and otherwise MϕM_\phiMϕ​ is the maximum of ∣ϕ(z)∣2|\phi(z)|^2∣ϕ(z)∣2 over nonzero labels zzz. Thus the set is empty when d=1d=1d=1; no condition is imposed on ϕ\phiϕ.

QAlgorithms.Papers.Independent.Bridge50.P05.reorderedKraus

For a nonzero natural number ddd, any real function λ:(Z/dZ)2→R\lambda:(\mathbb Z/d\mathbb Z)^2\to\mathbb Rλ:(Z/dZ)2→R, and a label (s,r)∈(Z/dZ)2(s,r)\in(\mathbb Z/d\mathbb Z)^2(s,r)∈(Z/dZ)2, this defines

Rλ,(s,r)=λ(1−r,1−s) W1−r, 1−s.R_{\lambda,(s,r)}=\lambda(1-r,1-s)\,W_{1-r,\,1-s}.Rλ,(s,r)​=λ(1−r,1−s)W1−r,1−s​.

Here Wn,m=Sval⁡(n)Cval⁡(m)W_{n,m}=S^{\operatorname{val}(n)}C^{\operatorname{val}(m)}Wn,m​=Sval(n)Cval(m), with Sa,b=1S_{a,b}=1Sa,b​=1 if a=b+1a=b+1a=b+1 and zero otherwise, and CCC diagonal with entries exp⁡(2πi val⁡(a)/d)\exp(2\pi i\,\operatorname{val}(a)/d)exp(2πival(a)/d); val⁡\operatorname{val}val denotes the standard residue representative. Label arithmetic is modulo ddd, and the scalar is the value of λ\lambdaλ itself, embedded into C\mathbb CC. No positivity or normalization assumption is imposed on λ\lambdaλ, and d=1d=1d=1 is permitted.

QAlgorithms.Papers.Independent.Bridge50.P05.residueSymplectic

For every natural number ddd and labels u=(u1,u2)u=(u_1,u_2)u=(u1​,u2​) and v=(v1,v2)v=(v_1,v_2)v=(v1​,v2​) in (Z/dZ)2(\mathbb Z/d\mathbb Z)^2(Z/dZ)2, this defines the element u1v2−u2v1u_1v_2-u_2v_1u1​v2​−u2​v1​ of Z/dZ\mathbb Z/d\mathbb ZZ/dZ, with all arithmetic performed in that ring. The definition includes d=0d=0d=0, where the arithmetic is integer arithmetic, and d=1d=1d=1, where the result is always zero.

QAlgorithms.Papers.Independent.Bridge50.P05.rotateWeylLabel

For every natural number ddd and every pair z=(n,m)∈(Z/dZ)2z=(n,m)\in(\mathbb Z/d\mathbb Z)^2z=(n,m)∈(Z/dZ)2, this defines its rotated label to be (m,−n)(m,-n)(m,−n), with negation in Z/dZ\mathbb Z/d\mathbb ZZ/dZ. This also includes d=0d=0d=0, for which the coordinate ring is Z\mathbb ZZ, and d=1d=1d=1, for which there is only one label.

QAlgorithms.Papers.Independent.Bridge50.P05.saturationValue

For a nonzero natural number ddd and any function ϕ:(Z/dZ)2→C\phi:(\mathbb Z/d\mathbb Z)^2\to\mathbb Cϕ:(Z/dZ)2→C, this defines the real number

1+(d−1)Mϕd,\frac{\sqrt{1+(d-1)M_\phi}}{\sqrt d},d​1+(d−1)Mϕ​​​,

where Mϕ=0M_\phi=0Mϕ​=0 for d=1d=1d=1, and otherwise Mϕ=max⁡z≠(0,0)∣ϕ(z)∣2M_\phi=\max_{z\ne(0,0)}|\phi(z)|^2Mϕ​=maxz=(0,0)​∣ϕ(z)∣2. In particular, the value is 111 when d=1d=1d=1.

QAlgorithms.Papers.Independent.Bridge50.P05.subgroupTwirl

For a nonzero natural number ddd and any additive subgroup G≤(Z/dZ)2G\le(\mathbb Z/d\mathbb Z)^2G≤(Z/dZ)2, this defines a function on complex matrices indexed by Z/dZ\mathbb Z/d\mathbb ZZ/dZ by

X⟼1d∑z=(z1,z2)∀g∈G, z1g1+z2g2=0UzXUz†,Uz=S(z2)repC(−z1)rep.X\longmapsto\frac1d \sum_{\substack{z=(z_1,z_2)\\ \forall g\in G,\ z_1g_1+z_2g_2=0}} U_zXU_z^\dagger, \qquad U_z=S^{(z_2)_{\mathrm{rep}}}C^{(-z_1)_{\mathrm{rep}}}.X⟼d1​z=(z1​,z2​)∀g∈G, z1​g1​+z2​g2​=0​∑​Uz​XUz†​,Uz​=S(z2​)rep​C(−z1​)rep​.

Here all label arithmetic is modulo ddd, representatives lie in {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}, Sx,y=1S_{x,y}=1Sx,y​=1 if x=y+1x=y+1x=y+1 and 000 otherwise, and CCC is diagonal with Cx,x=exp⁡(2πi xrep/d)C_{x,x}=\exp(2\pi i\,x_{\mathrm{rep}}/d)Cx,x​=exp(2πixrep​/d). The prefactor is 1/d1/d1/d for every GGG, and XXX is arbitrary.

QAlgorithms.Papers.Independent.Bridge50.P05.symbol

For every natural number d≠0d\ne0d=0, arbitrary function Φ\PhiΦ from complex matrices indexed by Z/dZ\mathbb Z/d\mathbb ZZ/dZ to matrices with the same indices, and label z=(n,m)∈(Z/dZ)2z=(n,m)\in(\mathbb Z/d\mathbb Z)^2z=(n,m)∈(Z/dZ)2, this defines the complex number tr⁡(Φ(Wz)Wz†)/d\operatorname{tr}(\Phi(W_z)W_z^\dagger)/dtr(Φ(Wz​)Wz†​)/d. Here Wz=Sn0Cm0W_z=S^{n_0}C^{m_0}Wz​=Sn0​Cm0​, the exponents are the least nonnegative representatives of n,mn,mn,m, Sab=1S_{ab}=1Sab​=1 if a=b+1a=b+1a=b+1 and zero otherwise, and CCC is diagonal with Caa=exp⁡(2πia0/d)C_{aa}=\exp(2\pi i a_0/d)Caa​=exp(2πia0​/d). The function Φ\PhiΦ is not required to be linear or a channel, and d=1d=1d=1 is included.

QAlgorithms.Papers.Independent.Bridge50.P05.twoMap

For a nonzero natural number ddd, an arbitrary additive subgroup G≤(Z/dZ)2G\le(\mathbb Z/d\mathbb Z)^2G≤(Z/dZ)2, and arbitrary complex numbers a,ba,ba,b, this defines

X⟼ad∑z=(z1,z2)∀g∈G, z1g1+z2g2=0UzXUz†+bX+(1−a−b)tr⁡XdId,X\longmapsto \frac{a}{d}\sum_{\substack{z=(z_1,z_2)\\ \forall g\in G,\ z_1g_1+z_2g_2=0}} U_zXU_z^\dagger +bX+(1-a-b)\frac{\operatorname{tr}X}{d}I_d,X⟼da​z=(z1​,z2​)∀g∈G, z1​g1​+z2​g2​=0​∑​Uz​XUz†​+bX+(1−a−b)dtrX​Id​,

for every complex matrix XXX indexed by Z/dZ\mathbb Z/d\mathbb ZZ/dZ. Here Uz=S(z2)repC(−z1)repU_z=S^{(z_2)_{\mathrm{rep}}}C^{(-z_1)_{\mathrm{rep}}}Uz​=S(z2​)rep​C(−z1​)rep​, Sx,yS_{x,y}Sx,y​ is 111 if x=y+1x=y+1x=y+1 and 000 otherwise, and CCC is diagonal with entries exp⁡(2πi xrep/d)\exp(2\pi i\,x_{\mathrm{rep}}/d)exp(2πixrep​/d), using residue representatives in {0,…,d−1}\{0,\ldots,d-1\}{0,…,d−1}. No further condition is imposed on G,a,bG,a,bG,a,b; for d=1d=1d=1, the function is the identity.

QAlgorithms.Papers.Independent.Bridge50.P05.twoSymbol

For a natural number ddd, an additive subgroup G≤(ZMod⁡d)2G\le(\operatorname{ZMod}d)^2G≤(ZModd)2, complex numbers a,ba,ba,b, and a label z∈(ZMod⁡d)2z\in(\operatorname{ZMod}d)^2z∈(ZModd)2, this defines

{1,z=0,a+b,z≠0 and z∈G,b,z∉G.\begin{cases} 1,&z=0,\\ a+b,&z\ne0\text{ and }z\in G,\\ b,&z\notin G. \end{cases}⎩⎨⎧​1,a+b,b,​z=0,z=0 and z∈G,z∈/G.​

The zero-label case takes precedence regardless of a,ba,ba,b. When d=1d=1d=1, the function is identically 111; d=0d=0d=0 is also allowed, with integer-coordinate labels.

QAlgorithms.Papers.Independent.Bridge50.P05.weylConvolution

For every natural number d≠0d\ne0d=0, arbitrary complex-valued functions p,qp,qp,q on (Z/dZ)2(\mathbb Z/d\mathbb Z)^2(Z/dZ)2, and label ggg in that set, this defines their convolution at ggg to be ∑h∈(Z/dZ)2p(h)q(g−h)\sum_{h\in(\mathbb Z/d\mathbb Z)^2}p(h)q(g-h)∑h∈(Z/dZ)2​p(h)q(g−h), where subtraction is coordinatewise modulo ddd. No normalization factor is included. For d=1d=1d=1, this is the product of the two functions’ values at the unique label.

QAlgorithms.Papers.Independent.Bridge50.P05.weylFourierCoefficient

For every natural number d≠0d\ne0d=0, arbitrary complex matrix XXX indexed by Z/dZ\mathbb Z/d\mathbb ZZ/dZ, and label z=(n,m)∈(Z/dZ)2z=(n,m)\in(\mathbb Z/d\mathbb Z)^2z=(n,m)∈(Z/dZ)2, this defines the complex coefficient tr⁡(XWz†)/d\operatorname{tr}(XW_z^\dagger)/dtr(XWz†​)/d. Here †\dagger† denotes conjugate transpose, Wz=Sn0Cm0W_z=S^{n_0}C^{m_0}Wz​=Sn0​Cm0​, n0,m0n_0,m_0n0​,m0​ are the least nonnegative representatives of n,mn,mn,m, SabS_{ab}Sab​ is 111 when a=b+1a=b+1a=b+1 and zero otherwise, and CCC is diagonal with Caa=exp⁡(2πia0/d)C_{aa}=\exp(2\pi i a_0/d)Caa​=exp(2πia0​/d), where a0a_0a0​ represents aaa. No restriction is imposed on XXX.

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