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 knowledge representation and database theory by introducing and studying the sequential composition of propositional Horn theories. Specifically, we show that the notion of composition gives rise to a family of monoids and near-semirings, which we will call {\em Horn monoids} and {\em Horn near-semirings} in this paper. Particularly, we show that the combination of sequential composition and union yields the structure of a finite idempotent near-semiring. We also show that the restricted class of proper propositional Krom-Horn theories, which only contain rules with exactly one body atom, yields a finite idempotent semiring. On the semantic side, we show that the immediate consequence or van Emden-Kowalski operator of a theory can be represented via composition, which allows us to compute its least model semantics without any explicit reference to operators. This bridges the conceptual gap between the syntax and semantics of a propositional Horn theory in a mathematically satisfactory way. Moreover, it gives rise to an algebraic meta-calculus for propositional Horn theories. In a broader sense, this paper is a first 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 theories, most importantly to first-, and higher-order logic programs, and non-monotonic logic programs under the stable model or answer set semantics and extensions thereof.
翻译:将复杂的物体定义为基本物体的构成是计算机科学和一般科学的共同战略。 本文通过引入和研究“ 角” 理论的顺序构成,为知识代表性和数据库理论提供了基础。 具体地说, 我们表明, 构成的概念产生了由单项和近半成组成的大家庭, 我们称其为“ 角单项” 和“ 角近半成” 。 特别是, 我们显示, 顺序构成和联盟的结合产生了一个有限的“ 半成一流” 的架构。 本文还表明, 知识代表性和数据库理论基础基础的结合, 通过引入和研究“ 角- 角” 理论的顺序构成。 具体地说, 我们显示, 组合概念和“ 北进” 理论的等级有限, 仅包含一个精确的“ 角数” 规则, 产生一个有限的半成一流的组合。 在语义方面, 我们表明, 直接的后果或范恩- 角理论的操作者可以通过组成, 直径直立的模型和逻辑的逻辑学方法, 直到“ ” 。