Logic programming: Laxness and saturation

被引:1
作者
Komendantskaya, Ekaterina [1 ]
Power, John [2 ]
机构
[1] Heriot Watt Univ, Dept Comp Sci, Edinburgh, Midlothian, Scotland
[2] Univ Bath, Dept Comp Sci, Bath BA2 7AY, Avon, England
基金
英国工程与自然科学研究理事会;
关键词
Logic programming; Coalgebra; Coinductive derivation tree; Lawvere theories; Lax transformations; Saturation; SEMANTICS;
D O I
10.1016/j.jlamp.2018.07.004
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
A propositional logic program P may be identified with a P-f P-f-coalgebra on the set of atomic propositions in the program. The corresponding C(P-f P-f)-coalgebra, where C(PfPf) is the cofree comonad on Pf Pf, describes derivations by resolution. That correspondence has been developed to model first-order programs in two ways, with lax semantics and saturated semantics, based on locally ordered categories and right Kan extensions respectively. We unify the two approaches, exhibiting them as complementary rather than competing, reflecting the theorem-proving and proof-search aspects of logic programming. While maintaining that unity, we further refine lax semantics to give finitary models of logic programs with existential variables, and to develop a precise semantic relationship between variables in logic programming and worlds in local state. Crown Copyright (C) 2018 Published by Elsevier Inc. All rights reserved.
引用
收藏
页码:1 / 21
页数:21
相关论文
共 40 条
[1]   On the algebraic structure of declarative programming languages [J].
Amato, Gianluca ;
Lipton, James ;
McGrail, Robert .
THEORETICAL COMPUTER SCIENCE, 2009, 410 (46) :4626-4671
[2]  
Benabou J., 1967, REPORTS MIDWEST CATE, V47, P1
[3]   TWO-DIMENSIONAL MONAD THEORY [J].
BLACKWELL, R ;
KELLY, GM ;
POWER, AJ .
JOURNAL OF PURE AND APPLIED ALGEBRA, 1989, 59 (01) :1-41
[4]  
Bonchi Filippo, 2013, Algebra and Coalgebra in Computer Science. 5th International Conference, CALCO 2013. Proceedings: LNCS 8089, P80, DOI 10.1007/978-3-642-40206-7_8
[5]   BIALGEBRAIC SEMANTICS FOR LOGIC PROGRAMMING [J].
Bonchi, Filippo ;
Zanasi, Fabio .
LOGICAL METHODS IN COMPUTER SCIENCE, 2015, 11 (01)
[6]   Reactive systems, (semi-)saturated semantics and coalgebras on presheaves [J].
Bonchi, Filippo ;
Montanari, Ugo .
THEORETICAL COMPUTER SCIENCE, 2009, 410 (41) :4044-4066
[7]  
Bruni R, 2001, THEOR PRACT LOG PROG, V1, P647, DOI [10.1017/S1471068401000035, 10.1017/S147106840100117X]
[8]   A theory of observables for logic programs [J].
Comini, M ;
Levi, G ;
Meo, MC .
INFORMATION AND COMPUTATION, 2001, 169 (01) :23-80
[9]   Coinductive Soundness of Corecursive Type Class Resolution [J].
Farka, Frantisek ;
Komendantskaya, Ekaterina ;
Hammond, Kevin .
LOGIC-BASED PROGRAM SYNTHESIS AND TRANSFORMATION, LOPSTR 2016, 2017, 10184 :311-327
[10]   Operational semantics of resolution and productivity in Horn clause logic [J].
Fu, Peng ;
Komendantskaya, Ekaterina .
FORMAL ASPECTS OF COMPUTING, 2017, 29 (03) :453-474