# Sequential composition of answer set programs

arXiv: https://arxiv.org/abs/2104.12156 · HTML: https://mlsanity.com/paper/2104.12156/

## Key facts

- Cited by 5 papers in the map (data through 14 Oct 2026).
- Builds on 5 of its 58 references that are in the map.
- First posted on arXiv 25 Apr 2021.

## Builds on (most cited first, 5 of 5)

- [Analogical proportions](https://mlsanity.com/paper/2006.02854/) (2020)
- [Logic program proportions](https://mlsanity.com/paper/1809.09938/) (2018)
- [Sequential composition of propositional logic programs](https://mlsanity.com/paper/2009.05774/) (2020)
- [Dual-normal Logic Programs - the Forgotten Class](https://mlsanity.com/paper/1507.05388/) (2015)
- [Fixed Point Semantics for Stream Reasoning](https://mlsanity.com/paper/2005.08384/) (2020)

## Built on by (most cited first, 5 of 5)

- [Generalization-baed similarity](https://mlsanity.com/paper/2302.10096/) (2023)
- [On syntactically similar logic programs and sequential decompositions](https://mlsanity.com/paper/2109.05300/) (2021)
- [Sequential decomposition of propositional logic programs](https://mlsanity.com/paper/2304.13522/) (2023)
- [Neural logic programs and neural nets](https://mlsanity.com/paper/2406.11888/) (2024)
- [The algebra of Krom logic programs](https://mlsanity.com/paper/2606.15719/) (2026)

## Abstract (arXiv)

This paper contributes to the mathematical foundations of logic programming by introducing and studying the sequential composition of answer set programs. On the semantic side, we show that the immediate consequence operator of a program can be represented via composition, which allows us to compute the least model semantics of Horn programs without any explicit reference to operators. As a result, we can characterize answer sets algebraically, which further provides an algebraic characterization of strong and uniform equivalence which is appealing. This bridges the conceptual gap between the syntax and semantics of an answer set program in a mathematically satisfactory way. The so-obtained algebraization of answer set programming allows us to transfer algebraic concepts into the ASP-setting which we demonstrate by introducing the index and period of an answer set program as an algebraic measure of its cyclicality. The technical part of the paper ends with a brief section introducing the algebraically inspired novel class of aperiodic answer set programs strictly containing the acyclic ones. In a broader sense, this paper is a first step towards an algebra of answer set programs and in the future we plan to lift the methods of this paper to wider classes of programs, most importantly to higher-order and disjunctive programs and extensions thereof.
