Arboretum.hs: Symbolic manipulation for algebras of graphs
Provides a safe, extensible tool for researchers working with algebraic structures in combinatorics, but is incremental over existing implementations.
The paper introduces Arboretum.hs, a Haskell package for symbolic computation with algebras of trees and graphs, enabling flexible manipulation and LaTeX rendering for algebraic combinatorics research.
We design the Arboretum.hs package for symbolic computations with algebras of trees and more general graphs in Haskell. Thanks to the declarative nature of functional programming, the package's implementation closely follows mathematical definitions, making the code intuitive and transparent for users working with algebraic and combinatorial structures. To assist with current mathematical research, Arboretum.hs supports experimentation by facilitating the introduction of new algebraic operations, as well as providing functionality for rendering trees and forests through LaTeX integration. Compared to recent imperative implementations in languages such as Julia or Python, Arboretum.hs offers greater flexibility for manipulating and extending tree-based structures. Its use of Haskell enables safe programming and strong compile-time guarantees, serving both as a practical computational tool and a foundation for further research in algebraic combinatorics, beyond the setting of trees usually considered in the implementation of Butcher series, which are a fundamental tool for the analysis of numerical integrators.