本文通过引入并研究回答集程序(answer set programs)的顺序复合,为逻辑程序设计的数学基础作出贡献。在语义方面,我们证明一个程序的直接后承算子可以通过复合来表示,这使我们能够在不显式引用算子的情况下计算 Horn 程序的最小模型语义。因此,我们可以用代数方式刻画回答集,这进一步为强等价和一致等价提供了一种颇具吸引力的代数刻画。它以数学上令人满意的方式弥合了回答集程序语法与语义之间的概念鸿沟。由此得到的回答集程序设计代数化,使我们能够把代数概念迁移到 ASP 环境中;我们通过引入回答集程序的指数和周期,作为衡量其循环性的代数尺度,对此加以展示。本文技术部分以一个简短章节结束,该节介绍了受代数启发的新型非周期回答集程序类,该类严格包含无循环程序类。从更广泛的意义上说,本文是迈向回答集程序代数的第一步;未来我们计划将本文方法提升到更广泛的程序类别,最重要的是高阶程序和析取程序及其扩展。
英文摘要:
This paper contributes to the mathematical foundations of logic programming by introducing and studying the sequential composition of answer set programs. On the semantic side, we show that the 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 further provides an algebraic characterization of strong and uniform equivalence which is appealing. This bridges the conceptual gap between the syntax and semantics of an answer set program in a mathematically satisfactory way. The so-obtained algebraization of answer set programming allows us to transfer algebraic concepts into the ASP-setting which we demonstrate by introducing the index and period of an answer set program as an algebraic measure of its cyclicality. The technical part of the paper ends with a brief section introducing the algebraically inspired novel class of aperiodic answer set programs strictly containing the acyclic ones. In a broader sense, this paper is a first step towards an algebra of answer set programs and in the future we plan to lift the methods of this paper to wider classes of programs, most importantly to higher-order and disjunctive programs and extensions thereof.
Anytime-Valid Answer Sufficiency Certificates for LLM Generation via Sequential Information Lift
Department of Computer Science, Iowa State University(计算机科学系,爱荷华州立大学);Department of Civil, Construction & Environmental Engineering, Iowa State University(土木、建设与环境工程系,爱荷华州立大学)