Finite-group representation theory and Kitaev's Quantum Double form the algebraic backbone of non-abelian topological order and discrete gauge theories. Weyl treats finite groups, irreducible representations, centralizers, and Ribbon(G) algebras as first-class symbolic objects in weyl-topo, weyl-rep and weyl-types—computing character tables, fusion rules, projectors, and gapped-boundary classifications over exact cyclotomic fields without ever materializing exponentially large dense matrices.
Finite Group Algebras, Characters, and Clebsch–Gordan Decomposition
For any finite group , the group algebra is the -dimensional Hilbert space with orthonormal basis , equipped with left and right regular representations:
By the Artin–Wedderburn theorem, , so where . Each irreducible representation is uniquely determined up to isomorphism by its character , which is constant on conjugacy classes and satisfies Schur orthogonality:
Here are the Clebsch–Gordan (fusion) multiplicities in .
For the smallest non-abelian group , the exact character table over is:
| Irrep | (size 1) | (size 2) | (size 3) | |
|---|---|---|---|---|
| (trivial) | ||||
| (sign) | ||||
| (standard) |
For the dihedral group (), weyl-topo similarly derives its 5 conjugacy classes, four 1D irreps (), and one 2D irrep satisfying , and builds explicit irrep matrices by Dixon's method (MatrixIrrep). Fusion multiplicities come from the characters; explicit Clebsch–Gordan tensors are not computed.
Kitaev's Quantum Double and Centralizers in weyl-topo
The elementary anyon excitations (dyons) of Kitaev's Quantum Double are labeled by pairs , where is a conjugacy class of (magnetic flux) and is an irreducible representation of the centralizer (electric charge). From the group multiplication table alone, weyl-topo computes the full modular tensor category (MTC) data over : each dyon carries quantum dimension (obeying ), topological spin (-matrix diagonal) , and modular -matrix entries
where maps representatives back to the canonical centralizer.
For (), weyl-topo enumerates all 8 anyons across the three centralizers , , and ():
| Label | Conjugacy Class | Centralizer | Irrep | Quantum Dim | Spin |
|---|---|---|---|---|---|
| (vac) | |||||
Notice . For , the 5 centralizers yield 22 simple anyons with total quantum dimension .
Vertex/Plaquette Projectors and Ribbon Operators
On an oriented lattice with on each edge, the bulk Hamiltonian is built from commuting vertex and plaquette projectors and . Excitations are created and transported along a ribbon (an alternating sequence of direct and dual triangles) by ribbon operators , which satisfy the Hopf-algebra multiplication and comultiplication laws:
A gapped boundary classified by a subgroup (and 2-cocycle ) replaces the boundary terms with and . In .weyl, the entire group-generic model is written cleanly without matrix indices:
model quantum double D(G) with a gapped boundary of type K
given G : finite group
given K : subgroup of G
given Λ : oriented square lattice on a half-plane, ∂Λ : boundary of Λ at y = 0
given |g⟩ : basis of ℂ[G] on edges(Λ) for g ∈ G
define L₊^g ≔ Σ_{h ∈ G} |g h⟩⟨h|
define L₋^g ≔ Σ_{h ∈ G} |h g⁻¹⟩⟨h|
define T^h ≔ |h⟩⟨h|
define A_v^g ≔ ∏_{l out of v} L₊^g_l · ∏_{l into v} L₋^g_l
define A_v ≔ 1/|G| Σ_{g ∈ G} A_v^g
define B_p ≔ projector onto holonomy(∂p) = 1
define A_v^K ≔ 1/|K| Σ_{k ∈ K} A_v^k for v ∈ vertices(∂Λ)
define T_l^K ≔ Σ_{k ∈ K} T^k_l for l ∈ edges(∂Λ)
define H ≔ − Σ_{v ∉ ∂Λ} A_v − Σ_p B_p − Σ_{v ∈ ∂Λ} A_v^K − Σ_{l ∈ ∂Λ} T_l^K
claim A_v^g : unitary, and g ↦ A_v^g : representation of G
claim A_v, B_p, A_v^K, T_l^K : projector
claim all terms of H commute
given 𝒞 : topological order D(G)
claim ∂Λ condenses 𝒜(K) : Lagrangian algebra of 𝒞
claim dim ground space on a cylinder with boundaries K, K′ = Σ_a n_a(K) n_a(K′)
check all claims for G = S₃, K ∈ subgroups(S₃)
check all claims for G = D₄, K ∈ subgroups(D₄)
theorem for all G, K : [A_v^K, T_l^K] = 0
falsify on G ∈ {ℤ₂, S₃, D₄, Q₈}Finite Checks (check) vs. Universal Theorems (theorem)
A check directive evaluates exact operator algebra on Qudit<G> for concrete finite instances (, ) and verifies the cylinder ground-state degeneracy against the Lagrangian algebra multiplicities computed by weyl-topo. By contrast, theorem targets universally quantified statements (for all G : finite group): it first runs fast finite-group falsification (falsify on ...) to reject broken conjectures immediately, then translates the typed HIR to Lean 4 via weyl-lean for machine-checked proof search.
Solving Ribbon(G) Boundary Algebras (solve)
To discover all consistent gapped boundaries from first principles, Weyl's Phase 2 solve engine solves polynomial consistency equations over the cyclotomic field :
model boundaries of the quantum double D(G) from the consistency conditions
given G : finite group
given a : unknown coefficients of Ribbon(G)
solve for a such that a a = a, a Ω = Ω, S[a] = a, T[a] = a modulo G for G ∈ {ℤ₂, S₃}
theorem ssb_boundary:
for all G : finite group, H : subgroup of G
define A ≔ 1/|H| Σ_{h₁, h₂ ∈ H} F[h₁, h₂]
define Ω ≔ 1/|G| Σ_{h ∈ G} F[1, h]
claim A A = A
claim A Ω = Ω
claim S[A] = A and T[A] = A
prove automatically within 2 h
falsify on G ∈ {S₃, D₄, Q₈, A₄}The solver pipeline in weyl-num (crates/weyl-num/src/solve/) proceeds through four stages, all implemented in Rust. First, linear elimination resolves , , and over , shrinking the unknowns down to -orbit coordinates. Next, the modular Gröbner engine (modular.rs) computes the reduced monic Gröbner basis via Buchberger over for each prime under all embeddings ; a prime is kept only if every embedding produces the same leading monomials, after which coefficients are interpolated to the power basis by Vandermonde inversion, combined across primes by CRT, and lifted to rationals (a single embedding is never lifted on its own).
Exact verification then accepts a lift only after one more prime leaves it unchanged and, in , every generator reduces to zero modulo the candidate and every S-polynomial of the candidate reduces to zero. With the leading monomials matching the modular images, Arnold's criterion (J. Symbolic Comput. 35, 2003) certifies equality of the ideals without computing the reverse inclusion separately; if no candidate passes, the solver falls back to exact Buchberger over , and the run reports which route produced each basis.
Finally, decompose.rs and factor.rs split the variety into irreducible components until every piece is proved prime. Splitting draws on factorizations over —Zassenhaus over , Trager's norm for the cyclotomic extension, and Kronecker substitution for several variables—applied to a factoring basis element, the minimal polynomial of a separating linear form in dimension zero, or the characteristic polynomial of a linear form over the free unknowns in positive dimension. Primality is certified in one of four ways: the quotient is a field with irreducible; the piece is the graph of a polynomial map (in which case it comes with its parametrization); the quotient is free of rank over its free unknowns and one rational fibre is a single reduced closed point of degree ; or the characteristic polynomial is irreducible. The cover is then checked exactly: every equation reduces to zero on every piece, and the input together with one Rabinowitsch-style equation per piece generates the unit ideal, ensuring no solution lies outside the pieces.
$ weylc run family.weyl # solve for a such that T[a] = a modulo G for G = ℤ₂
solve for a on G = ℤ₂: 4 unknowns, 3 after linear elimination
0 solution(s) in 0 orbit(s) modulo G; 1 further irreducible component(s) are not points over Q(ζ); the decomposition is complete and verified
component (orbit 0): irreducible family of dimension 3, degree 1; polynomial parametrization by 3 parameter(s); mapped to itself by 2 acting elements, each fixing it point by point
warning[W0376]: on ℤ₂ the solutions of `solve for a` include a continuous family of dimension 3Each component reports its dimension, its degree, and either its points, its minimal polynomial (conjugate points outside ), its parametrization, or the number of sheets over its free unknowns. Under modulo K the components are sorted into orbits, with the stabilizer of each and whether the stabilizer fixes it point by point.
Limits of solve
A piece is called irreducible only with a certificate. If none is reached — the quotient is not free in any of the coordinate systems tried (mixed dimension or embedded components with no factoring basis element), or a factorization exceeds its size limit (Kronecker images above degree 2048, more than 16 univariate factors) — the piece is listed as not proved irreducible with the reason, and the result says so. The descriptor of a positive-dimensional family is a Gröbner basis plus sheets; rational parametrizations are produced only for graphs of polynomial maps. If the Gröbner basis of the whole system exceeds its limit, the solver falls back to solutions supported on few unknowns and marks the result as an incomplete search.
Orbit Partitioning under modulo G
Weyl never pre-restricts variables to the invariant subspace . In , the three conjugate subgroups , , form a single length-3 orbit: none of the three individual solutions is -invariant, and their average fails . solve computes the full algebraic variety first and partitions orbits under afterward.
$ weylc theorem # prints the built-in theorems as Weyl source
theorem modular_relations:
for all G : finite group
claim for all g, h ∈ G: S[S[S[S[F[g, h]]]]] = F[g, h]
claim for all g, h ∈ G with g h = h g: S[T[S[T[S[T[F[g, h]]]]]]] = S[S[F[g, h]]]
prove automatically within 10 min
falsify on G ∈ {Z₂, S₃, D₄, Q₈}
…ssb_boundary and twisted_boundary (every abelian subgroup and every 2-cocycle on it) are proved by Lean's kernel for all finite groups; modular_relations_everywhere and boundary_is_the_vacuum are deliberate false statements that stage 1 refutes.
Symmetry Actions and Representation Types
An operator's type is its representation content under the declared symmetry group. For that the group has to act on something, so a symmetry is declared together with the images of the modes under each generator:
given Λ : open chain of 2 sites
given c↑, c↓ : fermion on vertices(Λ)
given U : energy
given t : small parameter
given 𝒢 : symmetry generated by P, S
with P : (c↑_i, c↓_i) ↦ (c↑_{3−i}, c↓_{3−i}),
S : (c↑_i, c↓_i) ↦ (c↓_i, − c↑_i)
define H ≔ U Σ_i c↑†_i c↑_i c↓†_i c↓_i − t Σ_i (c↑†_i c↑_{i+1} + c↓†_i c↓_{i+1} + h.c.)
claim H : invariant under 𝒢
expand H_eff ≔ SW of H around H₀ to O(t⁵)Each generator maps a tuple of modes at site i to a tuple of linear combinations at an affine site (3−i, i+1, …); antiunitary before the mapping makes a generator antilinear. weyl-rep checks that every image preserves the anticommutation relations, closes the generators into a finite group (at most 512 elements; here of order 8, with the fermion parity) and computes its character table.
Invariance is decided exactly. claim H : invariant under 𝒢 applies every generator to on the finite cluster and compares normal forms. When the check fails, the error names the generator, the breaking part and the irreps it transforms in. Adding a Zeeman term gives:
error[E0520]: the operator is not invariant under `𝒢` (the part multiplying h): `S` moves it
|
19 | claim H : invariant under 𝒢
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ symmetry-breaking part: c↑†_1 c↑_1 − c↓†_1 c↓_1 + c↑†_2 c↑_2 − c↓†_2 c↓_2
= help: the breaking part transforms as … in χ(P)=1, χ(S)=-1; only the trivial component can appearEffective Hamiltonians are written in the invariant basis. After a Schrieffer–Wolff expansion, weylc Reynolds-projects the operators that occur onto the trivial isotypic component, builds a basis of invariant operators over , and reports order by order as reduced coefficients. A result outside the invariant subspace is a kernel error, not a warning:
$ weylc run examples/hubbard_dimer_sw.weyl
reduced by 𝒢 (order 8), 7 invariant operators:
expanded on orbit representatives of 𝒢 (largest operator stored: 8 terms)
O4 = c↑†_1 c↓†_1 c↑_1 c↓_1 + c↑†_2 c↓†_2 c↑_2 c↓_2
O5 = c↑†_1 c↓†_1 c↑_2 c↓_2 + c↑†_2 c↓†_2 c↑_1 c↓_1
O6 = c↑†_1 c↓†_2 c↑_1 c↓_2 + c↓†_1 c↑†_2 c↓_1 c↑_2
O7 = c↑†_1 c↓†_2 c↓_1 c↑_2 + c↓†_1 c↑†_2 c↑_1 c↓_2
…
t² · [−2 O4 − 2 O5 + 2 O6 − 2 O7]
t⁴ · [8 O4 + 8 O5 − 8 O6 + 8 O7]
verdict [oracle.sw_spectrum]: PassThe row is the superexchange ; the row is times it.
Selection rules use the same ring operations. For point groups a RepTy is a multiplicity vector over the irreps; vanishes when has no trivial component:
Current scope
Group actions are supported on finite fermion clusters (the Schrieffer–Wolff pipeline). Before expanding, Weyl computes the character of the group on the ground space of , which bounds the number of couplings: . SU(2) is declared as given 𝒮 : spin rotations of (c↑, c↓) and refines this count by spin multiplet. The spectrum oracle compares with the same trace of , so levels in the wrong irrep or multiplet are rejected. When the group acts by signed permutations of modes, the Schrieffer–Wolff recursion stores only orbit representatives (seeds) and expands them only when the result is checked; at order 8 on a 4-site Hubbard ring (|G| = 32) this is about 10× faster than the full expansion. A perturbation need not be invariant: if is and each transforms by a one-dimensional representation (a staggered potential is odd under the site swap), the order transforms by , the seeds carry that grading, and terms of the wrong character are never formed. On the operators of character number . When that is zero, every order of character vanishes there; examples/staggered_dimer_sw.weyl reports this selection rule and checks it.
Point-Group Irreps of Brillouin-Zone Functions
For crystallographic point groups the same machinery is available from source. A point group is represented by signed-permutation integer matrices (the subgroups of ; hexagonal and trigonal groups are not covered), its character table is computed by the Burnside–Dixon method, and Mulliken labels are derived from the characters. A claim of the form
define J(k) ≔ 2 t_J (cos(k_x a) − cos(k_y a))
claim J : B₁g of 4/mmm
claim J(k) = 0 on k_x = ± k_yis decided by projecting the function onto every irrep with the character table; the functions that can be classified are sums and products of and with real coefficients. Writing A₁g instead reports E0520 with the computed irrep, and replacing the body by sin(k_x a) sin(k_y a) makes the function B₂g, with nodes on the axes instead of the diagonals.
Near a time-reversal-invariant momentum the relevant group is the little group . claim J : B₁g at M of 4/mmm computes , names it in a standard setting, expands and classifies it under . At the little group is and is Ag; writing B₁g at X reports `J near X` transforms as Ag of mmm.
Lagrangian Algebras and Cylinder GSD in weyl-topo
For , weyl-topo enumerates all four Lagrangian algebras corresponding to the four conjugacy classes of subgroups , verifying and modular invariance , :
| Subgroup | Lagrangian Algebra | Total Dim | Self-Cylinder |
|---|---|---|---|
| (trivial) | |||
| (full group) |
Inside weyl-topo, these checks are backed by exact algebraic structures over cyclotomic integers:
pub struct QuantumDouble {
pub group: FinGroup,
pub n: u32, // values live in Q(ζ_n), n = exp(G)
pub classes: Vec<Vec<u32>>,
pub centralizers: Vec<Centralizer>,
pub anyons: Vec<DoubleAnyon>, // [C, R]: class, centralizer irrep, |C| · dim R
pub s: Vec<Vec<Cyclotomic>>,
pub t: Vec<Cyclotomic>,
// …
}
impl QuantumDouble {
pub fn lagrangian_algebras(&self) -> Result<Vec<LagrangianAlgebra>, String>;
pub fn cylinder_degeneracy(&self, k: &[u32], k_prime: &[u32]) -> u64;
}Because weyl-topo computes s and t directly from group characters and centralizers, every claim ∂Λ condenses 𝒜(K) and braiding consistency check is resolved at compile time with Exact provenance.