Introduction
This website contains the Agda formalisation for the paper [Clemente(2026)],
Lorenzo Clemente, Commutative algebras of series (LICS’26).
The source code is publicly available on github in the form of literate Agda. Background, motivation, and examples are given in the paper, which contains clickable links to the relevant parts of this website.
We develop a fragment of the theory of formal series in noncommuting variables and their algebraic properties. Our approach is coinductive, using Agda’s sized types and guardedness features.
This website is meant to be accessible without referring to the paper. In particular, it can be used as a tutorial on the formalisation of power series in Agda. Clicking on a keyword will take you to its definition.
Abstract
We quote below the abstract from [Clemente(2026)].
We consider a large family of product operations of formal power series in noncommuting indeterminates, the classes of automata they define, and the respective equivalence problems. A P-product of series is defined coinductively by a polynomial product rule P, which gives a recursive recipe to build the product of two series as a function of the series themselves and their derivatives.
The first main result of the paper is a complete and decidable characterisation of all product rules P giving rise to P-products which are bilinear, associative, and commutative (BAC). The characterisation shows that there are infinitely many such products, and in particular it applies to the notable Hadamard, shuffle, and infiltration products from the literature.
Every P-product gives rise to the class of P-automata, an infinite-state model where states are terms. The second main result of the paper is that the equivalence problem for P-automata is decidable for P-products satisfying our characterisation. This explains, subsumes, and extends known results about the Hadamard, shuffle, and infiltration automata.
Organisation
The rest of the document is structured in three parts, as follows.
-
Preliminaries: We introduce some basic notions extending Agda’s standard library.
-
General: We develop the theory of formal series and product rules.
- Series: Formal series and vector space structure.
- Terms: Terms and their basic properties.
- Product rules: Product rules.
- Products: Product operations obeying a product rule.
- P-finite series: P-finite series.
- Automata: P-automata and equivalence with P-finite series.
- Reversal: Right derivatives and reversals of formal series.
- Reversal endomorphisms: Reversal endomorphisms.
-
Special: We focus on the special product rules, which are those rules giving rise to products which are bilinear, associative, and commutative.
- Polynomials: Polynomials as equivalence classes of terms.
- Special product rules: Special product rules.
- Special products: Special products.
- Automata: Special automata and equivalence with special finite series.
- Reversal endomorphisms: Special reversal endomorphisms.
Acknowledgements
The following two projects have been inspiring for this document.
- [Kirst and Zeng(2025)] shows an example of a mathematical paper containing hyperlinks to a supporting Coq formalisation.
- [Wadler, Kokke, and Siek(2020)] shows that beautiful books can be written in Agda. A lot of the layout in this document is inspired from this project.
We have learned a lot from several Agda resources [Bove and Dybjer(2008)] [Norell(2009)] [McBride(2013)] [Stump(2016)] [Dybjer(2018)].
Citing this document
@article{Clemente:Agda:LICS:2026,
author = {Lorenzo Clemente},
title = {Commutative algebras of series (in Agda)},
year = {2026},
month = {May},
url = {https://lclem.github.io/lics2026-agda},
}
References
[Bove and Dybjer(2008)] A Bove and P Dybjer. Dependent types at work. In A Bove et al., editors., Language engineering and rigorous software development, pages 57–99. Springer-Verlag, Berlin, Heidelberg, 2008.
[Clemente(2026)] L Clemente. Commutative algebras of series. arXiv e-prints. arXiv:2601.19809, January 2026. doi: 10.48550/arxiv.2601.19809.
[Dybjer(2018)] P Dybjer. An introduction to programming and proving in agda.
[Kirst and Zeng(2025)] D Kirst and H Zeng. The blurred drinker paradox: Constructive reverse mathematics of the downward löwenheim-skolem theorem. 2025 40th annual ACM/IEEE symposium on logic in computer science (LICS) (June.-2025), 926–940.
[McBride(2013)] C McBride. Dependently typed metaprogramming (in agda).
[Norell(2009)] U Norell. Dependently typed programming in agda. Proceedings of the 6th international conference on advanced functional programming (Berlin, Heidelberg, 2009), 230–266.
[Stump(2016)] A Stump. Verified functional programming in agda. ACM Books, 2016.
[Wadler et al.(2020)] P Wadler et al. Programming language foundations in Agda. July 2020.
Last-modified: May 21 15:56:06 2026