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
import { ComputeEngine } from "@cortex-js/compute-engine";
import { declareHopf } from "@enumeratio/hopf";
const ce = new ComputeEngine();
declareHopf(ce);Both are indexed by compositions (ordered lists of positive parts) and dual to each other:
| basis | product | coproduct | |
|---|---|---|---|
| NSym | concatenation | deconcatenation, extended multiplicatively | |
| QSym | quasi-shuffle | deconcatenation |
- NSym —
NSymAlgebra,NSymH(complete basis),NSymR(ribbon basis) - QSym —
QSymAlgebra,QSymM(monomial basis),QSymF(fundamental basis) - Structure —
Coproduct,Antipode,Counit,HopfDegree,HopfTensor - Basis conversion —
InCompleteBasis,InRibbonBasis,InMonomialBasis,InFundamentalBasis,ConjugateComposition
src/hopf.ts also exports the underlying Composition/Element/Tensor model
(nsymProduct, qsymCoproduct, quasiShuffle, antipode, …) for use without going
through compute-engine.
Both bases at degree