Hostname: page-component-74656f9884-w5jd6 Total loading time: 0 Render date: 2026-11-03T16:17:28.012Z Has data issue: false hasContentIssue false

Set-like Operations on Propositional Logic Programs

Published online by Cambridge University Press:  29 September 2026

CHRISTIAN ANTIĆ*
Affiliation:
Technische Universität Wien, Austria (e-mail: christian.antic@icloud.com)
Rights & Permissions [Opens in a new window]

Abstract

Composition and decomposition of logic programs have been studied extensively in the context of modularity, and decomposing a program along the dependency structure of its atoms — by strata or strongly connected components in datalog, and by splitting sets in the non-monotonic setting of answer set programming — is standard practice. All of these approaches operate on the level of rule sets: programs are cut along dependencies between atoms, while the internal structure of the individual rules remains untouched. In this paper, we complement this picture by a finer-grained algebra. We introduce set-like operations on (propositional Horn) logic programs — body-union, body-intersection, body-complement, body-subtraction, body-symmetric-difference, and body-power-set — which manipulate rule bodies in analogy to the corresponding set operations, and we study their algebraic laws and their interaction with sequential composition and the least model semantics. Our main technical result is a decomposition theorem in this algebra: every minimalist program — containing at most one rule for each rule head — is the body-union of Krom programs consisting only of rules with at most one body atom, in such a way that its least model is the intersection of the least models of these components; for arbitrary programs we obtain corresponding approximations. Since Krom programs are algebraically better behaved than arbitrary programs — composition is associative and distributes from the left — this may support decomposition-based reasoning and provides a basis for compositional program construction.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press