Skip to content

@enumeratio/hopf ​

Combinatorial Hopf algebra extensions for compute-engine: NSym and QSym on compositions, with product, coproduct and antipode. Every other algebra in this section has a product and nothing else; a Hopf algebra also has a coproduct, and the two must satisfy Δ(x⋅y)=Δ(x)⋅Δ(y)Δ(x \cdot y) = Δ(x) \cdot Δ(y) — the identity the whole package is tested against. See the guide.

Declaring ​

ts
import { ComputeEngine } from "@cortex-js/compute-engine";
import { declareHopf } from "@enumeratio/hopf";

const ce = new ComputeEngine();
declareHopf(ce);

The two algebras ​

Both are indexed by compositions (ordered lists of positive parts) and dual to each other:

basisproductcoproduct
NSymHαH_αconcatenationdeconcatenation, extended multiplicatively
QSymMαM_αquasi-shuffledeconcatenation

Heads ​

src/hopf.ts also exports the underlying Composition/Element/Tensor model (nsymProduct, qsymCoproduct, quasiShuffle, antipode, …) for use without going through compute-engine.

Next ​

Both bases at degree nn have dimension 2n−12^{n-1}, one basis element per composition of nn — the guide checks the compatibility identity directly against that count.

Pages ​