Coalgebraic semantics for derivations in logic programming

  • Authors:
  • Ekaterina Komendantskaya;John Power

  • Affiliations:
  • Department of Computing, University of Dundee, UK;Department of Computer Science, University of Bath, UK

  • Venue:
  • CALCO'11 Proceedings of the 4th international conference on Algebra and coalgebra in computer science
  • Year:
  • 2011

Quantified Score

Hi-index 0.00

Visualization

Abstract

Every variable-free logic program induces a PfPf-coalgebra on the set of atomic formulae in the program. The coalgebra p sends an atomic formula A to the set of the sets of atomic formulae in the antecedent of each clause for which A is the head. In an earlier paper, we identified a variable-free logic program with a PfPf -coalgebra on Set and showed that, if C(PfPf) is the cofree comonad on PfPf, then given a logic program P qua PfPf -coalgebra, the corresponding C(PfPf)- coalgebra structure describes the parallel and-or derivation trees of P. In this paper, we extend that analysis to arbitrary logic programs. That requires a subtle analysis of lax natural transformations between Poset-valued functors on a Lawvere theory, of locally ordered endofunctors and comonads on locally ordered categories, and of coalgebras, oplax maps of coalgebras, and the relationships between such for locally ordered endofunctors and the cofree comonads on them.