Skip to main content

Rep(G) rewriting engine — Gibbs ensemble, Pachner moves, Fano geometry, exact arithmetic

Project description

thermion

Core engine for the Adelic Simplicial Architecture.

Every symmetry. Every scale. Exact.

PyPI License: MIT Python 3.10+


Thermion is the computational engine for the Adelic Simplicial Architecture (ASA) — a unified framework in which representation theory, thermodynamics, information geometry, and exceptional Lie algebra all reduce to the same five rewriting operations on typed wires.

A thermion is a charged particle emitted by thermal energy. The name is apt: thermion computes by emitting exact amplitudes from thermal distributions, wherever symmetry acts.


The five Origami ISA opcodes

The core of thermion is five operations — the Pachner moves of the 3-simplex — that generate all of representation theory:

Opcode Mathematical object What it computes
flip(j) Evaluation map (cap) Time-reversal; particle↔hole; C-parity
flop(j1,j2,j12,j3,j,j23) Wigner 6j symbol Recoupling cost; F-move; Pentagon
split(j) Frobenius unit Pair creation; quantum dimension √(2j+1)
splat(j) Frobenius counit Pair annihilation; bubble closure; Gibbs weight
twist(j) Ribbon element Spin-orbit phase; spin-statistics; holonomy

Every result is an exact sympy expression — never a float.

from thermion import flop, flip

flop(0, 1, 1, 1, 1, 1)          # → -1/3  (exact rational)
flip(1) * flop(0, 1, 1, 1, 1, 1)  # → -1/3  (FLIP;FLOP chain)

The Pentagon identity — five FLOPs compose to the identity — is simultaneously Mac Lane's coherence theorem (1963), the Biedenhahn-Elliott identity of nuclear spectroscopy (Racah 1942), and the Pachner 2→3 move of triangulated topology (Pachner 1991). Three communities. One equation.


The three computational frameworks

MGE — Maslov-Gibbs Einsum

The Maslov-Gibbs Einsum is the thermodynamic bridge between continuous optimisation and discrete logic. At inverse temperature β → ∞, it recovers the tropical (max-plus) semiring — exact discrete logic. At β = 0, it gives the uniform Gibbs distribution — maximum entropy. At finite β, it interpolates: a differentiable, thermally-annealed tensor contraction.

from thermion.core.ensemble import gibbs_weights, partition_function, free_energy

# Route probability mass across 7 channels at inverse temperature β
weights = gibbs_weights(utilities, beta=2.0)

# The FMO light-harvesting efficiency (Paper 325):
# η = 1 - SPLAT(β_cold) / SPLAT(β_hot) = 0.1825

MGE unifies eight independent rediscoveries of the same theorem: McFadden (discrete choice), Jaynes (maximum entropy), Gibbs (statistical mechanics), Maslov (tropical geometry), Sims (rational inattention), McKelvey-Palfrey (quantal response), Friston (free energy principle), and Goel (information equilibrium). They all derived the same routing primitive.

Key paper: The Maslov-Gibbs Einsum (doi:10.5281/zenodo.17981393)


TRS — Topological Resonance Synthesis

Topological Resonance Synthesis is the computational mode of the ASA in which information geometry, holomorphic relaxation, and thermodynamic flow are unified into a single engine. The TRS processor operates on the statistical manifold (𝒫₊, g_Fisher) via Gibbs annealing — parallel transport along the e-geodesic toward the Gibbs fixed point.

The TRS framework identifies three regimes of computation:

  • Regime 1 (associative): standard quantum mechanics, Pentagon trivial
  • Regime 2 (Origami): Rep(G) rewriting, Pentagon holds, 6j symbols exact
  • Regime 3 (Frog): octonion associator, Pentagon fails, PSL(2,7) symmetry
from thermion.core.geometry import FanoGeometry, G2Geometry, AbelianGeometry

# Admissibility filter for Fano-structured routing
geom = FanoGeometry()
masked_utilities = geom.mask(utilities, source=0)

Key paper: Topological Resonance Synthesis (doi:10.5281/zenodo.19858021)


URN — Unitary Resonance Network

The Unitary Resonance Network is the hardware architecture that implements the Origami ISA at the physical level. The 731-ISA (Paper 258) specifies the machine code; the URN is the resonant substrate that executes it — a network of coupled oscillators whose natural resonances implement the five opcodes.

The Fano plane PG(2,2) is the switching fabric of the 731-register:

from thermion.core.fano import are_collinear, broken_fano_edges, FANO_LINES

# The 7 Fano lines — the connectivity of the 731-ISA register
FANO_LINES  # [(1,2,4), (2,3,5), (3,4,6), (4,5,7), (5,6,1), (6,7,2), (7,1,3)]

# Broken-line 6-731 topology (Paper 325, topological heat engine)
H = broken_fano_edges(source=0, r=0.18)  # J_weak/J_strong = 0.18

Key paper: The 731 ISA (doi:10.5281/zenodo.19916429)


The regime ladder

Thermion's regime taxonomy is parametrised by the normed division algebra filling the tetrahedron interior (Hurwitz 1898 — the ladder terminates at rung 3):

Rung Interior Symmetry Pentagon Calculus Physical instances
0 ±1 scalar ℤ/2ℤ Trivial ZX Qubit circuits, Clifford gates
1 ℝ (6j) S₄ (order 24) Holds Origami All spectroscopy; spin networks
1+ ℂ (q-6j) S₄ over ℂ Holds q-Origami Turaev-Viro TQFT; topological QC
3 𝕆 (associator) PSL(2,7) (order 168) Fails Frog/731 FeMo-cofactor; non-assoc. QEC

ZX ⊂ Origami ⊂ Frog (strict inclusions).


Where the same opcodes appear

The five opcodes compute the same objects across every physical scale:

Domain Computation Scale Paper
Atomic spectroscopy f-shell coupling, G₂ wall eV 347
Nuclear spectroscopy Pandya theorem, ⁹²Mo MeV 348
Quarkonium / QCD X(3872) C-parity, FLIP;FLOP GeV 350
Molecular spectroscopy CO₂ Fermi resonance 10⁻³ eV 353
Biological (FMO) Fano efficiency η = 0.1825 10⁻⁶ eV 325
Topological heat engine Carnot cycle, broken Fano line 325
3D quantum gravity Ponzano-Regge partition function Planck 349
Financial routing TIR Gibbs ensemble 294
Topological QFT Turaev-Viro 3-manifold invariants
Langlands program Local L-function factors (planned) 240

The flop(0,1,1,1,1,1) = -1/3 identity appears in nuclear spectroscopy and QCD charmonium decays at 3 GeV. Same exact rational. The universality is only visible because the result is exact — floats return two slightly different approximations and the identity is obscured.


Installation

pip install thermion                 # core opcodes only (sympy)
pip install thermion[numerics]       # + numpy, scipy (Gibbs ensemble, geometry)
pip install thermion[jax]            # + jax (differentiable MGE routing)

Applications built on thermion

Package Domain Install
spectrafold Angular momentum recoupling, spectroscopy pip install spectrafold
econiac Financial gauge theory, TIR routing, MGE pip install econiac
racah Racah algebra (via spectrafold) pip install racah

Selected papers

The ASA framework spans 50+ papers. Key foundational works:

The engine:

Paper DOI
The Maslov-Gibbs Einsum (MGE) 10.5281/zenodo.17981393
Topological Resonance Synthesis (TRS) 10.5281/zenodo.19858021
The 731 ISA (Origami ISA) 10.5281/zenodo.19916429
The Origami Calculus (foundations) 10.5281/zenodo.20474914
Thermodynamic Information Routing (TIR) 10.5281/zenodo.20237288

Spectroscopy (spectrafold):

Paper DOI
Spiders for Spectra (atomic) 10.5281/zenodo.20458996
Spiders for Nuclei (nuclear) 10.5281/zenodo.20490046
Spiders for Quarkonium (QCD) 10.5281/zenodo.20490294
The Topological Heat Engine (FMO/ribosome) 10.5281/zenodo.20400638

Thermodynamics & economics (econiac):

Paper DOI
Thermal Economics 10.5281/zenodo.20318505
Economic Gauge Theory 10.5281/zenodo.20259495
Temperature of Rationality 10.5281/zenodo.20234841
EconIAC: MONIAC for the 21st Century 10.5281/zenodo.20315689

Non-associative geometry (rung 3):

Paper DOI
The Frog Calculus, Part 1 10.5281/zenodo.19713350
The Frog Calculus, Part 2 10.5281/zenodo.20139448
Non-Associative Calculus 10.5281/zenodo.20025384
Virtual Monopoles in FeMo-Cofactor 10.5281/zenodo.20346650

Quantum computing (hardware):

Paper DOI
The Resonance Processing Unit (RPU) 10.5281/zenodo.19743800
Fibrational Tensor Codes (FTC) 10.5281/zenodo.19821692
In Praise of Qudits 10.5281/zenodo.20269991

License

MIT. Author: Ian R. C. Buckley — ian.r.c.buckley@gmail.com

"The same equation — the Pentagon identity — was independently discovered and named three times: the Biedenhahn-Elliott identity (spectroscopy, 1952), Mac Lane's coherence condition (category theory, 1963), and the Pachner 2→3 move (topology, 1991). Thermion names the calculus they all describe."

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thermyon-0.1.0.tar.gz (35.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thermyon-0.1.0-py3-none-any.whl (40.0 kB view details)

Uploaded Python 3

File details

Details for the file thermyon-0.1.0.tar.gz.

File metadata

  • Download URL: thermyon-0.1.0.tar.gz
  • Upload date:
  • Size: 35.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for thermyon-0.1.0.tar.gz
Algorithm Hash digest
SHA256 ed238523269c7ef9980ce03c5854c579cdd59debc3882ba2143ac5bc1f6806f0
MD5 a6c9f30405a0f22562ba9537de5b5abb
BLAKE2b-256 fab232c6cec88dcf87eb32735954a71c46609e1dd68c9a8ad63c6280c882789f

See more details on using hashes here.

File details

Details for the file thermyon-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: thermyon-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 40.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for thermyon-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5a12c864a86e558fff3bc9c47d7e46af01d270e6812f74bd6c3d0cbbe7ff5e6
MD5 882056ea08fb28641d253b9111affb91
BLAKE2b-256 1e3167901b45f2911cb9f65de8ff177c6cfdd214653f1d8303d7c5a4bea0c48b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page