E.P.J. de Haas · Kandinsky College, Nijmegen
The BQ algebra, one matrix product at a time
In the BQ-Pauli algebra a physical four-vector is four real coordinates on a basis of 2×2 complex matrices, A = a0T̂ + a·K̂, with K̂ = (Î, Ĵ, K̂). Multiplying such vectors is ordinary matrix multiplication, and the algebra sorts every product into its own channels. These eleven interactive models build that up in four themes, from the bare algebra to gravity, and every result on them is computed live from the explicit matrices. A separate section lifts the algebra to the Dirac level.
Eleven interactive models in four themes
Each theme adds one ingredient to the previous one: the bare algebra, then four-vectors and their products, then a global rapidity that changes the frame, then a local rapidity field that brings in gravity.
1Algebra only
The eight basis matrices and their 64 products, before any physics is put on them.
2Vectors and their multiplication
Real coordinates on the space-time basis make four-vectors; their products sort into the norm, rotation and boost channels and carry Maxwell’s equations, the Lorentz force and the field quadratics.
Bilinear product explorer
Choose A and B from the four-vectors of the BQ papers, from position and momentum to the four-gradient, the potential and the current. The page derives the three channels of ATB symbolically and checks them by explicit matrix multiplication.
Triple product explorer
Multiply a bilinear from the left by a third four-vector. The output fills all four channels 1̂, T̂, K̂ and σ̂: with D = ∂ and C = ∂TA it gives Maxwell’s equations, with D = J the Lorentz force and its spin-norm partner.
Field quadratics
Square a field F = f1̂ + k·K̂ + s·σ̂ in two ways. FF holds the Lorentz invariants, FTF an energy density and its flux in a chosen frame. Applied to the electromagnetic field, the relativistic fluid field and the angular-momentum bivector.
3Lorentz transformations: a global rapidity
One constant rapidity ψ between two inertial frames, AL = U−1AU−1, applied to vectors, to the bilinear and to the triple-product equations.
Lorentz transformations
Boost any four-vector of the papers along Î with the rotor U = eψσ̂I/2: AL = U−1AU−1, its inverse UAU, and the time adjoint, which transforms the other way: (AT)L = (AL−1)T. A spacetime diagram shows the vector moving along its invariant hyperbola.
Lorentz transformation of the bilinear
Boost both factors of C = ATB for any pair of the papers’ four-vectors. The adjoint carries the opposite rotor, so the bilinear transforms by a similarity, CL = UCU−1: the norm stays, and the K̂ and σ̂ channels mix like B and E/c. Shown in seven forms, from the matrix and the rotor to Minkowski’s complex field transformation.
Lorentz covariance of the triple product
A triple E = D(ATB) is boosted like a four-vector again, EL = U−1EU−1, and both its minquat and its pauliquat sector are four-vectors. So ∂B = μ0J, JB = F and the fluid equations keep their form, checked with boosted vectors and with fields differentiated in the boosted coordinates.
4Gravity: a local rapidity
The rapidity becomes a field χ(r, t) feeding a local rotor; a Galilean coframe with a Lorentzian quadratic gives the metric; the constant-Lagrangian disk is read in that metric and derived along two routes, the rotor’s own Maurer–Cartan connection and the convective acceleration of the flow.
The gravity rotor: from rapidity to metric
Newtonian, Hubble and azimuthal rapidity fields feed a local Lorentz rotor G(r, t). Its action on dR is exact and its quadratic flat; the gravitational content is in the choice of a Galilean coframe with a Lorentzian quadratic, which gives the riverbed and gμν. Compared with Schwarzschild, de Sitter/FLRW, Schwarzschild–de Sitter and a rotating frame, and tested with its Einstein tensor.
CL as an equi-redshift flow
In the Galilean-coframe metric with a radial and an azimuthal river, γrs is the river’s Lorentz factor relative to the static Killing observers, equal to the rotor’s Γ at slow-flow order. The river is geodesic with conserved Killing energy, so wherever the radial flow is nonzero the constant-Lagrangian condition means flow along levels of the redshift factor. The constant is a closure; a slowly changing H leaves the analysis intact, and the normal-frame energy density of the CL disk comes out negative under ordinary GR.
The Maurer–Cartan route to isorapidity
The Maurer–Cartan connection Ωτ = (DG/Dτ)G−1 of the ordered rotor G = GφGr, transported with Ug in the triple product. Its time channel is exactly (c/2)DΓ/Dτ, so isorapidity means no boost rate along the flow. Starting from the Newtonian rapidity alone, the azimuthal and Hubble rapidities and a virial closure at R lead to the galactic rotation law.
The kinematic route to isorapidity
The convective four-acceleration Ag = DUg/Dτ of the rotor-boosted four-velocity. Its time channel is c DΓ/Dτ, the power per unit mass along the flow, and UgTAg has no norm channel. Isorapidity is the branch with purely transverse acceleration, and Ag = ΩτUg + UgΩτ† makes it one statement with the Maurer–Cartan route.
The Dirac level
The lift of the BQ-Pauli algebra to 4×4 matrices has its own index, models and scripts in the folder dirac/.
Reproduce in Python
The web pages compute in JavaScript. The folder py_sources holds an independent Python implementation with SymPy. It checks every channel rule exactly along two routes: term by term with the multiplication table, as on these pages, and as an explicit 2×2 matrix product decomposed on the eight basis elements.
- 1 · Algebra only
bq_core.py· basis, four-vectors, operator order, channel rulesbq_pauli_table.py· the 64 basis products against the paper’s table- 2 · Vectors and their multiplication
bq_bilinear.py· the channels of ATB, all 169 pairsbq_triple.py· the four channels of D(ATB), all 2197 triplesbq_quadratics.py· FF and FTF for the EM, fluid and other fields- 3 · Global rapidity
bq_lorentz.py· AL = U−1AU−1, adjoints, invariance, step 5 and the Lemmabq_bilinear_lorentz.py· CL = UCU−1 for all 169 pairs, basis rules and complex formbq_triple_lorentz.py· EL = U−1EU−1 for all 2197 triples, both sectors, both lemmas- 4 · Local rapidity: gravity
bq_gravity_rotor.py· the gravity rotor: dRG, flat quadratic, Galilean coframe, gμν, known metrics, Einstein tensorbq_cl_killing.py· γrs as the river–static Lorentz factor, CL as an equi-redshift flow, the closures for K, quasi-stationary H, Gn̂n̂ < 0bq_mc_connection.py· Ωτ = (DG/Dτ)G−1, the channels of UgΩτ, eT = (c/2)DΓ/Dτ exactly, isorapidity and the rotation lawbq_kinematic_route.py· Ag = DUg/Dτ, a0 = c DΓ/Dτ, orthogonality, the two branches, Ag = ΩτUg + UgΩτ†
Only Python 3 and SymPy are needed. A four-gradient acts on everything to its right; when it stands last, the product is evaluated on a test field ψ.
# get the code and install SymPy git clone https://github.com/haas2u-ai/bq_algebra cd bq_algebra/py_sources pip install -r requirements.txt # 1 · algebra only: the multiplication table python bq_pauli_table.py python bq_pauli_table.py sI sJ # 2 · vectors and their multiplication python bq_bilinear.py R P --table python bq_bilinear.py --all python bq_triple.py J D A --c1zero --table python bq_triple.py --examples python bq_quadratics.py --all # 3 · global rapidity: Lorentz transformations python bq_lorentz.py --all python bq_bilinear_lorentz.py --all python bq_triple_lorentz.py --maxwell python bq_triple_lorentz.py --all # 4 · local rapidity: gravity python bq_gravity_rotor.py python bq_cl_killing.py python bq_mc_connection.py python bq_kinematic_route.py
Conventions used throughout
All coordinates are real; the imaginary unit sits in the basis element T̂ = i1̂, so the Lorentz signature enters through the basis and not through index lowering. The space-time basis T̂, Î, Ĵ, K̂ and the spin-norm basis 1̂, σ̂I, σ̂J, σ̂K together span the full biquaternion algebra; a product of two space-time vectors always needs both.
The superscript T is the BQ time-reversal operation, AT = −a0T̂ + a·K̂: not the matrix transpose, not conjugation and not multiplication by T̂. In every product the left factor stands to the left, so a four-gradient on the left acts on what follows it.
Each model computes its results from the explicit 2×2 matrices and shows a numerical check of the stated rule; the Python sources repeat every product as an exact symbolic check. The BQ definitions in the papers remain authoritative; pages and scripts are a reproducibility aid.
Links
- 1. Algebra only: BQ-Pauli multiplication table
- 2. Vectors and multiplication: Bilinear product explorer, Triple product explorer, Field quadratics
- 3. Global rapidity: Lorentz transformations, Lorentz transformation of the bilinear, Lorentz covariance of the triple product
- 4. Local rapidity: gravity: The gravity rotor: from rapidity to metric, CL as an equi-redshift flow, the Maurer–Cartan route to isorapidity, the kinematic route to isorapidity
- The Dirac level: its own index, with the BQ-Dirac multiplication table
- Python sources: exact SymPy reproduction
- bq-galaxy-models: galaxy, jet and SPARC models
- Source on GitHub