Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Definitions for Classification of NNN-(super)-extended Poincaré algebras and bilinear invariants of the spinor representation of Spin(p,q)Spin(p,q)Spin(p,q)

Definition
QAlgorithms_Papers_Independent_Gap48_P17

by Goku · Oct 21, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

The objects the formalized statements of Classification of NNN-(super)-extended Poincaré algebras and bilinear invariants of the spinor representation of Spin(p,q)Spin(p,q)Spin(p,q) (arXiv:math/9511215) are stated in. Each was checked against the paper by a blind read-back and a moderator.

  • signatureMatrix: The paper's metric matrix, positive directions first (PDF p. 6).
  • cliffordQ: Clifford algebras in this paper use the negative of the metric (PDF pp. 21, 26).
  • RealCl
  • RealEvenCl: A real Clifford algebra's actual even subalgebra, not a tabulated model.
  • ComplexCl
  • ComplexEvenCl
  • SpinStable: Invariant subspace for an explicitly specified set of operators.
  • IrreducibleOperators: Irreducibility includes nontriviality of the represented space.
  • SpinRepresentation: The full spinor is an irreducible Clifford module (PDF p. 7). No irreducibility of its even restriction is assumed.
  • cliffordVectorAction: Vector Clifford multiplication, obtained from the algebra representation.
  • spinGenerator: Infinitesimal spin action of u wedge v, with compatible vector action.
  • vectorGenerator: Standard infinitesimal rotation on the vector module.
  • evenOperators: Actual even Clifford operators in the given representation.
  • schurAlgebra: The Schur algebra is the centralizer of the actual even Clifford action (PDF p. 15).
  • invariantForms: Invariant bilinear forms; the generators span so(g) for the metrics used below.
  • equivariantForms: J: vector-valued families of bilinear forms, equivariant for so(g) (PDF p. 11). The metric identifies V with its linear dual.
  • equivariantMultiplications: M: equivariant multiplications, written in curried form (PDF p. 11).
  • formCompose: Precomposition of the first argument: b_A(s,t)=b(As,t).
  • cliffordForm: The concrete Clifford contraction beta -> j_rho(beta) (PDF pp. 3, 14).
  • IsSign: A two-valued sign is relational, so the zero form has no chosen unique sign.
  • FormIsotropy: Orthogonality/isotropy relative to an explicit grading involution.
  • FormSigns: A form's Clifford type and exchange symmetry (Definition 2.1, PDF p. 18).
  • EndSigns: Endomorphism Clifford type and beta-symmetry (Definition 2.2, PDF p. 18).
  • EndIsotropy: Endomorphism isotropy: preservation or interchange of the chosen halves.
  • IrreducibleSubspace: A subspace is irreducible under the indicated operators, including nonzero.
  • SpinSplitting: Actual semispinor splitting by a compatible Clifford grading, PDF pp. 7, 19. The two eigenspaces are required to be irreducible even modules; they may be equivalent.
  • FormAdmissible: Admissibility with every defined isotropy sign, for the source's chosen splitting. CompleteSplitting separately requires irreducibility when no splitting is supplied.
  • EndAdmissible: Beta-admissibility is a property, without any canonically chosen numerical signs.
  • CompleteSplitting: A missing split is permitted only in the irreducible-even case.
  • bracketForms: The actual symmetry subspace J^sigma, including zero (PDF p. 38).
  • refinedBracketForms: Refined symmetry/isotropy subspace, used only for an actual split (PDF p. 38).
  • extensionDimension: L is dimension of the actual equivariant bracket space, not a count of isomorphism classes.
  • refinedExtensionDimension
  • RealAlgebraType: The possible real matrix-algebra types, omitting matrix size (Definition 1.6, PDF p. 15).
  • HasRealAlgebraType: Actual algebra isomorphism to positive-size matrices of the stated type.
  • realTypeTable: Real Clifford graded-type table, ordered (even algebra, full algebra), PDF p. 15.
  • HasRealGradedType: A graded type is asserted about both actual Clifford algebras.
  • HasSchurTable: Exact real Schur-algebra isomorphisms, PDF p. 16.
  • realFormDimensionTable: Dimensions of invariant real bilinear forms, PDF p. 17.
  • volumeElement: Ordered Clifford volume with respect to an ordered basis, PDF pp. 25, 26, 31.
  • PseudoOrthonormal: The basis has p positive and q negative unit vectors, in that order.
  • Counts4
  • totalCounts: Total plus/minus dimensions from the four refined entries (++,+-,-+,--).
  • realRefinedTable: Table 9's refined entries. Only parity-compatible split signatures are used.
  • SplitSignature: Residues for which the real full spinor has two semispinor summands.
  • realTotalTable: Table 1 / unrefined Table 9. Invalid parity entries are unused.
  • complexRefinedTable: Complex refined table (PDF p. 39), used only in positive even dimension.
  • complexTotalTable: Complex total table; its values at negative integers are periodic residue data.
  • actualTotalDimensions
  • actualRefinedDimensions
  • EquivalentSubspaces: Equivalent subrepresentations; preservation is checked without choosing new actions.
  • TwoIrreducibleSummands: Two irreducible summands, with their equivalence or inequivalence retained.
  • RealDimensionClassification: All real dimension identifications concern genuine Hom spaces, never the table as a definition.
  • RealTableSymmetries: Periodicity and mirror supersymmetry on the realizable parity lattice.
  • gammaStep: Reflections used in the introduction, acting on integer residue coordinates.
  • gammaTildeStep
  • gammaOrbit: Reflection group orbits, given by the equivalence closure of the generating reflections.
  • gammaTildeOrbit
  • reflectionDomain: Closed reflection domain F (PDF p. 4).
  • enlargedDomain: The seven representatives for the enlarged group (PDF p. 5).
  • signatureDomain: Nonnegative (p,q) representatives, not the same coordinate pairs as enlargedDomain.
  • orthogonalSpace: Real metric-skew matrices, the concrete so(p,q).
  • poincareSpace: Underlying vector space of so(p,q) semidirect V, PDF p. 6.
  • poincareBracket: Explicit semidirect bracket on ambient affine coefficients.
  • AffineIsometryCoefficients: Affine isometry coefficients, without restricting to an orientation component.
  • metricIsometryGroup: The actual group of interval-preserving bijections of pseudo-Euclidean space. The theorem below identifies it with all affine metric isometries.
  • IsometryVelocity: The tangent space at the identity of the affine metric isometry group. A smooth curve is required locally to lie in the actual group; no tangent membership equation is assumed as a substitute for a curve.
  • PinInvariant: Invariance under all unit-vector Clifford actions equals invariance under their products, i.e. Pin invariance (PDF p. 24).
Definition code
import Mathlib

/-!
Statements from Alekseevsky--Cortes, arXiv:math/9511215v1.
All new definitions are confined to this paper. The Clifford quadratic form is
minus the metric. Invariance is tested on the spanning infinitesimal rotations,
with spin action one quarter of the Clifford commutator. Bilinear forms are
linear over the indicated field, including in the complex case.
-/

namespace QAlgorithms.Papers.Independent.Gap48.P17

open scoped BigOperators Matrix.Norms.Elementwise

attribute [local instance 100] LieRing.ofAssociativeRing

/-- The paper's metric matrix, positive directions first (PDF p. 6). -/
def signatureMatrix (p q : ℕ) : Matrix (Fin (p + q)) (Fin (p + q)) ℝ :=
  Matrix.diagonal (fun i => if i.val < p then 1 else -1)

/-- Clifford algebras in this paper use the negative of the metric (PDF pp. 21, 26). -/
def cliffordQ {K : Type*} [Field K] {d : ℕ}
    (g : Matrix (Fin d) (Fin d) K) : QuadraticForm K ((Fin d → K)) :=
  (-g).toQuadraticForm'

abbrev RealCl (p q : ℕ) := CliffordAlgebra (cliffordQ (signatureMatrix p q))

/-- A real Clifford algebra's actual even subalgebra, not a tabulated model. -/
noncomputable abbrev RealEvenCl (p q : ℕ) := CliffordAlgebra.even (cliffordQ (signatureMatrix p q))

abbrev ComplexCl (d : ℕ) :=
  CliffordAlgebra (cliffordQ (1 : Matrix (Fin d) (Fin d) ℂ))

noncomputable abbrev ComplexEvenCl (d : ℕ) :=
  CliffordAlgebra.even (cliffordQ (1 : Matrix (Fin d) (Fin d) ℂ))

/-- Invariant subspace for an explicitly specified set of operators. -/
def SpinStable {K S : Type*} [Field K] [AddCommGroup S] [Module K S]
    (operators : Set (Module.End K S)) (P : Submodule K S) : Prop :=
  ∀ A ∈ operators, ∀ x ∈ P, A x ∈ P

/-- Irreducibility includes nontriviality of the represented space. -/
def IrreducibleOperators {K S : Type*} [Field K] [AddCommGroup S] [Module K S]
    (operators : Set (Module.End K S)) : Prop :=
  Nontrivial S ∧ ∀ P : Submodule K S, SpinStable operators P → P = ⊥ ∨ P = ⊤

/-- The full spinor is an irreducible Clifford module (PDF p. 7).
No irreducibility of its even restriction is assumed. -/
structure SpinRepresentation {K : Type*} [Field K] {d : ℕ}
    (g : Matrix (Fin d) (Fin d) K) (S : Type*) [AddCommGroup S] [Module K S] where
  action : CliffordAlgebra (cliffordQ g) →ₐ[K] Module.End K S
  irreducible : IrreducibleOperators (Set.range action)

section SpinDefinitions

variable {K : Type*} [Field K] [CharZero K] {d : ℕ}
variable {g : Matrix (Fin d) (Fin d) K}
variable {S : Type*} [AddCommGroup S] [Module K S]

/-- Vector Clifford multiplication, obtained from the algebra representation. -/
def cliffordVectorAction (rho : SpinRepresentation g S) : (Fin d → K) →ₗ[K] Module.End K S :=
  rho.action.toLinearMap.comp (CliffordAlgebra.ι (cliffordQ g))

/-- Infinitesimal spin action of u wedge v, with compatible vector action. -/
def spinGenerator (rho : SpinRepresentation g S) (u v : (Fin d → K)) : Module.End K S :=
  (1 / 4 : K) • (cliffordVectorAction rho u * cliffordVectorAction rho v -
    cliffordVectorAction rho v * cliffordVectorAction rho u)

/-- Standard infinitesimal rotation on the vector module. -/
def vectorGenerator (g : Matrix (Fin d) (Fin d) K) (u v x : (Fin d → K)) : (Fin d → K) :=
  (g.toBilin' u x) • v - (g.toBilin' v x) • u

/-- Actual even Clifford operators in the given representation. -/
def evenOperators (rho : SpinRepresentation g S) : Set (Module.End K S) :=
  {A | ∃ a : CliffordAlgebra.even (cliffordQ g), rho.action a.val = A}

/-- The Schur algebra is the centralizer of the actual even Clifford action (PDF p. 15). -/
def schurAlgebra (rho : SpinRepresentation g S) : Subalgebra K (Module.End K S) :=
  Subalgebra.centralizer K (evenOperators rho)

/-- Invariant bilinear forms; the generators span so(g) for the metrics used below. -/
def invariantForms (rho : SpinRepresentation g S) : Submodule K (LinearMap.BilinForm K S) where
  carrier := {b | ∀ u v s t, b (spinGenerator rho u v s) t +
    b s (spinGenerator rho u v t) = 0}
  zero_mem' := by simp
  add_mem' := by
    intro b c hb hc u v s t
    change (b (spinGenerator rho u v s) t + c (spinGenerator rho u v s) t) +
      (b s (spinGenerator rho u v t) + c s (spinGenerator rho u v t)) = 0
    linear_combination hb u v s t + hc u v s t
  smul_mem' := by
    intro a b hb u v s t
    change a * b (spinGenerator rho u v s) t + a * b s (spinGenerator rho u v t) = 0
    rw [← mul_add, hb u v s t, mul_zero]

/-- J: vector-valued families of bilinear forms, equivariant for so(g) (PDF p. 11).
The metric identifies V with its linear dual. -/
def equivariantForms (rho : SpinRepresentation g S) :
    Submodule K ((Fin d → K) →ₗ[K] LinearMap.BilinForm K S) where
  carrier := {j | ∀ u v x s t,
    j (vectorGenerator g u v x) s t + j x (spinGenerator rho u v s) t +
      j x s (spinGenerator rho u v t) = 0}
  zero_mem' := by simp
  add_mem' := by
    intro j k hj hk u v x s t
    change (j (vectorGenerator g u v x) s t + k (vectorGenerator g u v x) s t) +
      (j x (spinGenerator rho u v s) t + k x (spinGenerator rho u v s) t) +
      (j x s (spinGenerator rho u v t) + k x s (spinGenerator rho u v t)) = 0
    linear_combination hj u v x s t + hk u v x s t
  smul_mem' := by
    intro a j hj u v x s t
    change a * j (vectorGenerator g u v x) s t +
      a * j x (spinGenerator rho u v s) t + a * j x s (spinGenerator rho u v t) = 0
    linear_combination a * hj u v x s t

/-- M: equivariant multiplications, written in curried form (PDF p. 11). -/
def equivariantMultiplications (rho : SpinRepresentation g S) :
    Submodule K ((Fin d → K) →ₗ[K] Module.End K S) where
  carrier := {mu | ∀ u v x s,
    mu (vectorGenerator g u v x) s =
      spinGenerator rho u v (mu x s) - mu x (spinGenerator rho u v s)}
  zero_mem' := by simp
  add_mem' := by
    intro mu nu hmu hnu u v x s
    simp only [LinearMap.add_apply, map_add]
    rw [hmu u v x s, hnu u v x s]
    abel
  smul_mem' := by
    intro a mu hmu u v x s
    simp only [LinearMap.smul_apply, map_smul]
    rw [hmu u v x s, smul_sub]

/-- Precomposition of the first argument: b_A(s,t)=b(As,t). -/
def formCompose (b : LinearMap.BilinForm K S) (A : Module.End K S) :
    LinearMap.BilinForm K S := LinearMap.comp b A

/-- The concrete Clifford contraction beta -> j_rho(beta) (PDF pp. 3, 14). -/
def cliffordForm (rho : SpinRepresentation g S) (b : LinearMap.BilinForm K S) :
    (Fin d → K) →ₗ[K] LinearMap.BilinForm K S where
  toFun v := formCompose b (cliffordVectorAction rho v)
  map_add' v w := by
    ext s t
    simp [formCompose, map_add]
  map_smul' a v := by
    ext s t
    simp [formCompose]

/-- A two-valued sign is relational, so the zero form has no chosen unique sign. -/
def IsSign (a : K) : Prop := a = 1 ∨ a = -1

/-- Orthogonality/isotropy relative to an explicit grading involution. -/
def FormIsotropy (E : Module.End K S) (b : LinearMap.BilinForm K S) (i : K) : Prop :=
  IsSign i ∧ ∀ s t, b (E s) t = i * b s (E t)

/-- A form's Clifford type and exchange symmetry (Definition 2.1, PDF p. 18). -/
def FormSigns (rho : SpinRepresentation g S) (b : LinearMap.BilinForm K S)
    (tau sigma : K) : Prop :=
  IsSign tau ∧ IsSign sigma ∧
    (∀ v s t, b (cliffordVectorAction rho v s) t = tau * b s (cliffordVectorAction rho v t)) ∧
    (∀ s t, b t s = sigma * b s t)

/-- Endomorphism Clifford type and beta-symmetry (Definition 2.2, PDF p. 18). -/
def EndSigns (rho : SpinRepresentation g S) (b : LinearMap.BilinForm K S)
    (A : Module.End K S) (tau sigma : K) : Prop :=
  IsSign tau ∧ IsSign sigma ∧
    (∀ v, cliffordVectorAction rho v * A = tau • (A * cliffordVectorAction rho v)) ∧
    (∀ s t, b (A s) t = sigma * b s (A t))

/-- Endomorphism isotropy: preservation or interchange of the chosen halves. -/
def EndIsotropy (E A : Module.End K S) (i : K) : Prop :=
  IsSign i ∧ E * A = i • (A * E)

/-- A subspace is irreducible under the indicated operators, including nonzero. -/
def IrreducibleSubspace (operators : Set (Module.End K S)) (P : Submodule K S) : Prop :=
  P ≠ ⊥ ∧ SpinStable operators P ∧
    ∀ Q : Submodule K S, Q ≤ P → SpinStable operators Q → Q = ⊥ ∨ Q = P

/-- Actual semispinor splitting by a compatible Clifford grading, PDF pp. 7, 19.
The two eigenspaces are required to be irreducible even modules; they may be equivalent. -/
structure SpinSplitting (rho : SpinRepresentation g S) where
  grading : Module.End K S
  square : grading * grading = 1
  odd : ∀ v, grading * cliffordVectorAction rho v = -(cliffordVectorAction rho v * grading)
  positive_irreducible : IrreducibleSubspace (evenOperators rho)
    (LinearMap.ker (grading - 1))
  negative_irreducible : IrreducibleSubspace (evenOperators rho)
    (LinearMap.ker (grading + 1))

/-- Admissibility with every defined isotropy sign, for the source's chosen splitting.
CompleteSplitting separately requires irreducibility when no splitting is supplied. -/
def FormAdmissible (rho : SpinRepresentation g S) (splitting : Option (SpinSplitting rho))
    (b : LinearMap.BilinForm K S) : Prop :=
  ∃ tau sigma : K, FormSigns rho b tau sigma ∧
    match splitting with
    | none => True
    | some h => ∃ i, FormIsotropy h.grading b i

/-- Beta-admissibility is a property, without any canonically chosen numerical signs. -/
def EndAdmissible (rho : SpinRepresentation g S) (splitting : Option (SpinSplitting rho))
    (b : LinearMap.BilinForm K S) (A : Module.End K S) : Prop :=
  ∃ tau sigma : K, EndSigns rho b A tau sigma ∧
    match splitting with
    | none => True
    | some h => ∃ i, EndIsotropy h.grading A i

/-- A missing split is permitted only in the irreducible-even case. -/
def CompleteSplitting (rho : SpinRepresentation g S)
    (splitting : Option (SpinSplitting rho)) : Prop :=
  match splitting with
  | none => IrreducibleOperators (evenOperators rho)
  | some _ => True

/-- The actual symmetry subspace J^sigma, including zero (PDF p. 38). -/
def bracketForms (rho : SpinRepresentation g S) (sigma : K) :
    Submodule K ((Fin d → K) →ₗ[K] LinearMap.BilinForm K S) where
  carrier := {j | j ∈ equivariantForms rho ∧ ∀ x s t, j x t s = sigma * j x s t}
  zero_mem' := by simp [equivariantForms]
  add_mem' := by
    intro j k hj hk
    refine ⟨(equivariantForms rho).add_mem hj.1 hk.1, ?_⟩
    intro x s t
    change j x t s + k x t s = sigma * (j x s t + k x s t)
    rw [hj.2, hk.2, mul_add]
  smul_mem' := by
    intro a j hj
    refine ⟨(equivariantForms rho).smul_mem a hj.1, ?_⟩
    intro x s t
    change a * j x t s = sigma * (a * j x s t)
    rw [hj.2]
    ring

/-- Refined symmetry/isotropy subspace, used only for an actual split (PDF p. 38). -/
def refinedBracketForms (rho : SpinRepresentation g S) (h : SpinSplitting rho)
    (sigma iota : K) : Submodule K ((Fin d → K) →ₗ[K] LinearMap.BilinForm K S) where
  carrier := {j | j ∈ bracketForms rho sigma ∧
    ∀ x s t, j x (h.grading s) t = iota * j x s (h.grading t)}
  zero_mem' := by simp [bracketForms, equivariantForms]
  add_mem' := by
    intro j k hj hk
    refine ⟨(bracketForms rho sigma).add_mem hj.1 hk.1, ?_⟩
    intro x s t
    change j x (h.grading s) t + k x (h.grading s) t =
      iota * (j x s (h.grading t) + k x s (h.grading t))
    rw [hj.2, hk.2, mul_add]
  smul_mem' := by
    intro a j hj
    refine ⟨(bracketForms rho sigma).smul_mem a hj.1, ?_⟩
    intro x s t
    change a * j x (h.grading s) t = iota * (a * j x s (h.grading t))
    rw [hj.2]
    ring

/-- L is dimension of the actual equivariant bracket space, not a count of isomorphism classes. -/
noncomputable def extensionDimension (rho : SpinRepresentation g S) (sigma : K) : ℕ :=
  Module.finrank K (bracketForms rho sigma)

noncomputable def refinedExtensionDimension (rho : SpinRepresentation g S)
    (h : SpinSplitting rho) (sigma iota : K) : ℕ :=
  Module.finrank K (refinedBracketForms rho h sigma iota)

example (rho : SpinRepresentation g S) :
    (0 : LinearMap.BilinForm K S) ∈ invariantForms rho :=
  (invariantForms rho).zero_mem

example (rho : SpinRepresentation g S) :
    (0 : (Fin d → K) →ₗ[K] LinearMap.BilinForm K S) ∈ bracketForms rho 1 :=
  (bracketForms rho 1).zero_mem

example (rho : SpinRepresentation g S) (b : LinearMap.BilinForm K S)
    (v : (Fin d → K)) (s t : S) :
    cliffordForm rho b v s t = b (cliffordVectorAction rho v s) t := rfl

end SpinDefinitions

/-- The possible real matrix-algebra types, omitting matrix size (Definition 1.6, PDF p. 15). -/
inductive RealAlgebraType
  | realSimple | complexSimple | quaternionSimple
  | realSplit | complexSplit | quaternionSplit
  deriving DecidableEq

/-- Actual algebra isomorphism to positive-size matrices of the stated type. -/
def HasRealAlgebraType (A : Type*) [Ring A] [Algebra ℝ A] (t : RealAlgebraType) : Prop :=
  match t with
  | .realSimple => ∃ k : ℕ, 0 < k ∧ Nonempty (A ≃ₐ[ℝ] Matrix (Fin k) (Fin k) ℝ)
  | .complexSimple => ∃ k : ℕ, 0 < k ∧ Nonempty (A ≃ₐ[ℝ] Matrix (Fin k) (Fin k) ℂ)
  | .quaternionSimple => ∃ k : ℕ, 0 < k ∧
      Nonempty (A ≃ₐ[ℝ] Matrix (Fin k) (Fin k) (Quaternion ℝ))
  | .realSplit => ∃ k : ℕ, 0 < k ∧
      Nonempty (A ≃ₐ[ℝ] (Matrix (Fin k) (Fin k) ℝ × Matrix (Fin k) (Fin k) ℝ))
  | .complexSplit => ∃ k : ℕ, 0 < k ∧
      Nonempty (A ≃ₐ[ℝ] (Matrix (Fin k) (Fin k) ℂ × Matrix (Fin k) (Fin k) ℂ))
  | .quaternionSplit => ∃ k : ℕ, 0 < k ∧
      Nonempty (A ≃ₐ[ℝ] (Matrix (Fin k) (Fin k) (Quaternion ℝ) ×
        Matrix (Fin k) (Fin k) (Quaternion ℝ)))

/-- Real Clifford graded-type table, ordered (even algebra, full algebra), PDF p. 15. -/
def realTypeTable (s : ℤ) : RealAlgebraType × RealAlgebraType :=
  match s % 8 with
  | 1 => (.realSimple, .complexSimple)
  | 2 => (.complexSimple, .quaternionSimple)
  | 3 => (.quaternionSimple, .quaternionSplit)
  | 4 => (.quaternionSplit, .quaternionSimple)
  | 5 => (.quaternionSimple, .complexSimple)
  | 6 => (.complexSimple, .realSimple)
  | 7 => (.realSimple, .realSplit)
  | _ => (.realSplit, .realSimple)

/-- A graded type is asserted about both actual Clifford algebras. -/
def HasRealGradedType (p q : ℕ) (t : RealAlgebraType × RealAlgebraType) : Prop :=
  HasRealAlgebraType (RealEvenCl p q) t.1 ∧ HasRealAlgebraType (RealCl p q) t.2

/-- Exact real Schur-algebra isomorphisms, PDF p. 16. -/
def HasSchurTable (A : Type*) [Ring A] [Algebra ℝ A] (s : ℤ) : Prop :=
  match s % 8 with
  | 1 => Nonempty (A ≃ₐ[ℝ] Matrix (Fin 2) (Fin 2) ℝ)
  | 2 => Nonempty (A ≃ₐ[ℝ] Matrix (Fin 2) (Fin 2) ℂ)
  | 3 => Nonempty (A ≃ₐ[ℝ] Quaternion ℝ)
  | 4 => Nonempty (A ≃ₐ[ℝ] (Quaternion ℝ × Quaternion ℝ))
  | 5 => Nonempty (A ≃ₐ[ℝ] Quaternion ℝ)
  | 6 => Nonempty (A ≃ₐ[ℝ] ℂ)
  | 7 => Nonempty (A ≃ₐ[ℝ] ℝ)
  | _ => Nonempty (A ≃ₐ[ℝ] (ℝ × ℝ))

/-- Dimensions of invariant real bilinear forms, PDF p. 17. -/
def realFormDimensionTable (s : ℤ) : ℕ :=
  match s % 8 with
  | 1 => 4 | 2 => 8 | 3 => 4 | 4 => 8 | 5 => 4 | 6 => 2 | 7 => 1 | _ => 2

/-- Ordered Clifford volume with respect to an ordered basis, PDF pp. 25, 26, 31. -/
noncomputable def volumeElement (p q : ℕ) (e : Module.Basis (Fin (p + q)) ℝ ((Fin (p + q) → ℝ))) : RealCl p q :=
  (List.ofFn fun i => CliffordAlgebra.ι (cliffordQ (signatureMatrix p q)) (e i)).prod

/-- The basis has p positive and q negative unit vectors, in that order. -/
def PseudoOrthonormal (p q : ℕ) (e : Module.Basis (Fin (p + q)) ℝ ((Fin (p + q) → ℝ))) : Prop :=
  ∀ i j, (signatureMatrix p q).toBilin' (e i) (e j) = signatureMatrix p q i j

example : realTypeTable 1 = (.realSimple, .complexSimple) := rfl

example : realFormDimensionTable (-1) = 1 := rfl

example (p q : ℕ) (v : (Fin (p + q) → ℝ)) :
    CliffordAlgebra.ι (cliffordQ (signatureMatrix p q)) v *
      CliffordAlgebra.ι (cliffordQ (signatureMatrix p q)) v =
      algebraMap ℝ (RealCl p q) (cliffordQ (signatureMatrix p q) v) :=
  CliffordAlgebra.ι_sq_scalar _ v

abbrev Counts4 := ℕ × ℕ × ℕ × ℕ

/-- Total plus/minus dimensions from the four refined entries (++,+-,-+,--). -/
def totalCounts (c : Counts4) : ℕ × ℕ := (c.1 + c.2.1, c.2.2.1 + c.2.2.2)

/-- Table 9's refined entries. Only parity-compatible split signatures are used. -/
def realRefinedTable (n s : ℤ) : Counts4 :=
  match s % 8, n % 8 with
  | 0, 0 => (0, 1, 0, 1) | 0, 2 => (2, 0, 0, 0)
  | 0, 4 => (0, 1, 0, 1) | 0, 6 => (0, 0, 2, 0)
  | 1, 1 => (2, 1, 0, 1) | 1, 3 => (2, 1, 0, 1)
  | 1, 5 => (0, 1, 2, 1) | 1, 7 => (0, 1, 2, 1)
  | 2, 0 => (2, 2, 2, 2) | 2, 2 => (4, 2, 0, 2)
  | 2, 4 => (2, 2, 2, 2) | 2, 6 => (0, 2, 4, 2)
  | 4, 0 => (0, 4, 0, 4) | 4, 2 => (6, 0, 2, 0)
  | 4, 4 => (0, 4, 0, 4) | 4, 6 => (2, 0, 6, 0)
  | _, _ => (0, 0, 0, 0)

/-- Residues for which the real full spinor has two semispinor summands. -/
def SplitSignature (s : ℤ) : Prop := s % 8 = 0 ∨ s % 8 = 1 ∨ s % 8 = 2 ∨ s % 8 = 4

/-- Table 1 / unrefined Table 9. Invalid parity entries are unused. -/
def realTotalTable (n s : ℤ) : ℕ × ℕ :=
  if s % 8 = 0 ∨ s % 8 = 1 ∨ s % 8 = 2 ∨ s % 8 = 4 then
    totalCounts (realRefinedTable n s) else
  match s % 8, n % 8 with
  | 3, 1 => (3, 1) | 3, 3 => (3, 1) | 3, 5 => (1, 3) | 3, 7 => (1, 3)
  | 5, 1 => (3, 1) | 5, 3 => (3, 1) | 5, 5 => (1, 3) | 5, 7 => (1, 3)
  | 6, 0 => (1, 1) | 6, 2 => (2, 0) | 6, 4 => (1, 1) | 6, 6 => (0, 2)
  | 7, 1 => (1, 0) | 7, 3 => (1, 0) | 7, 5 => (0, 1) | 7, 7 => (0, 1)
  | _, _ => (0, 0)

/-- Complex refined table (PDF p. 39), used only in positive even dimension. -/
def complexRefinedTable (d : ℤ) : Counts4 :=
  match d % 8 with
  | 0 => (0, 1, 0, 1) | 2 => (2, 0, 0, 0)
  | 4 => (0, 1, 0, 1) | 6 => (0, 0, 2, 0) | _ => (0, 0, 0, 0)

/-- Complex total table; its values at negative integers are periodic residue data. -/
def complexTotalTable (d : ℤ) : ℕ × ℕ :=
  if d % 2 = 0 then totalCounts (complexRefinedTable d) else
  if d % 8 = 1 ∨ d % 8 = 3 then (1, 0) else (0, 1)

section ActualDimensions

variable {K : Type*} [Field K] [CharZero K] {d : ℕ}
variable {g : Matrix (Fin d) (Fin d) K}
variable {S : Type*} [AddCommGroup S] [Module K S]

noncomputable def actualTotalDimensions (rho : SpinRepresentation g S) : ℕ × ℕ :=
  (extensionDimension rho 1, extensionDimension rho (-1))

noncomputable def actualRefinedDimensions (rho : SpinRepresentation g S)
    (h : SpinSplitting rho) : Counts4 :=
  (refinedExtensionDimension rho h 1 1, refinedExtensionDimension rho h 1 (-1),
    refinedExtensionDimension rho h (-1) 1, refinedExtensionDimension rho h (-1) (-1))

/-- Equivalent subrepresentations; preservation is checked without choosing new actions. -/
def EquivalentSubspaces (operators : Set (Module.End K S)) (P Q : Submodule K S) : Prop :=
  ∃ e : P ≃ₗ[K] Q, ∀ A ∈ operators, ∀ x y : P,
    (y : S) = A x → (e y : S) = A (e x)

/-- Two irreducible summands, with their equivalence or inequivalence retained. -/
def TwoIrreducibleSummands (rho : SpinRepresentation g S) (equivalent : Bool) : Prop :=
  ∃ P Q : Submodule K S, IsCompl P Q ∧
    IrreducibleSubspace (evenOperators rho) P ∧
    IrreducibleSubspace (evenOperators rho) Q ∧
    (if equivalent then EquivalentSubspaces (evenOperators rho) P Q else
      ¬ EquivalentSubspaces (evenOperators rho) P Q)

end ActualDimensions

/-- All real dimension identifications concern genuine Hom spaces, never the table as a definition. -/
def RealDimensionClassification : Prop :=
  ∀ (p q : ℕ), 0 < p + q →
    ∀ (S : Type) [AddCommGroup S] [Module ℝ S] [FiniteDimensional ℝ S]
      (rho : SpinRepresentation (signatureMatrix p q) S),
      actualTotalDimensions rho = realTotalTable (p + q) ((p : ℤ) - q) ∧
      (Nonempty (SpinSplitting rho) ↔ SplitSignature ((p : ℤ) - q)) ∧
      ∀ h : SpinSplitting rho,
        actualRefinedDimensions rho h = realRefinedTable (p + q) ((p : ℤ) - q)

/-- Periodicity and mirror supersymmetry on the realizable parity lattice. -/
def RealTableSymmetries : Prop :=
  ∀ n s : ℤ, Even (n + s) →
    realTotalTable (n + 8) s = realTotalTable n s ∧
    realTotalTable n (s + 8) = realTotalTable n s ∧
    realTotalTable (-n) s = ((realTotalTable n s).2, (realTotalTable n s).1) ∧
    (SplitSignature s →
      realRefinedTable (n + 8) s = realRefinedTable n s ∧
      realRefinedTable n (s + 8) = realRefinedTable n s ∧
      realRefinedTable (-n) s =
        ((realRefinedTable n s).2.2.1, (realRefinedTable n s).2.2.2,
          (realRefinedTable n s).1, (realRefinedTable n s).2.1))

/-- Reflections used in the introduction, acting on integer residue coordinates. -/
def gammaStep (a b : ℤ × ℤ) : Prop :=
  b = (-4 - a.1, a.2) ∨ b = (4 - a.1, a.2) ∨
  b = (a.1, -2 - a.2) ∨ b = (a.1, 6 - a.2)

def gammaTildeStep (a b : ℤ × ℤ) : Prop := gammaStep a b ∨ b = (-a.1, a.2)

/-- Reflection group orbits, given by the equivalence closure of the generating reflections. -/
def gammaOrbit : (ℤ × ℤ) → (ℤ × ℤ) → Prop := Relation.EqvGen gammaStep

def gammaTildeOrbit : (ℤ × ℤ) → (ℤ × ℤ) → Prop := Relation.EqvGen gammaTildeStep

/-- Closed reflection domain F (PDF p. 4). -/
def reflectionDomain : Finset (ℤ × ℤ) :=
  {(-2, 0), (-2, 2), (-1, -1), (-1, 1), (-1, 3), (0, 0), (0, 2),
    (1, -1), (1, 1), (1, 3), (2, 0), (2, 2)}

/-- The seven representatives for the enlarged group (PDF p. 5). -/
def enlargedDomain : Finset (ℤ × ℤ) :=
  {(0, 0), (0, 2), (1, -1), (1, 1), (1, 3), (2, 0), (2, 2)}

/-- Nonnegative (p,q) representatives, not the same coordinate pairs as enlargedDomain. -/
def signatureDomain : Finset (ℤ × ℤ) :=
  {(2, 0), (1, 1), (3, 0), (2, 1), (1, 2), (3, 1), (2, 2)}

example : (0, 0) ∈ reflectionDomain := by simp [reflectionDomain]

example : totalCounts (2, 1, 0, 1) = (3, 1) := rfl

/-- Real metric-skew matrices, the concrete so(p,q). -/
def orthogonalSpace (p q : ℕ) : LieSubalgebra ℝ
    (Matrix (Fin (p + q)) (Fin (p + q)) ℝ) :=
  skewAdjointMatricesLieSubalgebra (signatureMatrix p q)

/-- Underlying vector space of so(p,q) semidirect V, PDF p. 6. -/
def poincareSpace (p q : ℕ) : Submodule ℝ
    (Matrix (Fin (p + q)) (Fin (p + q)) ℝ × (Fin (p + q) → ℝ)) :=
  (orthogonalSpace p q).toSubmodule.prod ⊤

/-- Explicit semidirect bracket on ambient affine coefficients. -/
def poincareBracket {d : ℕ}
    (x y : Matrix (Fin d) (Fin d) ℝ × (Fin d → ℝ)) :
    Matrix (Fin d) (Fin d) ℝ × (Fin d → ℝ) :=
  (x.1 * y.1 - y.1 * x.1, x.1.mulVec y.2 - y.1.mulVec x.2)

/-- Affine isometry coefficients, without restricting to an orientation component. -/
def AffineIsometryCoefficients (p q : ℕ)
    (A : Matrix (Fin (p + q)) (Fin (p + q)) ℝ) : Prop :=
  A.det ≠ 0 ∧ A.transpose * signatureMatrix p q * A = signatureMatrix p q

/-- The actual group of interval-preserving bijections of pseudo-Euclidean space.
The theorem below identifies it with all affine metric isometries. -/
def metricIsometryGroup (p q : ℕ) : Subgroup (Equiv.Perm ((Fin (p + q) → ℝ))) where
  carrier := {f | ∀ x y, (signatureMatrix p q).toBilin' (f x - f y) (f x - f y) =
    (signatureMatrix p q).toBilin' (x - y) (x - y)}
  one_mem' := by intro x y; rfl
  mul_mem' := by
    intro f h hf hh x y
    exact (hf (h x) (h y)).trans (hh x y)
  inv_mem' := by
    intro f hf x y
    have h := hf (f.symm x) (f.symm y)
    simpa using h.symm

example (p q : ℕ) : (1 : Equiv.Perm ((Fin (p + q) → ℝ))) ∈ metricIsometryGroup p q :=
  (metricIsometryGroup p q).one_mem

/-- The tangent space at the identity of the affine metric isometry group.
A smooth curve is required locally to lie in the actual group; no tangent
membership equation is assumed as a substitute for a curve. -/
def IsometryVelocity (p q : ℕ)
    (z : Matrix (Fin (p + q)) (Fin (p + q)) ℝ × (Fin (p + q) → ℝ)) : Prop :=
  ∃ (A : ℝ → Matrix (Fin (p + q)) (Fin (p + q)) ℝ)
    (b : ℝ → (Fin (p + q) → ℝ)),
    A 0 = 1 ∧ b 0 = 0 ∧ ContDiff ℝ ⊤ A ∧ ContDiff ℝ ⊤ b ∧
    (∀ᶠ t in nhds (0 : ℝ), AffineIsometryCoefficients p q (A t)) ∧
    HasDerivAt A z.1 0 ∧ HasDerivAt b z.2 0

example {d : ℕ} (v w : (Fin d → ℝ)) :
    poincareBracket (0, v) (0, w) = (0, 0) := by simp [poincareBracket]

example {d : ℕ} (A : Matrix (Fin d) (Fin d) ℝ) (w : (Fin d → ℝ)) :
    poincareBracket (A, 0) (0, w) = (0, A.mulVec w) := by simp [poincareBracket]

/-- Invariance under all unit-vector Clifford actions equals invariance under their
products, i.e. Pin invariance (PDF p. 24). -/
def PinInvariant {p q : ℕ} {S : Type*} [AddCommGroup S] [Module ℝ S]
    (rho : SpinRepresentation (signatureMatrix p q) S)
    (b : LinearMap.BilinForm ℝ S) : Prop :=
  ∀ v : (Fin (p + q) → ℝ),
    ((signatureMatrix p q).toBilin' v v = 1 ∨
      (signatureMatrix p q).toBilin' v v = -1) →
    ∀ s t, b (cliffordVectorAction rho v s) (cliffordVectorAction rho v t) = b s t

/-- Sanity: the metric uses the printed positive/negative sign order. -/
example (p q : ℕ) (i : Fin (p + q)) :
    signatureMatrix p q i i = if i.val < p then 1 else -1 := by
  simp [signatureMatrix]

section AdditionalSanity

variable {K : Type*} [Field K] [CharZero K] {d : ℕ}
variable {g : Matrix (Fin d) (Fin d) K}
variable {S : Type*} [AddCommGroup S] [Module K S]

example (P : Submodule K S) : SpinStable (∅ : Set (Module.End K S)) P := by
  simp [SpinStable]

example (rho : SpinRepresentation g S) : (1 : Module.End K S) ∈ evenOperators rho := by
  exact ⟨1, by simp⟩

example (rho : SpinRepresentation g S) : (1 : Module.End K S) ∈ schurAlgebra rho :=
  (schurAlgebra rho).one_mem

example (rho : SpinRepresentation g S) : FormSigns rho 0 1 1 := by
  simp [FormSigns, IsSign]

example (rho : SpinRepresentation g S) (b : LinearMap.BilinForm K S) :
    EndSigns rho b 0 1 1 := by
  simp [EndSigns, IsSign]

example (E : Module.End K S) : FormIsotropy E 0 1 := by
  simp [FormIsotropy, IsSign]

example (E : Module.End K S) : EndIsotropy E 0 1 := by
  simp [EndIsotropy, IsSign]

example (rho : SpinRepresentation g S) : FormAdmissible rho none 0 := by
  exact ⟨1, 1, by simp [FormSigns, IsSign], trivial⟩

example (rho : SpinRepresentation g S) (b : LinearMap.BilinForm K S) :
    EndAdmissible rho none b 0 := by
  exact ⟨1, 1, by simp [EndSigns, IsSign], trivial⟩

example (rho : SpinRepresentation g S) (h : SpinSplitting rho) :
    (0 : (Fin d → K) →ₗ[K] LinearMap.BilinForm K S) ∈ refinedBracketForms rho h 1 1 :=
  (refinedBracketForms rho h 1 1).zero_mem

example (b : LinearMap.BilinForm K S) : formCompose b (1 : Module.End K S) = b := by
  ext s t
  rfl

example (operators : Set (Module.End K S)) (P : Submodule K S) :
    EquivalentSubspaces operators P P := by
  refine ⟨LinearEquiv.refl K P, ?_⟩
  intro A hA x y hxy
  exact hxy

end AdditionalSanity

example : complexRefinedTable (-2) = (0, 0, 2, 0) := rfl

example (a : ℤ × ℤ) : gammaStep a (-4 - a.1, a.2) := Or.inl rfl

example {p q : ℕ} {S : Type*} [AddCommGroup S] [Module ℝ S]
    (rho : SpinRepresentation (signatureMatrix p q) S) : PinInvariant rho 0 := by
  simp [PinInvariant]

end QAlgorithms.Papers.Independent.Gap48.P17
Source
Classification of NNN-(super)-extended Poincaré algebras and bilinear invariants of the spinor representation of Spin(p,q)Spin(p,q)Spin(p,q), arXiv:math/9511215v1, https://arxiv.org/abs/math/9511215v1
Read-back

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

QAlgorithms.Papers.Independent.Gap48.P17.AffineIsometryCoefficients

For any natural numbers p,qp,qp,q and any real (p+q)×(p+q)(p+q)\times(p+q)(p+q)×(p+q) matrix AAA, let GGG be diagonal with its first ppp entries equal to 111 and its remaining qqq entries equal to −1-1−1. This predicate means precisely

det⁡A≠0andATGA=G.\det A\ne0\quad\text{and}\quad A^{\mathsf T}GA=G.detA=0andATGA=G.

When p=q=0p=q=0p=q=0, the unique empty matrix satisfies the predicate: its determinant is 111, and the matrix equality holds.

QAlgorithms.Papers.Independent.Gap48.P17.CompleteSplitting

Let KKK be any field, d≥0d\geq0d≥0, V=KdV=K^dV=Kd, g=(gij)g=(g_{ij})g=(gij​) any matrix over KKK, and SSS any KKK-vector space. Let C=Cl⁡(V,Q)C=\operatorname{Cl}(V,Q)C=Cl(V,Q) for Q(v)=−∑i,jgijvivjQ(v)=-\sum_{i,j}g_{ij}v_i v_jQ(v)=−∑i,j​gij​vi​vj​, let ρ:C→End⁡K(S)\rho:C\to\operatorname{End}_K(S)ρ:C→EndK​(S) be a unital KKK-algebra action on a nonzero SSS whose only subspaces preserved by the whole action are zero and SSS, and write c(v)=ρ(ι(v))c(v)=\rho(\iota(v))c(v)=ρ(ι(v)). For an optional splitting, this predicate has two cases: if no splitting is supplied, it requires that SSS be nonzero and that every subspace preserved by every ρ(a)\rho(a)ρ(a) with aaa in the even Clifford subalgebra be zero or SSS; if a splitting is supplied, the predicate is true without any further condition. Here the even subalgebra is the span of even-length products of canonical Clifford vectors, including 111, and a supplied splitting already consists of a linear operator GGG satisfying G2=IG^2=IG2=I and Gc(v)=−c(v)GGc(v)=-c(v)GGc(v)=−c(v)G for all vvv, with both eigenspaces {s:Gs=s}\{s:Gs=s\}{s:Gs=s} and {s:Gs=−s}\{s:Gs=-s\}{s:Gs=−s} nonzero, preserved by all even actions, and having no nonzero proper subspace preserved by all even actions. No finite-dimensionality or characteristic restriction is imposed, and d=0d=0d=0 is included.

QAlgorithms.Papers.Independent.Gap48.P17.ComplexCl

For any natural number ddd, this denotes the complex Clifford algebra of the quadratic form

Q(z)=−∑i<dzi2on Cd.Q(z)=-\sum_{i<d}z_i^2 \quad\text{on }\mathbb C^d.Q(z)=−i<d∑​zi2​on Cd.

These are ordinary complex squares, with no complex conjugation. In particular, the canonical Clifford image of zzz has square Q(z) 1Q(z)\,1Q(z)1. The case d=0d=0d=0 is included and gives the Clifford algebra of the zero-dimensional complex vector space, canonically isomorphic to C\mathbb CC.

QAlgorithms.Papers.Independent.Gap48.P17.ComplexEvenCl

For any natural number ddd, this denotes the even subalgebra of the complex Clifford algebra associated with

Q(z)=−∑i<dzi2on Cd,Q(z)=-\sum_{i<d}z_i^2 \quad\text{on }\mathbb C^d,Q(z)=−i<d∑​zi2​on Cd,

where the squares involve no complex conjugation. This subalgebra consists of complex linear combinations of products of an even number of canonical vector images, including the empty product 111. The case d=0d=0d=0 is allowed and gives an even subalgebra canonically isomorphic to C\mathbb CC.

QAlgorithms.Papers.Independent.Gap48.P17.Counts4

This is an abbreviation for the type of ordered quadruples of natural numbers, including zero in every coordinate; explicitly, the underlying product is N×(N×(N×N))\mathbb N\times(\mathbb N\times(\mathbb N\times\mathbb N))N×(N×(N×N)).

QAlgorithms.Papers.Independent.Gap48.P17.EndAdmissible

Let KKK be any field, d≥0d\geq0d≥0, V=KdV=K^dV=Kd, g=(gij)g=(g_{ij})g=(gij​) any matrix over KKK, and SSS any KKK-vector space. Put C=Cl⁡(V,Q)C=\operatorname{Cl}(V,Q)C=Cl(V,Q) with Q(v)=−∑i,jgijvivjQ(v)=-\sum_{i,j}g_{ij}v_i v_jQ(v)=−∑i,j​gij​vi​vj​, and let ρ:C→End⁡K(S)\rho:C\to\operatorname{End}_K(S)ρ:C→EndK​(S) be a unital KKK-algebra action on a nonzero SSS whose only subspaces preserved by the whole action are zero and SSS. Write c(v)=ρ(ι(v))c(v)=\rho(\iota(v))c(v)=ρ(ι(v)). For any bilinear form b:S×S→Kb:S\times S\to Kb:S×S→K, any linear operator AAA on SSS, and an optional splitting, this predicate means that there exist τ,σ∈{1,−1}⊆K\tau,\sigma\in\{1,-1\}\subseteq Kτ,σ∈{1,−1}⊆K such that c(v)A=τAc(v)c(v)A=\tau A c(v)c(v)A=τAc(v) for every v∈Vv\in Vv∈V and b(As,t)=σb(s,At)b(As,t)=\sigma b(s,At)b(As,t)=σb(s,At) for every s,t∈Ss,t\in Ss,t∈S, and, if a splitting with grading operator GGG is supplied, there also exists i∈{1,−1}i\in\{1,-1\}i∈{1,−1} such that GA=iAGGA=iAGGA=iAG. A supplied splitting means that G2=IG^2=IG2=I, Gc(v)=−c(v)GGc(v)=-c(v)GGc(v)=−c(v)G for all vvv, and both eigenspaces {s:Gs=s}\{s:Gs=s\}{s:Gs=s} and {s:Gs=−s}\{s:Gs=-s\}{s:Gs=−s} are nonzero, preserved by every ρ(a)\rho(a)ρ(a) for aaa in the even Clifford subalgebra, and have no nonzero proper subspace preserved by all these operators; that even subalgebra is the span of even-length products of canonical Clifford vectors, including 111. With no supplied splitting, no grading condition is imposed. The form bbb need not itself satisfy any sign or nondegeneracy condition, and A=0A=0A=0 satisfies the predicate for every bbb and every available choice of splitting. No finite-dimensionality is assumed; d=0d=0d=0 and characteristic 222, where 1=−11=-11=−1, are included.

QAlgorithms.Papers.Independent.Gap48.P17.EndIsotropy

For a field KKK, a KKK-vector space SSS, linear endomorphisms E,A:S→SE,A:S\to SE,A:S→S, and a scalar i∈Ki\in Ki∈K, this predicate means that i=1i=1i=1 or i=−1i=-1i=−1, and

E∘A=i (A∘E).E\circ A=i\,(A\circ E).E∘A=i(A∘E).

Neither endomorphism is required to be invertible, nonzero, or an involution. The zero vector space is allowed, and if either endomorphism is zero, the equation holds for every permitted sign. In characteristic 222, the two signs coincide.

QAlgorithms.Papers.Independent.Gap48.P17.EndSigns

Let KKK be a field, d≥0d\ge0d≥0, V=KdV=K^dV=Kd, ggg any d×dd\times dd×d matrix over KKK, and SSS a KKK-vector space. Put Qg(w)=−∑i,jgijwiwjQ_g(w)=-\sum_{i,j}g_{ij}w_iw_jQg​(w)=−∑i,j​gij​wi​wj​, and suppose ρ\rhoρ supplies a unital algebra homomorphism R:Cl(V,Qg)→End⁡K(S)R:\mathrm{Cl}(V,Q_g)\to\operatorname{End}_K(S)R:Cl(V,Qg​)→EndK​(S), with S≠0S\ne0S=0 and only 0,S0,S0,S stable under its whole image. Given a bilinear form b:S×S→Kb:S\times S\to Kb:S×S→K, a linear endomorphism A:S→SA:S\to SA:S→S, and scalars τ,σ∈K\tau,\sigma\in Kτ,σ∈K, this predicate requires τ∈{1,−1}\tau\in\{1,-1\}τ∈{1,−1}, σ∈{1,−1}\sigma\in\{1,-1\}σ∈{1,−1}, and, writing c(v)=R(ι(v))c(v)=R(\iota(v))c(v)=R(ι(v)) for the canonical Clifford map ι\iotaι,

c(v)∘A=τ (A∘c(v))(v∈V),b(A(s),t)=σ b(s,A(t))(s,t∈S).c(v)\circ A=\tau\,(A\circ c(v)) \qquad(v\in V), \qquad b(A(s),t)=\sigma\,b(s,A(t)) \qquad(s,t\in S).c(v)∘A=τ(A∘c(v))(v∈V),b(A(s),t)=σb(s,A(t))(s,t∈S).

No invertibility or nonzero condition is required of AAA, and no symmetry or nondegeneracy is required of bbb. In particular, A=0A=0A=0 satisfies both identities for every permitted pair of signs. When d=0d=0d=0, the first identity imposes no restriction; in characteristic 222, the two signs coincide.

QAlgorithms.Papers.Independent.Gap48.P17.EquivalentSubspaces

For a field KKK, an additive commutative group SSS with a KKK-module structure, any set A⊆End⁡K(S)\mathcal A\subseteq\operatorname{End}_K(S)A⊆EndK​(S), and any subspaces P,Q⊆SP,Q\subseteq SP,Q⊆S, this predicate means that there exists a KKK-linear isomorphism e:P→Qe:P\to Qe:P→Q such that, for every A∈AA\in\mathcal AA∈A and every x,y∈Px,y\in Px,y∈P, if y=Axy=Axy=Ax as elements of SSS, then e(y)=A(e(x))e(y)=A(e(x))e(y)=A(e(x)) as elements of SSS. Neither PPP nor QQQ is required here to be stable under A\mathcal AA; for a given A,xA,xA,x, the implication imposes a condition only when AxAxAx belongs to PPP. The set A\mathcal AA may be empty, in which case only the existence of the linear isomorphism is required, and zero subspaces are allowed.

QAlgorithms.Papers.Independent.Gap48.P17.FormAdmissible

Let KKK be any field, d≥0d\geq0d≥0, V=KdV=K^dV=Kd, g=(gij)g=(g_{ij})g=(gij​) any matrix over KKK, and SSS any KKK-vector space. Put C=Cl⁡(V,Q)C=\operatorname{Cl}(V,Q)C=Cl(V,Q) with Q(v)=−∑i,jgijvivjQ(v)=-\sum_{i,j}g_{ij}v_i v_jQ(v)=−∑i,j​gij​vi​vj​, and let ρ:C→End⁡K(S)\rho:C\to\operatorname{End}_K(S)ρ:C→EndK​(S) be a unital KKK-algebra action on a nonzero SSS whose only subspaces preserved by the whole action are zero and SSS. Write c(v)=ρ(ι(v))c(v)=\rho(\iota(v))c(v)=ρ(ι(v)). Given a bilinear form b:S×S→Kb:S\times S\to Kb:S×S→K and an optional splitting, the predicate holds exactly when there exist τ,σ∈{1,−1}⊆K\tau,\sigma\in\{1,-1\}\subseteq Kτ,σ∈{1,−1}⊆K such that, for every v∈Vv\in Vv∈V and s,t∈Ss,t\in Ss,t∈S, b(c(v)s,t)=τb(s,c(v)t)b(c(v)s,t)=\tau b(s,c(v)t)b(c(v)s,t)=τb(s,c(v)t) and b(t,s)=σb(s,t)b(t,s)=\sigma b(s,t)b(t,s)=σb(s,t), and, if a splitting with grading operator GGG is supplied, there also exists i∈{1,−1}i\in\{1,-1\}i∈{1,−1} such that b(Gs,t)=i b(s,Gt)b(Gs,t)=i\,b(s,Gt)b(Gs,t)=ib(s,Gt) for every s,t∈Ss,t\in Ss,t∈S. A supplied splitting means that G2=IG^2=IG2=I, Gc(v)=−c(v)GGc(v)=-c(v)GGc(v)=−c(v)G for all vvv, and each of {s:Gs=s}\{s:Gs=s\}{s:Gs=s} and {s:Gs=−s}\{s:Gs=-s\}{s:Gs=−s} is nonzero, is preserved by the action of every element of the even Clifford subalgebra, and has no nonzero proper subspace preserved by all those actions; the even subalgebra is the span of even-length products of canonical Clifford vectors, including 111. If no splitting is supplied, there is no grading condition. The signs need not be unique, the zero bilinear form is allowed and satisfies these conditions, and in characteristic 222 the two sign values coincide. No finite-dimensionality is assumed, and d=0d=0d=0 is included.

QAlgorithms.Papers.Independent.Gap48.P17.FormIsotropy

For a field KKK, a KKK-vector space SSS, a linear endomorphism E:S→SE:S\to SE:S→S, a bilinear form b:S×S→Kb:S\times S\to Kb:S×S→K, and a scalar i∈Ki\in Ki∈K, this predicate means that i=1i=1i=1 or i=−1i=-1i=−1, and

b(E(s),t)=i b(s,E(t))(s,t∈S).b(E(s),t)=i\,b(s,E(t)) \qquad(s,t\in S).b(E(s),t)=ib(s,E(t))(s,t∈S).

No condition such as E2=1E^2=1E2=1, symmetry of bbb, or nondegeneracy of bbb is imposed. The zero vector space and zero form are allowed; for the zero form, only the sign requirement on iii remains. In characteristic 222, the two possible signs coincide.

QAlgorithms.Papers.Independent.Gap48.P17.FormSigns

Let KKK be a field, d≥0d\ge0d≥0, V=KdV=K^dV=Kd, ggg any d×dd\times dd×d matrix over KKK, and SSS a KKK-vector space. Put Qg(w)=−∑i,jgijwiwjQ_g(w)=-\sum_{i,j}g_{ij}w_iw_jQg​(w)=−∑i,j​gij​wi​wj​, and suppose ρ\rhoρ supplies a unital algebra homomorphism R:Cl(V,Qg)→End⁡K(S)R:\mathrm{Cl}(V,Q_g)\to\operatorname{End}_K(S)R:Cl(V,Qg​)→EndK​(S), with S≠0S\ne0S=0 and only 0,S0,S0,S stable under its whole image. Given a bilinear form b:S×S→Kb:S\times S\to Kb:S×S→K and scalars τ,σ∈K\tau,\sigma\in Kτ,σ∈K, this predicate requires τ∈{1,−1}\tau\in\{1,-1\}τ∈{1,−1}, σ∈{1,−1}\sigma\in\{1,-1\}σ∈{1,−1}, and, writing c(v)=R(ι(v))c(v)=R(\iota(v))c(v)=R(ι(v)) for the canonical Clifford map ι\iotaι,

b(c(v)s,t)=τ b(s,c(v)t)(v∈V, s,t∈S),b(t,s)=σ b(s,t)(s,t∈S).b(c(v)s,t)=\tau\,b(s,c(v)t) \qquad(v\in V,\ s,t\in S), \qquad b(t,s)=\sigma\,b(s,t) \qquad(s,t\in S).b(c(v)s,t)=τb(s,c(v)t)(v∈V, s,t∈S),b(t,s)=σb(s,t)(s,t∈S).

The form need not be nonzero or nondegenerate; the zero form satisfies both identities for every permitted pair of signs. When d=0d=0d=0, the first identity imposes no restriction. In characteristic 222, the two signs coincide, and the second identity requires symmetry without separately requiring b(s,s)=0b(s,s)=0b(s,s)=0.

QAlgorithms.Papers.Independent.Gap48.P17.HasRealAlgebraType

For any type AAA equipped with a ring structure and a real-algebra structure, and any label ttt among the six values realSimple\mathrm{realSimple}realSimple, complexSimple\mathrm{complexSimple}complexSimple, quaternionSimple\mathrm{quaternionSimple}quaternionSimple, realSplit\mathrm{realSplit}realSplit, complexSplit\mathrm{complexSplit}complexSplit, and quaternionSplit\mathrm{quaternionSplit}quaternionSplit, this predicate means that there exists a natural number k>0k>0k>0 and a real-algebra isomorphism from AAA to the corresponding algebra: Mk(R)M_k(\mathbb R)Mk​(R) for realSimple\mathrm{realSimple}realSimple, Mk(C)M_k(\mathbb C)Mk​(C) for complexSimple\mathrm{complexSimple}complexSimple, Mk(H)M_k(\mathbb H)Mk​(H) for quaternionSimple\mathrm{quaternionSimple}quaternionSimple, Mk(R)×Mk(R)M_k(\mathbb R)\times M_k(\mathbb R)Mk​(R)×Mk​(R) for realSplit\mathrm{realSplit}realSplit, Mk(C)×Mk(C)M_k(\mathbb C)\times M_k(\mathbb C)Mk​(C)×Mk​(C) for complexSplit\mathrm{complexSplit}complexSplit, or Mk(H)×Mk(H)M_k(\mathbb H)\times M_k(\mathbb H)Mk​(H)×Mk​(H) for quaternionSplit\mathrm{quaternionSplit}quaternionSplit, where H\mathbb HH denotes the real quaternion algebra and MkM_kMk​ denotes the algebra of k×kk\times kk×k matrices. In each product, both factors have the same size kkk; size zero is excluded. Only existence of the size and isomorphism is required, with no uniqueness assertion.

QAlgorithms.Papers.Independent.Gap48.P17.HasRealGradedType

For natural numbers p,qp,qp,q, including zero, and an ordered pair of labels t=(t1,t2)t=(t_1,t_2)t=(t1​,t2​), this predicate requires that the even subalgebra and the full real Clifford algebra of the quadratic form

Q(x)=−∑i=0p−1xi2+∑i=pp+q−1xi2on Rp+qQ(x)=-\sum_{i=0}^{p-1}x_i^2+\sum_{i=p}^{p+q-1}x_i^2 \quad\text{on }\mathbb R^{p+q}Q(x)=−i=0∑p−1​xi2​+i=p∑p+q−1​xi2​on Rp+q

have types t1t_1t1​ and t2t_2t2​, respectively. For either algebra BBB, having label realSimple\mathrm{realSimple}realSimple, complexSimple\mathrm{complexSimple}complexSimple, or quaternionSimple\mathrm{quaternionSimple}quaternionSimple means that, for some positive integer kkk, there exists a real algebra isomorphism from BBB to Mk(R)M_k(\mathbb R)Mk​(R), Mk(C)M_k(\mathbb C)Mk​(C), or Mk(H)M_k(\mathbb H)Mk​(H), respectively, where H\mathbb HH is the real quaternion algebra. Having label realSplit\mathrm{realSplit}realSplit, complexSplit\mathrm{complexSplit}complexSplit, or quaternionSplit\mathrm{quaternionSplit}quaternionSplit means instead that BBB is isomorphic as a real algebra to Mk(R)×Mk(R)M_k(\mathbb R)\times M_k(\mathbb R)Mk​(R)×Mk​(R), Mk(C)×Mk(C)M_k(\mathbb C)\times M_k(\mathbb C)Mk​(C)×Mk​(C), or Mk(H)×Mk(H)M_k(\mathbb H)\times M_k(\mathbb H)Mk​(H)×Mk​(H), respectively, for some positive integer kkk. The two required isomorphisms may use different positive integers. When p+q=0p+q=0p+q=0, the vector space is zero-dimensional and the displayed sums are empty.

QAlgorithms.Papers.Independent.Gap48.P17.HasSchurTable

For any type AAA equipped with a ring structure and a real algebra structure, and any integer sss, this predicate asserts the existence of a real algebra isomorphism from AAA to the algebra specified below, where rrr is the remainder of sss modulo 888, chosen in {0,…,7}\{0,\ldots,7\}{0,…,7}, and H\mathbb HH denotes the real quaternion algebra:

rtarget algebra0R×R1M2(R)2M2(C)3H4H×H5H6C7R\begin{array}{c|c} r&\text{target algebra}\\ \hline 0&\mathbb R\times\mathbb R\\ 1&M_2(\mathbb R)\\ 2&M_2(\mathbb C)\\ 3&\mathbb H\\ 4&\mathbb H\times\mathbb H\\ 5&\mathbb H\\ 6&\mathbb C\\ 7&\mathbb R \end{array}r01234567​target algebraR×RM2​(R)M2​(C)HH×HHCR​​

The definition applies to negative integers sss as well and requires existence, without specifying a particular isomorphism.

QAlgorithms.Papers.Independent.Gap48.P17.IrreducibleOperators

For any field KKK, any KKK-vector space SSS with its additive commutative group structure, and any set A⊆End⁡K(S)\mathcal A\subseteq\operatorname{End}_K(S)A⊆EndK​(S), this predicate means that SSS has at least two distinct elements and that every linear subspace P⊆SP\subseteq SP⊆S satisfying Ax∈PAx\in PAx∈P for all A∈AA\in\mathcal AA∈A and x∈Px\in Px∈P is either {0}\{0\}{0} or SSS. No finite-dimensionality assumption is imposed. The set A\mathcal AA may be empty; in that case every subspace satisfies the stability hypothesis, so the condition requires every subspace to be either {0}\{0\}{0} or SSS.

QAlgorithms.Papers.Independent.Gap48.P17.IrreducibleSubspace

For any field KKK, any KKK-vector space SSS, any set A⊆End⁡K(S)\mathcal A\subseteq\operatorname{End}_K(S)A⊆EndK​(S) of linear operators, and any linear subspace P⊆SP\subseteq SP⊆S, this predicate means that P≠{0}P\ne\{0\}P={0}, every A∈AA\in\mathcal AA∈A sends every vector of PPP into PPP, and every linear subspace Q⊆PQ\subseteq PQ⊆P preserved by every operator in A\mathcal AA satisfies Q={0}Q=\{0\}Q={0} or Q=PQ=PQ=P. No finite-dimensionality assumption is imposed. The operator set may be empty, in which case preservation is automatic and the last condition applies to every linear subspace of PPP; the zero subspace never satisfies the predicate.

QAlgorithms.Papers.Independent.Gap48.P17.IsSign

For a scalar aaa in a field KKK, this predicate means exactly that a=1a=1a=1 or a=−1a=-1a=−1. The disjunction does not require these two possibilities to be distinct; in characteristic 222, both equalities describe the same scalar.

QAlgorithms.Papers.Independent.Gap48.P17.IsometryVelocity

For any natural numbers p,qp,qp,q, put n=p+qn=p+qn=p+q, let GGG be diagonal with ppp entries 111 followed by qqq entries −1-1−1, and take any pair z=(X,v)∈Mn(R)×Rnz=(X,v)\in M_n(\mathbb R)\times\mathbb R^nz=(X,v)∈Mn​(R)×Rn. This predicate means that there exist infinitely differentiable functions A:R→Mn(R)A:\mathbb R\to M_n(\mathbb R)A:R→Mn​(R) and b:R→Rnb:\mathbb R\to\mathbb R^nb:R→Rn such that

A(0)=I,b(0)=0,A′(0)=X,b′(0)=v,A(0)=I,\qquad b(0)=0,\qquad A'(0)=X,\qquad b'(0)=v,A(0)=I,b(0)=0,A′(0)=X,b′(0)=v,

and there is a neighborhood of 000 on which, for every ttt,

det⁡A(t)≠0,A(t)TGA(t)=G.\det A(t)\ne0,\qquad A(t)^{\mathsf T}GA(t)=G.detA(t)=0,A(t)TGA(t)=G.

The functions are defined and infinitely differentiable on all of R\mathbb RR, while the determinant and matrix conditions are required only near 000. When p=q=0p=q=0p=q=0, the unique pair zzz satisfies this predicate.

QAlgorithms.Papers.Independent.Gap48.P17.PinInvariant

For natural numbers p,qp,qp,q, let V=Rp+qV=\mathbb R^{p+q}V=Rp+q and B(u,v)=∑j<pujvj−∑p≤j<p+qujvjB(u,v)=\sum_{j<p}u_jv_j-\sum_{p\le j<p+q}u_jv_jB(u,v)=∑j<p​uj​vj​−∑p≤j<p+q​uj​vj​. Let SSS be a real vector space, with its additive commutative group and real module structures, and let ρ:Cl⁡(V,Q)→End⁡R(S)\rho:\operatorname{Cl}(V,Q)\to\operatorname{End}_{\mathbb R}(S)ρ:Cl(V,Q)→EndR​(S) be a unital real algebra homomorphism for Q(v)=−B(v,v)Q(v)=-B(v,v)Q(v)=−B(v,v), such that S≠{0}S\ne\{0\}S={0} and the only subspaces stable under every ρ(a)\rho(a)ρ(a) are 000 and SSS. For a real bilinear form b:S×S→Rb:S\times S\to\mathbb Rb:S×S→R, the property defined here means that, for every v∈Vv\in Vv∈V with B(v,v)=1B(v,v)=1B(v,v)=1 or B(v,v)=−1B(v,v)=-1B(v,v)=−1, and every s,t∈Ss,t\in Ss,t∈S, b(ρ(ι(v))s,ρ(ι(v))t)=b(s,t)b(\rho(\iota(v))s,\rho(\iota(v))t)=b(s,t)b(ρ(ι(v))s,ρ(ι(v))t)=b(s,t), where ι\iotaι is the canonical map into the Clifford algebra. There is no finite-dimensionality assumption on SSS, and bbb need not be symmetric, nonzero, or nondegenerate. Only vectors of squared length 111 or −1-1−1 impose a condition; when p=q=0p=q=0p=q=0, there are no such vectors, so this property holds for every bbb.

QAlgorithms.Papers.Independent.Gap48.P17.PseudoOrthonormal

For natural numbers p,qp,qp,q and a real basis e=(ei)0≤i<p+qe=(e_i)_{0\le i<p+q}e=(ei​)0≤i<p+q​ of Rp+q\mathbb R^{p+q}Rp+q, this predicate requires, for every pair of indices i,ji,ji,j, that

∑a=0p−1(ei)a(ej)a−∑a=pp+q−1(ei)a(ej)a={1,i=j and i<p,−1,i=j and i≥p,0,i≠j.\sum_{a=0}^{p-1}(e_i)_a(e_j)_a -\sum_{a=p}^{p+q-1}(e_i)_a(e_j)_a = \begin{cases} 1,&i=j\text{ and }i<p,\\ -1,&i=j\text{ and }i\ge p,\\ 0,&i\ne j. \end{cases}a=0∑p−1​(ei​)a​(ej​)a​−a=p∑p+q−1​(ei​)a​(ej​)a​=⎩⎨⎧​1,−1,0,​i=j and i<p,i=j and i≥p,i=j.​

Here (ei)a(e_i)_a(ei​)a​ denotes coordinate aaa of the basis vector eie_iei​. Zero values of ppp or qqq are allowed, with empty sums equal to zero; when p+q=0p+q=0p+q=0, there are no indices i,ji,ji,j, so the condition holds vacuously.

QAlgorithms.Papers.Independent.Gap48.P17.RealAlgebraType

This declaration introduces a type with exactly six distinct values, named realSimple\mathrm{realSimple}realSimple, complexSimple\mathrm{complexSimple}complexSimple, quaternionSimple\mathrm{quaternionSimple}quaternionSimple, realSplit\mathrm{realSplit}realSplit, complexSplit\mathrm{complexSplit}complexSplit, and quaternionSplit\mathrm{quaternionSplit}quaternionSplit, with no additional data attached to any value. It also supplies a procedure deciding equality between any two values. The declaration itself assigns no algebraic properties to these names.

QAlgorithms.Papers.Independent.Gap48.P17.RealCl

For any natural numbers p,qp,qp,q, this denotes the real Clifford algebra of the quadratic form on Rp+q\mathbb R^{p+q}Rp+q given by

Q(x)=−∑i<pxi2+∑p≤i<p+qxi2.Q(x)=-\sum_{i<p}x_i^2+\sum_{p\le i<p+q}x_i^2.Q(x)=−i<p∑​xi2​+p≤i<p+q∑​xi2​.

In particular, the canonical Clifford image of a vector xxx has square Q(x) 1Q(x)\,1Q(x)1. Zero values of either parameter are allowed; when p=q=0p=q=0p=q=0, this is the Clifford algebra of the zero-dimensional real vector space, canonically isomorphic to R\mathbb RR.

QAlgorithms.Papers.Independent.Gap48.P17.RealDimensionClassification

This proposition quantifies over every p,q∈Np,q\in\mathbb Np,q∈N with n=p+q>0n=p+q>0n=p+q>0, every finite-dimensional real vector space SSS equipped with its additive commutative group and real module structures, and every unital real algebra homomorphism ρ:Cl⁡(Q)→End⁡R(S)\rho:\operatorname{Cl}(Q)\to\operatorname{End}_{\mathbb R}(S)ρ:Cl(Q)→EndR​(S), where

B(u,x)=∑i<puixi−∑p≤i<nuixi,Q(v)=−B(v,v),B(u,x)=\sum_{i<p}u_ix_i-\sum_{p\le i<n}u_ix_i, \qquad Q(v)=-B(v,v),B(u,x)=i<p∑​ui​xi​−p≤i<n∑​ui​xi​,Q(v)=−B(v,v),

such that S≠0S\ne0S=0 and its only subspaces stable under the full image of ρ\rhoρ are 000 and SSS. Put s=p−q∈Zs=p-q\in\mathbb Zs=p−q∈Z, c(v)=ρ(ι(v))c(v)=\rho(\iota(v))c(v)=ρ(ι(v)), Lu,vx=B(u,x)v−B(v,x)uL_{u,v}x=B(u,x)v-B(v,x)uLu,v​x=B(u,x)v−B(v,x)u, and Du,v=14(c(u)c(v)−c(v)c(u))D_{u,v}=\tfrac14(c(u)c(v)-c(v)c(u))Du,v​=41​(c(u)c(v)−c(v)c(u)). For σ=±1\sigma=\pm1σ=±1, let JσJ_\sigmaJσ​ consist of all linear maps j:Rn→Bil⁡R(S)j:\mathbb R^n\to\operatorname{Bil}_{\mathbb R}(S)j:Rn→BilR​(S) such that, for all u,v,x∈Rnu,v,x\in\mathbb R^nu,v,x∈Rn and a,b∈Sa,b\in Sa,b∈S,

j(Lu,vx)(a,b)+j(x)(Du,va,b)+j(x)(a,Du,vb)=0,j(x)(b,a)=σj(x)(a,b).j(L_{u,v}x)(a,b)+j(x)(D_{u,v}a,b)+j(x)(a,D_{u,v}b)=0, \qquad j(x)(b,a)=\sigma j(x)(a,b).j(Lu,v​x)(a,b)+j(x)(Du,v​a,b)+j(x)(a,Du,v​b)=0,j(x)(b,a)=σj(x)(a,b).

A splitting means an endomorphism EEE satisfying E2=IE^2=IE2=I and Ec(v)=−c(v)EEc(v)=-c(v)EEc(v)=−c(v)E for all vvv, for which both ker⁡(E−I)\ker(E-I)ker(E−I) and ker⁡(E+I)\ker(E+I)ker(E+I) are nonzero, stable under the images of all even Clifford elements, and have no nonzero proper subspace stable under those images; even Clifford elements are linear combinations of products of an even number of canonical vector images. For any such EEE, let Jσ,η(E)J_{\sigma,\eta}(E)Jσ,η​(E) be the subspace of JσJ_\sigmaJσ​ additionally satisfying j(x)(Ea,b)=ηj(x)(a,Eb)j(x)(Ea,b)=\eta j(x)(a,Eb)j(x)(Ea,b)=ηj(x)(a,Eb) for every x,a,bx,a,bx,a,b, where η=±1\eta=\pm1η=±1. Define a quadruple-valued table R(n,s)R(n,s)R(n,s) by the following residue rules, with every unlisted pair of residues assigned (0,0,0,0)(0,0,0,0)(0,0,0,0):

s mod 8n mod 8R(n,s)00,4(0,1,0,1)02(2,0,0,0)06(0,0,2,0)11,3(2,1,0,1)15,7(0,1,2,1)20,4(2,2,2,2)22(4,2,0,2)26(0,2,4,2)40,4(0,4,0,4)42(6,0,2,0)46(2,0,6,0)\begin{array}{c|c|c} s\bmod8&n\bmod8&R(n,s)\\ \hline 0&0,4&(0,1,0,1)\\ 0&2&(2,0,0,0)\\ 0&6&(0,0,2,0)\\ 1&1,3&(2,1,0,1)\\ 1&5,7&(0,1,2,1)\\ 2&0,4&(2,2,2,2)\\ 2&2&(4,2,0,2)\\ 2&6&(0,2,4,2)\\ 4&0,4&(0,4,0,4)\\ 4&2&(6,0,2,0)\\ 4&6&(2,0,6,0) \end{array}smod800011222444​nmod80,4261,35,70,4260,426​R(n,s)(0,1,0,1)(2,0,0,0)(0,0,2,0)(2,1,0,1)(0,1,2,1)(2,2,2,2)(4,2,0,2)(0,2,4,2)(0,4,0,4)(6,0,2,0)(2,0,6,0)​​

Define T(n,s)=(r1+r2,r3+r4)T(n,s)=(r_1+r_2,r_3+r_4)T(n,s)=(r1​+r2​,r3​+r4​) when s mod 8∈{0,1,2,4}s\bmod8\in\{0,1,2,4\}smod8∈{0,1,2,4} and R(n,s)=(r1,r2,r3,r4)R(n,s)=(r_1,r_2,r_3,r_4)R(n,s)=(r1​,r2​,r3​,r4​); for the remaining residues define it by

s mod 8n mod 8T(n,s)3,51,3(3,1)3,55,7(1,3)60,4(1,1)62(2,0)66(0,2)71,3(1,0)75,7(0,1)\begin{array}{c|c|c} s\bmod8&n\bmod8&T(n,s)\\ \hline 3,5&1,3&(3,1)\\ 3,5&5,7&(1,3)\\ 6&0,4&(1,1)\\ 6&2&(2,0)\\ 6&6&(0,2)\\ 7&1,3&(1,0)\\ 7&5,7&(0,1) \end{array}smod83,53,566677​nmod81,35,70,4261,35,7​T(n,s)(3,1)(1,3)(1,1)(2,0)(0,2)(1,0)(0,1)​​

and set it to (0,0)(0,0)(0,0) in all other cases of this latter branch. The proposition requires all three conclusions:

(dim⁡RJ1,dim⁡RJ−1)=T(n,s),a splitting exists⟺s mod 8∈{0,1,2,4},for every splitting E,(dim⁡RJ1,1(E),dim⁡RJ1,−1(E),dim⁡RJ−1,1(E),dim⁡RJ−1,−1(E))=R(n,s).\begin{gathered} (\dim_{\mathbb R}J_1,\dim_{\mathbb R}J_{-1})=T(n,s),\\ \text{a splitting exists}\quad\Longleftrightarrow\quad s\bmod8\in\{0,1,2,4\},\\ \text{for every splitting }E,\quad \bigl(\dim_{\mathbb R}J_{1,1}(E),\dim_{\mathbb R}J_{1,-1}(E), \dim_{\mathbb R}J_{-1,1}(E),\dim_{\mathbb R}J_{-1,-1}(E)\bigr)=R(n,s). \end{gathered}(dimR​J1​,dimR​J−1​)=T(n,s),a splitting exists⟺smod8∈{0,1,2,4},for every splitting E,(dimR​J1,1​(E),dimR​J1,−1​(E),dimR​J−1,1​(E),dimR​J−1,−1​(E))=R(n,s).​

Either ppp or qqq may be zero, but p=q=0p=q=0p=q=0 is excluded; when there is no splitting, the last universal requirement is vacuous.

QAlgorithms.Papers.Independent.Gap48.P17.RealEvenCl

For any natural numbers p,qp,qp,q, this denotes the even subalgebra of the real Clifford algebra associated with

Q(x)=−∑i<pxi2+∑p≤i<p+qxi2on Rp+q.Q(x)=-\sum_{i<p}x_i^2+\sum_{p\le i<p+q}x_i^2 \quad\text{on }\mathbb R^{p+q}.Q(x)=−i<p∑​xi2​+p≤i<p+q∑​xi2​on Rp+q.

The even subalgebra consists of linear combinations of products of an even number of canonical vector images, including products of length zero and hence scalar multiples of the identity. The parameters may be zero; when p=q=0p=q=0p=q=0, this even subalgebra is canonically isomorphic to R\mathbb RR.

QAlgorithms.Papers.Independent.Gap48.P17.RealTableSymmetries

For arbitrary integers n,sn,sn,s, define R(n,s)R(n,s)R(n,s) using the following table of nonnegative residues modulo eight, and assign (0,0,0,0)(0,0,0,0)(0,0,0,0) to every unlisted residue pair:

s mod 8n mod 8R(n,s)00,4(0,1,0,1)02(2,0,0,0)06(0,0,2,0)11,3(2,1,0,1)15,7(0,1,2,1)20,4(2,2,2,2)22(4,2,0,2)26(0,2,4,2)40,4(0,4,0,4)42(6,0,2,0)46(2,0,6,0)\begin{array}{c|c|c} s\bmod8&n\bmod8&R(n,s)\\ \hline 0&0,4&(0,1,0,1)\\ 0&2&(2,0,0,0)\\ 0&6&(0,0,2,0)\\ 1&1,3&(2,1,0,1)\\ 1&5,7&(0,1,2,1)\\ 2&0,4&(2,2,2,2)\\ 2&2&(4,2,0,2)\\ 2&6&(0,2,4,2)\\ 4&0,4&(0,4,0,4)\\ 4&2&(6,0,2,0)\\ 4&6&(2,0,6,0) \end{array}smod800011222444​nmod80,4261,35,70,4260,426​R(n,s)(0,1,0,1)(2,0,0,0)(0,0,2,0)(2,1,0,1)(0,1,2,1)(2,2,2,2)(4,2,0,2)(0,2,4,2)(0,4,0,4)(6,0,2,0)(2,0,6,0)​​

When s mod 8∈{0,1,2,4}s\bmod8\in\{0,1,2,4\}smod8∈{0,1,2,4} and R(n,s)=(r1,r2,r3,r4)R(n,s)=(r_1,r_2,r_3,r_4)R(n,s)=(r1​,r2​,r3​,r4​), define T(n,s)=(r1+r2,r3+r4)T(n,s)=(r_1+r_2,r_3+r_4)T(n,s)=(r1​+r2​,r3​+r4​); otherwise define TTT by

s mod 8n mod 8T(n,s)3,51,3(3,1)3,55,7(1,3)60,4(1,1)62(2,0)66(0,2)71,3(1,0)75,7(0,1)\begin{array}{c|c|c} s\bmod8&n\bmod8&T(n,s)\\ \hline 3,5&1,3&(3,1)\\ 3,5&5,7&(1,3)\\ 6&0,4&(1,1)\\ 6&2&(2,0)\\ 6&6&(0,2)\\ 7&1,3&(1,0)\\ 7&5,7&(0,1) \end{array}smod83,53,566677​nmod81,35,70,4261,35,7​T(n,s)(3,1)(1,3)(1,1)(2,0)(0,2)(1,0)(0,1)​​

with value (0,0)(0,0)(0,0) for all unlisted cases in this latter branch. The proposition states that, for every n,s∈Zn,s\in\mathbb Zn,s∈Z such that n+sn+sn+s is even, writing T(n,s)=(t1,t2)T(n,s)=(t_1,t_2)T(n,s)=(t1​,t2​), one has

T(n+8,s)=T(n,s),T(n,s+8)=T(n,s),T(−n,s)=(t2,t1).T(n+8,s)=T(n,s),\qquad T(n,s+8)=T(n,s),\qquad T(-n,s)=(t_2,t_1).T(n+8,s)=T(n,s),T(n,s+8)=T(n,s),T(−n,s)=(t2​,t1​).

It additionally requires that, if s mod 8∈{0,1,2,4}s\bmod8\in\{0,1,2,4\}smod8∈{0,1,2,4} and R(n,s)=(r1,r2,r3,r4)R(n,s)=(r_1,r_2,r_3,r_4)R(n,s)=(r1​,r2​,r3​,r4​), then

R(n+8,s)=R(n,s),R(n,s+8)=R(n,s),R(−n,s)=(r3,r4,r1,r2).R(n+8,s)=R(n,s),\qquad R(n,s+8)=R(n,s),\qquad R(-n,s)=(r_3,r_4,r_1,r_2).R(n+8,s)=R(n,s),R(n,s+8)=R(n,s),R(−n,s)=(r3​,r4​,r1​,r2​).

The integers may be negative or zero; there is no requirement that they arise from a signature or satisfy any size bound. When n+sn+sn+s is odd the proposition imposes no condition, and outside the four specified residues of sss it imposes no refined-table condition.

QAlgorithms.Papers.Independent.Gap48.P17.SpinRepresentation

For any field KKK, any natural number ddd, any matrix g∈Md(K)g\in M_d(K)g∈Md​(K), and any KKK-vector space SSS with its additive commutative group structure, this structure consists of a unital KKK-algebra homomorphism

ρ:Cl⁡(Kd,Qg)⟶End⁡K(S),Qg(x)=−∑i<d∑j<dgijxixj,\rho:\operatorname{Cl}(K^d,Q_g)\longrightarrow\operatorname{End}_K(S), \qquad Q_g(x)=-\sum_{i<d}\sum_{j<d}g_{ij}x_i x_j,ρ:Cl(Kd,Qg​)⟶EndK​(S),Qg​(x)=−i<d∑​j<d∑​gij​xi​xj​,

together with the requirements that SSS have at least two distinct elements and that every linear subspace P⊆SP\subseteq SP⊆S preserved by ρ(a)\rho(a)ρ(a) for every element aaa of this Clifford algebra be either {0}\{0\}{0} or SSS. There is no assumption of finite dimensionality, symmetry or nondegeneracy of ggg, or any restriction on the field characteristic; d=0d=0d=0 is included.

QAlgorithms.Papers.Independent.Gap48.P17.SpinSplitting

Let KKK be any field, ddd any natural number, V=KdV=K^dV=Kd, g=(gij)g=(g_{ij})g=(gij​) any d×dd\times dd×d matrix over KKK, and SSS any KKK-vector space. Set C=Cl⁡(V,Q)C=\operatorname{Cl}(V,Q)C=Cl(V,Q) for Q(v)=−∑i,jgijvivjQ(v)=-\sum_{i,j}g_{ij}v_i v_jQ(v)=−∑i,j​gij​vi​vj​. Let ρ:C→End⁡K(S)\rho:C\to\operatorname{End}_K(S)ρ:C→EndK​(S) be a unital KKK-algebra homomorphism such that SSS is nonzero and every subspace preserved by all ρ(a)\rho(a)ρ(a), a∈Ca\in Ca∈C, is either zero or SSS, and write c(v)=ρ(ι(v))c(v)=\rho(\iota(v))c(v)=ρ(ι(v)) for the action of the canonical Clifford vector. A splitting consists of a linear operator GGG on SSS satisfying G2=IG^2=IG2=I and Gc(v)=−c(v)GGc(v)=-c(v)GGc(v)=−c(v)G for every v∈Vv\in Vv∈V, together with the following conditions on both S+={s:Gs=s}S_+=\{s:Gs=s\}S+​={s:Gs=s} and S−={s:Gs=−s}S_-=\{s:Gs=-s\}S−​={s:Gs=−s}: each is nonzero, each is preserved by every ρ(a)\rho(a)ρ(a) with aaa in the even Clifford subalgebra, and every subspace contained in it and preserved by all these operators is either zero or that entire eigenspace. Here the even Clifford subalgebra is the span of products of an even number of canonical Clifford vectors, including the empty product 111. There is no finite-dimensionality, characteristic, symmetry, or nondegeneracy assumption on the data. The case d=0d=0d=0 is included; in characteristic 222, the two specified eigenspaces coincide, and their distinctness or complementarity is not an additional condition.

QAlgorithms.Papers.Independent.Gap48.P17.SpinStable

For any field KKK, any KKK-vector space SSS with its additive commutative group structure, any set A⊆End⁡K(S)\mathcal A\subseteq\operatorname{End}_K(S)A⊆EndK​(S) of linear endomorphisms, and any linear subspace P⊆SP\subseteq SP⊆S, this predicate means that Ax∈PAx\in PAx∈P for every A∈AA\in\mathcal AA∈A and every x∈Px\in Px∈P. The set A\mathcal AA may be empty, in which case the condition holds for every PPP; the zero space SSS is also allowed.

QAlgorithms.Papers.Independent.Gap48.P17.SplitSignature

For any integer sss, this predicate holds exactly when the remainder of sss modulo 888 is one of 0,1,2,40,1,2,40,1,2,4:

s≡0, 1, 2, or 4(mod8).s\equiv0,\ 1,\ 2,\ \text{or }4\pmod 8.s≡0, 1, 2, or 4(mod8).

The input may be zero or negative.

QAlgorithms.Papers.Independent.Gap48.P17.TwoIrreducibleSummands

Let KKK be a field, d∈Nd\in\mathbb Nd∈N, ggg any d×dd\times dd×d matrix over KKK, and SSS an additive commutative group with a KKK-module structure. Let ρ:Cl⁡(Q)→End⁡K(S)\rho:\operatorname{Cl}(Q)\to\operatorname{End}_K(S)ρ:Cl(Q)→EndK​(S) be a unital KKK-algebra homomorphism, where Q(v)=−∑i,jgijvivjQ(v)=-\sum_{i,j}g_{ij}v_iv_jQ(v)=−∑i,j​gij​vi​vj​ on KdK^dKd, with S≠0S\ne0S=0 and with only 000 and SSS stable under its full image. Let ε\varepsilonε be a Boolean value, and let A\mathcal AA be the set of operators ρ(a)\rho(a)ρ(a) for aaa in the even Clifford subalgebra, namely the linear combinations of products of an even number of canonical vector images. This predicate says that there exist subspaces P,Q⊆SP,Q\subseteq SP,Q⊆S with P∩Q=0P\cap Q=0P∩Q=0 and P+Q=SP+Q=SP+Q=S, such that both are nonzero and stable under every A∈AA\in\mathcal AA∈A, and every A\mathcal AA-stable subspace contained in PPP is either 000 or PPP, with the corresponding condition for QQQ. If ε\varepsilonε is true, there must exist a KKK-linear isomorphism e:P→Qe:P\to Qe:P→Q such that, for every A∈AA\in\mathcal AA∈A and x,y∈Px,y\in Px,y∈P, y=Axy=Axy=Ax implies e(y)=A(e(x))e(y)=A(e(x))e(y)=A(e(x)), all equalities being in SSS; if ε\varepsilonε is false, no such isomorphism may exist. No finite-dimensionality or positive-dimension assumption on ddd is included, while the required nonzero summands exclude either summand being zero.

QAlgorithms.Papers.Independent.Gap48.P17.actualRefinedDimensions

Let KKK be a field, d∈Nd\in\mathbb Nd∈N, V=KdV=K^dV=Kd, ggg any d×dd\times dd×d matrix over KKK, and SSS an additive commutative group with a KKK-module structure. Let ρ:Cl⁡(Q)→End⁡K(S)\rho:\operatorname{Cl}(Q)\to\operatorname{End}_K(S)ρ:Cl(Q)→EndK​(S) be a unital KKK-algebra homomorphism for Q(v)=−∑i,jgijvivjQ(v)=-\sum_{i,j}g_{ij}v_iv_jQ(v)=−∑i,j​gij​vi​vj​, such that S≠0S\ne0S=0 and the only subspaces stable under its entire image are 000 and SSS. Set c(v)=ρ(ι(v))c(v)=\rho(\iota(v))c(v)=ρ(ι(v)), Bg(u,x)=∑i,jgijuixjB_g(u,x)=\sum_{i,j}g_{ij}u_ix_jBg​(u,x)=∑i,j​gij​ui​xj​, Lu,vx=Bg(u,x)v−Bg(v,x)uL_{u,v}x=B_g(u,x)v-B_g(v,x)uLu,v​x=Bg​(u,x)v−Bg​(v,x)u, and Du,v=14(c(u)c(v)−c(v)c(u))D_{u,v}=\tfrac14(c(u)c(v)-c(v)c(u))Du,v​=41​(c(u)c(v)−c(v)c(u)). Let hhh consist of an endomorphism EEE with E2=IE^2=IE2=I and Ec(v)=−c(v)EEc(v)=-c(v)EEc(v)=−c(v)E for every vvv, such that each of ker⁡(E−I)\ker(E-I)ker(E−I) and ker⁡(E+I)\ker(E+I)ker(E+I) is nonzero, is stable under every ρ(a)\rho(a)ρ(a) with aaa in the even Clifford subalgebra, and has no nonzero proper subspace stable under all those operators. Here the even Clifford subalgebra consists of linear combinations of products of an even number of canonical vector images. For σ,η∈K\sigma,\eta\in Kσ,η∈K, let Jσ,ηJ_{\sigma,\eta}Jσ,η​ be the vector space of linear maps j:V→Bil⁡K(S)j:V\to\operatorname{Bil}_K(S)j:V→BilK​(S) satisfying, for all u,v,x∈Vu,v,x\in Vu,v,x∈V and s,t∈Ss,t\in Ss,t∈S,

j(Lu,vx)(s,t)+j(x)(Du,vs,t)+j(x)(s,Du,vt)=0,j(x)(t,s)=σj(x)(s,t),j(x)(Es,t)=ηj(x)(s,Et).\begin{gathered} j(L_{u,v}x)(s,t)+j(x)(D_{u,v}s,t)+j(x)(s,D_{u,v}t)=0,\\ j(x)(t,s)=\sigma j(x)(s,t),\qquad j(x)(Es,t)=\eta j(x)(s,Et). \end{gathered}j(Lu,v​x)(s,t)+j(x)(Du,v​s,t)+j(x)(s,Du,v​t)=0,j(x)(t,s)=σj(x)(s,t),j(x)(Es,t)=ηj(x)(s,Et).​

The definition returns the ordered quadruple

(finrank⁡KJ1,1,finrank⁡KJ1,−1,finrank⁡KJ−1,1,finrank⁡KJ−1,−1).\bigl(\operatorname{finrank}_K J_{1,1}, \operatorname{finrank}_K J_{1,-1}, \operatorname{finrank}_K J_{-1,1}, \operatorname{finrank}_K J_{-1,-1}\bigr).(finrankK​J1,1​,finrankK​J1,−1​,finrankK​J−1,1​,finrankK​J−1,−1​).

There is no finite-dimensionality or characteristic restriction: infinite-dimensional spaces have finrank zero, 14=0\tfrac14=041​=0 if 4=04=04=0 in KKK, and all four sign choices coincide in characteristic two. The dimension d=0d=0d=0 is permitted; whenever the required hhh is supplied in that case, all four spaces of maps are zero.

QAlgorithms.Papers.Independent.Gap48.P17.actualTotalDimensions

Let KKK be a field, ddd a natural number, V=KdV=K^dV=Kd, ggg an arbitrary d×dd\times dd×d matrix over KKK, and SSS an additive commutative group with a KKK-module structure. Let ρ\rhoρ be a unital KKK-algebra homomorphism from the Clifford algebra of Q(v)=−∑i,jgijvivjQ(v)=-\sum_{i,j}g_{ij}v_iv_jQ(v)=−∑i,j​gij​vi​vj​ to End⁡K(S)\operatorname{End}_K(S)EndK​(S), with S≠0S\ne0S=0 and with no subspaces other than 000 and SSS stable under every operator in its image. Write c(v)=ρ(ι(v))c(v)=\rho(\iota(v))c(v)=ρ(ι(v)), where ι\iotaι is the canonical Clifford map, and put

Bg(u,x)=∑i,jgijuixj,Lu,vx=Bg(u,x)v−Bg(v,x)u,Du,v=14(c(u)c(v)−c(v)c(u)).B_g(u,x)=\sum_{i,j}g_{ij}u_ix_j,\qquad L_{u,v}x=B_g(u,x)v-B_g(v,x)u,\qquad D_{u,v}=\tfrac14\bigl(c(u)c(v)-c(v)c(u)\bigr).Bg​(u,x)=i,j∑​gij​ui​xj​,Lu,v​x=Bg​(u,x)v−Bg​(v,x)u,Du,v​=41​(c(u)c(v)−c(v)c(u)).

For σ∈K\sigma\in Kσ∈K, let JσJ_\sigmaJσ​ be the vector space of linear maps j:V→Bil⁡K(S)j:V\to\operatorname{Bil}_K(S)j:V→BilK​(S) satisfying, for every u,v,x∈Vu,v,x\in Vu,v,x∈V and s,t∈Ss,t\in Ss,t∈S,

j(Lu,vx)(s,t)+j(x)(Du,vs,t)+j(x)(s,Du,vt)=0,j(x)(t,s)=σj(x)(s,t).j(L_{u,v}x)(s,t)+j(x)(D_{u,v}s,t)+j(x)(s,D_{u,v}t)=0, \qquad j(x)(t,s)=\sigma j(x)(s,t).j(Lu,v​x)(s,t)+j(x)(Du,v​s,t)+j(x)(s,Du,v​t)=0,j(x)(t,s)=σj(x)(s,t).

This definition returns the ordered pair (finrank⁡KJ1,finrank⁡KJ−1)(\operatorname{finrank}_K J_1,\operatorname{finrank}_K J_{-1})(finrankK​J1​,finrankK​J−1​). No finite-dimensionality or characteristic assumption is imposed: finrank is zero for an infinite-dimensional space, the scalar 14\tfrac1441​ uses field division and is zero when 4=04=04=0, and the two signs coincide in characteristic two. The case d=0d=0d=0 is included and gives (0,0)(0,0)(0,0).

QAlgorithms.Papers.Independent.Gap48.P17.bracketForms

Let KKK be any field, d≥0d\geq0d≥0, V=KdV=K^dV=Kd, g=(gij)g=(g_{ij})g=(gij​) any matrix over KKK, SSS any KKK-vector space, and σ\sigmaσ any element of KKK. Put Bg(u,x)=∑i,jgijuixjB_g(u,x)=\sum_{i,j}g_{ij}u_i x_jBg​(u,x)=∑i,j​gij​ui​xj​ and C=Cl⁡(V,Q)C=\operatorname{Cl}(V,Q)C=Cl(V,Q) with Q(v)=−Bg(v,v)Q(v)=-B_g(v,v)Q(v)=−Bg​(v,v). Let ρ:C→End⁡K(S)\rho:C\to\operatorname{End}_K(S)ρ:C→EndK​(S) be a unital KKK-algebra action on a nonzero SSS whose only subspaces preserved by the whole action are zero and SSS. Write c(v)=ρ(ι(v))c(v)=\rho(\iota(v))c(v)=ρ(ι(v)), Tu,v=14(c(u)c(v)−c(v)c(u))T_{u,v}=\frac14(c(u)c(v)-c(v)c(u))Tu,v​=41​(c(u)c(v)−c(v)c(u)), and Lu,vx=Bg(u,x)v−Bg(v,x)uL_{u,v}x=B_g(u,x)v-B_g(v,x)uLu,v​x=Bg​(u,x)v−Bg​(v,x)u, with products of operators meaning composition. The declaration defines the KKK-linear subspace of linear maps j:V→Bil⁡K(S,S;K)j:V\to\operatorname{Bil}_K(S,S;K)j:V→BilK​(S,S;K) consisting exactly of those satisfying, for every u,v,x∈Vu,v,x\in Vu,v,x∈V and s,t∈Ss,t\in Ss,t∈S, j(Lu,vx)(s,t)+j(x)(Tu,vs,t)+j(x)(s,Tu,vt)=0j(L_{u,v}x)(s,t)+j(x)(T_{u,v}s,t)+j(x)(s,T_{u,v}t)=0j(Lu,v​x)(s,t)+j(x)(Tu,v​s,t)+j(x)(s,Tu,v​t)=0 and j(x)(t,s)=σj(x)(s,t)j(x)(t,s)=\sigma j(x)(s,t)j(x)(t,s)=σj(x)(s,t). No condition σ∈{1,−1}\sigma\in\{1,-1\}σ∈{1,−1} is imposed, and the zero map always belongs to this subspace. No finite-dimensionality or symmetry assumption on ggg is imposed. The coefficient 14\frac1441​ is interpreted in KKK and equals zero in characteristic 222, so then Tu,v=0T_{u,v}=0Tu,v​=0; when d=0d=0d=0, the only linear map jjj is zero.

QAlgorithms.Papers.Independent.Gap48.P17.cliffordForm

Let KKK be a field, d≥0d\ge0d≥0, V=KdV=K^dV=Kd, ggg any d×dd\times dd×d matrix over KKK, and SSS a KKK-vector space. Put Qg(w)=−∑i,jgijwiwjQ_g(w)=-\sum_{i,j}g_{ij}w_iw_jQg​(w)=−∑i,j​gij​wi​wj​, and suppose ρ\rhoρ supplies a unital algebra homomorphism R:Cl(V,Qg)→End⁡K(S)R:\mathrm{Cl}(V,Q_g)\to\operatorname{End}_K(S)R:Cl(V,Qg​)→EndK​(S), with S≠0S\ne0S=0 and only 0,S0,S0,S stable under its whole image. For any KKK-bilinear form b:S×S→Kb:S\times S\to Kb:S×S→K, this definition gives the KKK-linear map Jb:V→Bil⁡K(S)J_b:V\to\operatorname{Bil}_K(S)Jb​:V→BilK​(S) determined by

Jb(v)(s,t)=b(R(ι(v))(s),t)(v∈V, s,t∈S),J_b(v)(s,t)=b\bigl(R(\iota(v))(s),t\bigr) \qquad(v\in V,\ s,t\in S),Jb​(v)(s,t)=b(R(ι(v))(s),t)(v∈V, s,t∈S),

where ι\iotaι is the canonical Clifford map. No invariance, symmetry, or nondegeneracy is assumed for bbb, and no symmetry or nondegeneracy is assumed for ggg. When d=0d=0d=0, this is the zero linear map from the zero vector space.

QAlgorithms.Papers.Independent.Gap48.P17.cliffordQ

For any field KKK, any natural number ddd, and any d×dd\times dd×d matrix ggg over KKK, this defines the quadratic form on KdK^dKd given by

Qg(x)=−∑i<d∑j<dgijxixj.Q_g(x)=-\sum_{i<d}\sum_{j<d}g_{ij}x_i x_j.Qg​(x)=−i<d∑​j<d∑​gij​xi​xj​.

There is no assumption that ggg is symmetric or nondegenerate, and no restriction on the characteristic of KKK. The case d=0d=0d=0 is included; then the sums are empty and the quadratic form is zero.

QAlgorithms.Papers.Independent.Gap48.P17.cliffordVectorAction

For any field KKK, natural number ddd, matrix g∈Md(K)g\in M_d(K)g∈Md​(K), and KKK-vector space SSS with its additive commutative group structure, suppose ρ\rhoρ is a unital KKK-algebra homomorphism from the Clifford algebra of Qg(x)=−∑i<d∑j<dgijxixjQ_g(x)=-\sum_{i<d}\sum_{j<d}g_{ij}x_i x_jQg​(x)=−∑i<d​∑j<d​gij​xi​xj​ to End⁡K(S)\operatorname{End}_K(S)EndK​(S), where SSS is nontrivial and its only subspaces preserved by every ρ(a)\rho(a)ρ(a) are {0}\{0\}{0} and SSS. This definition gives the KKK-linear map cρ:Kd→End⁡K(S)c_\rho:K^d\to\operatorname{End}_K(S)cρ​:Kd→EndK​(S) specified by cρ(v)=ρ(ι(v))c_\rho(v)=\rho(\iota(v))cρ​(v)=ρ(ι(v)), where ι\iotaι is the canonical vector map into that Clifford algebra. No finite-dimensionality or matrix nondegeneracy assumption is imposed; if d=0d=0d=0, the domain contains only the zero vector and this linear map is zero.

QAlgorithms.Papers.Independent.Gap48.P17.complexRefinedTable

For every integer ddd, let rrr be its remainder modulo 888 in {0,…,7}\{0,\ldots,7\}{0,…,7}. This function returns an ordered quadruple of natural numbers as follows:

rreturned quadruple0,4(0,1,0,1)2(2,0,0,0)6(0,0,2,0)1,3,5,7(0,0,0,0)\begin{array}{c|c} r&\text{returned quadruple}\\ \hline 0,4&(0,1,0,1)\\ 2&(2,0,0,0)\\ 6&(0,0,2,0)\\ 1,3,5,7&(0,0,0,0) \end{array}r0,4261,3,5,7​returned quadruple(0,1,0,1)(2,0,0,0)(0,0,2,0)(0,0,0,0)​​

The input may be zero or negative.

QAlgorithms.Papers.Independent.Gap48.P17.complexTotalTable

For every integer ddd, let rrr be its remainder modulo 888 in {0,…,7}\{0,\ldots,7\}{0,…,7}. This function returns the ordered pair of natural numbers

rreturned pair0,4(1,1)2(2,0)6(0,2)1,3(1,0)5,7(0,1)\begin{array}{c|c} r&\text{returned pair}\\ \hline 0,4&(1,1)\\ 2&(2,0)\\ 6&(0,2)\\ 1,3&(1,0)\\ 5,7&(0,1) \end{array}r0,4261,35,7​returned pair(1,1)(2,0)(0,2)(1,0)(0,1)​​

The definition applies to all integers, including zero and negative integers.

QAlgorithms.Papers.Independent.Gap48.P17.enlargedDomain

This definition specifies exactly the following finite set of seven integer pairs:

{(0,0),(0,2),(1,−1),(1,1),(1,3),(2,0),(2,2)}.\{(0,0),(0,2),(1,-1),(1,1),(1,3),(2,0),(2,2)\}.{(0,0),(0,2),(1,−1),(1,1),(1,3),(2,0),(2,2)}.

QAlgorithms.Papers.Independent.Gap48.P17.equivariantForms

Let KKK be a field, d≥0d\ge0d≥0, V=KdV=K^dV=Kd, ggg any d×dd\times dd×d matrix over KKK, and SSS a KKK-vector space. Put Qg(w)=−∑i,jgijwiwjQ_g(w)=-\sum_{i,j}g_{ij}w_iw_jQg​(w)=−∑i,j​gij​wi​wj​, and suppose ρ\rhoρ supplies a unital algebra homomorphism R:Cl(V,Qg)→End⁡K(S)R:\mathrm{Cl}(V,Q_g)\to\operatorname{End}_K(S)R:Cl(V,Qg​)→EndK​(S), with S≠0S\ne0S=0 and only 0,S0,S0,S stable under its whole image. Write c(v)=R(ι(v))c(v)=R(\iota(v))c(v)=R(ι(v)) for the canonical Clifford map ι\iotaι, set Tu,v=14(c(u)∘c(v)−c(v)∘c(u))T_{u,v}=\frac14(c(u)\circ c(v)-c(v)\circ c(u))Tu,v​=41​(c(u)∘c(v)−c(v)∘c(u)), and put G(u,x)=∑i,jgijuixjG(u,x)=\sum_{i,j}g_{ij}u_ix_jG(u,x)=∑i,j​gij​ui​xj​. This definition gives the KKK-subspace of linear maps j:V→Bil⁡K(S)j:V\to\operatorname{Bil}_K(S)j:V→BilK​(S) satisfying

j(G(u,x)v−G(v,x)u)(s,t)+j(x)(Tu,vs,t)+j(x)(s,Tu,vt)=0(u,v,x∈V, s,t∈S).j\bigl(G(u,x)v-G(v,x)u\bigr)(s,t) +j(x)(T_{u,v}s,t) +j(x)(s,T_{u,v}t)=0 \qquad(u,v,x\in V,\ s,t\in S).j(G(u,x)v−G(v,x)u)(s,t)+j(x)(Tu,v​s,t)+j(x)(s,Tu,v​t)=0(u,v,x∈V, s,t∈S).

No symmetry or nondegeneracy is required of the forms j(x)j(x)j(x), and the zero map is included. No symmetry or nondegeneracy is assumed for ggg. In characteristic 222, field division gives 14=0\frac14=041​=0, so the condition reduces to vanishing of its first term; when d=0d=0d=0, the only linear map jjj is the zero map.

QAlgorithms.Papers.Independent.Gap48.P17.equivariantMultiplications

Let KKK be a field, d≥0d\ge0d≥0, V=KdV=K^dV=Kd, ggg any d×dd\times dd×d matrix over KKK, and SSS a KKK-vector space. Put Qg(w)=−∑i,jgijwiwjQ_g(w)=-\sum_{i,j}g_{ij}w_iw_jQg​(w)=−∑i,j​gij​wi​wj​, and suppose ρ\rhoρ supplies a unital algebra homomorphism R:Cl(V,Qg)→End⁡K(S)R:\mathrm{Cl}(V,Q_g)\to\operatorname{End}_K(S)R:Cl(V,Qg​)→EndK​(S), with S≠0S\ne0S=0 and only 0,S0,S0,S stable under its whole image. Write c(v)=R(ι(v))c(v)=R(\iota(v))c(v)=R(ι(v)), where ι\iotaι is the canonical Clifford map, set Tu,v=14(c(u)∘c(v)−c(v)∘c(u))T_{u,v}=\frac14(c(u)\circ c(v)-c(v)\circ c(u))Tu,v​=41​(c(u)∘c(v)−c(v)∘c(u)), and put G(u,x)=∑i,jgijuixjG(u,x)=\sum_{i,j}g_{ij}u_ix_jG(u,x)=∑i,j​gij​ui​xj​. This definition gives the KKK-subspace of linear maps μ:V→End⁡K(S)\mu:V\to\operatorname{End}_K(S)μ:V→EndK​(S) satisfying

μ(G(u,x)v−G(v,x)u)(s)=Tu,v(μ(x)(s))−μ(x)(Tu,vs)(u,v,x∈V, s∈S).\mu\bigl(G(u,x)v-G(v,x)u\bigr)(s) =T_{u,v}\bigl(\mu(x)(s)\bigr)-\mu(x)\bigl(T_{u,v}s\bigr) \qquad(u,v,x\in V,\ s\in S).μ(G(u,x)v−G(v,x)u)(s)=Tu,v​(μ(x)(s))−μ(x)(Tu,v​s)(u,v,x∈V, s∈S).

The zero map is included, and no additional multiplication relations are required of μ\muμ. The matrix ggg need not be symmetric or nondegenerate. In characteristic 222, field division makes 14=0\frac14=041​=0, so the displayed left side must vanish; when d=0d=0d=0, the only such linear map is the zero map.

QAlgorithms.Papers.Independent.Gap48.P17.evenOperators

Let KKK be a field, d≥0d\ge 0d≥0 a natural number, V=KdV=K^dV=Kd, ggg any d×dd\times dd×d matrix over KKK, and SSS a KKK-vector space. Put Qg(w)=−∑i,jgijwiwjQ_g(w)=-\sum_{i,j}g_{ij}w_iw_jQg​(w)=−∑i,j​gij​wi​wj​. Suppose ρ\rhoρ supplies a unital KKK-algebra homomorphism R:Cl(V,Qg)→End⁡K(S)R:\mathrm{Cl}(V,Q_g)\to\operatorname{End}_K(S)R:Cl(V,Qg​)→EndK​(S), where S≠0S\ne0S=0 and the only subspaces stable under every R(a)R(a)R(a) are 000 and SSS. This definition gives the set of endomorphisms R(a)R(a)R(a) for which aaa belongs to the even Clifford subalgebra, that is, the subalgebra consisting of linear combinations of products of an even number of canonically embedded vectors, including the empty product 111. The definition includes d=0d=0d=0 and imposes no symmetry or nondegeneracy condition on ggg.

QAlgorithms.Papers.Independent.Gap48.P17.extensionDimension

Let KKK be any field, d≥0d\geq0d≥0, V=KdV=K^dV=Kd, g=(gij)g=(g_{ij})g=(gij​) any matrix over KKK, SSS any KKK-vector space, and σ∈K\sigma\in Kσ∈K arbitrary. Set Bg(u,x)=∑i,jgijuixjB_g(u,x)=\sum_{i,j}g_{ij}u_i x_jBg​(u,x)=∑i,j​gij​ui​xj​, let C=Cl⁡(V,Q)C=\operatorname{Cl}(V,Q)C=Cl(V,Q) with Q(v)=−Bg(v,v)Q(v)=-B_g(v,v)Q(v)=−Bg​(v,v), and let ρ:C→End⁡K(S)\rho:C\to\operatorname{End}_K(S)ρ:C→EndK​(S) be a unital KKK-algebra action on a nonzero SSS whose only subspaces preserved by the whole action are zero and SSS. Write c(v)=ρ(ι(v))c(v)=\rho(\iota(v))c(v)=ρ(ι(v)), Tu,v=14(c(u)c(v)−c(v)c(u))T_{u,v}=\frac14(c(u)c(v)-c(v)c(u))Tu,v​=41​(c(u)c(v)−c(v)c(u)), and Lu,vx=Bg(u,x)v−Bg(v,x)uL_{u,v}x=B_g(u,x)v-B_g(v,x)uLu,v​x=Bg​(u,x)v−Bg​(v,x)u. This declaration defines a natural number equal to the dimension over KKK of the space of linear maps j:V→Bil⁡K(S,S;K)j:V\to\operatorname{Bil}_K(S,S;K)j:V→BilK​(S,S;K) satisfying, for every u,v,x∈Vu,v,x\in Vu,v,x∈V and s,t∈Ss,t\in Ss,t∈S, j(Lu,vx)(s,t)+j(x)(Tu,vs,t)+j(x)(s,Tu,vt)=0j(L_{u,v}x)(s,t)+j(x)(T_{u,v}s,t)+j(x)(s,T_{u,v}t)=0j(Lu,v​x)(s,t)+j(x)(Tu,v​s,t)+j(x)(s,Tu,v​t)=0 and j(x)(t,s)=σj(x)(s,t)j(x)(t,s)=\sigma j(x)(s,t)j(x)(t,s)=σj(x)(s,t), when that space is finite-dimensional; if that space is infinite-dimensional, the defined natural number is zero. Neither finite-dimensionality of SSS nor σ∈{1,−1}\sigma\in\{1,-1\}σ∈{1,−1} is assumed. The case d=0d=0d=0 gives zero, and in characteristic 222 the coefficient 14\frac1441​ and hence every Tu,vT_{u,v}Tu,v​ are zero.

QAlgorithms.Papers.Independent.Gap48.P17.formCompose

For a field KKK, a KKK-vector space SSS, a KKK-bilinear form b:S×S→Kb:S\times S\to Kb:S×S→K, and a KKK-linear endomorphism A:S→SA:S\to SA:S→S, this definition gives the bilinear form obtained by composing the first argument of bbb with AAA:

formCompose⁡(b,A)(s,t)=b(A(s),t)(s,t∈S).\operatorname{formCompose}(b,A)(s,t)=b(A(s),t) \qquad(s,t\in S).formCompose(b,A)(s,t)=b(A(s),t)(s,t∈S).

There are no nonzero, invertibility, symmetry, or nondegeneracy requirements on these inputs; the zero vector space is allowed.

QAlgorithms.Papers.Independent.Gap48.P17.gammaOrbit

This is the smallest equivalence relation on Z2\mathbb Z^2Z2 containing every pair (a,b)(a,b)(a,b) for which, writing a=(x,y)a=(x,y)a=(x,y), the point bbb is one of (−4−x,y)(-4-x,y)(−4−x,y), (4−x,y)(4-x,y)(4−x,y), (x,−2−y)(x,-2-y)(x,−2−y), or (x,6−y)(x,6-y)(x,6−y). Equivalently, two arbitrary integer pairs are related exactly when they can be joined by a finite sequence of these steps, allowing each step in either direction. A sequence of zero steps is allowed, so every point is related to itself; no parity or range restriction is imposed.

QAlgorithms.Papers.Independent.Gap48.P17.gammaStep

For arbitrary integer pairs a=(x,y)a=(x,y)a=(x,y) and bbb, this relation holds exactly when at least one of the following four equalities holds:

b=(−4−x,y),b=(4−x,y),b=(x,−2−y),b=(x,6−y).b=(-4-x,y),\qquad b=(4-x,y),\qquad b=(x,-2-y),\qquad b=(x,6-y).b=(−4−x,y),b=(4−x,y),b=(x,−2−y),b=(x,6−y).

There are no parity or range restrictions, and a=ba=ba=b is permitted when one of these transformations fixes aaa.

QAlgorithms.Papers.Independent.Gap48.P17.gammaTildeOrbit

This is the smallest equivalence relation on Z2\mathbb Z^2Z2 containing every pair (a,b)(a,b)(a,b) for which, writing a=(x,y)a=(x,y)a=(x,y), the point bbb is one of (−4−x,y)(-4-x,y)(−4−x,y), (4−x,y)(4-x,y)(4−x,y), (x,−2−y)(x,-2-y)(x,−2−y), (x,6−y)(x,6-y)(x,6−y), or (−x,y)(-x,y)(−x,y). Equivalently, two arbitrary integer pairs are related exactly when a finite sequence of these steps joins them, allowing each step in either direction. Zero steps are permitted, so every point is related to itself; no parity or range restriction is imposed.

QAlgorithms.Papers.Independent.Gap48.P17.gammaTildeStep

For arbitrary integer pairs a=(x,y)a=(x,y)a=(x,y) and bbb, this relation holds exactly when bbb is at least one of

(−4−x,y),(4−x,y),(x,−2−y),(x,6−y),(−x,y).(-4-x,y),\qquad (4-x,y),\qquad (x,-2-y),\qquad (x,6-y),\qquad (-x,y).(−4−x,y),(4−x,y),(x,−2−y),(x,6−y),(−x,y).

There are no parity or range restrictions, and the relation permits a=ba=ba=b whenever one of these transformations fixes aaa.

QAlgorithms.Papers.Independent.Gap48.P17.invariantForms

Let KKK be a field, d≥0d\ge0d≥0, V=KdV=K^dV=Kd, ggg any d×dd\times dd×d matrix over KKK, and SSS a KKK-vector space. Put Qg(w)=−∑i,jgijwiwjQ_g(w)=-\sum_{i,j}g_{ij}w_iw_jQg​(w)=−∑i,j​gij​wi​wj​, and suppose ρ\rhoρ supplies a unital algebra homomorphism R:Cl(V,Qg)→End⁡K(S)R:\mathrm{Cl}(V,Q_g)\to\operatorname{End}_K(S)R:Cl(V,Qg​)→EndK​(S), with S≠0S\ne0S=0 and only 0,S0,S0,S stable under its whole image. For the canonical Clifford map ι\iotaι, write c(v)=R(ι(v))c(v)=R(\iota(v))c(v)=R(ι(v)), and define Tu,v=14(c(u)∘c(v)−c(v)∘c(u))T_{u,v}=\frac14(c(u)\circ c(v)-c(v)\circ c(u))Tu,v​=41​(c(u)∘c(v)−c(v)∘c(u)). This definition gives the KKK-subspace of all KKK-bilinear forms b:S×S→Kb:S\times S\to Kb:S×S→K such that

b(Tu,vs,t)+b(s,Tu,vt)=0(u,v∈V, s,t∈S).b(T_{u,v}s,t)+b(s,T_{u,v}t)=0 \qquad(u,v\in V,\ s,t\in S).b(Tu,v​s,t)+b(s,Tu,v​t)=0(u,v∈V, s,t∈S).

No symmetry or nondegeneracy is required of bbb, and the zero form is included. The scalar 14\frac1441​ uses field division; in characteristic 222 it is 000, so every bilinear form satisfies the condition. Every bilinear form also satisfies it when d=0d=0d=0.

QAlgorithms.Papers.Independent.Gap48.P17.metricIsometryGroup

For any natural numbers p,qp,qp,q, put n=p+qn=p+qn=p+q. This defines the subgroup, under composition, of all bijections f:Rn→Rnf:\mathbb R^n\to\mathbb R^nf:Rn→Rn such that, for every x,y∈Rnx,y\in\mathbb R^nx,y∈Rn,

∑i=0p−1(f(x)i−f(y)i)2−∑i=pn−1(f(x)i−f(y)i)2=∑i=0p−1(xi−yi)2−∑i=pn−1(xi−yi)2.\sum_{i=0}^{p-1}\bigl(f(x)_i-f(y)_i\bigr)^2 -\sum_{i=p}^{n-1}\bigl(f(x)_i-f(y)_i\bigr)^2 = \sum_{i=0}^{p-1}(x_i-y_i)^2 -\sum_{i=p}^{n-1}(x_i-y_i)^2.i=0∑p−1​(f(x)i​−f(y)i​)2−i=p∑n−1​(f(x)i​−f(y)i​)2=i=0∑p−1​(xi​−yi​)2−i=p∑n−1​(xi​−yi​)2.

Empty sums are zero. Membership requires bijectivity and this equality; it imposes no separate linearity, affinity, continuity, or differentiability condition. When p=q=0p=q=0p=q=0, the underlying vector space has one element and the group consists only of its identity bijection.

QAlgorithms.Papers.Independent.Gap48.P17.orthogonalSpace

For any natural numbers p,qp,qp,q, put n=p+qn=p+qn=p+q and let GGG be the real n×nn\times nn×n diagonal matrix whose first ppp diagonal entries are 111 and whose remaining qqq diagonal entries are −1-1−1. This defines the real Lie subalgebra of real n×nn\times nn×n matrices consisting of all matrices XXX satisfying

XTG+GX=0,X^{\mathsf T}G+GX=0,XTG+GX=0,

with Lie bracket [X,Y]=XY−YX[X,Y]=XY-YX[X,Y]=XY−YX. The definition includes p=q=0p=q=0p=q=0, when this is the zero Lie algebra of matrices with empty index set.

QAlgorithms.Papers.Independent.Gap48.P17.poincareBracket

For every natural number ddd and any two pairs x=(A,u)x=(A,u)x=(A,u) and y=(B,v)y=(B,v)y=(B,v) in Md(R)×RdM_d(\mathbb R)\times\mathbb R^dMd​(R)×Rd, this defines

poincareBracket⁡(x,y)=(AB−BA,  Av−Bu).\operatorname{poincareBracket}(x,y)=(AB-BA,\;Av-Bu).poincareBracket(x,y)=(AB−BA,Av−Bu).

There are no restrictions on the matrices or vectors. The definition includes d=0d=0d=0, when the unique pair is sent to itself.

QAlgorithms.Papers.Independent.Gap48.P17.poincareSpace

For any natural numbers p,qp,qp,q, put n=p+qn=p+qn=p+q and let G=diag⁡(1,…,1,−1,…,−1)G=\operatorname{diag}(1,\ldots,1,-1,\ldots,-1)G=diag(1,…,1,−1,…,−1), with ppp positive and qqq negative entries. This defines the real vector subspace

{(X,v)∈Mn(R)×Rn:XTG+GX=0}.\{(X,v)\in M_n(\mathbb R)\times\mathbb R^n:X^{\mathsf T}G+GX=0\}.{(X,v)∈Mn​(R)×Rn:XTG+GX=0}.

The vector vvv is unrestricted. The definition includes p=q=0p=q=0p=q=0, when this subspace contains only the zero pair.

QAlgorithms.Papers.Independent.Gap48.P17.realFormDimensionTable

For every integer sss, this function returns the following natural number, according to the remainder rrr of sss modulo 888 in {0,…,7}\{0,\ldots,7\}{0,…,7}:

r01234567returned value24848421\begin{array}{c|rrrrrrrr} r&0&1&2&3&4&5&6&7\\ \hline \text{returned value}&2&4&8&4&8&4&2&1 \end{array}rreturned value​02​14​28​34​48​54​62​71​​

This definition includes zero and negative values of sss.

QAlgorithms.Papers.Independent.Gap48.P17.realRefinedTable

For arbitrary integers n,sn,sn,s, let rrr and ttt be the remainders of sss and nnn, respectively, modulo 888, each in {0,…,7}\{0,\ldots,7\}{0,…,7}. This function returns the ordered quadruple of natural numbers specified by the following cases:

rtreturned quadruple00,4(0,1,0,1)02(2,0,0,0)06(0,0,2,0)11,3(2,1,0,1)15,7(0,1,2,1)20,4(2,2,2,2)22(4,2,0,2)26(0,2,4,2)40,4(0,4,0,4)42(6,0,2,0)46(2,0,6,0)\begin{array}{c|c|c} r&t&\text{returned quadruple}\\ \hline 0&0,4&(0,1,0,1)\\ 0&2&(2,0,0,0)\\ 0&6&(0,0,2,0)\\ 1&1,3&(2,1,0,1)\\ 1&5,7&(0,1,2,1)\\ 2&0,4&(2,2,2,2)\\ 2&2&(4,2,0,2)\\ 2&6&(0,2,4,2)\\ 4&0,4&(0,4,0,4)\\ 4&2&(6,0,2,0)\\ 4&6&(2,0,6,0) \end{array}r00011222444​t0,4261,35,70,4260,426​returned quadruple(0,1,0,1)(2,0,0,0)(0,0,2,0)(2,1,0,1)(0,1,2,1)(2,2,2,2)(4,2,0,2)(0,2,4,2)(0,4,0,4)(6,0,2,0)(2,0,6,0)​​

For every pair of remainders not listed, the returned quadruple is (0,0,0,0)(0,0,0,0)(0,0,0,0). Both inputs may be zero or negative, and no parity condition is imposed on them.

QAlgorithms.Papers.Independent.Gap48.P17.realTotalTable

For arbitrary integers n,sn,sn,s, let rrr and ttt be the remainders of sss and nnn, respectively, modulo 888, each in {0,…,7}\{0,\ldots,7\}{0,…,7}. This function returns the following ordered pair of natural numbers:

rtreturned pair0,60,4(1,1)0,62(2,0)0,66(0,2)1,3,51,3(3,1)1,3,55,7(1,3)2,40,4(4,4)2,42(6,2)2,46(2,6)71,3(1,0)75,7(0,1)\begin{array}{c|c|c} r&t&\text{returned pair}\\ \hline 0,6&0,4&(1,1)\\ 0,6&2&(2,0)\\ 0,6&6&(0,2)\\ 1,3,5&1,3&(3,1)\\ 1,3,5&5,7&(1,3)\\ 2,4&0,4&(4,4)\\ 2,4&2&(6,2)\\ 2,4&6&(2,6)\\ 7&1,3&(1,0)\\ 7&5,7&(0,1) \end{array}r0,60,60,61,3,51,3,52,42,42,477​t0,4261,35,70,4261,35,7​returned pair(1,1)(2,0)(0,2)(3,1)(1,3)(4,4)(6,2)(2,6)(1,0)(0,1)​​

For every pair of remainders not listed, it returns (0,0)(0,0)(0,0). Both inputs may be zero or negative, and no parity or positivity hypothesis is required.

QAlgorithms.Papers.Independent.Gap48.P17.realTypeTable

For every integer sss, including negative integers, this function returns an ordered pair of values from the six-label type {realSimple,complexSimple,quaternionSimple,realSplit,complexSplit,quaternionSplit}\{\mathrm{realSimple},\mathrm{complexSimple},\mathrm{quaternionSimple},\mathrm{realSplit},\mathrm{complexSplit},\mathrm{quaternionSplit}\}{realSimple,complexSimple,quaternionSimple,realSplit,complexSplit,quaternionSplit} according to the nonnegative remainder r∈{0,…,7}r\in\{0,\ldots,7\}r∈{0,…,7} of sss modulo 888, as follows: rfirst labelsecond label0realSplitrealSimple1realSimplecomplexSimple2complexSimplequaternionSimple3quaternionSimplequaternionSplit4quaternionSplitquaternionSimple5quaternionSimplecomplexSimple6complexSimplerealSimple7realSimplerealSplit\displaystyle \begin{array}{c|cc} r&\text{first label}&\text{second label}\\ \hline 0&\mathrm{realSplit}&\mathrm{realSimple}\\ 1&\mathrm{realSimple}&\mathrm{complexSimple}\\ 2&\mathrm{complexSimple}&\mathrm{quaternionSimple}\\ 3&\mathrm{quaternionSimple}&\mathrm{quaternionSplit}\\ 4&\mathrm{quaternionSplit}&\mathrm{quaternionSimple}\\ 5&\mathrm{quaternionSimple}&\mathrm{complexSimple}\\ 6&\mathrm{complexSimple}&\mathrm{realSimple}\\ 7&\mathrm{realSimple}&\mathrm{realSplit} \end{array}r01234567​first labelrealSplitrealSimplecomplexSimplequaternionSimplequaternionSplitquaternionSimplecomplexSimplerealSimple​second labelrealSimplecomplexSimplequaternionSimplequaternionSplitquaternionSimplecomplexSimplerealSimplerealSplit​​. This defines the pair of labels and makes no assertion about any particular algebra.

QAlgorithms.Papers.Independent.Gap48.P17.refinedBracketForms

Let KKK be any field, d≥0d\geq0d≥0, V=KdV=K^dV=Kd, g=(gij)g=(g_{ij})g=(gij​) any matrix over KKK, SSS any KKK-vector space, and σ,ι\sigma,\iotaσ,ι any elements of KKK. Define Bg(u,x)=∑i,jgijuixjB_g(u,x)=\sum_{i,j}g_{ij}u_i x_jBg​(u,x)=∑i,j​gij​ui​xj​ and C=Cl⁡(V,Q)C=\operatorname{Cl}(V,Q)C=Cl(V,Q) with Q(v)=−Bg(v,v)Q(v)=-B_g(v,v)Q(v)=−Bg​(v,v). Let ρ:C→End⁡K(S)\rho:C\to\operatorname{End}_K(S)ρ:C→EndK​(S) be a unital KKK-algebra action on a nonzero SSS whose only subspaces preserved by the whole action are zero and SSS, and put c(v)=ρ(ιC(v))c(v)=\rho(\iota_C(v))c(v)=ρ(ιC​(v)), where ιC\iota_CιC​ is the canonical Clifford map. A supplied splitting has a linear grading operator GGG with G2=IG^2=IG2=I and Gc(v)=−c(v)GGc(v)=-c(v)GGc(v)=−c(v)G for every vvv; each of its eigenspaces {s:Gs=s}\{s:Gs=s\}{s:Gs=s} and {s:Gs=−s}\{s:Gs=-s\}{s:Gs=−s} is nonzero, preserved by every ρ(a)\rho(a)ρ(a) for aaa in the even Clifford subalgebra, and has no nonzero proper subspace preserved by all those operators, where the even subalgebra is the span of even-length products of canonical Clifford vectors, including 111. Set Tu,v=14(c(u)c(v)−c(v)c(u))T_{u,v}=\frac14(c(u)c(v)-c(v)c(u))Tu,v​=41​(c(u)c(v)−c(v)c(u)) and Lu,vx=Bg(u,x)v−Bg(v,x)uL_{u,v}x=B_g(u,x)v-B_g(v,x)uLu,v​x=Bg​(u,x)v−Bg​(v,x)u. The declaration defines the KKK-linear subspace of linear maps j:V→Bil⁡K(S,S;K)j:V\to\operatorname{Bil}_K(S,S;K)j:V→BilK​(S,S;K) for which, for all u,v,x∈Vu,v,x\in Vu,v,x∈V and s,t∈Ss,t\in Ss,t∈S, j(Lu,vx)(s,t)+j(x)(Tu,vs,t)+j(x)(s,Tu,vt)=0j(L_{u,v}x)(s,t)+j(x)(T_{u,v}s,t)+j(x)(s,T_{u,v}t)=0j(Lu,v​x)(s,t)+j(x)(Tu,v​s,t)+j(x)(s,Tu,v​t)=0, j(x)(t,s)=σj(x)(s,t)j(x)(t,s)=\sigma j(x)(s,t)j(x)(t,s)=σj(x)(s,t), and j(x)(Gs,t)=ιj(x)(s,Gt)j(x)(Gs,t)=\iota j(x)(s,Gt)j(x)(Gs,t)=ιj(x)(s,Gt). Neither σ\sigmaσ nor ι\iotaι is required to be a sign, and zero always belongs to the subspace. There is no finite-dimensionality or characteristic restriction; in characteristic 222, 14=0\frac14=041​=0 and the two grading eigenspaces coincide, while for d=0d=0d=0 the only possible jjj is zero.

QAlgorithms.Papers.Independent.Gap48.P17.refinedExtensionDimension

Let KKK be any field, d≥0d\geq0d≥0, V=KdV=K^dV=Kd, g=(gij)g=(g_{ij})g=(gij​) any matrix over KKK, SSS any KKK-vector space, and σ,ι∈K\sigma,\iota\in Kσ,ι∈K arbitrary. Put Bg(u,x)=∑i,jgijuixjB_g(u,x)=\sum_{i,j}g_{ij}u_i x_jBg​(u,x)=∑i,j​gij​ui​xj​, let C=Cl⁡(V,Q)C=\operatorname{Cl}(V,Q)C=Cl(V,Q) with Q(v)=−Bg(v,v)Q(v)=-B_g(v,v)Q(v)=−Bg​(v,v), and let ρ:C→End⁡K(S)\rho:C\to\operatorname{End}_K(S)ρ:C→EndK​(S) be a unital KKK-algebra action on a nonzero SSS whose only subspaces preserved by the whole action are zero and SSS. Write c(v)=ρ(ιC(v))c(v)=\rho(\iota_C(v))c(v)=ρ(ιC​(v)) for the canonical Clifford vector action. Suppose a splitting is supplied with linear grading operator GGG satisfying G2=IG^2=IG2=I and Gc(v)=−c(v)GGc(v)=-c(v)GGc(v)=−c(v)G for every vvv, such that both eigenspaces {s:Gs=s}\{s:Gs=s\}{s:Gs=s} and {s:Gs=−s}\{s:Gs=-s\}{s:Gs=−s} are nonzero, preserved by all actions of the even Clifford subalgebra, and have no nonzero proper subspace preserved by all those actions; the even subalgebra is the span of even-length products of canonical Clifford vectors, including 111. Define Tu,v=14(c(u)c(v)−c(v)c(u))T_{u,v}=\frac14(c(u)c(v)-c(v)c(u))Tu,v​=41​(c(u)c(v)−c(v)c(u)) and Lu,vx=Bg(u,x)v−Bg(v,x)uL_{u,v}x=B_g(u,x)v-B_g(v,x)uLu,v​x=Bg​(u,x)v−Bg​(v,x)u. The declared natural number is the dimension over KKK, when finite, of the space of linear maps j:V→Bil⁡K(S,S;K)j:V\to\operatorname{Bil}_K(S,S;K)j:V→BilK​(S,S;K) satisfying, for every u,v,x∈Vu,v,x\in Vu,v,x∈V and s,t∈Ss,t\in Ss,t∈S, j(Lu,vx)(s,t)+j(x)(Tu,vs,t)+j(x)(s,Tu,vt)=0j(L_{u,v}x)(s,t)+j(x)(T_{u,v}s,t)+j(x)(s,T_{u,v}t)=0j(Lu,v​x)(s,t)+j(x)(Tu,v​s,t)+j(x)(s,Tu,v​t)=0, j(x)(t,s)=σj(x)(s,t)j(x)(t,s)=\sigma j(x)(s,t)j(x)(t,s)=σj(x)(s,t), and j(x)(Gs,t)=ιj(x)(s,Gt)j(x)(Gs,t)=\iota j(x)(s,Gt)j(x)(Gs,t)=ιj(x)(s,Gt); if this space is infinite-dimensional, the declared number is zero. There is no finite-dimensionality assumption on SSS and no sign restriction on σ\sigmaσ or ι\iotaι. When d=0d=0d=0 the value is zero; in characteristic 222, 14=0\frac14=041​=0 and the two grading eigenspaces coincide.

QAlgorithms.Papers.Independent.Gap48.P17.reflectionDomain

This definition specifies exactly the following finite set of twelve integer pairs:

{(−2,0),(−2,2),(−1,−1),(−1,1),(−1,3),(0,0),(0,2),(1,−1),(1,1),(1,3),(2,0),(2,2)}.\{(-2,0),(-2,2),(-1,-1),(-1,1),(-1,3),(0,0),(0,2), (1,-1),(1,1),(1,3),(2,0),(2,2)\}.{(−2,0),(−2,2),(−1,−1),(−1,1),(−1,3),(0,0),(0,2),(1,−1),(1,1),(1,3),(2,0),(2,2)}.

QAlgorithms.Papers.Independent.Gap48.P17.schurAlgebra

Let KKK be a field, d≥0d\ge0d≥0, V=KdV=K^dV=Kd, ggg any d×dd\times dd×d matrix over KKK, and SSS a KKK-vector space. Put Qg(w)=−∑i,jgijwiwjQ_g(w)=-\sum_{i,j}g_{ij}w_iw_jQg​(w)=−∑i,j​gij​wi​wj​, and suppose ρ\rhoρ supplies a unital KKK-algebra homomorphism R:Cl(V,Qg)→End⁡K(S)R:\mathrm{Cl}(V,Q_g)\to\operatorname{End}_K(S)R:Cl(V,Qg​)→EndK​(S), with S≠0S\ne0S=0 and no subspaces stable under its entire image except 000 and SSS. This definition gives the KKK-subalgebra

{T∈End⁡K(S):T∘R(a)=R(a)∘T for every a∈Cleven(V,Qg)},\left\{T\in\operatorname{End}_K(S): T\circ R(a)=R(a)\circ T \text{ for every }a\in\mathrm{Cl}^{\mathrm{even}}(V,Q_g)\right\},{T∈EndK​(S):T∘R(a)=R(a)∘T for every a∈Cleven(V,Qg​)},

where the even Clifford subalgebra consists of linear combinations of products of an even number of canonically embedded vectors, including 111. Thus membership requires commuting with every represented even Clifford element; it does not require commuting with every represented Clifford element. Zero dimension and arbitrary, possibly degenerate or nonsymmetric, ggg are included.

QAlgorithms.Papers.Independent.Gap48.P17.signatureDomain

This defines the finite set of integer pairs

{(2,0),(1,1),(3,0),(2,1),(1,2),(3,1),(2,2)}.\{(2,0),(1,1),(3,0),(2,1),(1,2),(3,1),(2,2)\}.{(2,0),(1,1),(3,0),(2,1),(1,2),(3,1),(2,2)}.

QAlgorithms.Papers.Independent.Gap48.P17.signatureMatrix

For any natural numbers p,qp,qp,q, including zero, this defines the real (p+q)×(p+q)(p+q)\times(p+q)(p+q)×(p+q) diagonal matrix GGG, indexed by 0,…,p+q−10,\ldots,p+q-10,…,p+q−1, whose entries are Gij=0G_{ij}=0Gij​=0 when i≠ji\ne ji=j, Gii=1G_{ii}=1Gii​=1 when i<pi<pi<p, and Gii=−1G_{ii}=-1Gii​=−1 when p≤i<p+qp\le i<p+qp≤i<p+q. Thus its first ppp diagonal entries are 111 and its remaining qqq diagonal entries are −1-1−1. When p=q=0p=q=0p=q=0, this is the empty matrix.

QAlgorithms.Papers.Independent.Gap48.P17.spinGenerator

For any field KKK, natural number ddd, matrix g∈Md(K)g\in M_d(K)g∈Md​(K), and KKK-vector space SSS with its additive commutative group structure, let ρ:Cl⁡(Kd,Qg)→End⁡K(S)\rho:\operatorname{Cl}(K^d,Q_g)\to\operatorname{End}_K(S)ρ:Cl(Kd,Qg​)→EndK​(S) be a unital KKK-algebra homomorphism, where Qg(x)=−∑i<d∑j<dgijxixjQ_g(x)=-\sum_{i<d}\sum_{j<d}g_{ij}x_i x_jQg​(x)=−∑i<d​∑j<d​gij​xi​xj​, SSS is nontrivial, and every subspace preserved by all ρ(a)\rho(a)ρ(a) is either {0}\{0\}{0} or SSS. For any u,v∈Kdu,v\in K^du,v∈Kd, this defines the endomorphism

Tρ(u,v)=14(ρ(ι(u))∘ρ(ι(v))−ρ(ι(v))∘ρ(ι(u))),T_\rho(u,v)=\frac14\bigl(\rho(\iota(u))\circ\rho(\iota(v))-\rho(\iota(v))\circ\rho(\iota(u))\bigr),Tρ​(u,v)=41​(ρ(ι(u))∘ρ(ι(v))−ρ(ι(v))∘ρ(ι(u))),

where ι\iotaι is the canonical vector map into the Clifford algebra and multiplication of endomorphisms means composition. No finite-dimensionality or nondegeneracy assumption is imposed. The scalar 1/41/41/4 is computed in KKK, with inverse zero defined to be zero; consequently, in characteristic 222 this endomorphism is zero. The case d=0d=0d=0 is included and also gives zero.

QAlgorithms.Papers.Independent.Gap48.P17.totalCounts

For every ordered quadruple c=(a,b,c′,d)c=(a,b,c',d)c=(a,b,c′,d) of natural numbers, this function returns the ordered pair

(a+b,  c′+d).(a+b,\;c'+d).(a+b,c′+d).

There are no positivity or other restrictions on the four coordinates.

QAlgorithms.Papers.Independent.Gap48.P17.vectorGenerator

For any field KKK, any natural number ddd, any matrix g∈Md(K)g\in M_d(K)g∈Md​(K), and any vectors u,v,x∈Kdu,v,x\in K^du,v,x∈Kd, this defines the vector

(∑i<d∑j<dgijuixj)v−(∑i<d∑j<dgijvixj)u.\left(\sum_{i<d}\sum_{j<d}g_{ij}u_i x_j\right)v - \left(\sum_{i<d}\sum_{j<d}g_{ij}v_i x_j\right)u.​i<d∑​j<d∑​gij​ui​xj​​v−​i<d∑​j<d∑​gij​vi​xj​​u.

No symmetry or nondegeneracy assumption on ggg, and no restriction on the characteristic of KKK, is required. When d=0d=0d=0, both sums are empty and the result is the unique vector of K0K^0K0.

QAlgorithms.Papers.Independent.Gap48.P17.volumeElement

For natural numbers p,qp,qp,q and any real basis e=(e0,…,ep+q−1)e=(e_0,\ldots,e_{p+q-1})e=(e0​,…,ep+q−1​) of Rp+q\mathbb R^{p+q}Rp+q indexed in that order, this defines the element

ι(e0) ι(e1)⋯ι(ep+q−1)\iota(e_0)\,\iota(e_1)\cdots\iota(e_{p+q-1})ι(e0​)ι(e1​)⋯ι(ep+q−1​)

of the real Clifford algebra of the quadratic form Q(x)=−∑i=0p−1xi2+∑i=pp+q−1xi2Q(x)=-\sum_{i=0}^{p-1}x_i^2+\sum_{i=p}^{p+q-1}x_i^2Q(x)=−∑i=0p−1​xi2​+∑i=pp+q−1​xi2​, where ι\iotaι is the canonical linear map from Rp+q\mathbb R^{p+q}Rp+q into that Clifford algebra, satisfying ι(v)2=Q(v) 1\iota(v)^2=Q(v)\,1ι(v)2=Q(v)1. The factors occur in increasing index order. No orthogonality or normalization of the basis is assumed. When p+q=0p+q=0p+q=0, this is the empty product, equal to the multiplicative identity.

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

    Confirmed by the moderator at approval.

  • Endorsed by Goku · Oct 21, 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