首页 > 最新文献

Theory and Practice of Logic Programming最新文献

英文 中文
CNL2ASP: Converting Controlled Natural Language Sentences into ASP CNL2ASP:将受控自然语言句子转换为 ASP
IF 1.4 2区 数学 Q2 Computer Science Pub Date : 2023-12-20 DOI: 10.1017/s1471068423000388
SIMONE CARUSO, CARMINE DODARO, MARCO MARATEA, MARCO MOCHI, FRANCESCO RICCIO

Answer set programming (ASP) is a popular declarative programming language for solving hard combinatorial problems. Although ASP has gained widespread acceptance in academic and industrial contexts, there are certain user groups who may find it more advantageous to employ a higher-level language that closely resembles natural language when specifying ASP programs. In this paper, we propose a novel tool, called CNL2ASP, for translating English sentences expressed in a controlled natural language (CNL) form into ASP. In particular, we first provide a definition of the type of sentences allowed by our CNL and their translation as ASP rules and then exemplify the usage of the CNL for the specification of both synthetic and real-world combinatorial problems. Finally, we report the results of an experimental analysis conducted on the real-world problems to compare the performance of automatically generated encodings with the ones written by ASP practitioners, showing that our tool can obtain satisfactory performance on these benchmarks.

答案集编程(ASP)是一种流行的声明式编程语言,用于解决难以解决的组合问题。虽然 ASP 已在学术和工业领域获得广泛认可,但某些用户群体可能会发现,在指定 ASP 程序时,使用一种与自然语言非常相似的高级语言会更有优势。在本文中,我们提出了一种名为 CNL2ASP 的新工具,用于将以受控自然语言(CNL)形式表达的英语句子翻译成 ASP。具体而言,我们首先定义了 CNL 所允许的句子类型,并将其翻译为 ASP 规则,然后举例说明了如何使用 CNL 来规范合成问题和现实世界中的组合问题。最后,我们报告了对真实世界问题进行实验分析的结果,以比较自动生成的编码与 ASP 从业人员编写的编码的性能,结果表明我们的工具可以在这些基准上获得令人满意的性能。
{"title":"CNL2ASP: Converting Controlled Natural Language Sentences into ASP","authors":"SIMONE CARUSO, CARMINE DODARO, MARCO MARATEA, MARCO MOCHI, FRANCESCO RICCIO","doi":"10.1017/s1471068423000388","DOIUrl":"https://doi.org/10.1017/s1471068423000388","url":null,"abstract":"<p>Answer set programming (ASP) is a popular declarative programming language for solving hard combinatorial problems. Although ASP has gained widespread acceptance in academic and industrial contexts, there are certain user groups who may find it more advantageous to employ a higher-level language that closely resembles natural language when specifying ASP programs. In this paper, we propose a novel tool, called CNL2ASP, for translating English sentences expressed in a controlled natural language (CNL) form into ASP. In particular, we first provide a definition of the type of sentences allowed by our CNL and their translation as ASP rules and then exemplify the usage of the CNL for the specification of both synthetic and real-world combinatorial problems. Finally, we report the results of an experimental analysis conducted on the real-world problems to compare the performance of automatically generated encodings with the ones written by ASP practitioners, showing that our tool can obtain satisfactory performance on these benchmarks.</p>","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":1.4,"publicationDate":"2023-12-20","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"138816479","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Human Conditional Reasoning in Answer Set Programming 答案集编程中的人类条件推理
IF 1.4 2区 数学 Q2 Computer Science Pub Date : 2023-12-14 DOI: 10.1017/s1471068423000376
CHIAKI SAKAMA

Given a conditional sentence “${varphi}Rightarrow psi$" (if ${varphi}$ then $psi$) and respective facts, four different types of inferences are observed in human reasoning: Affirming the antecedent (AA) (or modus ponens) reasons $psi$ from ${varphi}$; affirming the consequent (AC) reasons ${varphi}$ from $psi$; denying the antecedent (DA) reasons $negpsi$ from $neg{varphi}$; and denying the consequent (DC) (or m

给定一个条件句“${varphi}Rightarrow psi$”(如果${varphi}$那么$psi$)和各自的事实,在人类推理中可以观察到四种不同类型的推理:确认先行(AA)(或假设方式)推理$psi$从${varphi}$;确认结果(AC)原因${varphi}$来自$psi$;否认前因$negpsi$来自$neg{varphi}$;并否认结果(DC)(或计算方式)的原因$neg{varphi}$从$negpsi$。其中,AA和DC是逻辑有效的,AC和DA是逻辑无效的,常被称为逻辑谬误。然而,人类在日常生活中经常将AC或DA作为语用推理。在本文中,我们实现了答案集规划中的AC、DA和DC推理。介绍了八种不同类型的补全,并通过答案集给出了它们的语义。我们研究了认知心理学中人类推理任务的形式属性和特征。这些补全也适用于AI中的常识性推理。
{"title":"Human Conditional Reasoning in Answer Set Programming","authors":"CHIAKI SAKAMA","doi":"10.1017/s1471068423000376","DOIUrl":"https://doi.org/10.1017/s1471068423000376","url":null,"abstract":"<p>Given a conditional sentence “<span><span><img data-mimesubtype=\"png\" data-type=\"\" src=\"https://static.cambridge.org/binary/version/id/urn:cambridge.org:id:binary:20231213121345464-0823:S1471068423000376:S1471068423000376_inline1.png\"><span data-mathjax-type=\"texmath\"><span>${varphi}Rightarrow psi$</span></span></img></span></span>\" (if <span><span><img data-mimesubtype=\"png\" data-type=\"\" src=\"https://static.cambridge.org/binary/version/id/urn:cambridge.org:id:binary:20231213121345464-0823:S1471068423000376:S1471068423000376_inline2.png\"><span data-mathjax-type=\"texmath\"><span>${varphi}$</span></span></img></span></span> then <span><span><img data-mimesubtype=\"png\" data-type=\"\" src=\"https://static.cambridge.org/binary/version/id/urn:cambridge.org:id:binary:20231213121345464-0823:S1471068423000376:S1471068423000376_inline3.png\"><span data-mathjax-type=\"texmath\"><span>$psi$</span></span></img></span></span>) and respective facts, four different types of inferences are observed in human reasoning: <span>Affirming the antecedent</span> (AA) (or <span>modus ponens</span>) reasons <span><span><img data-mimesubtype=\"png\" data-type=\"\" src=\"https://static.cambridge.org/binary/version/id/urn:cambridge.org:id:binary:20231213121345464-0823:S1471068423000376:S1471068423000376_inline4.png\"><span data-mathjax-type=\"texmath\"><span>$psi$</span></span></img></span></span> from <span><span><img data-mimesubtype=\"png\" data-type=\"\" src=\"https://static.cambridge.org/binary/version/id/urn:cambridge.org:id:binary:20231213121345464-0823:S1471068423000376:S1471068423000376_inline5.png\"><span data-mathjax-type=\"texmath\"><span>${varphi}$</span></span></img></span></span>; <span>affirming the consequent</span> (AC) reasons <span><span><img data-mimesubtype=\"png\" data-type=\"\" src=\"https://static.cambridge.org/binary/version/id/urn:cambridge.org:id:binary:20231213121345464-0823:S1471068423000376:S1471068423000376_inline6.png\"><span data-mathjax-type=\"texmath\"><span>${varphi}$</span></span></img></span></span> from <span><span><img data-mimesubtype=\"png\" data-type=\"\" src=\"https://static.cambridge.org/binary/version/id/urn:cambridge.org:id:binary:20231213121345464-0823:S1471068423000376:S1471068423000376_inline7.png\"><span data-mathjax-type=\"texmath\"><span>$psi$</span></span></img></span></span>; <span>denying the antecedent</span> (DA) reasons <span><span><img data-mimesubtype=\"png\" data-type=\"\" src=\"https://static.cambridge.org/binary/version/id/urn:cambridge.org:id:binary:20231213121345464-0823:S1471068423000376:S1471068423000376_inline8.png\"><span data-mathjax-type=\"texmath\"><span>$negpsi$</span></span></img></span></span> from <span><span><img data-mimesubtype=\"png\" data-type=\"\" src=\"https://static.cambridge.org/binary/version/id/urn:cambridge.org:id:binary:20231213121345464-0823:S1471068423000376:S1471068423000376_inline9.png\"><span data-mathjax-type=\"texmath\"><span>$neg{varphi}$</span></span></img></span></span>; and <span>denying the consequent</span> (DC) (or <span>m","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":1.4,"publicationDate":"2023-12-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"138629303","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Querying Incomplete Data: Complexity and Tractability via Datalog and First-Order Rewritings 查询不完整数据:通过数据表和一阶重写的复杂性和可追溯性
IF 1.4 2区 数学 Q2 Computer Science Pub Date : 2023-11-28 DOI: 10.1017/s1471068423000364
AMÉLIE GHEERBRANT, LEONID LIBKIN, ALEXANDRA ROGOVA, CRISTINA SIRANGELO
To answer database queries over incomplete data, the gold standard is finding certain answers: those that are true regardless of how incomplete data is interpreted. Such answers can be found efficiently for conjunctive queries and their unions, even in the presence of constraints. With negation added, the problem becomes intractable however. We concentrate on the complexity of certain answers under constraints and on effficiently answering queries outside the usual classes of (unions) of conjunctive queries by means of rewriting as Datalog and first-order queries. We first notice that there are three different ways in which query answering can be cast as a decision problem. We complete the existing picture and provide precise complexity bounds on all versions of the decision problem, for certain and best answers. We then study a well-behaved class of queries that extends unions of conjunctive queries with a mild form of negation. We show that for them, certain answers can be expressed in Datalog with negation, even in the presence of functional dependencies, thus making them tractable in data complexity. We show that in general, Datalog cannot be replaced by first-order logic, but without constraints such a rewriting can be done in first order.
要回答对不完整数据的数据库查询,黄金标准是找到某些答案:无论如何解释不完整数据,这些答案都是正确的。即使在存在约束的情况下,也可以有效地为连接查询及其联合找到这样的答案。然而,加上否定,问题就变得棘手了。我们专注于约束下某些答案的复杂性,以及通过重写为Datalog和一阶查询的方式有效地回答连接查询的通常(联合)类之外的查询。我们首先注意到,有三种不同的方式可以将查询回答转换为决策问题。我们完成了现有的图像,并为决策问题的所有版本提供了精确的复杂性界限,以获得确定的最佳答案。然后,我们研究了一类表现良好的查询,它用温和的否定形式扩展了连接查询的联合。我们表明,对于它们,某些答案可以在Datalog中用否定表示,即使存在功能依赖,从而使它们在数据复杂性方面易于处理。我们表明,在一般情况下,Datalog不能被一阶逻辑取代,但没有约束,这样的重写可以在一阶完成。
{"title":"Querying Incomplete Data: Complexity and Tractability via Datalog and First-Order Rewritings","authors":"AMÉLIE GHEERBRANT, LEONID LIBKIN, ALEXANDRA ROGOVA, CRISTINA SIRANGELO","doi":"10.1017/s1471068423000364","DOIUrl":"https://doi.org/10.1017/s1471068423000364","url":null,"abstract":"To answer database queries over incomplete data, the gold standard is finding certain answers: those that are true regardless of how incomplete data is interpreted. Such answers can be found efficiently for conjunctive queries and their unions, even in the presence of constraints. With negation added, the problem becomes intractable however. We concentrate on the complexity of certain answers under constraints and on effficiently answering queries outside the usual classes of (unions) of conjunctive queries by means of rewriting as Datalog and first-order queries. We first notice that there are three different ways in which query answering can be cast as a decision problem. We complete the existing picture and provide precise complexity bounds on all versions of the decision problem, for certain and best answers. We then study a well-behaved class of queries that extends unions of conjunctive queries with a mild form of negation. We show that for them, certain answers can be expressed in Datalog with negation, even in the presence of functional dependencies, thus making them tractable in data complexity. We show that in general, Datalog cannot be replaced by first-order logic, but without constraints such a rewriting can be done in first order.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":1.4,"publicationDate":"2023-11-28","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"138540392","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Tau Prolog: A Prolog Interpreter for the Web Tau Prolog:用于Web的Prolog解释器
2区 数学 Q2 Computer Science Pub Date : 2023-09-18 DOI: 10.1017/s1471068423000352
JOSÉ A. RIAZA
Abstract Tau Prolog is a client-side Prolog interpreter fully implemented in JavaScript, which aims at implementing the ISO Prolog Standard. Tau Prolog has been developed to be used with either Node.js or a browser seamlessly, and therefore, it has been developed following a non-blocking, callback-based approach to avoid blocking web browsers. Taking the best from JavaScript and Prolog, Tau Prolog allows the programmer to handle browser events and manipulate the Document Object Model (DOM) of a web using Prolog predicates. In this paper we describe the architecture of Tau Prolog and its main packages for interacting with the Web, and we present its programming environment.
Tau Prolog是一个完全用JavaScript实现的客户端Prolog解释器,旨在实现ISO Prolog标准。Tau Prolog已经被开发为可以与Node.js或浏览器无缝使用,因此,它遵循非阻塞,基于回调的方法来开发,以避免阻塞web浏览器。利用JavaScript和Prolog的精华,Tau Prolog允许程序员使用Prolog谓词处理浏览器事件和操作web的文档对象模型(DOM)。本文描述了Tau Prolog的体系结构及其与Web交互的主要包,并给出了它的编程环境。
{"title":"Tau Prolog: A Prolog Interpreter for the Web","authors":"JOSÉ A. RIAZA","doi":"10.1017/s1471068423000352","DOIUrl":"https://doi.org/10.1017/s1471068423000352","url":null,"abstract":"Abstract Tau Prolog is a client-side Prolog interpreter fully implemented in JavaScript, which aims at implementing the ISO Prolog Standard. Tau Prolog has been developed to be used with either Node.js or a browser seamlessly, and therefore, it has been developed following a non-blocking, callback-based approach to avoid blocking web browsers. Taking the best from JavaScript and Prolog, Tau Prolog allows the programmer to handle browser events and manipulate the Document Object Model (DOM) of a web using Prolog predicates. In this paper we describe the architecture of Tau Prolog and its main packages for interacting with the Web, and we present its programming environment.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-09-18","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135109880","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 1
Compositional Verification in Rewriting Logic 改写逻辑中的组合验证
2区 数学 Q2 Computer Science Pub Date : 2023-08-31 DOI: 10.1017/s1471068423000340
ÓSCAR MARTÍN, ALBERTO VERDEJO, NARCISO MARTÍ-OLIET
Abstract In previous work, summarized in this paper, we proposed an operation of parallel composition for rewriting-logic theories, allowing compositional specification of systems and reusability of components. The present paper focuses on compositional verification. We show how the assume/guarantee technique can be transposed to our setting, by giving appropriate definitions of satisfaction based on transition structures and path semantics. We also show that simulation and equational abstraction can be done componentwise. Appropriate concepts of fairness and deadlock for our composition operation are discussed, as they affect satisfaction of temporal formulas. We keep in parallel a distributed and a global view of composed systems. We show that these views are equivalent and interchangeable, which may help our intuition and also has practical uses as, for example, it allows global-style verification of a modularly specified system. Under consideration in Theory and Practice of Logic Programming (TPLP).
在以往的工作中,我们提出了一种用于重写逻辑理论的并行组合操作,允许系统的组合规范和组件的可重用性。本文的重点是成分验证。通过基于转换结构和路径语义给出适当的满意度定义,我们展示了假设/保证技术如何转换到我们的设置中。我们还证明了模拟和方程抽象可以以组件方式完成。讨论了组合操作的公平性和死锁的适当概念,因为它们影响时间公式的满足。我们对组合系统同时保持分布式和全局视图。我们展示了这些视图是等价的和可互换的,这可能有助于我们的直觉,也有实际用途,例如,它允许对模块化指定的系统进行全局样式的验证。逻辑规划理论与实践的思考。
{"title":"Compositional Verification in Rewriting Logic","authors":"ÓSCAR MARTÍN, ALBERTO VERDEJO, NARCISO MARTÍ-OLIET","doi":"10.1017/s1471068423000340","DOIUrl":"https://doi.org/10.1017/s1471068423000340","url":null,"abstract":"Abstract In previous work, summarized in this paper, we proposed an operation of parallel composition for rewriting-logic theories, allowing compositional specification of systems and reusability of components. The present paper focuses on compositional verification. We show how the assume/guarantee technique can be transposed to our setting, by giving appropriate definitions of satisfaction based on transition structures and path semantics. We also show that simulation and equational abstraction can be done componentwise. Appropriate concepts of fairness and deadlock for our composition operation are discussed, as they affect satisfaction of temporal formulas. We keep in parallel a distributed and a global view of composed systems. We show that these views are equivalent and interchangeable, which may help our intuition and also has practical uses as, for example, it allows global-style verification of a modularly specified system. Under consideration in Theory and Practice of Logic Programming (TPLP).","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-08-31","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135831505","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Dyadic Existential Rules 二元存在规则
2区 数学 Q2 Computer Science Pub Date : 2023-08-24 DOI: 10.1017/s1471068423000327
GEORG GOTTLOB, MARCO MANNA, CINZIA MARTE
Abstract Existential rules form an expressive ${{textsf{Datalog}}}$ -based language to specify ontological knowledge. The presence of existential quantification in rule-heads, however, makes the main reasoning tasks undecidable. To overcome this limitation, in the last two decades, a number of classes of existential rules guaranteeing the decidability of query answering have been proposed. Unfortunately, only some of these classes fully encompass ${{textsf{Datalog}}}$ and, often, this comes at the price of higher computational complexity. Moreover, expressive classes are typically unable to exploit tools developed for classes exhibiting lower expressiveness. To mitigate these shortcomings, this paper introduces a novel general syntactic condition that allows us to define, systematically and in a uniform way, from any decidable class $mathcal{C}$ of existential rules, a new class called ${{textsf{Dyadic-}mathcal{C}}}$ enjoying the following properties: ( i ) it is decidable; ( ii ) it generalizes ${{textsf{Datalog}}}$ ; ( iii ) it generalizes $mathcal{C}$ ; ( iv ) it can effectively exploit any reasoner for query answering over $mathcal{C}$ ; and ( v ) its computational complexity does not exceed the highest between the one of $mathcal{C}$ and the one of ${{textsf{Datalog}}}$ .
存在规则形成一种富有表现力的基于${{textsf{Datalog}} $的语言来指定本体知识。然而,存在量化在规则头中的存在,使得主要推理任务无法确定。为了克服这一限制,在过去的二十年中,已经提出了许多类保证查询回答的可判定性的存在规则。不幸的是,这些类中只有一部分完全包含${{textsf{Datalog}}}$,而这通常是以更高的计算复杂度为代价的。此外,表达性类通常无法利用为表现出较低表达性的类开发的工具。为了减轻这些缺点,本文引入了一种新的通用语法条件,使我们能够系统地、统一地从存在规则的任意可判定类$mathcal{C}$中定义一个新的类${{textsf{Dyadic-}mathcal{C}}}$,它具有以下性质:(1)可判定;(ii)泛化${{textsf{Datalog}}}$;(iii)泛化$mathcal{C}$;(iv)它可以有效地利用$mathcal{C}$上的任何推理器进行查询应答;(v)其计算复杂度不超过$mathcal{C}$与${textsf{Datalog}}}$之间的最大值。
{"title":"Dyadic Existential Rules","authors":"GEORG GOTTLOB, MARCO MANNA, CINZIA MARTE","doi":"10.1017/s1471068423000327","DOIUrl":"https://doi.org/10.1017/s1471068423000327","url":null,"abstract":"Abstract Existential rules form an expressive ${{textsf{Datalog}}}$ -based language to specify ontological knowledge. The presence of existential quantification in rule-heads, however, makes the main reasoning tasks undecidable. To overcome this limitation, in the last two decades, a number of classes of existential rules guaranteeing the decidability of query answering have been proposed. Unfortunately, only some of these classes fully encompass ${{textsf{Datalog}}}$ and, often, this comes at the price of higher computational complexity. Moreover, expressive classes are typically unable to exploit tools developed for classes exhibiting lower expressiveness. To mitigate these shortcomings, this paper introduces a novel general syntactic condition that allows us to define, systematically and in a uniform way, from any decidable class $mathcal{C}$ of existential rules, a new class called ${{textsf{Dyadic-}mathcal{C}}}$ enjoying the following properties: ( i ) it is decidable; ( ii ) it generalizes ${{textsf{Datalog}}}$ ; ( iii ) it generalizes $mathcal{C}$ ; ( iv ) it can effectively exploit any reasoner for query answering over $mathcal{C}$ ; and ( v ) its computational complexity does not exceed the highest between the one of $mathcal{C}$ and the one of ${{textsf{Datalog}}}$ .","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-08-24","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135420397","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Querying Data Exchange Settings Beyond Positive Queries 查询除正查询之外的数据交换设置
2区 数学 Q2 Computer Science Pub Date : 2023-08-15 DOI: 10.1017/s1471068423000339
MARCO CALAUTTI, SERGIO GRECO, CRISTIAN MOLINARO, IRINA TRUBITSYNA
Abstract Data exchange, the problem of transferring data from a source schema to a target schema, has been studied for several years. The semantics of answering positive queries over the target schema has been defined in early work, but little attention has been paid to more general queries. A few proposals of semantics for more general queries exist but they either do not properly extend the standard semantics under positive queries, giving rise to counterintuitive answers, or they make query answering undecidable even for the most important data exchange settings, for example, with weakly-acyclic dependencies. The goal of this paper is to provide a new semantics for data exchange that is able to deal with general queries. At the same time, we want our semantics to coincide with the classical one when focusing on positive queries, and to not trade-off too much in terms of complexity of query answering. We show that query answering is undecidable in general under the new semantics, but it is $text{co}text{NP}text{-complete}$ when the dependencies are weakly-acyclic. Moreover, in the latter case, we show that exact answers under our semantics can be computed by means of logic programs with choice, thus exploiting existing efficient systems. For more efficient computations, we also show that our semantics allows for the construction of a representative target instance, similar in spirit to a universal solution, that can be exploited for computing approximate answers in polynomial time.
数据交换,即将数据从源模式传输到目标模式的问题,已经被研究了几年。在早期的工作中已经定义了回答目标模式上的肯定查询的语义,但是很少关注更一般的查询。存在一些针对更一般查询的语义建议,但它们要么不能适当地扩展肯定查询下的标准语义,从而产生反直觉的答案,要么即使对于最重要的数据交换设置(例如,具有弱无环依赖关系),它们也使查询回答不可确定。本文的目标是为数据交换提供一种能够处理一般查询的新语义。同时,我们希望我们的语义在关注正面查询时与经典的语义一致,并且在查询回答的复杂性方面不要做太多的权衡。我们证明了在新语义下查询应答一般是不可判定的,但当依赖关系是弱无环时,查询应答是$text{co}text{NP}text{-complete}$。此外,在后一种情况下,我们表明,在我们的语义下,精确的答案可以通过具有选择的逻辑程序来计算,从而利用现有的高效系统。为了更有效的计算,我们还表明,我们的语义允许构造一个有代表性的目标实例,在精神上类似于通用解决方案,可以用于在多项式时间内计算近似答案。
{"title":"Querying Data Exchange Settings Beyond Positive Queries","authors":"MARCO CALAUTTI, SERGIO GRECO, CRISTIAN MOLINARO, IRINA TRUBITSYNA","doi":"10.1017/s1471068423000339","DOIUrl":"https://doi.org/10.1017/s1471068423000339","url":null,"abstract":"Abstract Data exchange, the problem of transferring data from a source schema to a target schema, has been studied for several years. The semantics of answering positive queries over the target schema has been defined in early work, but little attention has been paid to more general queries. A few proposals of semantics for more general queries exist but they either do not properly extend the standard semantics under positive queries, giving rise to counterintuitive answers, or they make query answering undecidable even for the most important data exchange settings, for example, with weakly-acyclic dependencies. The goal of this paper is to provide a new semantics for data exchange that is able to deal with general queries. At the same time, we want our semantics to coincide with the classical one when focusing on positive queries, and to not trade-off too much in terms of complexity of query answering. We show that query answering is undecidable in general under the new semantics, but it is $text{co}text{NP}text{-complete}$ when the dependencies are weakly-acyclic. Moreover, in the latter case, we show that exact answers under our semantics can be computed by means of logic programs with choice, thus exploiting existing efficient systems. For more efficient computations, we also show that our semantics allows for the construction of a representative target instance, similar in spirit to a universal solution, that can be exploited for computing approximate answers in polynomial time.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-08-15","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135115300","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
The Stable Model Semantics of Datalog with Metric Temporal Operators 带度量时间算子的数据表的稳定模型语义
2区 数学 Q2 Computer Science Pub Date : 2023-08-02 DOI: 10.1017/s1471068423000315
PRZEMYSŁAW A. WAŁĘGA, DAVID J. TENA CUCALA, BERNARDO CUENCA GRAU, EGOR V. KOSTYLEV
Abstract We introduce negation under the stable model semantics in DatalogMTL – a temporal extension of Datalog with metric temporal operators. As a result, we obtain a rule language which combines the power of answer set programming with the temporal dimension provided by metric operators. We show that, in this setting, reasoning becomes undecidable over the rational timeline, and decidable in ${{rm E}{smallrm XP}{rm S}{smallrm PACE}}$ in data complexity over the integer timeline. We also show that, if we restrict our attention to forward-propagating programs, reasoning over the integer timeline becomes ${{rm PS}{smallrm PACE}}$ -complete in data complexity, and hence, no harder than over positive programs; however, reasoning over the rational timeline in this fragment remains undecidable.
摘要在DatalogMTL中引入稳定模型语义下的否定,DatalogMTL是Datalog的时间扩展,具有度量时间算子。因此,我们得到了一种将答案集规划的能力与度量算子提供的时间维度相结合的规则语言。我们表明,在这种设置下,推理在有理时间轴上变得不可判定,而在整数时间轴上的数据复杂度在${{rm E}{小rm XP}{rm S}{小rm PACE}}$中变得不可判定。我们还表明,如果我们将注意力限制在前向传播程序上,在整数时间轴上的推理在数据复杂性上变得${{rm PS}{smallrm PACE}}$ -完备,因此,并不比在正程序上更难;然而,关于这个片段中合理时间线的推理仍然是不可确定的。
{"title":"The Stable Model Semantics of Datalog with Metric Temporal Operators","authors":"PRZEMYSŁAW A. WAŁĘGA, DAVID J. TENA CUCALA, BERNARDO CUENCA GRAU, EGOR V. KOSTYLEV","doi":"10.1017/s1471068423000315","DOIUrl":"https://doi.org/10.1017/s1471068423000315","url":null,"abstract":"Abstract We introduce negation under the stable model semantics in DatalogMTL – a temporal extension of Datalog with metric temporal operators. As a result, we obtain a rule language which combines the power of answer set programming with the temporal dimension provided by metric operators. We show that, in this setting, reasoning becomes undecidable over the rational timeline, and decidable in ${{rm E}{smallrm XP}{rm S}{smallrm PACE}}$ in data complexity over the integer timeline. We also show that, if we restrict our attention to forward-propagating programs, reasoning over the integer timeline becomes ${{rm PS}{smallrm PACE}}$ -complete in data complexity, and hence, no harder than over positive programs; however, reasoning over the rational timeline in this fragment remains undecidable.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-08-02","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135016527","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
Capturing (Optimal) Relaxed Plans with Stable and Supported Models of Logic Programs 捕获(最优)放松计划与稳定和支持模型的逻辑程序
2区 数学 Q2 Computer Science Pub Date : 2023-07-01 DOI: 10.1017/s1471068423000273
MASOOD FEYZBAKHSH RANKOOH, TOMI JANHUNEN
Abstract We establish a novel relation between delete-free planning, an important task for the AI planning community also known as relaxed planning, and logic programming. We show that given a planning problem, all subsets of actions that could be ordered to produce relaxed plans for the problem can be bijectively captured with stable models of a logic program describing the corresponding relaxed planning problem. We also consider the supported model semantics of logic programs, and introduce one causal and one diagnostic encoding of the relaxed planning problem as logic programs, both capturing relaxed plans with their supported models. Our experimental results show that these new encodings can provide major performance gain when computing optimal relaxed plans, with our diagnostic encoding outperforming state-of-the-art approaches to relaxed planning regardless of the given time limit when measured on a wide collection of STRIPS planning benchmarks.
摘要本文建立了一种新的无删除规划与逻辑规划之间的关系,无删除规划是人工智能规划界的一项重要任务,也称为放松规划。我们证明了给定一个规划问题,可以用描述相应的放松规划问题的逻辑程序的稳定模型客观地捕获所有可以被命令产生该问题的放松计划的动作子集。我们还考虑了逻辑规划的支持模型语义,并引入了一个因果编码和一个诊断编码作为逻辑规划的松弛规划问题,两者都用其支持的模型捕获了松弛计划。我们的实验结果表明,在计算最优放松计划时,这些新的编码可以提供主要的性能增益,当在广泛的条带规划基准测试中测量给定的时间限制时,我们的诊断编码优于最先进的放松计划方法。
{"title":"Capturing (Optimal) Relaxed Plans with Stable and Supported Models of Logic Programs","authors":"MASOOD FEYZBAKHSH RANKOOH, TOMI JANHUNEN","doi":"10.1017/s1471068423000273","DOIUrl":"https://doi.org/10.1017/s1471068423000273","url":null,"abstract":"Abstract We establish a novel relation between delete-free planning, an important task for the AI planning community also known as relaxed planning, and logic programming. We show that given a planning problem, all subsets of actions that could be ordered to produce relaxed plans for the problem can be bijectively captured with stable models of a logic program describing the corresponding relaxed planning problem. We also consider the supported model semantics of logic programs, and introduce one causal and one diagnostic encoding of the relaxed planning problem as logic programs, both capturing relaxed plans with their supported models. Our experimental results show that these new encodings can provide major performance gain when computing optimal relaxed plans, with our diagnostic encoding outperforming state-of-the-art approaches to relaxed planning regardless of the given time limit when measured on a wide collection of STRIPS planning benchmarks.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135569085","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
On Program Completion, with an Application to the Sum and Product Puzzle 论程序完成,并应用于和与积难题
2区 数学 Q2 Computer Science Pub Date : 2023-07-01 DOI: 10.1017/s1471068423000224
VLADIMIR LIFSCHITZ
Abstract This paper describes a generalization of Clark’s completion that is applicable to logic programs containing arithmetic operations and produces syntactically simple, natural looking formulas. If a set of first-order axioms is equivalent to the completion of a program, then we may be able to find standard models of these axioms by running an answer set solver. As an example, we apply this “reverse completion” procedure to the Sum and Product Puzzle.
本文描述了Clark补全的一种推广,它适用于包含算术运算的逻辑程序,并产生语法简单、看起来自然的公式。如果一组一阶公理等价于一个程序的完成,那么我们可以通过运行答案集求解器来找到这些公理的标准模型。作为一个例子,我们将这种“反向补全”过程应用于和与积拼图。
{"title":"On Program Completion, with an Application to the Sum and Product Puzzle","authors":"VLADIMIR LIFSCHITZ","doi":"10.1017/s1471068423000224","DOIUrl":"https://doi.org/10.1017/s1471068423000224","url":null,"abstract":"Abstract This paper describes a generalization of Clark’s completion that is applicable to logic programs containing arithmetic operations and produces syntactically simple, natural looking formulas. If a set of first-order axioms is equivalent to the completion of a program, then we may be able to find standard models of these axioms by running an answer set solver. As an example, we apply this “reverse completion” procedure to the Sum and Product Puzzle.","PeriodicalId":49436,"journal":{"name":"Theory and Practice of Logic Programming","volume":null,"pages":null},"PeriodicalIF":0.0,"publicationDate":"2023-07-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":null,"resultStr":null,"platform":"Semanticscholar","paperid":"135509355","PeriodicalName":null,"FirstCategoryId":null,"ListUrlMain":null,"RegionNum":2,"RegionCategory":"数学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":"","EPubDate":null,"PubModel":null,"JCR":null,"JCRName":null,"Score":null,"Total":0}
引用次数: 0
期刊
Theory and Practice of Logic Programming
全部 Acc. Chem. Res. ACS Applied Bio Materials ACS Appl. Electron. Mater. ACS Appl. Energy Mater. ACS Appl. Mater. Interfaces ACS Appl. Nano Mater. ACS Appl. Polym. Mater. ACS BIOMATER-SCI ENG ACS Catal. ACS Cent. Sci. ACS Chem. Biol. ACS Chemical Health & Safety ACS Chem. Neurosci. ACS Comb. Sci. ACS Earth Space Chem. ACS Energy Lett. ACS Infect. Dis. ACS Macro Lett. ACS Mater. Lett. ACS Med. Chem. Lett. ACS Nano ACS Omega ACS Photonics ACS Sens. ACS Sustainable Chem. Eng. ACS Synth. Biol. Anal. Chem. BIOCHEMISTRY-US Bioconjugate Chem. BIOMACROMOLECULES Chem. Res. Toxicol. Chem. Rev. Chem. Mater. CRYST GROWTH DES ENERG FUEL Environ. Sci. Technol. Environ. Sci. Technol. Lett. Eur. J. Inorg. Chem. IND ENG CHEM RES Inorg. Chem. J. Agric. Food. Chem. J. Chem. Eng. Data J. Chem. Educ. J. Chem. Inf. Model. J. Chem. Theory Comput. J. Med. Chem. J. Nat. Prod. J PROTEOME RES J. Am. Chem. Soc. LANGMUIR MACROMOLECULES Mol. Pharmaceutics Nano Lett. Org. Lett. ORG PROCESS RES DEV ORGANOMETALLICS J. Org. Chem. J. Phys. Chem. J. Phys. Chem. A J. Phys. Chem. B J. Phys. Chem. C J. Phys. Chem. Lett. Analyst Anal. Methods Biomater. Sci. Catal. Sci. Technol. Chem. Commun. Chem. Soc. Rev. CHEM EDUC RES PRACT CRYSTENGCOMM Dalton Trans. Energy Environ. Sci. ENVIRON SCI-NANO ENVIRON SCI-PROC IMP ENVIRON SCI-WAT RES Faraday Discuss. Food Funct. Green Chem. Inorg. Chem. Front. Integr. Biol. J. Anal. At. Spectrom. J. Mater. Chem. A J. Mater. Chem. B J. Mater. Chem. C Lab Chip Mater. Chem. Front. Mater. Horiz. MEDCHEMCOMM Metallomics Mol. Biosyst. Mol. Syst. Des. Eng. Nanoscale Nanoscale Horiz. Nat. Prod. Rep. New J. Chem. Org. Biomol. Chem. Org. Chem. Front. PHOTOCH PHOTOBIO SCI PCCP Polym. Chem.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
0
微信
客服QQ
Book学术公众号 扫码关注我们
反馈
×
意见反馈
请填写您的意见或建议
请填写您的手机或邮箱
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
现在去查看 取消
×
提示
确定
Book学术官方微信
Book学术文献互助
Book学术文献互助群
群 号:481959085
Book学术
文献互助 智能选刊 最新文献 互助须知 联系我们:info@booksci.cn
Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。
Copyright © 2023 Book学术 All rights reserved.
ghs 京公网安备 11010802042870号 京ICP备2023020795号-1