Functional ASP with Intensional Sets: Application to Gelfond-Zhang Aggregates

被引:15
作者
Cabalar, Pedro [1 ]
Fadinno, Jorge [2 ]
Del Cerro, Luis Farinas [2 ]
Pearce, David [3 ]
机构
[1] Univ A Coruna, Dept Comp Sci, Corunna, Spain
[2] Univ Toulouse, CNRS, IRIT, Toulouse, France
[3] Univ Politecn Madrid, Madrid, Spain
关键词
Answer Set Programming; Equilibrium Logic; Partial Functions; Aggregates; LOGIC; SEMANTICS; LANGUAGE;
D O I
10.1017/S1471068418000169
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In this paper, we propose a variant of Answer Set Programming (ASP) with evaluable functions that extends their application to sets of objects, something that allows a fully logical treatment of aggregates. Formally, we start from the syntax of First Order Logic with equality and the semantics of Quantified Equilibrium Logic with evaluable functions (QEL(F)(=)). Then, we proceed to incorporate a new kind of logical term, intensional set (a construct commonly used to denote the set of objects characterised by a given formula), and to extend QEL(F)(=) semantics for this new type of expression. In our extended approach, intensional sets can be arbitrarily used as predicate or function arguments or even nested inside other intensional sets, just as regular first-order logical terms. As a result, aggregates can be naturally formed by the application of some evaluable function (count, sum, maximum, etc) to a set of objects expressed as an intensional set. This approach has several advantages. First, while other semantics for aggregates depend on some syntactic transformation (either via a reduct or a formula translation), the QEL(F)(=) interpretation treats them as regular evaluable functions, providing a compositional semantics and avoiding any kind of syntactic restriction. Second, aggregates can be explicitly defined now within the logical language by the simple addition of formulas that fix their meaning in terms of multiple applications of some (commutative and associative) binary operation. For instance, we can use recursive rules to define sum in terms of integer addition. Last, but not least, we prove that the semantics we obtain for aggregates coincides with the one defined by Gelfond and Zhang for the Alog language, when we restrict to that syntactic fragment.
引用
收藏
页码:390 / 405
页数:16
相关论文
共 25 条
[1]   ASP with non-herbrand partial functions: a language and system for practical use [J].
Balduccini, Marcello .
THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2013, 13 :547-561
[2]  
Baral C., 2003, KNOWLEDGE REPRESENTA
[3]  
Bartholomew M., 2014, PRINCIPLES KNOWLEDGE
[4]   SET CONSTRUCTORS IN A LOGIC DATABASE LANGUAGE [J].
BEERI, C ;
NAQVI, S ;
SHMUELI, O ;
TSUR, S .
JOURNAL OF LOGIC PROGRAMMING, 1991, 10 (3-4) :181-232
[5]  
Cabalar P., 2013, ALP NEWSLETTER
[6]  
Cabalar P., 2016, P 25 INT JOINT C ART, P1015
[7]   Gelfond-Zhang Aggregates as Propositional Formulas [J].
Cabalar, Pedro ;
Fandinno, Jorge ;
Schaub, Torsten ;
Schellhorn, Sebastian .
LOGIC PROGRAMMING AND NONMONOTONIC REASONING, LPNMR 2017, 2017, 10377 :117-131
[8]   A free logic for stable models with partial intensional functions [J].
Cabalar, Pedro ;
Del Cerro, Luis Fariñas ;
Pearce, David ;
Valverde, Agustin .
Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics), 2014, 8761 :340-354
[9]   Functional answer set programming [J].
Cabalar, Pedro .
THEORY AND PRACTICE OF LOGIC PROGRAMMING, 2011, 11 :203-233
[10]   Intensional sets in CLP [J].
Dovier, A ;
Pontelli, E ;
Rossi, G .
LOGIC PROGRAMMING, PROCEEDINGS, 2003, 2916 :284-299