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. Recently, the author introduced the sequential composition of Horn logic programs for syntactic program composition and decomposition in the context of logic-based analogical reasoning and learning. This paper contributes to the foundations of answer set programming and artificial intelligence by generalizing the construction of composition from Horn to (propositional) answer set programs containing negation as failure. This task turns out to be non-trivial due to the intricate algebraic properties of composing negation as failure occurring in rule bodies. Specifically, we show that the notion of composition gives rise to a family of finite magmas and algebras, baptized {\em ASP magmas} and {\em ASP algebras} in this paper. 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 can 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. In a broader sense, this paper is a further step towards an algebra of rule-based logical theories with applications to logic-based analogical reasoning and learning, and in the future we plan to adapt and generalize the methods of this paper to wider classes of formalisms, most importantly to higher-order and disjunctive logic programs and extensions thereof.
翻译:非分子推理是人工智能研究中通过答题设置编程明显正规化的人类智能的一个基本部分。 将复杂对象的构成描述为基本物体的构成是计算机科学和一般科学的共同战略。 最近, 作者引入了Horn逻辑程序的顺序构成, 在基于逻辑的模拟推理和学习背景下合成和分解。 本文通过概括从Horn到( 假设) 的构成结构, 包含否定为失败的数学解答集程序, 有助于奠定答案设置的编程和人工智能的基础。 此项任务被归结为非三角性, 因为它具有复杂的等值特性, 将否定表现为在规则机构中发生的失败。 具体地说, 我们显示, 组成概念逻辑程序的概念会形成一个固定的数学和代数组合, 普通的逻辑和代数的逻辑解算法, 在语义上, 我们的正义和直径直的逻辑化的解算法中, 将一个最直径直径直径直径直的逻辑和直径直径直的逻辑,, 直直到直径直的直到直径直的逻辑, 。