Logical Methods in Computer Science (Mar 2015)

Bialgebraic Semantics for Logic Programming

  • Filippo Bonchi,
  • Fabio Zanasi

DOI
https://doi.org/10.2168/LMCS-11(1:14)2015
Journal volume & issue
Vol. Volume 11, Issue 1

Abstract

Read online

Bialgebrae provide an abstract framework encompassing the semantics of different kinds of computational models. In this paper we propose a bialgebraic approach to the semantics of logic programming. Our methodology is to study logic programs as reactive systems and exploit abstract techniques developed in that setting. First we use saturation to model the operational semantics of logic programs as coalgebrae on presheaves. Then, we make explicit the underlying algebraic structure by using bialgebrae on presheaves. The resulting semantics turns out to be compositional with respect to conjunction and term substitution. Also, it encodes a parallel model of computation, whose soundness is guaranteed by a built-in notion of synchronisation between different threads.

Keywords