Skip to content

EP-0215: Quantum Groups, Yang–Baxter Equation & Braided Categories

Field Value
EP 0215
Title Quantum Groups, Yang–Baxter Equation & Braided Categories
Author Eran Rivlis eran@rivlis.info, Antigravity
Sponsor Core Maintainers
Delegate ⚖️ Noether (Quantum Symmetries) & 🛡️ Golem (Formal Yang–Baxter Verification)
Status Final
Type Standards Track
Created 2026-10-28
Updated 2026-11-23
Replaces —
Superseded-By —

Abstract

This proposal establishes the computational foundations of Quantum Groups and Non-Cocommutative Symmetries in AlgebraX, formalizing \(q\)-deformed enveloping algebras, the Yang–Baxter equation, and braided monoidal categories inside src/algebrax/rep/quantum.py atop algebrax.algebra (HopfAlgebra) and algebrax.rep. EP-0215 introduces:

  1. Drinfeld–Jimbo Quantum Group \(U_q(\mathfrak{sl}_2)\) (QuantumSL2 in algebrax.rep.quantum): Deforming the universal enveloping algebra \(U(\mathfrak{sl}_2)\) into a non-cocommutative Hopf algebra implementing HopfAlgebra (algebrax.algebra._hopf) over the unboxed PBW basis dict[tuple[int, int, int], complex] representing \(E^a K^b F^c\), with generators \(E, F, K, K^{-1}\) satisfying: $\(K E K^{-1} = q^2 E, \quad K F K^{-1} = q^{-2} F, \quad [E, F] = \frac{K - K^{-1}}{q - q^{-1}}\)$ with non-cocommutative comultiplication \(\Delta\), counit \(\epsilon\), and non-involutive antipode \(S\) (\(S^2(E) = q^{-2} E \neq E\)): $\(\Delta(K) = K \otimes K, \quad \Delta(E) = E \otimes 1 + K \otimes E, \quad \Delta(F) = F \otimes K^{-1} + 1 \otimes F\)$
  2. Universal \(R\)-Matrix & The Quantum Yang–Baxter Equation (QYBE): Quasi-triangular structure governed by the universal \(R\)-matrix \(R \in U_q \otimes U_q\) satisfying: $\(R_{12} R_{13} R_{23} = R_{23} R_{13} R_{12}\)$ realized as an explicit sparse \(4 \times 4\) lower-triangular fundamental operator universal_r_matrix_sl2_fundamental(q) on \(V_{1/2} \otimes V_{1/2}\).
  3. Braided Monoidal Category of Representations (braiding_operator in algebrax.rep.quantum): Enriching the representation category \(\mathbf{Rep}(U_q(\mathfrak{g}))\) with a non-trivial braiding isomorphism: $\(\beta_{V, W} = P \circ (\rho_V \otimes \rho_W)(R) : V \otimes W \longrightarrow W \otimes V\)$ where \(P(v \otimes w) = w \otimes v\) is the flip operator, intertwining \(\Delta(x)\) and satisfying the Hecke quadratic relation \((B - qI)(B + q^{-1}I) = 0\).
  4. Knot Invariants & The Jones Polynomial (braid_to_matrix, quantum_trace, jones_polynomial_eval): Evaluating the Markov-invariant quantum trace \(\operatorname{Tr}_q(X) = \operatorname{Tr}(K^{\otimes n} X)\) to compute link invariants and the Jones polynomial \(V_L(t)\) at \(t = q^{-2}\) directly from Artin braid words.
  5. Property-Based Verification (src/algebrax/verification.py): Complex-scalar generalization of Hopf/coalgebra/bialgebra axiom verifiers (verify_hopf_algebra_laws), plus dedicated verifiers for \(U_q(\mathfrak{sl}_2)\) commutation relations (verify_quantum_sl2_relations), the Yang–Baxter matrix equation (verify_yang_baxter_equation), and Artin braid group relations (verify_artin_braid_relations) returning dict[str, bool].

Motivation

Quantum groups (introduced independently by Vladimir Drinfeld and Michio Jimbo in 1985) are not groups in the classical sense: they are non-commutative, non-cocommutative Hopf algebras that arise as continuous deformations of Lie algebras.

  1. Unifying Symmetries, Quantum Mechanics, and Topology: Quantum groups provide the exact mathematical bridge connecting representation theory to low-dimensional topology (knot theory, 3-manifold invariants, Chern-Simons gauge theory) and integrable statistical mechanics (the 6-vertex and 8-vertex models).
  2. Beyond Classical Permutations: In classical tensor categories, the swap map \(v \otimes w \mapsto w \otimes v\) satisfies \(P^2 = \mathbf{I}\) (symmetric monoidal category). In quantum mechanics and anyon physics, particle exchange can produce non-trivial phases or braids (\(\beta^2 \ne \mathbf{I}\)).
  3. The Jones Polynomial as Representation Theory: The Jones polynomial was originally discovered via von Neumann algebras and knot theory. Quantum groups show that the Jones polynomial is literally the quantum trace of the universal \(R\)-matrix in the 2D representation of \(U_q(\mathfrak{sl}_2)\).

Rationale & Council Alignment

  • ⚖️ Noether (Deformed Quantum Symmetries): Quantum groups describe symmetries in systems where the classical Lie group symmetry is broken down to a quantum deformation parameter \(q = e^{\hbar}\). When \(q \to 1\), all formulas smoothly recover the classical Lie algebra \(\mathfrak{sl}_2\) (EP-0163, EP-0211).
  • 🛡️ Golem (Formal Yang–Baxter Verification): The Yang–Baxter equation \(R_{12} R_{13} R_{23} = R_{23} R_{13} R_{12}\) is an exact, unyielding matrix equality over \(V \otimes V \otimes V\). Golem insists on rigorous numerical and symbolic validation that rejects invalid braiding candidates.
  • ⚡ Shannon (Zero Bloat & Sparse \(R\)-Matrix Carriers): For spin-1/2, \(R\) is a \(4 \times 4\) sparse matrix with only 5 non-zero entries. All 3-fold and \(n\)-strand tensor embeddings are constructed directly in sparse coordinates without allocating dense \(d^3 \times d^3\) matrices.
  • 🔬 Popper (Falsifiability via Braid Invariants): The braid relation (\(\sigma_1 \sigma_2 \sigma_1 = \sigma_2 \sigma_1 \sigma_2\)), Markov I/II invariance, and chiral trefoil distinction provide strict falsifiable assertions.
  • đź’ˇ Feynman (Freshman Test & Intuitive Demystification): "Quantum groups are what happens when you turn up the heat on a Lie algebra! The elements no longer swap places politely (\(A \otimes B \ne B \otimes A\)); instead, they braid around each other like strands in a rope."

Specification

1. \(U_q(\mathfrak{sl}_2)\) Quantum Group, \(R\)-Matrix & Knot Invariants (src/algebrax/rep/quantum.py)

"""Drinfeld-Jimbo quantum group U_q(sl_2), universal R-matrices, braiding, and Jones invariants."""

from __future__ import annotations

from collections.abc import Mapping, Sequence
from dataclasses import dataclass

from algebrax.algebra._hopf import HopfAlgebra
from algebrax.typing import SparseMatrix, SparseVector

PBWKey = tuple[int, int, int]
QuantumElement = SparseVector[PBWKey, complex]
TensorElement = dict[tuple[PBWKey, PBWKey], complex]


@dataclass
class QuantumSL2(HopfAlgebra[complex, QuantumElement]):
    """U_q(sl_2) Hopf algebra over unboxed PBW basis {(a, b, c): coeff} for E^a K^b F^c."""

    q: complex
    tol: float = 1e-13

    def q_bracket(self, n: int) -> complex: ...
    def q_factorial(self, n: int) -> complex: ...
    def q_binomial(self, n: int, k: int) -> complex: ...
    def spin_representation(self, j_halves: int) -> dict[str, SparseMatrix[int, complex]]: ...
    def evaluate_rep(
        self,
        element: QuantumElement,
        rep: Mapping[str, SparseMatrix[int, complex]],
    ) -> SparseMatrix[int, complex]: ...


def universal_r_matrix_sl2_fundamental(q: complex) -> SparseMatrix[int, complex]: ...
def braiding_operator(r_matrix: SparseMatrix[int, complex], dim: int = 2) -> SparseMatrix[int, complex]: ...
def braid_to_matrix(
    braid_word: Sequence[int],
    num_strands: int,
    q: complex,
) -> SparseMatrix[int, complex]: ...
def quantum_trace(mat: SparseMatrix[int, complex], num_strands: int, q: complex) -> complex: ...
def jones_polynomial_eval(braid_word: Sequence[int], num_strands: int, q: complex) -> complex: ...

2. Verification Suite (src/algebrax/verification.py)

"""Property-based verification for quantum groups, Yang-Baxter equation, and Artin braid relations."""

def verify_quantum_sl2_relations(
    q: complex,
    rep: dict[str, dict[int, dict[int, Any]]],
    tol: float = 1e-9,
) -> dict[str, bool]: ...

def verify_yang_baxter_equation(
    r_matrix: dict[int, dict[int, Any]],
    dim: int = 2,
    tol: float = 1e-9,
) -> dict[str, bool]: ...

def verify_artin_braid_relations(
    b1: dict[int, dict[int, Any]],
    b2: dict[int, dict[int, Any]],
    b3: dict[int, dict[int, Any]] | None = None,
    tol: float = 1e-9,
) -> dict[str, bool]: ...

Backwards Compatibility

Non-breaking and strictly additive. All structures reside in algebrax.rep (src/algebrax/rep/quantum.py, re-exported via algebrax.rep) and src/algebrax/verification.py, building directly upon Hopf algebras in algebrax.algebra (EP-0206). Existing Hopf/coalgebra/bialgebra verifiers in algebrax.verification were extended cleanly to support complex scalars while preserving full backwards compatibility for real (float) Hopf algebras.


How to Teach This / Documentation Plan

  • Guide: docs/guide/algebra/quantum_groups_and_braids.md (registered in zensical.toml and cross-linked from coalgebras_and_hopf.md and lie_representations.md):
  • From classical Lie algebras to non-cocommutative Hopf algebra \(q\)-deformations.
  • Solving the Quantum Yang–Baxter Equation and verifying Artin braid relations.
  • Computing the Jones polynomial of the Unknot, Hopf Link, Trefoil \(3_1\) (and chiral mirror), and Figure-Eight \(4_1\).
  • Docstrings: Fully typed AMDS docstrings with KaTeX equations for \(q\)-brackets, PBW structure, and braiding operators.

Reference Implementation

  • Core Module: src/algebrax/rep/quantum.py (re-exported from src/algebrax/rep/__init__.py).
  • Verification Engine: src/algebrax/verification.py (verify_quantum_sl2_relations, verify_yang_baxter_equation, verify_artin_braid_relations, and complex-scalar Hopf verifier support).
  • Unit & Falsification Tests: tests/algebrax/test_rep_quantum.py.
  • SymPy Differential Verification: tests/verifications/test_differential_sympy.py::test_differential_quantum_groups_yang_baxter_and_jones_vs_sympy (documented in docs/verification.md).
  • User Guide: docs/guide/algebra/quantum_groups_and_braids.md.

Rejected Ideas

  1. Allocating Dense \(d^3 \times d^3\) Matrices for Yang-Baxter Verification:
  2. Rejected: In a 3-fold tensor product with \(d=4\), the dense matrix is \(64 \times 64\), but for higher spins, \(d^3 \times d^3\) explodes. Shannon sparse matrix coordinate embeddings are used instead.
  3. Purely Combinatorial Knot Engines:
  4. Rejected: Computing knot invariants solely via planar diagram crossings obscures the deep algebraic reality that knot invariants are quantum group representation traces.
  5. Standalone Top-Level src/algebrax/quantum/ Package:
  6. Rejected: Creating a separate top-level package would fragment representation-theoretic \(R\)-matrices, braided tensor products, and spin-\(j\) \(q\)-deformations away from algebrax.rep and algebrax.algebra.HopfAlgebra.

Open Questions

  • [ ] Extension to general \(U_q(\mathfrak{g})\) for arbitrary Lie root systems from EP-0164 (HOMFLY-PT polynomials from \(U_q(\mathfrak{sl}_n)\)).
  • [ ] Connection to modular tensor categories and topological quantum computation (Fibonacci anyons).

Change Log

  • 2026-10-28:
  • Initial Draft authored for Phase 8.
  • 2026-11-15:
  • Aligned specification to consolidate QuantumSL2 (HopfAlgebra), \(R\)-matrices, braiding operators, and Jones knot invariants into src/algebrax/rep/quantum.py, with verifiers returning dict[str, bool] in src/algebrax/verification.py.
  • 2026-11-23:
  • Implemented full QuantumSL2 PBW Hopf algebra, spin-\(j\) representations, fundamental \(R\)-matrix, braiding/Artin representations, quantum trace, Jones polynomial evaluator, complex-scalar Hopf and YBE/braid verifiers, unit/falsification tests, SymPy differential verification, and user guide; transitioned status to Final.