Non-monotonic reasoning is an essential part of human intelligence prominently formalized in artificial intelligence research via answer set programming. Describing complex objects as the composition of elementary ones is a common strategy in computer science and science in general. This paper contributes to the foundations of answer set programming and artificial intelligence by introducing and studying the sequential composition of answer set programs. Specifically, we show that the notion of composition gives rise to a family of finite monoids and seminearrings, baptized {\em ASP monoids} and {\em ASP seminearrings} in this paper. Particularly, we show that the combination of composition and union yields the structure of a finite idempotent seminearring. We also show that the restricted class of proper Krom-Horn programs, which only contain rules with exactly one body atom, yields a finite idempotent semiring. On the semantic side, we show that the van Emden-Kowalski 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 characterize answer sets algebraically, which bridges the conceptual gap between the syntax and semantics of an answer set program in a mathematically satisfactory way, and which provides an algebraic characterization of strong and uniform equivalence. Moreover, it gives rise to an algebraic meta-calculus for answer set programs. In a broader sense, this paper is a further step towards an algebra of rule-based logical theories and in the future we plan to adapt and generalize the methods of this paper to wider classes of formalisms, most importantly to first-order and disjunctive answer set programs and extensions thereof.
翻译:非分子推理是人类智能中通过答案设置编程在人工智能研究中明显正规化的基本部分。 将复杂对象作为基本对象的构成描述为计算机科学和一般科学的共同战略。 本文通过引入和研究答案设置程序顺序的构成, 有助于建立答案设置编程和人工智能的基础。 具体地说, 我们显示, 构成的概念产生了一个有限单项和半肾进取的大家庭, 洗礼了 ASAP 单项 和 SAP 更宽度 。 特别是, 我们显示, 组成和联盟的组合是计算机科学和一般科学的共同战略。 特别是, 我们显示, 有限的 Krom- Horn 程序级, 仅包含与一个正数程序相交接的规则, 产生一个有限的半数值半数。 在语义方面, 我们展示的是, van Emden- Kowalski 直接后果操作者可以通过组成更深层次的编程, 以及更深层次的纸质的解解算方法, 使得我们能够将“ ” 最接近“ ” 的算算算算出“ ” 和“ 的平等值” 。