160 research outputs found
Bialgebraic Semantics for Logic Programming
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
Interacting Hopf Algebras
We introduce the theory IH of interacting Hopf algebras, parametrised over a
principal ideal domain R. The axioms of IH are derived using Lack's approach to
composing PROPs: they feature two Hopf algebra and two Frobenius algebra
structures on four different monoid-comonoid pairs. This construction is
instrumental in showing that IH is isomorphic to the PROP of linear relations
(i.e. subspaces) over the field of fractions of R
The Power of Convex Algebras
Probabilistic automata (PA) combine probability and nondeterminism. They can
be given different semantics, like strong bisimilarity, convex bisimilarity, or
(more recently) distribution bisimilarity. The latter is based on the view of
PA as transformers of probability distributions, also called belief states, and
promotes distributions to first-class citizens.
We give a coalgebraic account of the latter semantics, and explain the
genesis of the belief-state transformer from a PA. To do so, we make explicit
the convex algebraic structure present in PA and identify belief-state
transformers as transition systems with state space that carries a convex
algebra. As a consequence of our abstract approach, we can give a sound proof
technique which we call bisimulation up-to convex hull.Comment: Full (extended) version of a CONCUR 2017 paper, to be submitted to
LMC
Coalgebraic Behavioral Metrics
We study different behavioral metrics, such as those arising from both
branching and linear-time semantics, in a coalgebraic setting. Given a
coalgebra for a functor , we define a framework for deriving pseudometrics on which
measure the behavioral distance of states.
A crucial step is the lifting of the functor on to a
functor on the category of pseudometric spaces.
We present two different approaches which can be viewed as generalizations of
the Kantorovich and Wasserstein pseudometrics for probability measures. We show
that the pseudometrics provided by the two approaches coincide on several
natural examples, but in general they differ.
If has a final coalgebra, every lifting yields in a
canonical way a behavioral distance which is usually branching-time, i.e., it
generalizes bisimilarity. In order to model linear-time metrics (generalizing
trace equivalences), we show sufficient conditions for lifting distributive
laws and monads. These results enable us to employ the generalized powerset
construction
Towards Trace Metrics via Functor Lifting
We investigate the possibility of deriving metric trace semantics in a
coalgebraic framework. First, we generalize a technique for systematically
lifting functors from the category Set of sets to the category PMet of
pseudometric spaces, showing under which conditions also natural
transformations, monads and distributive laws can be lifted. By exploiting some
recent work on an abstract determinization, these results enable the derivation
of trace metrics starting from coalgebras in Set. More precisely, for a
coalgebra on Set we determinize it, thus obtaining a coalgebra in the
Eilenberg-Moore category of a monad. When the monad can be lifted to PMet, we
can equip the final coalgebra with a behavioral distance. The trace distance
between two states of the original coalgebra is the distance between their
images in the determinized coalgebra through the unit of the monad. We show how
our framework applies to nondeterministic automata and probabilistic automata
Combining Semilattices and Semimodules
We describe the canonical weak distributive law of the powerset monad over
the -left-semimodule monad , for a class of semirings . We
show that the composition of with by means of such
yields almost the monad of convex subsets previously introduced by
Jacobs: the only difference consists in the absence in Jacobs's monad of the
empty convex set. We provide a handy characterisation of the canonical weak
lifting of to as well as an algebraic
theory for the resulting composed monad. Finally, we restrict the composed
monad to finitely generated convex subsets and we show that it is presented by
an algebraic theory combining semimodules and semilattices with bottom, which
are the algebras for the finite powerset monad
Up-To Techniques for Behavioural Metrics via Fibrations
Up-to techniques are a well-known method for enhancing coinductive proofs of behavioural equivalences. We introduce up-to techniques for behavioural metrics between systems modelled as coalgebras and we provide abstract results to prove their soundness in a compositional way.
In order to obtain a general framework, we need a systematic way to lift functors: we show that the Wasserstein lifting of a functor, introduced in a previous work, corresponds to a change of base in a fibrational sense. This observation enables us to reuse existing results about soundness of up-to techniques in a fibrational setting. We focus on the fibrations of predicates and relations valued in a quantale, for which pseudo-metric spaces are an example. To illustrate our approach we provide an example on distances between regular languages
Bisimilarity of Open Terms in Stream GSOS
Stream GSOS is a specification format for operations and calculi on infinite
sequences. The notion of bisimilarity provides a canonical proof technique for
equivalence of closed terms in such specifications. In this paper, we focus on
open terms, which may contain variables, and which are equivalent whenever they
denote the same stream for every possible instantiation of the variables. Our
main contribution is to capture equivalence of open terms as bisimilarity on
certain Mealy machines, providing a concrete proof technique. Moreover, we
introduce an enhancement of this technique, called bisimulation up-to
substitutions, and show how to combine it with other up-to techniques to obtain
a powerful method for proving equivalence of open terms
Abstract Semantics by Observable Contexts
The operational behavior of interactive systems is usually given in terms of transition systems
labeled with actions, which, when visible, represent both observations and interactions with the external world. The abstract semantics is given in terms of behavioral equivalences, which depend on the action labels and on the amount of branching structure considered. Behavioural equivalences are often congruences with respect to the operations of the language, and this property expresses the compositionality of the abstract semantics.
A simpler approach, inspired by classical formalisms like pi-calculus, Petri nets, term and graph rewriting, and pioneered by the Chemical Abstract Machine [13], defines operational semantics by means of structural axioms and reaction rules. Process calculi representing complex systems, in particular those able to generate and communicate names, are often defined in this way, since structural axioms give a clear idea of the intended structure of the states while reaction rules, which are often non-conditional, give a direct account of the possible steps. Transitions caused by reaction rules, however, are not labeled, since they represent evolutions of the system without interactions with the external world. Thus reduction semantics in itself is neither abstract nor compositional.
One standard solution, pioneered in [89], is that of defining a saturated transition system as
follows:
a process p can do a move with label C[-] and become q, iff C[p]--> q.
Saturated semantics, i.e., the abstract semantics defined over the saturated transition system, are
always congruences, but they are usually untractable since they have to tackle all possible contexts of which there are usually an infinite number. Moreover, in several paradigmatic cases, saturated semantics are too coarse. For example, in Milner's Calculus of Communicating Systems (CCS), saturated bisimilarity cannot distinguish "always divergent processes" and for this reason
Milner and Sangiorgi introduced barbs. These are observations on the states representing the ability to interact over some channels.
Sewell introduced a different approach that consists in deriving a transition system
where labels are not all contexts but just the minimal ones allowing a system to reach a rule. In
such a way, one obtains two advantages: firstly one avoids considering all contexts, and secondly,
labels precisely represent interactions, i.e., the portion of environment that is really needed to
react. This idea was then refined by Leifer and Milner in the theory of reactive systems, where
the categorical notion of idem relative pushout precisely captures this idea of minimal context.
In this thesis, we show that in some cases this approach works well (e.g., CCS) but often, the
resulting abstract semantics are too strict. In our opinion, they are not really observational since the observer can know exactly how much structure a process needs to reach a specific rule, and thus the observation depends on the rules. One result of the thesis is that
of providing evidence of this through several interesting formalisms modeled as reactive systems: Logic Programming, a fragment of open pi-calculus, and an interactive version of Petri nets.
Moreover, we introduce two alternative definitions of bisimilarity that efficiently characterize
saturated bisimilarity, namely semi-saturated bisimilarity and symbolic bisimilarity. These
allow us to reason about saturated semantics without considering all contexts, but saturated semantics are in several cases too coarse. In order to have a framework that is suitable for many formalisms, we add to the above approach observations. Indeed, in our opinion, labels cannot represent both interactions and observations, because these two concepts are in general different, like for example, in the asynchronous calculi where receiving is not observable. Thus, we believe that some notion of observation, either on transitions or on states (e.g. barbs), is necessary.
A further result of the thesis is that of providing a generalization of the above theory starting not just from purely reaction rules, but from transition systems labeled with observations. Here we can easily reuse saturated transition systems by defining them as follows:
a process p can do a move with context C[-] and observation o and become q iff C[p] --o--> q.
Again, saturated semantics, i.e. abstract semantics defined over the above transition systems, are congruences. Analogously to the case of reactive systems, we can define semi-saturated bisimilarity and symbolic bisimilarity as efficient characterizations of saturated semantics. The definition of symbolic bisimilarity which arises from this generalization is similar to the abstract semantics of several works. Here we consider open and asynchronous pi-calculus, by showing that their abstract semantics are instances of our general concepts of saturated and symbolic semantics. We also apply our approach to open Petri nets (that are an interactive version of P/T Petri nets) obtaining a new symbolic semantics for them, that efficiently characterizes their abstract semantics.
We round up the thesis with a coalgebraic characterization for saturated, semi-saturated and
symbolic bisimilarity.
Universal Coalgebra provides a categorical framework where abstract semantics of interactive systems are described as morphisms to their minimal representatives. More precisely, if the
category of coalgebras has final object 1, then the unique morphisms from a certain coalgebra to 1
equates all the bisimilar states. In other words, the final object can be seen as a universe of abstract behaviors and the unique morphism as a function assigning to each system its abstract behavior.
This characterization of abstract semantics is not only theoretically interesting, but also pragmat-
ically useful, since it suggests an algorithm which can check the equivalence: one computes the
image of some coalgebras through the unique morphism (that for the finite lts corresponds to the list partitioning algorithm by Kanellakis and Smolka), and these coalgebras are behaviorally
equivalent if their images are the same.
Ordinary labeled transition systems can be represented as coalgebras, and the resulting abstract semantics exactly coincides with canonical bisimilarity. Then, providing a coalgebraic characterization of saturated bisimilarity is almost straightforward. The case of semi-saturated and symbolic bisimilarities are more complicated because their definitions are asymmetric. In order to properly characterizes semi-saturated and symbolic cases, we first introduce a new notion of redundancy on transitions and then normalized coalgebras: a special kind of coalgebras without redundant
transitions. We prove that the category of normalized coalgebras is isomorphic to the category of saturated coalgebras (the coalgebras containing all the redundant transitions), where the large saturated transition system can be directly modelled. In doing this, we use the notions of normalization that throws away all the redundant transitions, and of saturation that adds all the redundant transitions. Both are natural transformations between the endofunctors (defining the two categories of coalgebras) and one is the inverse of the other. As a corollary of the isomorphism theorem, saturated bisimilarity can be characterized as bisimilarity in the category of normalized coalgebras, i.e., abstracting away from redundant transitions. This is interesting because, on the one hand, it provides us with a canonical representatives for ~S without redundant transitions
(and then much smaller with respect to the saturated ones), on the other hand, it suggests a
minimization algorithm for "efficiently" computing ~S
- …