arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.19040cs.PLcs.LO
收藏

有限选择逻辑编程

Finite-Choice Logic Programming

Chris Martens, Robert J. Simmons, Michael Arntzenius

AI总结:

本文提出有限选择逻辑编程,用选择替代否定以支持多解,具备稳定模型语义的全部表达能力,并给出解空间探索算法及其实现 Dusa 语言,性能优于现有答案集求解器且扩展性更可预测。

摘要:

以 Datalog 为代表的逻辑编程将程序的含义定义为其唯一最小模型:推理规则的演绎闭包。然而,许多问题需要在维持结构和逻辑约束的同时,枚举沿某组选择变化的模型——不存在单一规范模型。带否定逻辑程序的稳定模型概念已成功捕捉了程序员对此类问题有效解集合的直觉,催生了一族被称为答案集编程的编程语言及相关求解器。遗憾的是,稳定模型的定义间接得令人沮丧,尤其是在包含自由变量规则的情况下。我们提出一种新形式体系——有限选择逻辑编程,它使用选择而非否定来容纳多个解。有限选择逻辑编程包含稳定模型语义的全部表达能力,为一类新颖且有用的程序赋予含义,并在一个新定义域上享有最小不动点解释。我们提出了一种探索解空间的算法,并证明其相对于我们的语义是正确的。我们的实现——Dusa 逻辑编程语言,其性能与最先进的答案集求解器相比具有竞争力,并展现出随问题规模更可预测的扩展性。

英文摘要:

Logic programming, as exemplified by datalog, defines the meaning of a program as its unique smallest model: the deductive closure of its inference rules. However, many problems call for an enumeration of models that vary along some set of choices while maintaining structural and logical constraints -- there is no single canonical model. The notion of stable models for logic programs with negation has successfully captured programmer intuition about the set of valid solutions for such problems, giving rise to a family of programming languages and associated solvers known as answer set programming. Unfortunately, the definition of a stable model is frustratingly indirect, especially in the presence of rules containing free variables. We propose a new formalism, finite-choice logic programming, that uses choice, not negation, to admit multiple solutions. Finite-choice logic programming contains all the expressive power of the stable model semantics, gives meaning to a new and useful class of programs, and enjoys a least-fixed-point interpretation over a novel domain. We present an algorithm for exploring the solution space and prove it correct with respect to our semantics. Our implementation, the Dusa logic programming language, has performance that compares favorably with state-of-the-art answer set solvers and exhibits more predictable scaling with problem size.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑