arXiv:2610.07867math.QAOct 2026

Manuscript Offprint

arXiv:2610.07867

quantum-group: Exact symbolic verification of R-matrix and Yang--Baxter identities for Uq(sl2)U_q(\mathfrak{sl}_2) and GLq(2∣1)GL_q(2|1)

Taha Berk Terekli

TAHA BERK TEREKLI

ABSTRACT. Explicit R-matrices of quantum groups are routinely transcribed from the literature, yet whether they satisfy an identity depends on basis order, tensor placement, the coproduct and, for superalgebras, the Koszul sign rule. quantum-group is a Python package that builds such matrices exactly with SymPy and returns every identity as an exact residual matrix, whose nonzero entries locate the convention that disagrees. It covers Uq(sl2)U_q(\mathfrak{sl}_2) modules, tensor products and the fundamental R-matrix, and the graded Yang–Baxter equation for GLq(2∣1)GL_q(2|1). Applied to the thesis it was written for, it exposed an R-matrix that satisfies the Yang–Baxter equation but intertwines the opposite coproduct.

1. INTRODUCTION

Quantum groups are one-parameter deformations of classical symmetry algebras. Their representations yield solutions of the quantum Yang–Baxter equation (QYBE), which is why they appear in exactly solvable models of statistical mechanics, in knot invariants and in representation theory [5, 8, 9, 10]. Much of the working knowledge in this area is recorded as explicit matrices whose entries are rational functions of the deformation parameter qq: an R-matrix on V⊗VV \otimes V, the generators of a module, a change of basis to irreducible summands. Before such a matrix can be reused it has to be checked, and checking it means multiplying 9×99 \times 9, 27×2727 \times 27 or 81×8181 \times 81 matrices whose meaning depends on conventions that texts state in different ways, or not at all.

The characteristic mistakes are not arithmetic ones. A matrix is transcribed in a different basis order from the one its source used. R13R_{13} is formed by conjugating with the wrong permutation. An R-matrix is paired with the opposite of the coproduct it actually intertwines; this still satisfies the QYBE, so the most common test does not detect it. In a Z2Z_{2}-graded setting an ordinary flip is used where the Koszul sign rule requires a super-permutation. And a check that is run at a floating-point value of q can hide cancellations or produce spurious nonzero entries. Each of these errors produces output that looks plausible.

quantum-group [13] addresses this with a deliberately narrow design. Every object is an ordinary exact sympy.Matrix [12]; conventions (basis order, coproduct, parities) are fixed in documented functions; and every identity is exposed as a residual, the exact matrix LHS – RHS, which is then tested entry by entry. For Uq(sl2)U_q(\mathfrak{sl}_2) the package constructs the irreducible modules VnV_n, checks the defining relations

2020 Mathematics Subject Classification. Primary 17B37; Secondary 16T25, 81R50, 68W30.

Key words and phrases. Quantum groups, R-matrix, Yang–Baxter equation, quantum supergroups, Koszul sign rule, exact symbolic computation, SymPy.

TAHA BERK TEREKLI

and generator-level Hopf identities, builds tensor products through the coproduct, computes Clebsch–Gordan highest-weight vectors, and verifies the fundamental R-matrix: QYBE, braid and Hecke relations and coproduct intertwining. For the quantum supergroup GLq(2∣1)GL_q(2|1) introduced by Çelik and Çelik [2], whose third basis vector is odd, it constructs the published 9×99 \times 9 R-matrix and verifies the graded Yang–Baxter equation on three factors and on every triple of factors in V⊗4V^{\otimes4}.

The software was developed for and used in the author's undergraduate thesis [15], where it produced the thesis's tables, matrix figures and Yang–Baxter verifications. After the thesis was submitted in June 2026, the software was used to audit it: an explicit intertwining residual showed that the thesis's R-matrix intertwines the opposite of the coproduct used in the text, an error that passing QYBE, braid and Hecke checks had not revealed (Sec. 5.2). The correction is recorded in the repository (thesis/ERRATA.md, AUDIT.md), and the check is now part of the API and the test suite. No new mathematical results are claimed; the contribution is the software and its verification method.

The intended users are researchers who need to confirm a matrix identity from the literature in their own conventions: mathematical physicists working with R-matrices and integrable models, representation theorists and computer-algebra users who want an inspectable reference calculation, and students reproducing standard quantum-group computations.

Related software. GAP’s QuaGroup package [16, 4, 3] and SageMath [17], which provides a QuantumGroup interface to it, work with the quantized enveloping algebra Uq(g)U_q(\mathfrak{g}) of any semisimple Lie algebra g\mathfrak{g}: they construct PBW-type and canonical bases, highest-weight modules and their R-matrices; SageMath also implements crystals for the quantum superalgebras Uq(gl(m∣n))U_q(\mathfrak{gl}(m|n)) [1]. These systems are far broader, and for general Uq(g)U_q(\mathfrak{g}) work they are the appropriate tools. quantum-group does not replace them. Its added value is that of a small verification layer for concrete matrix calculations: it keeps the basis order and coproduct of a particular text, returns the matrices and residuals themselves rather than only a verdict, runs in an ordinary Python environment, encodes the graded sign rule once for every tensor placement, and includes a graded GLq(2∣1)GL_q(2|1) example that lies outside QuaGroup’s documented Uq(g)U_q(\mathfrak{g}) scope. The two are complementary: Sec. 6.3 uses quantum-group to test matrices computed by QuaGroup and to identify the conventions in which the systems differ.

Outline. Section 2 collects the definitions the package implements, and Sec. 3 describes how it works and why it is built this way. Section 4 explains installation and the public interface, Sec. 5 gives worked examples, including the thesis audit, and Sec. 6 documents testing, a cross-check against GAP's QuaGroup and performance. Section 7 states the scope and the ways the code can be reused or extended. Appendix A is a reference of the public interface.