Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Introduction to representations of the canonical commutation and anticommutation relations

Definition
QAlgorithms_Papers_Independent_Intake100_P23

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

prove2quantum

The objects the formalized statements of Introduction to representations of the canonical commutation and anticommutation relations (arXiv:math-ph/0511030) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • IsCCR: PDF p.9, (9): unitary Weyl representation with the source's minus sign.
  • Antisymmetric: PDF pp.6,9: antisymmetry of the real bilinear form, without nondegeneracy.
  • FormNondegenerate: PDF p.6: nondegeneracy tests every vector in the first argument.
  • WeylRegular: PDF p.10: strong continuity along every real one-parameter subgroup.
  • HilbertIrreducible: PDF pp.10,15: no nontrivial closed complex invariant subspace.
  • Cyclic: PDF p.10: density of the complex linear span of the Weyl orbit.
  • GaussianCharacteristic: PDF p.38, (70): symmetric covariance and its Gaussian characteristic function. The equation at zero forces normalization; no positivity assumption is added.
  • QuasiFreeCCR: PDF p.38: existence of a cyclic quasi-free vector.
  • EquivalentCCR: PDF p.10: unitary equivalence between possibly different representation spaces.
  • SamePhase: PDF pp.13,17: equality modulo a scalar of absolute value one.
  • PreservesWeylForm: PDF pp.6,13: preservation of the specified real bilinear form.
  • ImplementsCCR: PDF p.13, (23): U implements the specified transformation.
  • canonicalPlane: PDF pp.1,11, (16): one-degree canonical symplectic form.
  • IsCAR: PDF p.14, (25)--(26): real linearity, self-adjointness, and factor-2 CAR. Continuity of the label map is a consequence, not an input assumption.
  • EquivalentCAR: PDF p.15: equivalence intertwines all bounded CAR fields.
  • ConjugatesCAR: PDF p.17, (32): implementation of an orthogonal transformation.
  • tensorOperator: PDF p.7: bounded tensor action on the completed Hilbert tensor product. The canonical completion embedding is uniformly inducing and has dense range, so this extension uses its actual branch rather than the zero default.
  • sumForm: PDF p.10: direct-sum bilinear form.
  • spinX: PDF p.16: sigma_1 entries in the ordered basis (false,true).
  • pauliYEntry: PDF p.16: the accepted Pauli Y matrix reindexed by false=0, true=1. Its upper-right entry is -i and lower-left entry is +i.
  • pauliZEntry: PDF p.16: sigma_3 entries diag(1,-1).
  • jordanWignerEven: PDF p.16: ordered Jordan-Wigner generators on the n-fold qubit tensor basis.
  • jordanWignerParity: PDF p.16: I_n is the product of sigma_3 in all n slots; I_0 is 1.
  • jordanWignerOdd: PDF p.16: add the specified signed parity as the last odd-dimensional generator.
  • MatrixCAR: PDF p.14: the finite tuple form of CAR, equivalent to its real-linear extension.
  • pairFirst: PDF p.38: first index of pair j, converted from one-based source notation.
  • pairSecond: PDF p.38: second index of pair j.
  • pairings: PDF pp.38,46: pairings have ordered entries and ordered first elements.
  • carMoment: PDF p.46: ordered field moments; the product acts on the ket from the right.
  • FermionicQuasiFree: PDF p.46: fermionic Wick rule, with the normalized-state convention explicitly correcting the source's omission. Without normalization, zero would satisfy Wick.
  • carCovariance: PDF p.46, (83): real covariance extracted from 1/i times the commutator moment.
  • decompositionPlus: PDF p.61: the complex part of the closed real subspace.
  • decompositionMinus: PDF p.61: the complex part of its real orthogonal complement.
  • decompositionOne: PDF p.61: the two real orthogonal summands defining W_1.
  • decompositionZero: PDF p.61: W_0 is the complement of W_+, W_-, and W_1. The printed final W_0 on the right is corrected to W_1, as forced by the subsequent decompositions. This source correction awaits independent moderation.
  • decompositionPieces: PDF p.61: components in the displayed order W_+, W_0, W_1, W_-.
  • ComplexInvariant: PDF p.61: a real subspace is also complex when stable under multiplication by i.
  • GeneralPositionIn: PDF p.61: general position inside a specified complex ambient subspace; all complements are taken inside that ambient subspace.
  • MultiplicityHilbert: PDF pp.12,17: a Hilbert space used as an existential multiplicity witness. The carrier is arbitrary and may be zero; this bundle contains no representation or theorem-specific equations.
  • scalarHilbertSpace: Sanity: the scalar multiplicity space is a genuine bundled Hilbert space.
  • OperatorCAR: PDF pp.14,17: bounded tuple CAR, with no finite-dimensionality restriction on H.
Definition code
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P41
import Definitions.Def_QAlgorithms_Papers_Independent_Renew46_P03

/-!
Statements from Jan Derezinski, arXiv:math-ph/0511030v2.
Arbitrary complex Hilbert spaces, first-conjugate-linear inner products.
Compilation and independent moderation are pending the batch handoff.
-/

noncomputable section

open scoped BigOperators

namespace QAlgorithms.Papers.Independent.Intake100.P23

open QAlgorithms.Papers.Independent.Renew46.P03 (tensorVector)

variable {Y : Type*} [AddCommGroup Y] [Module ℝ Y]
variable {H : Type*} [NormedAddCommGroup H] [InnerProductSpace ℂ H] [CompleteSpace H]

/-- PDF p.9, (9): unitary Weyl representation with the source's minus sign. -/
def IsCCR (omega : Y →ₗ[ℝ] Y →ₗ[ℝ] ℝ) (W : Y → H →L[ℂ] H) : Prop :=
  (∀ y, W y ∈ unitary (H →L[ℂ] H)) ∧
  ∀ y z, W y * W z = Complex.exp (-Complex.I * (omega y z : ℂ) / 2) • W (y + z)

/-- PDF pp.6,9: antisymmetry of the real bilinear form, without nondegeneracy. -/
def Antisymmetric (omega : Y →ₗ[ℝ] Y →ₗ[ℝ] ℝ) : Prop :=
  ∀ y z, omega y z = -omega z y

/-- PDF p.6: nondegeneracy tests every vector in the first argument. -/
def FormNondegenerate (omega : Y →ₗ[ℝ] Y →ₗ[ℝ] ℝ) : Prop :=
  ∀ z, (∀ y, omega y z = 0) → z = 0

/-- PDF p.10: strong continuity along every real one-parameter subgroup. -/
def WeylRegular (W : Y → H →L[ℂ] H) : Prop :=
  ∀ y v, Continuous (fun t : ℝ => W (t • y) v)

/-- PDF pp.10,15: no nontrivial closed complex invariant subspace. -/
def HilbertIrreducible (F : Y → H →L[ℂ] H) : Prop :=
  ∀ V : Submodule ℂ H, IsClosed (V : Set H) →
    (∀ y v, v ∈ V → F y v ∈ V) → V = ⊥ ∨ V = ⊤

/-- PDF p.10: density of the complex linear span of the Weyl orbit. -/
def Cyclic (W : Y → H →L[ℂ] H) (v : H) : Prop :=
  Dense (Submodule.span ℂ (Set.range (fun y => W y v)) : Set H)

/-- PDF p.38, (70): symmetric covariance and its Gaussian characteristic function.
The equation at zero forces normalization; no positivity assumption is added. -/
def GaussianCharacteristic (W : Y → H →L[ℂ] H) (v : H)
    (eta : Y →ₗ[ℝ] Y →ₗ[ℝ] ℝ) : Prop :=
  (∀ y z, eta y z = eta z y) ∧
  ∀ y, inner ℂ v (W y v) = Complex.exp (-(eta y y : ℂ) / 4)

/-- PDF p.38: existence of a cyclic quasi-free vector. -/
def QuasiFreeCCR (W : Y → H →L[ℂ] H) : Prop :=
  ∃ v eta, Cyclic W v ∧ GaussianCharacteristic W v eta

/-- PDF p.10: unitary equivalence between possibly different representation spaces. -/
def EquivalentCCR {H2 : Type*} [NormedAddCommGroup H2] [InnerProductSpace ℂ H2]
    (W1 : Y → H →L[ℂ] H) (W2 : Y → H2 →L[ℂ] H2) : Prop :=
  ∃ U : H ≃ₗᵢ[ℂ] H2, ∀ y v, U (W1 y v) = W2 y (U v)

/-- PDF pp.13,17: equality modulo a scalar of absolute value one. -/
def SamePhase (U V : H →L[ℂ] H) : Prop :=
  ∃ c : ℂ, ‖c‖ = 1 ∧ V = c • U

/-- PDF pp.6,13: preservation of the specified real bilinear form. -/
def PreservesWeylForm (omega : Y →ₗ[ℝ] Y →ₗ[ℝ] ℝ) (r : Y → Y) : Prop :=
  ∀ y z, omega (r y) (r z) = omega y z

/-- PDF p.13, (23): U implements the specified transformation. -/
def ImplementsCCR (W : Y → H →L[ℂ] H) (r : Y → Y) (U : H →L[ℂ] H) : Prop :=
  ∀ y, U * W y * star U = W (r y)

/-- PDF pp.1,11, (16): one-degree canonical symplectic form. -/
def canonicalPlane : (ℝ × ℝ) →ₗ[ℝ] (ℝ × ℝ) →ₗ[ℝ] ℝ where
  toFun u :=
    { toFun := fun v => u.1 * v.2 - v.1 * u.2
      map_add' := by intros; dsimp; ring
      map_smul' := by intros; dsimp; ring }
  map_add' u v := by
    apply LinearMap.ext
    intro w
    change (u.1 + v.1) * w.2 - w.1 * (u.2 + v.2) =
      (u.1 * w.2 - w.1 * u.2) + (v.1 * w.2 - w.1 * v.2)
    ring
  map_smul' t u := by
    apply LinearMap.ext
    intro w
    change (t * u.1) * w.2 - w.1 * (t * u.2) =
      t * (u.1 * w.2 - w.1 * u.2)
    ring

/-- Sanity: the coordinate pair has symplectic pairing +1. -/
example : canonicalPlane (1, 0) (0, 1) = 1 := by norm_num [canonicalPlane]

/-- Sanity: zero form and identity unitaries satisfy the Weyl definition. -/
example : IsCCR (0 : Y →ₗ[ℝ] Y →ₗ[ℝ] ℝ) (fun _ => (1 : H →L[ℂ] H)) := by
  constructor
  · intro y; exact one_mem _
  · intro y z; simp

/-- Sanity: the identity belongs to its own scalar phase class. -/
example : SamePhase (1 : H →L[ℂ] H) 1 := by
  exact ⟨1, by simp, by simp⟩

section CAR

variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E]

/-- PDF p.14, (25)--(26): real linearity, self-adjointness, and factor-2 CAR.
Continuity of the label map is a consequence, not an input assumption. -/
def IsCAR (phi : E → H →L[ℂ] H) : Prop :=
  (∀ x y, phi (x + y) = phi x + phi y) ∧
  (∀ (t : ℝ) x, phi (t • x) = t • phi x) ∧
  (∀ x, star (phi x) = phi x) ∧
  ∀ x y, phi x * phi y + phi y * phi x = (2 * (inner ℝ x y : ℂ)) • (1 : H →L[ℂ] H)

/-- PDF p.15: equivalence intertwines all bounded CAR fields. -/
def EquivalentCAR {H2 : Type*} [NormedAddCommGroup H2] [InnerProductSpace ℂ H2]
    (phi1 : E → H →L[ℂ] H) (phi2 : E → H2 →L[ℂ] H2) : Prop :=
  ∃ U : H ≃ₗᵢ[ℂ] H2, ∀ y v, U (phi1 y v) = phi2 y (U v)

/-- PDF p.17, (32): implementation of an orthogonal transformation. -/
def ConjugatesCAR (phi : E → H →L[ℂ] H) (r : E → E) (U : H →L[ℂ] H) : Prop :=
  ∀ y, U * phi y * star U = phi (r y)

/-- Sanity: the scalar one-generator CAR has the source's factor 2. -/
example (x y : ℝ) :
    (x : ℂ) * (y : ℂ) + (y : ℂ) * (x : ℂ) = 2 * ((x * y : ℝ) : ℂ) := by
  push_cast
  ring

end CAR

section CompletedTensor

variable {H1 H2 : Type*}
variable [NormedAddCommGroup H1] [InnerProductSpace ℂ H1] [CompleteSpace H1]
variable [NormedAddCommGroup H2] [InnerProductSpace ℂ H2] [CompleteSpace H2]

/-- PDF p.7: bounded tensor action on the completed Hilbert tensor product.
The canonical completion embedding is uniformly inducing and has dense range,
so this extension uses its actual branch rather than the zero default. -/
def tensorOperator (A : H1 →L[ℂ] H1) (B : H2 →L[ℂ] H2) :
    UniformSpace.Completion (TensorProduct ℂ H1 H2) →L[ℂ]
      UniformSpace.Completion (TensorProduct ℂ H1 H2) :=
  ((UniformSpace.Completion.toComplL : TensorProduct ℂ H1 H2 →L[ℂ]
      UniformSpace.Completion (TensorProduct ℂ H1 H2)).comp (TensorProduct.mapL A B)).extend
    UniformSpace.Completion.toComplL

/-- Sanity: completed tensor action has the prescribed simple-tensor values. -/
example (A : H1 →L[ℂ] H1) (B : H2 →L[ℂ] H2) (x : H1) (y : H2) :
    tensorOperator A B ((TensorProduct.tmul ℂ x y : TensorProduct ℂ H1 H2) :
      UniformSpace.Completion (TensorProduct ℂ H1 H2)) =
    ((TensorProduct.tmul ℂ (A x) (B y) : TensorProduct ℂ H1 H2) :
      UniformSpace.Completion (TensorProduct ℂ H1 H2)) := by
  exact ContinuousLinearMap.extend_eq _ UniformSpace.Completion.denseRange_coe
    (UniformSpace.Completion.isUniformInducing_coe _) _

/-- PDF p.10: direct-sum bilinear form. -/
def sumForm {Y1 Y2 : Type*} [AddCommGroup Y1] [Module ℝ Y1]
    [AddCommGroup Y2] [Module ℝ Y2]
    (a : Y1 →ₗ[ℝ] Y1 →ₗ[ℝ] ℝ) (b : Y2 →ₗ[ℝ] Y2 →ₗ[ℝ] ℝ) :
    (Y1 × Y2) →ₗ[ℝ] (Y1 × Y2) →ₗ[ℝ] ℝ where
  toFun u :=
    { toFun := fun v => a u.1 v.1 + b u.2 v.2
      map_add' := by intros; simp; abel
      map_smul' := by intros; simp; ring }
  map_add' u v := by
    apply LinearMap.ext
    intro w
    change a (u.1 + v.1) w.1 + b (u.2 + v.2) w.2 =
      (a u.1 w.1 + b u.2 w.2) + (a v.1 w.1 + b v.2 w.2)
    simp only [map_add, LinearMap.add_apply]
    ring
  map_smul' t u := by
    apply LinearMap.ext
    intro w
    change a (t • u.1) w.1 + b (t • u.2) w.2 =
      t * (a u.1 w.1 + b u.2 w.2)
    simp only [map_smul, LinearMap.smul_apply, smul_eq_mul]
    ring

/-- Sanity: the direct sum of zero forms has zero pairing. -/
example (u v : Y × Y) : sumForm (0 : Y →ₗ[ℝ] Y →ₗ[ℝ] ℝ) 0 u v = 0 := by
  simp [sumForm]

end CompletedTensor

section Projections

open scoped ClosedSubmodule

end Projections

section FiniteCAR

/-- PDF p.16: sigma_1 entries in the ordered basis (false,true). -/
def spinX (s t : Bool) : ℂ := if s = t then 0 else 1

/-- PDF p.16: the accepted Pauli Y matrix reindexed by false=0, true=1.
Its upper-right entry is -i and lower-left entry is +i. -/
def pauliYEntry (s t : Bool) : ℂ :=
  QAlgorithms.Papers.Independent.Dependency50.P41.spinY
    (if s then 1 else 0) (if t then 1 else 0)

/-- PDF p.16: sigma_3 entries diag(1,-1). -/
def pauliZEntry (s t : Bool) : ℂ := if s = t then (if s then -1 else 1) else 0

/-- PDF p.16: ordered Jordan-Wigner generators on the n-fold qubit tensor basis. -/
def jordanWignerEven (n : ℕ) (k : Fin (2 * n)) :
    Matrix (Fin n → Bool) (Fin n → Bool) ℂ := fun s t =>
  ∏ j : Fin n,
    if j.val < k.val / 2 then pauliZEntry (s j) (t j)
    else if j.val = k.val / 2 then
      if k.val % 2 = 0 then spinX (s j) (t j) else pauliYEntry (s j) (t j)
    else if s j = t j then 1 else 0

/-- PDF p.16: I_n is the product of sigma_3 in all n slots; I_0 is 1. -/
def jordanWignerParity (n : ℕ) : Matrix (Fin n → Bool) (Fin n → Bool) ℂ :=
  fun s t => ∏ j : Fin n, pauliZEntry (s j) (t j)

/-- PDF p.16: add the specified signed parity as the last odd-dimensional generator. -/
def jordanWignerOdd (n : ℕ) (c : ℂ) (k : Fin (2 * n + 1)) :
    Matrix (Fin n → Bool) (Fin n → Bool) ℂ :=
  if h : k.val < 2 * n then jordanWignerEven n ⟨k.val, h⟩ else c • jordanWignerParity n

/-- PDF p.14: the finite tuple form of CAR, equivalent to its real-linear extension. -/
def MatrixCAR {d : ℕ} {B : Type*} [Fintype B] [DecidableEq B]
    (G : Fin d → Matrix B B ℂ) : Prop :=
  (∀ k, (G k).conjTranspose = G k) ∧
  ∀ k l, G k * G l + G l * G k = if k = l then (2 : ℂ) • (1 : Matrix B B ℂ) else 0

/-- Sanity: the sigma_2 upper-right sign is exactly the printed sign. -/
example : pauliYEntry false true = -Complex.I := rfl

/-- Sanity: the vacuum tensor power has I_0=1, including its unique matrix entry. -/
example (s t : Fin 0 → Bool) : jordanWignerParity 0 s t = 1 := by
  simp [jordanWignerParity]

end FiniteCAR

section FermionicCovariance

variable {E : Type*} [NormedAddCommGroup E] [InnerProductSpace ℝ E] [CompleteSpace E]

/-- PDF p.38: first index of pair j, converted from one-based source notation. -/
def pairFirst {m : ℕ} (j : Fin m) : Fin (2 * m) := ⟨2 * j.val, by omega⟩

/-- PDF p.38: second index of pair j. -/
def pairSecond {m : ℕ} (j : Fin m) : Fin (2 * m) := ⟨2 * j.val + 1, by omega⟩

/-- PDF pp.38,46: pairings have ordered entries and ordered first elements. -/
def pairings (m : ℕ) : Finset (Equiv.Perm (Fin (2 * m))) := by
  classical
  exact Finset.univ.filter (fun s =>
    (∀ j : Fin m, s (pairFirst j) < s (pairSecond j)) ∧
      ∀ j k : Fin m, j < k → s (pairFirst j) < s (pairFirst k))

/-- PDF p.46: ordered field moments; the product acts on the ket from the right. -/
def carMoment (phi : E → H →L[ℂ] H) (v : H) {n : ℕ} (ys : Fin n → E) : ℂ :=
  inner ℂ v (((List.ofFn (fun j => phi (ys j))).prod) v)

/-- PDF p.46: fermionic Wick rule, with the normalized-state convention explicitly
correcting the source's omission. Without normalization, zero would satisfy Wick. -/
def FermionicQuasiFree (phi : E → H →L[ℂ] H) (v : H) : Prop :=
  ‖v‖ = 1 ∧
  (∀ m : ℕ, 0 < m → ∀ ys : Fin (2 * m - 1) → E, carMoment phi v ys = 0) ∧
  ∀ m : ℕ, 0 < m → ∀ ys : Fin (2 * m) → E,
    carMoment phi v ys = ∑ s ∈ pairings m,
      ((s.sign : ℤ) : ℂ) * ∏ j : Fin m,
        inner ℂ v ((phi (ys (s (pairFirst j))) * phi (ys (s (pairSecond j)))) v)

/-- PDF p.46, (83): real covariance extracted from 1/i times the commutator moment. -/
def carCovariance (phi : E → H →L[ℂ] H) (v : H) (x y : E) : ℝ :=
  (-Complex.I * inner ℂ v ((phi x * phi y - phi y * phi x) v)).re

/-- Sanity: the empty ordered product has moment equal to the squared norm. -/
example (phi : E → H →L[ℂ] H) (v : H) (ys : Fin 0 → E) :
    carMoment phi v ys = inner ℂ v v := by simp [carMoment]

/-- Sanity: the covariance at two identical labels vanishes. -/
example (phi : E → H →L[ℂ] H) (v : H) (x : E) : carCovariance phi v x x = 0 := by
  simp [carCovariance]

end FermionicCovariance

section FourPartDecomposition

open scoped ClosedSubmodule

variable {F : Type*} [NormedAddCommGroup F] [InnerProductSpace ℂ F] [CompleteSpace F]

/-- PDF p.61: the complex part of the closed real subspace. -/
def decompositionPlus (V : ClosedSubmodule ℝ F) := V ⊓ V.mulI

/-- PDF p.61: the complex part of its real orthogonal complement. -/
def decompositionMinus (V : ClosedSubmodule ℝ F) := Vᗮ ⊓ V.mulIᗮ

/-- PDF p.61: the two real orthogonal summands defining W_1. -/
def decompositionOne (V : ClosedSubmodule ℝ F) :=
  (V ⊓ V.symplComp) ⊔ (V.mulI ⊓ Vᗮ)

/-- PDF p.61: W_0 is the complement of W_+, W_-, and W_1.
The printed final W_0 on the right is corrected to W_1, as forced by the
subsequent decompositions. This source correction awaits independent moderation. -/
def decompositionZero (V : ClosedSubmodule ℝ F) :=
  (decompositionPlus V ⊔ decompositionMinus V ⊔ decompositionOne V)ᗮ

/-- PDF p.61: components in the displayed order W_+, W_0, W_1, W_-. -/
def decompositionPieces (V : ClosedSubmodule ℝ F) : Fin 4 → ClosedSubmodule ℝ F :=
  ![decompositionPlus V, decompositionZero V, decompositionOne V, decompositionMinus V]

/-- PDF p.61: a real subspace is also complex when stable under multiplication by i. -/
def ComplexInvariant (V : ClosedSubmodule ℝ F) : Prop :=
  ∀ x : F, x ∈ V → Complex.I • x ∈ V

/-- PDF p.61: general position inside a specified complex ambient subspace;
all complements are taken inside that ambient subspace. -/
def GeneralPositionIn (A B : ClosedSubmodule ℝ F) : Prop :=
  A ≤ B ∧ A ⊓ A.mulI = ⊥ ∧
    (B ⊓ Aᗮ) ⊓ (B ⊓ A.mulIᗮ) = ⊥ ∧ (B ⊓ Aᗮ) ⊓ A.mulI = ⊥

/-- Sanity: the zero real subspace has no W_+ component. -/
example : decompositionPlus (⊥ : ClosedSubmodule ℝ F) = ⊥ := by
  simp [decompositionPlus]

end FourPartDecomposition

section FiniteMultiplicity

universe u

/-- PDF pp.12,17: a Hilbert space used as an existential multiplicity witness.
The carrier is arbitrary and may be zero; this bundle contains no representation
or theorem-specific equations. -/
structure MultiplicityHilbert where
  carrier : Type u
  [normed : NormedAddCommGroup carrier]
  [inner : InnerProductSpace ℂ carrier]
  [complete : CompleteSpace carrier]

attribute [instance] MultiplicityHilbert.normed MultiplicityHilbert.inner MultiplicityHilbert.complete

/-- Sanity: the scalar multiplicity space is a genuine bundled Hilbert space. -/
def scalarHilbertSpace : MultiplicityHilbert where
  carrier := ℂ
  normed := inferInstance
  inner := inferInstance
  complete := inferInstance

example : scalarHilbertSpace.carrier = ℂ := rfl

/-- Sanity: a pure tensor with a zero factor is zero after completion. -/
example {A B : Type*} [NormedAddCommGroup A] [InnerProductSpace ℂ A]
    [NormedAddCommGroup B] [InnerProductSpace ℂ B] (y : B) :
    tensorVector (0 : A) y = 0 := by simp [tensorVector]

/-- PDF pp.14,17: bounded tuple CAR, with no finite-dimensionality restriction on H. -/
def OperatorCAR {d : ℕ} (G : Fin d → H →L[ℂ] H) : Prop :=
  (∀ k, star (G k) = G k) ∧
  ∀ k l, G k * G l + G l * G k = if k = l then (2 : ℂ) • (1 : H →L[ℂ] H) else 0

end FiniteMultiplicity

end QAlgorithms.Papers.Independent.Intake100.P23
Source
Introduction to representations of the canonical commutation and anticommutation relations, arXiv:math-ph/0511030v2, https://arxiv.org/abs/math-ph/0511030v2
Read-back

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

QAlgorithms.Papers.Independent.Intake100.P23.Antisymmetric

For a real vector space YYY and a real bilinear form ω:Y×Y→R\omega:Y\times Y\to\mathbb Rω:Y×Y→R, this condition means that ω(y,z)=−ω(z,y)\omega(y,z)=-\omega(z,y)ω(y,z)=−ω(z,y) for every y,z∈Yy,z\in Yy,z∈Y, including equal or zero arguments.

QAlgorithms.Papers.Independent.Intake100.P23.ComplexInvariant

For a closed real linear subspace VVV of the ambient complex inner product space FFF, this predicate means that every x∈Fx\in Fx∈F satisfying x∈Vx\in Vx∈V also satisfies ix∈Vix\in Vix∈V. The zero subspace is included.

QAlgorithms.Papers.Independent.Intake100.P23.ConjugatesCAR

For a real inner product space EEE, a complex Hilbert space HHH, a function ϕ:E→B(H)\phi:E\to\mathcal B(H)ϕ:E→B(H), an arbitrary function r:E→Er:E\to Er:E→E, and a bounded complex-linear operator U:H→HU:H\to HU:H→H, this predicate means that Uϕ(y)U∗=ϕ(r(y))U\phi(y)U^*=\phi(r(y))Uϕ(y)U∗=ϕ(r(y)) for every y∈Ey\in Ey∈E. It does not itself require UUU to be unitary, rrr to be linear or invertible, or ϕ\phiϕ to satisfy anticommutation relations.

QAlgorithms.Papers.Independent.Intake100.P23.Cyclic

For a real vector space YYY, a complex inner product space HHH, a family WyW_yWy​ of bounded complex linear operators on HHH, and a vector v∈Hv\in Hv∈H, this condition means that the complex linear span of {Wyv:y∈Y}\{W_yv:y\in Y\}{Wy​v:y∈Y} is dense in HHH in the norm topology. There is no normalization requirement on vvv; the choice v=0v=0v=0 satisfies this condition exactly when H={0}H=\{0\}H={0}.

QAlgorithms.Papers.Independent.Intake100.P23.EquivalentCAR

Let EEE be a real inner product space, let HHH and H2H_2H2​ be complex inner product spaces with normed additive group structures, and let ϕ1:E→B(H)\phi_1:E\to\mathcal B(H)ϕ1​:E→B(H) and ϕ2:E→B(H2)\phi_2:E\to\mathcal B(H_2)ϕ2​:E→B(H2​) be functions into bounded complex-linear operators. This predicate means that there exists a surjective complex-linear isometry U:H→H2U:H\to H_2U:H→H2​ such that U(ϕ1(y)v)=ϕ2(y)(Uv)U(\phi_1(y)v)=\phi_2(y)(Uv)U(ϕ1​(y)v)=ϕ2​(y)(Uv) for every y∈Ey\in Ey∈E and v∈Hv\in Hv∈H. The predicate itself does not require either family to satisfy anticommutation relations, and does not assume that H2H_2H2​ is complete or nonzero.

QAlgorithms.Papers.Independent.Intake100.P23.EquivalentCCR

For a real vector space YYY, complex inner product spaces HHH and H2H_2H2​ with their normed additive structures, and families W1,yW_{1,y}W1,y​ and W2,yW_{2,y}W2,y​ of bounded complex linear operators on HHH and H2H_2H2​, respectively, this condition means that there exists a bijective complex linear isometry U:H→H2U:H\to H_2U:H→H2​ such that

U(W1,yv)=W2,y(Uv)for every y∈Y and v∈H.U(W_{1,y}v)=W_{2,y}(Uv) \qquad\text{for every }y\in Y\text{ and }v\in H.U(W1,y​v)=W2,y​(Uv)for every y∈Y and v∈H.

No completeness or separability assumption on H2H_2H2​ is included, and neither family is separately required to satisfy a commutation relation.

QAlgorithms.Papers.Independent.Intake100.P23.FermionicQuasiFree

For a map ϕ:E→LC(H,H)\phi:E\to\mathcal L_{\mathbb C}(H,H)ϕ:E→LC​(H,H) and a vector vvv in the ambient complex inner-product space HHH, this predicate requires ∥v∥=1\|v\|=1∥v∥=1, requires

⟨v,ϕ(y0)⋯ϕ(y2m−2)v⟩=0\left\langle v,\phi(y_0)\cdots\phi(y_{2m-2})v\right\rangle=0⟨v,ϕ(y0​)⋯ϕ(y2m−2​)v⟩=0

for every positive integer mmm and every sequence of 2m−12m-12m−1 elements of EEE, and requires

⟨v,ϕ(y0)⋯ϕ(y2m−1)v⟩=∑s∈Pmsgn⁡(s)∏j=0m−1⟨v,ϕ(ys(2j))ϕ(ys(2j+1))v⟩\left\langle v,\phi(y_0)\cdots\phi(y_{2m-1})v\right\rangle = \sum_{s\in\mathcal P_m}\operatorname{sgn}(s) \prod_{j=0}^{m-1} \left\langle v,\phi(y_{s(2j)})\phi(y_{s(2j+1)})v\right\rangle⟨v,ϕ(y0​)⋯ϕ(y2m−1​)v⟩=s∈Pm​∑​sgn(s)j=0∏m−1​⟨v,ϕ(ys(2j)​)ϕ(ys(2j+1)​)v⟩

for every positive integer mmm and every sequence of 2m2m2m elements of EEE. Here Pm\mathcal P_mPm​ consists precisely of permutations of {0,…,2m−1}\{0,\ldots,2m-1\}{0,…,2m−1} satisfying s(2j)<s(2j+1)s(2j)<s(2j+1)s(2j)<s(2j+1) for every jjj and s(2j)<s(2k)s(2j)<s(2k)s(2j)<s(2k) whenever j<kj<kj<k, and their signs are regarded as complex numbers. Operator products act from right to left. The moment conditions quantify only over positive mmm; the zero-length moment equals 111 by normalization.

QAlgorithms.Papers.Independent.Intake100.P23.FormNondegenerate

For a real vector space YYY and a real bilinear form ω:Y×Y→R\omega:Y\times Y\to\mathbb Rω:Y×Y→R, this condition means that, for every z∈Yz\in Yz∈Y, if ω(y,z)=0\omega(y,z)=0ω(y,z)=0 for every y∈Yy\in Yy∈Y, then z=0z=0z=0. Thus the condition concerns vanishing with zzz in the second argument; no symmetry or antisymmetry assumption is included. It also allows the zero vector space.

QAlgorithms.Papers.Independent.Intake100.P23.GaussianCharacteristic

For a real vector space YYY, a complex inner product space HHH, a family WyW_yWy​ of bounded complex linear operators on HHH, a vector v∈Hv\in Hv∈H, and a real bilinear form η:Y×Y→R\eta:Y\times Y\to\mathbb Rη:Y×Y→R, this condition means that η(y,z)=η(z,y)\eta(y,z)=\eta(z,y)η(y,z)=η(z,y) for every y,z∈Yy,z\in Yy,z∈Y and

⟨v,Wyv⟩=e−η(y,y)/4for every y∈Y,\langle v,W_yv\rangle=e^{-\eta(y,y)/4} \qquad\text{for every }y\in Y,⟨v,Wy​v⟩=e−η(y,y)/4for every y∈Y,

where the complex inner product is conjugate linear in its first argument. No positivity assumption on η\etaη, normalization assumption on vvv, or unitarity assumption on WyW_yWy​ is included.

QAlgorithms.Papers.Independent.Intake100.P23.GeneralPositionIn

For closed real linear subspaces A,BA,BA,B of the ambient complex inner product space FFF, this predicate is the conjunction

A⊆B,A∩iA={0},(B∩A⊥)∩(B∩(iA)⊥)={0},(B∩A⊥)∩iA={0}.A\subseteq B,\qquad A\cap iA=\{0\},\qquad (B\cap A^\perp)\cap(B\cap(iA)^\perp)=\{0\},\qquad (B\cap A^\perp)\cap iA=\{0\}.A⊆B,A∩iA={0},(B∩A⊥)∩(B∩(iA)⊥)={0},(B∩A⊥)∩iA={0}.

Here iA={ix:x∈A}iA=\{ix:x\in A\}iA={ix:x∈A}, and orthogonal complements use the real inner product. No nonzero-dimensionality condition is imposed; in particular, A=B={0}A=B=\{0\}A=B={0} satisfies these conditions.

QAlgorithms.Papers.Independent.Intake100.P23.HilbertIrreducible

For a real vector space YYY, a complex inner product space HHH, and a family FyF_yFy​ of bounded complex linear operators on HHH, this condition means that every complex linear subspace V⊆HV\subseteq HV⊆H which is closed in the norm topology and satisfies Fyv∈VF_yv\in VFy​v∈V for all y∈Yy\in Yy∈Y and all v∈Vv\in Vv∈V is either {0}\{0\}{0} or HHH. The zero space H={0}H=\{0\}H={0} is permitted.

QAlgorithms.Papers.Independent.Intake100.P23.ImplementsCCR

For a real vector space YYY, a complex inner product space HHH, a family WyW_yWy​ of bounded complex linear operators on HHH, a function r:Y→Yr:Y\to Yr:Y→Y, and a bounded complex linear operator UUU on HHH, this condition means that

UWyU∗=Wr(y)for every y∈Y,UW_yU^*=W_{r(y)} \qquad\text{for every }y\in Y,UWy​U∗=Wr(y)​for every y∈Y,

where U∗U^*U∗ is the adjoint of UUU and multiplication denotes composition. No unitarity assumption on UUU, linearity assumption on rrr, or commutation relation for WWW is included.

QAlgorithms.Papers.Independent.Intake100.P23.IsCAR

For a real inner product space EEE, a complex Hilbert space HHH, and a function ϕ:E→B(H)\phi:E\to\mathcal B(H)ϕ:E→B(H) taking values in bounded complex-linear operators, this predicate means that ϕ(x+y)=ϕ(x)+ϕ(y)\phi(x+y)=\phi(x)+\phi(y)ϕ(x+y)=ϕ(x)+ϕ(y) for every x,y∈Ex,y\in Ex,y∈E, ϕ(tx)=tϕ(x)\phi(tx)=t\phi(x)ϕ(tx)=tϕ(x) for every t∈Rt\in\mathbb Rt∈R and x∈Ex\in Ex∈E, ϕ(x)∗=ϕ(x)\phi(x)^*=\phi(x)ϕ(x)∗=ϕ(x) for every x∈Ex\in Ex∈E, and ϕ(x)ϕ(y)+ϕ(y)ϕ(x)=2⟨x,y⟩RIH\phi(x)\phi(y)+\phi(y)\phi(x)=2\langle x,y\rangle_{\mathbb R}I_Hϕ(x)ϕ(y)+ϕ(y)ϕ(x)=2⟨x,y⟩R​IH​ for every x,y∈Ex,y\in Ex,y∈E, with the real scalar regarded as complex. It imposes no separate continuity requirement on the function ϕ\phiϕ, and permits zero-dimensional spaces.

QAlgorithms.Papers.Independent.Intake100.P23.IsCCR

For a real vector space YYY, a complex inner product space HHH, a real bilinear form ω:Y×Y→R\omega:Y\times Y\to\mathbb Rω:Y×Y→R, and a family WyW_yWy​ of bounded complex linear operators on HHH, this condition means that every WyW_yWy​ is unitary and, for all y,z∈Yy,z\in Yy,z∈Y,

WyWz=e−iω(y,z)/2Wy+z.W_yW_z=e^{-i\omega(y,z)/2}W_{y+z}.Wy​Wz​=e−iω(y,z)/2Wy+z​.

Operator multiplication denotes composition. No antisymmetry or nondegeneracy condition on ω\omegaω is included.

QAlgorithms.Papers.Independent.Intake100.P23.MatrixCAR

For any natural number ddd, any finite index type BBB equipped with decidable equality, and any family G0,…,Gd−1G_0,\ldots,G_{d-1}G0​,…,Gd−1​ of complex matrices indexed by B×BB\times BB×B, this predicate means that every GkG_kGk​ is Hermitian and that, for every 0≤k,l<d0\le k,l<d0≤k,l<d,

GkGl+GlGk={2IB,k=l,0,k≠l.G_kG_l+G_lG_k= \begin{cases} 2I_B,&k=l,\\ 0,&k\ne l. \end{cases}Gk​Gl​+Gl​Gk​={2IB​,0,​k=l,k=l.​

Here IBI_BIB​ is the identity matrix on BBB. The definition includes d=0d=0d=0, when all these requirements are vacuous, and empty BBB, when all the matrix equalities hold for the unique empty matrices.

QAlgorithms.Papers.Independent.Intake100.P23.MultiplicityHilbert

This structure consists of a carrier type in universe uuu, a normed additive commutative group structure on that carrier, a complex inner product space structure compatible with it, and completeness of its norm metric. Thus it packages a complex Hilbert space together with these structures; neither nontriviality nor separability is required.

QAlgorithms.Papers.Independent.Intake100.P23.OperatorCAR

For any natural number ddd and family G0,…,Gd−1G_0,\ldots,G_{d-1}G0​,…,Gd−1​ of continuous complex-linear operators on the ambient complex inner product space HHH, this predicate means that every GkG_kGk​ is self-adjoint and

GkGl+GlGk={2IH,k=l,0,k≠lfor every k,l<d,G_kG_l+G_lG_k= \begin{cases} 2I_H,&k=l,\\ 0,&k\ne l \end{cases} \quad\text{for every }k,l<d,Gk​Gl​+Gl​Gk​={2IH​,0,​k=l,k=l​for every k,l<d,

where multiplication is operator composition. The value d=0d=0d=0 is allowed, in which case both requirements are vacuous.

QAlgorithms.Papers.Independent.Intake100.P23.PreservesWeylForm

For a real vector space YYY, a real bilinear form ω:Y×Y→R\omega:Y\times Y\to\mathbb Rω:Y×Y→R, and a function r:Y→Yr:Y\to Yr:Y→Y, this condition means that

ω(r(y),r(z))=ω(y,z)for all y,z∈Y.\omega(r(y),r(z))=\omega(y,z) \qquad\text{for all }y,z\in Y.ω(r(y),r(z))=ω(y,z)for all y,z∈Y.

The function rrr is not required to be linear, continuous, injective, or surjective; when ω\omegaω is identically zero, every function rrr satisfies the condition.

QAlgorithms.Papers.Independent.Intake100.P23.QuasiFreeCCR

For a real vector space YYY, a complex inner product space HHH, and a family WyW_yWy​ of bounded complex linear operators on HHH, this condition means that there exist a vector v∈Hv\in Hv∈H and a real bilinear form η:Y×Y→R\eta:Y\times Y\to\mathbb Rη:Y×Y→R such that the complex linear span of {Wyv:y∈Y}\{W_yv:y\in Y\}{Wy​v:y∈Y} is norm dense in HHH, η(y,z)=η(z,y)\eta(y,z)=\eta(z,y)η(y,z)=η(z,y) for all y,z∈Yy,z\in Yy,z∈Y, and

⟨v,Wyv⟩=e−η(y,y)/4for every y∈Y.\langle v,W_yv\rangle=e^{-\eta(y,y)/4} \qquad\text{for every }y\in Y.⟨v,Wy​v⟩=e−η(y,y)/4for every y∈Y.

These are the entire requirements; no Weyl multiplication law or unitarity condition is imposed.

QAlgorithms.Papers.Independent.Intake100.P23.SamePhase

For a complex inner product space HHH and bounded complex linear operators U,VU,VU,V on HHH, this condition means that there exists c∈Cc\in\mathbb Cc∈C with ∣c∣=1|c|=1∣c∣=1 such that V=cUV=cUV=cU. Neither operator is required to be unitary or nonzero; in particular, U=V=0U=V=0U=V=0 satisfies the condition.

QAlgorithms.Papers.Independent.Intake100.P23.WeylRegular

For a real vector space YYY, a complex inner product space HHH, and a family WyW_yWy​ of bounded complex linear operators on HHH, this condition means that, for every y∈Yy\in Yy∈Y and every v∈Hv\in Hv∈H, the function

R⟶H,t⟼Wtyv\mathbb R\longrightarrow H,\qquad t\longmapsto W_{ty}vR⟶H,t⟼Wty​v

is continuous in the norm topology of HHH.

QAlgorithms.Papers.Independent.Intake100.P23.canonicalPlane

This defines the real bilinear form on R2\mathbb R^2R2 given, for every u=(u1,u2)u=(u_1,u_2)u=(u1​,u2​) and v=(v1,v2)v=(v_1,v_2)v=(v1​,v2​), by ω0(u,v)=u1v2−v1u2\omega_0(u,v)=u_1v_2-v_1u_2ω0​(u,v)=u1​v2​−v1​u2​; in particular, it is linear over R\mathbb RR in each argument.

QAlgorithms.Papers.Independent.Intake100.P23.carCovariance

For a map ϕ:E→LC(H,H)\phi:E\to\mathcal L_{\mathbb C}(H,H)ϕ:E→LC​(H,H), a vector vvv in the ambient complex inner-product space HHH, and elements x,y∈Ex,y\in Ex,y∈E, this defines the real number

Cϕ,v(x,y)=Re⁡ ⁣(−i⟨v,(ϕ(x)ϕ(y)−ϕ(y)ϕ(x))v⟩).C_{\phi,v}(x,y)= \operatorname{Re}\!\left( -i\left\langle v, \bigl(\phi(x)\phi(y)-\phi(y)\phi(x)\bigr)v \right\rangle \right).Cϕ,v​(x,y)=Re(−i⟨v,(ϕ(x)ϕ(y)−ϕ(y)ϕ(x))v⟩).

The definition applies without requiring vvv to have norm 111 or imposing algebraic identities on ϕ\phiϕ.

QAlgorithms.Papers.Independent.Intake100.P23.carMoment

For a map ϕ:E→LC(H,H)\phi:E\to\mathcal L_{\mathbb C}(H,H)ϕ:E→LC​(H,H), where LC(H,H)\mathcal L_{\mathbb C}(H,H)LC​(H,H) denotes the continuous complex-linear endomorphisms of the ambient complex inner-product space HHH, a vector v∈Hv\in Hv∈H, a natural number nnn, and a sequence y0,…,yn−1∈Ey_0,\ldots,y_{n-1}\in Ey0​,…,yn−1​∈E, this defines the complex number

⟨v, (ϕ(y0)ϕ(y1)⋯ϕ(yn−1))v⟩.\left\langle v,\, \bigl(\phi(y_0)\phi(y_1)\cdots\phi(y_{n-1})\bigr)v \right\rangle.⟨v,(ϕ(y0​)ϕ(y1​)⋯ϕ(yn−1​))v⟩.

The inner product is conjugate-linear in its first argument, and the rightmost operator acts first. For n=0n=0n=0, the product is the identity, so the value is ⟨v,v⟩=∥v∥2\langle v,v\rangle=\|v\|^2⟨v,v⟩=∥v∥2. Neither normalization of vvv nor algebraic identities for ϕ\phiϕ are required by this definition.

QAlgorithms.Papers.Independent.Intake100.P23.decompositionMinus

For a closed real linear subspace VVV of the ambient complex inner product space FFF, this defines

V⊥∩(iV)⊥,V^\perp\cap(iV)^\perp,V⊥∩(iV)⊥,

where iV={ix:x∈V}iV=\{ix:x\in V\}iV={ix:x∈V} and orthogonal complements are taken with respect to the real inner product Re⁡⟨x,y⟩\operatorname{Re}\langle x,y\rangleRe⟨x,y⟩. Thus it consists of vectors real-orthogonal to both VVV and iViViV.

QAlgorithms.Papers.Independent.Intake100.P23.decompositionOne

For a closed real linear subspace VVV of the ambient complex inner product space FFF, this defines

(V∩Vω)∨(iV∩V⊥),(V\cap V^\omega)\vee(iV\cap V^\perp),(V∩Vω)∨(iV∩V⊥),

where iV={ix:x∈V}iV=\{ix:x\in V\}iV={ix:x∈V}, V⊥V^\perpV⊥ is the real orthogonal complement, VωV^\omegaVω is the symplectic complement consisting of vectors xxx for which Im⁡⟨v,x⟩=0\operatorname{Im}\langle v,x\rangle=0Im⟨v,x⟩=0 for every v∈Vv\in Vv∈V, and ∨\vee∨ denotes the smallest closed real linear subspace containing both operands.

QAlgorithms.Papers.Independent.Intake100.P23.decompositionPieces

For a closed real linear subspace VVV of the ambient complex inner product space FFF, define

P+=V∩iV,P−=V⊥∩(iV)⊥,P1=(V∩Vω)∨(iV∩V⊥),P0=(P+∨P−∨P1)⊥.P_+=V\cap iV,\qquad P_-=V^\perp\cap(iV)^\perp,\qquad P_1=(V\cap V^\omega)\vee(iV\cap V^\perp),\qquad P_0=(P_+\vee P_-\vee P_1)^\perp.P+​=V∩iV,P−​=V⊥∩(iV)⊥,P1​=(V∩Vω)∨(iV∩V⊥),P0​=(P+​∨P−​∨P1​)⊥.

This declaration defines the four-entry family whose values at indices 0,1,2,30,1,2,30,1,2,3 are respectively P+,P0,P1,P−P_+,P_0,P_1,P_-P+​,P0​,P1​,P−​. Here iViViV is multiplication of VVV by iii, complements are real orthogonal complements, VωV^\omegaVω consists of vectors symplectically orthogonal to VVV, meaning Im⁡⟨v,x⟩=0\operatorname{Im}\langle v,x\rangle=0Im⟨v,x⟩=0 for all v∈Vv\in Vv∈V, and joins are closed real linear spans.

QAlgorithms.Papers.Independent.Intake100.P23.decompositionPlus

For every closed real-linear subspace VVV of the ambient complex space FFF, this defines the closed real-linear subspace V∩iVV\cap iVV∩iV, where iV={iv:v∈V}iV=\{iv:v\in V\}iV={iv:v∈V}. Thus its elements are precisely the vectors that belong both to VVV and to its image under multiplication by iii; the definition also applies to the zero subspace and the whole space.

QAlgorithms.Papers.Independent.Intake100.P23.decompositionZero

For a closed real linear subspace VVV of the ambient complex inner product space FFF, this defines

((V∩iV)∨(V⊥∩(iV)⊥)∨((V∩Vω)∨(iV∩V⊥)))⊥.\left((V\cap iV)\vee\bigl(V^\perp\cap(iV)^\perp\bigr) \vee\bigl((V\cap V^\omega)\vee(iV\cap V^\perp)\bigr)\right)^\perp.((V∩iV)∨(V⊥∩(iV)⊥)∨((V∩Vω)∨(iV∩V⊥)))⊥.

Here iV={ix:x∈V}iV=\{ix:x\in V\}iV={ix:x∈V}, orthogonal complements use the real inner product, Vω={x:Im⁡⟨v,x⟩=0 for every v∈V}V^\omega=\{x:\operatorname{Im}\langle v,x\rangle=0\text{ for every }v\in V\}Vω={x:Im⟨v,x⟩=0 for every v∈V}, and every join is a closed real linear span.

QAlgorithms.Papers.Independent.Intake100.P23.jordanWignerEven

For every natural number nnn and index k∈{0,…,2n−1}k\in\{0,\ldots,2n-1\}k∈{0,…,2n−1}, this defines a complex matrix indexed by Boolean strings s,t:{0,…,n−1}→{false,true}s,t:\{0,\ldots,n-1\}\to\{\mathrm{false},\mathrm{true}\}s,t:{0,…,n−1}→{false,true}. Put r=⌊k/2⌋r=\lfloor k/2\rfloorr=⌊k/2⌋, and let X=(0110)X=\begin{pmatrix}0&1\\1&0\end{pmatrix}X=(01​10​), Y=(0−ii0)Y=\begin{pmatrix}0&-i\\i&0\end{pmatrix}Y=(0i​−i0​), Z=(100−1)Z=\begin{pmatrix}1&0\\0&-1\end{pmatrix}Z=(10​0−1​), with Boolean indices ordered false, true. The (s,t)(s,t)(s,t)-entry is the product over j=0,…,n−1j=0,\ldots,n-1j=0,…,n−1 of Zsj,tjZ_{s_j,t_j}Zsj​,tj​​ when j<rj<rj<r, of Xsj,tjX_{s_j,t_j}Xsj​,tj​​ when j=rj=rj=r and kkk is even, of Ysj,tjY_{s_j,t_j}Ysj​,tj​​ when j=rj=rj=r and kkk is odd, and of 111 if sj=tjs_j=t_jsj​=tj​, otherwise 000, when j>rj>rj>r. When n=0n=0n=0, there is no admissible index kkk.

QAlgorithms.Papers.Independent.Intake100.P23.jordanWignerOdd

For every natural number nnn, complex number ccc, and integer index 0≤k<2n+10\le k<2n+10≤k<2n+1, this defines a complex matrix on Boolean strings of length nnn. If k<2nk<2nk<2n, put r=⌊k/2⌋r=\lfloor k/2\rfloorr=⌊k/2⌋; its (s,t)(s,t)(s,t)-entry is

∏j=0n−1{Z(sj,tj),j<r,X(sj,tj),j=r and k is even,Y(sj,tj),j=r and k is odd,1{sj=tj},j>r,\prod_{j=0}^{n-1} \begin{cases} Z(s_j,t_j),&j<r,\\ X(s_j,t_j),&j=r\text{ and }k\text{ is even},\\ Y(s_j,t_j),&j=r\text{ and }k\text{ is odd},\\ \mathbf1_{\{s_j=t_j\}},&j>r, \end{cases}j=0∏n−1​⎩⎨⎧​Z(sj​,tj​),X(sj​,tj​),Y(sj​,tj​),1{sj​=tj​}​,​j<r,j=r and k is even,j=r and k is odd,j>r,​

where, in the order (false,true)(\mathrm{false},\mathrm{true})(false,true),

X=(0110),Y=(0−ii0),Z=(100−1).X=\begin{pmatrix}0&1\\1&0\end{pmatrix}, \qquad Y=\begin{pmatrix}0&-i\\i&0\end{pmatrix}, \qquad Z=\begin{pmatrix}1&0\\0&-1\end{pmatrix}.X=(01​10​),Y=(0i​−i0​),Z=(10​0−1​).

Otherwise k=2nk=2nk=2n, and the entry is c∏j=0n−1Z(sj,tj)c\prod_{j=0}^{n-1}Z(s_j,t_j)c∏j=0n−1​Z(sj​,tj​). The definition allows every complex ccc. When n=0n=0n=0, only k=0k=0k=0 is available, and the resulting 1×11\times11×1 matrix has entry ccc.

QAlgorithms.Papers.Independent.Intake100.P23.jordanWignerParity

For every natural number nnn, this defines a complex matrix PnP_nPn​ whose rows and columns are indexed by Boolean strings s,t:{0,…,n−1}→{false,true}s,t:\{0,\ldots,n-1\}\to\{\mathrm{false},\mathrm{true}\}s,t:{0,…,n−1}→{false,true}, by

Pn(s,t)=∏j=0n−1Z(sj,tj),Z(a,b)={0,a≠b,1,a=b=false,−1,a=b=true.P_n(s,t)=\prod_{j=0}^{n-1}Z(s_j,t_j), \qquad Z(a,b)= \begin{cases} 0,&a\ne b,\\ 1,&a=b=\mathrm{false},\\ -1,&a=b=\mathrm{true}. \end{cases}Pn​(s,t)=j=0∏n−1​Z(sj​,tj​),Z(a,b)=⎩⎨⎧​0,1,−1,​a=b,a=b=false,a=b=true.​

Thus its off-diagonal entries vanish and its entry at (s,s)(s,s)(s,s) is (−1)∣{j:sj=true}∣(-1)^{|\{j:s_j=\mathrm{true}\}|}(−1)∣{j:sj​=true}∣. When n=0n=0n=0, there is one empty Boolean string, and the empty product makes this the 1×11\times11×1 matrix with entry 111.

QAlgorithms.Papers.Independent.Intake100.P23.pairFirst

For every natural number mmm and every index jjj with 0≤j<m0\le j<m0≤j<m, this defines the index 2j2j2j in {0,…,2m−1}\{0,\ldots,2m-1\}{0,…,2m−1}. When m=0m=0m=0, there are no possible arguments jjj.

QAlgorithms.Papers.Independent.Intake100.P23.pairSecond

For every natural number mmm and every index jjj with 0≤j<m0\le j<m0≤j<m, this defines the index 2j+12j+12j+1 in {0,…,2m−1}\{0,\ldots,2m-1\}{0,…,2m−1}. When m=0m=0m=0, there are no possible arguments jjj.

QAlgorithms.Papers.Independent.Intake100.P23.pairings

For every natural number mmm, this defines the finite set of permutations sss of {0,…,2m−1}\{0,\ldots,2m-1\}{0,…,2m−1} satisfying both

s(2j)<s(2j+1)(0≤j<m),s(2j)<s(2k)(0≤j<k<m).s(2j)<s(2j+1)\quad(0\le j<m), \qquad s(2j)<s(2k)\quad(0\le j<k<m).s(2j)<s(2j+1)(0≤j<m),s(2j)<s(2k)(0≤j<k<m).

Thus the entries within each consecutive pair are increasing, and the first entries of the pairs are increasing. For m=0m=0m=0, both conditions are vacuous, so the set contains the unique permutation of the empty set.

QAlgorithms.Papers.Independent.Intake100.P23.pauliYEntry

For Boolean indices s,ts,ts,t, identify false with 000 and true with 111, and take the corresponding entry of (0−ii0)\begin{pmatrix}0&-i\\i&0\end{pmatrix}(0i​−i0​). Thus the defined value is 000 when s=ts=ts=t, −i-i−i when sss is false and ttt is true, and iii when sss is true and ttt is false.

QAlgorithms.Papers.Independent.Intake100.P23.pauliZEntry

For Boolean indices s,ts,ts,t, this defines a complex number equal to 000 when s≠ts\ne ts=t, 111 when both are false, and −1-1−1 when both are true; in the order false, true, its matrix is (100−1)\begin{pmatrix}1&0\\0&-1\end{pmatrix}(10​0−1​).

QAlgorithms.Papers.Independent.Intake100.P23.scalarHilbertSpace

This defines the packaged complex Hilbert space whose carrier is C\mathbb CC, equipped with its standard normed additive commutative group structure, complex inner product, and completeness.

QAlgorithms.Papers.Independent.Intake100.P23.spinX

For Boolean indices s,ts,ts,t, this defines a complex number equal to 000 when s=ts=ts=t and 111 when s≠ts\ne ts=t; with rows and columns ordered as false, true, its matrix is (0110)\begin{pmatrix}0&1\\1&0\end{pmatrix}(01​10​).

QAlgorithms.Papers.Independent.Intake100.P23.sumForm

For arbitrary real vector spaces Y1,Y2Y_1,Y_2Y1​,Y2​ and real bilinear forms a:Y1×Y1→Ra:Y_1\times Y_1\to\mathbb Ra:Y1​×Y1​→R and b:Y2×Y2→Rb:Y_2\times Y_2\to\mathbb Rb:Y2​×Y2​→R, this defines the real bilinear form on Y1×Y2Y_1\times Y_2Y1​×Y2​ given by (a⊕b)((u1,u2),(v1,v2))=a(u1,v1)+b(u2,v2)(a\oplus b)((u_1,u_2),(v_1,v_2))=a(u_1,v_1)+b(u_2,v_2)(a⊕b)((u1​,u2​),(v1​,v2​))=a(u1​,v1​)+b(u2​,v2​). Neither form is required to be symmetric, antisymmetric, or nondegenerate, and either vector space may be zero.

QAlgorithms.Papers.Independent.Intake100.P23.tensorOperator

For complex inner product spaces H1,H2H_1,H_2H1​,H2​ and bounded complex-linear operators A:H1→H1A:H_1\to H_1A:H1​→H1​ and B:H2→H2B:H_2\to H_2B:H2​→H2​, this defines a bounded complex-linear operator on the completion of the algebraic tensor product H1⊗CH2H_1\otimes_{\mathbb C}H_2H1​⊗C​H2​. It is obtained by composing the algebraic tensor operator A⊗BA\otimes BA⊗B with the canonical inclusion into that completion and extending along the same inclusion; in particular, it sends the included tensor x⊗yx\otimes yx⊗y to the included tensor Ax⊗ByAx\otimes ByAx⊗By. Zero spaces and zero operators are allowed.

Human review
  • Endorsed by Shuze Chen · Oct 31, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me