Compositionality in SLD-derivations and their abstractions Marco Comini, Giorgio Levi and Maria Chiara Meo Dipartimento di Informatica, Universita di

Size: px
Start display at page:

Download "Compositionality in SLD-derivations and their abstractions Marco Comini, Giorgio Levi and Maria Chiara Meo Dipartimento di Informatica, Universita di"

Transcription

1 Compositionality in SLD-derivations and their abstractions Marco Comini Giorgio Levi and Maria Chiara Meo Dipartimento di Informatica Universita di Pisa Corso Italia Pisa Italy fcomini levi Abstract We dene a semantic framework to reason about compositional properties of SLD-derivations and their abstractions (observables). The framework allows us to address problems such as the relation between the (top-down) operational semantics and the (bottom-up) denotational semantics the existence of a denotation for a set of denite clauses and their properties (compositionality w.r.t. various syntactic operators correctness and minimality). This leads us to a exible classication of the observables where we can reason about properties such as OR-compositionality and existence of abstract transition system. Using abstract interpretation techniques to model abstraction allows us to state very simple conditions on the observables which guarantee the validity of several general theorems. Keywords: SLD-derivations abstract semantics compositionality. 1 Introduction Our goal is the denition of a semantic framework which allows us to reason about properties of SLD-derivations and their abstractions (observables) in the case of denite logic programs. The issues we want to be able to address in the framework are the following the relation between the (top-down) operational semantics and the (bottom-- up) denotational semantics the existence of a denotation for a set of denite clauses the properties of the denotation (compositionality w.r.t. various syntactic operators correctness and minimality).

2 Similar problems have been studied in detail for various abstractions of SLD-derivations. Computed answers were considered in [6 7] call patterns and partial answers were considered in [11] and resultants were considered in [10] (see [2] for a survey of the approach). Moreover a framework where one can dene denotations modeling various observables (thus inheriting the basic constructions and results) was given in [9 8] by dening abstractions by means of equivalence relations. The same problem was tackled by [3] for CLP and by [12] by modeling abstractions according to abstract interpretation theory. This means that it is possible to accommodate in the framework observables which are useful for (approximate) program analysis. In this paper we build upon the idea in [3] of providing an algebraic characterization of the observables. We extend the approach by taking two basic semantics: a denotational semantics and a transition system which dene SLD-derivations. In addition our semantic properties are expressed as compositionality properties. This leads us to a more exible classication of the observables where we can reason about properties such as OR-compositionality and existence of abstract transition system. Using abstract interpretation techniques to model abstraction allows us to state very simple conditions on the observables which guarantee the validity of several general theorems. In Section 3 we dene the denotational semantics and the transition system for SLD-derivations in terms of four semantic operators directly related to the syntactic structure of the language. In Section 3.4 we prove several properties of SLD-derivations. In Section 4 we dene the observables as Galois insertions and characterize two classes of observables in terms of simple properties of the Galois insertion and of the basic semantic operators. The rst class (perfect observables of Section 4.4) has all the properties of SLD-derivations. In the other class the properties are preserved only for the denotational semantics (denotational observables of Section 4.5). The reconstruction of an existing semantics or the construction of a new semantics in the framework requires just a few very simple steps. i. The formalization of the property we want to model as a Galois insertion h; i between SLD-derivations and the property domain. ii. The verication of very simple algebraic properties relating h; i and the basic semantic semantic operators on SLD-derivations to assign the property to the right class of observables. iii. Depending on the class we automatically obtain the new denotational semantics transition system top-down and bottom-up denotations together with several interesting theorems (equivalence compositionality w.r.t. the various syntactic operators correctness and minimality of the denotations). Since it is based on standard operational and denotational semantic denitions the framework can be adapted to other programming languages.

3 2 Preliminaries In the following sections we assume familiarity with the standard notions of logic programming as introduced in [1] and [17]. We denote by G and B possibly empty sequences of atoms by t; x tuples of respectively terms and distinct variables. Moreover we denote by t both the tuple and the set of corresponding syntactic objects. B; B 0 denotes the concatenation of B and B 0. The set of all atoms is denoted by Atoms and the set of all goals is denoted by Goals. The empty goal is denoted by. We consider idempotent substitutions only. Subst is the set of all idempotent substitutions. Given a substitution # 2 Subst dom (#) = fx j #(x) 6= xg is the domain of # and range (#) = f y j x 6= #(x); y 2 var (#(x))g is the range of #. If # 2 Subst is a substitution and E is a syntactic expression #j E is the restriction of # to the variables var (E) of E. # n G # 1?! : : :?! G n : : : ; (n 0) denotes a (partial) SLD-derivation of goal G via c 1 c n the leftmost selection rule. The derivation uses the renamed apart clauses c 1 ; : : : ; c n and # = (# 1 # n ) j G is the computed answer substitution of G. Given a derivation d rst (d) and last (d) are respectively the rst and the last goal of d answer (d) is the computed answer substitution of d. We denote a zero-length derivation of G by G itself. Given two derivations d and d 0 such that last (d) = rst (d 0 ) = G and var (d) \ var (d 0 ) = var (G) d :: d 0 denotes the derivation obtained by concatenation of d and d 0 and clauses (d) is the set of clauses of d. is the equivalence modulo variance (extended also to derivations). 3 The basic framework In the following for the sake of simplicity we consider the PROLOG leftmost selection rule. All our results can be generalized to local selection rules. When we want to formalize program execution we must take into account in addition to the inference rules which specify how derivations are made the properties we observe in a computation (observables). An observable is any property which can be extracted from a goal computation i.e. observables are abstractions of SLDtrees. We assume the reader to be familiar with the notions of SLD-resolution and SLD-tree (see [17 1]). We represent here for notational convenience SLD-trees as sets of derivations. i. We dene a preorder on derivations: d d 0 i rst (d) = rst (d 0 ) and there exists a renaming such that d is a prex of d 0. ii. Let be the equivalence relation induced by. We denote by Deriv the set of all derivations modulo. In the following we denote the equivalence class of a derivation d by d itself and derivations are always intended as equivalence classes of derivations.

4 iii. S Deriv is well-formed i d 2 S implies 8d 0 2 Deriv d 0 d ) d 0 2 S. iv. A collection D is a set of pairs hg; Si such that (a) for any hg; Si 2 D S 6= ; is a well-formed set of derivations starting from the goal G (b) if hg 1 ; S 1 i and hg 2 ; S 2 i are distinct elements of D then G 1 6= G 2. Denition 3.1 D is the domain of all the collections ordered by v where D v D 0 if and only if 8hG; Si 2 D; 9hG; S 0 i 2 D 0 : S S 0. The partial order on D formalizes the evolution of the computation process. It is easy to prove that (D ; v) is a complete lattice. Proposition 3.2 Each collection where all the clauses used in derivations are in P is a representation of a family of partial SLD-trees of P. Moreover each maximal collection in P is a representation of the family of all SLD-trees of G in P for each goal G 2 Goals. Note that every clause c = p(t) :? B of P can be viewed as the \one step" collection tree (c) = f hp(x); f p(x); p(x) f?! x=t g B gi g where x is a tuple of new distinct c variables. In the following we often denote the derivation associated to the clause c by c itself. Moreover every goal G can be viewed as the collection f hg; f G gi g containing the \zero step" derivation G. The goal we want to achieve is to develop a denotation modeling partial SLDtrees. We follow the approach in [3 2] by dening a \syntactic" semantic domain (interpretation). Our modeling of partial SLD-trees is similar to the basic denotation dened in terms of clauses in [8 9]. Denition 3.3 A most general collection is a collection such that each initial goal is a most general atomic goal. An interpretation I is a most general collection modulo variance. We denote by I the set of interpretations. (I; v) is a complete lattice. Xj I represents the (greatest) most general sub-collection of any X 2 D =. Note that in interpretations the variance relation allows us to abstract w.r.t. the variables occurring in the initial goals of any collection. 3.1 Denotational semantics of SLD-derivations Our algebraic framework is dened by a set of semantic operators obtained from a denotational denition of derivations. We start with some notation. We denote the equivalence class (modulo variance) of a collection by itself. Moreover any subset I of I is implicitly considered also as an arbitrary collection obtained by

5 QUERY ::= GOAL in PROG GOAL ::= j ATOM ; GOAL PROG ::= ; j f CLAUSE g [ PROG CLAUSE ::= ATOM :? GOAL Figure 1: Syntax of logic programs choosing for each equivalence class 2 I an arbitrary representative of. All the operators that we will use on interpretations are independent from the choice of the representative. Therefore we can dene any operator on I in terms of its counterpart dened on D independently from the choice of the representative. All the denitions will be independent from the choice of the syntactic object. To simplify the notation we denote the corresponding operators on I and D by the same name. Several denotational semantics have been dened for logic programs (see for example [ ]). The main dierences w.r.t. the above denitions are that we do not consider the PROLOG search rule and that our denotations model SLD-- derivations rather than just computed answers. We dene the denotational semantics inductively on the syntax of logic programs of Figure 1 (the syntactic structure of atoms is not dened). We express denotations in algebraic notation. This will be useful in Section 4 for reasoning about the abstract denotations. The choice of the semantic operators is induced by the syntactic operators due to the compositional nature of denitions in the denotational style. The informal meaning of the operators is the following. The operator \solves" an atomic goal A into an interpretation I. The operator computes the conjunction of two denotations. The operator on computes the denotations obtained by replacement. Finally the operator P computes the non-deterministic union of a class of denotations. Note that when the class is nite we use the inx notation +. Q : QUERY! D ; Q [G in P ] = G [G] lfp P [P ] G : GOAL! (I! D ); G [] I = f h; f gi g A : ATOM! (I! D ); P : PROG! (I! I); G [A; G] I = A [A] I G [G] I A [A] I = A I P [;] I = Idj I P [fcg [ P ] I = C [c] I + P [P ] I C : CLAUSE! (I! I); C [p(t) :? B] I = tree (p(t) :? B) on G [B] I : In order to dene the semantic operators we rst we need to dene an auxiliary operation on derivations. This operation formalizes the instantiation of a derivation. # 0 1 Let d = G 0 0?! : : : be a derivation and let be a substitution such that c 1 var (G 0 # 0) \ var (clauses (d)) = ;. Then d = 1 G 0?! : : : is the maximal c 1 derivation such that G 0 = G 0 0 and 8i > 0:

6 i. i = mgu (G i?1 ; G 0 i?1# 0 i) s.t. var (range ( i ))\var (G 0 i?1) var (G i?1 ) ii. # i = (# 0 i i )j (A;c i ) where A is the rst atom in G i?1 and iii. G i = G 0 i i : Let D; D 1 ; D 2 be collections in D and A be an atom. Id is the collection of zero-- length derivations for each goal f hg; f G gi j G 2 Goals g. The instantiation of D with A is A D = f ha; Si j S = f d j ha 0 ; Si is a renamed apart (from A) version of an element of D d 2 S and there exists such that A = A 0 g; S 6= ; g: The product of D 1 and D 2 is D 1 D 2 = f hg; Si j S = f d j G = (G 0 0; G 00 0) hg 0 0; S 0 i 2 D 1 hg 00 0; S 00 i 2 D 2 d 1 = G 0 # 1 0?! : : : 2 S 0 c 1 d 2 2 S 00 var (d 1 ) \ var (d 2 ) = var (G 0 0) \ var (G 00 0) and if exists k s.t. G 0 k = then d = d 0 :: d 2 (# 1 # k ) else d = d 0 where d 0 # = 1 G 0?! : : : is the derivation c 1 i. G 0 = (G 0 0; G 00 0) ii. 8i > 0 G i = G 0 i; G# i if there exists G s.t. G i?1 = G 0 i?1; G and G 0 6= g i?1 S 6= ; g. The replacement of D 2 in D 1 is D 1 on D 2 = f hg; Si j hg; S 1 i 2 D 1 S = S 1 [ f d :: d 0 j d 2 S 1 hlast (d); S 2 i is a renamed version of an element in D 2 d 0 2 S 2 and var (d) \ var (d 0 ) = var (rst (d 0 )) g. The sum of a class f D i g i2i is X f Di g i2i = f hg; Si j S = [f S i j hg; S i i 2 D i ; i 2 I g; S 6= ; g: In inx notation D 1 + D 2 = P f D 1 ; D 2 g. Note that D 1 v D 2 D 1 + D 2 = D 2 and that the lub operation on (D ; v) coincides with P. The operation P can be naturally extended to each domain of set of pairs where the second component is a set. In the following we call such an operation pair set union. Note that if D D 0 then A D = A D 0 because of the renaming apart property and the \collecting" nature of.

7 3.2 Operational semantics The operational semantics is described in terms of a transition system T = (D ; T P ). The rules of T are hg; Si 2 D; G # 1?! # n : : :?! (A; G 0 ) 2 S; c 2 P; c 1 c n D on ((A tree (c)) f hg 0 ; f G 0 gi g) T P (D; D on ((A tree (c)) f G 0 g)) T P (D 1 ; D 0 1); T P (D 2 ; D 0 2) T P (D 1 + D 2 ; D D 0 2) The initial states of T are all the collections of SLD-derivations of zero-length while the nal states are all the collections of SLD-refutations. It can easily be shown that the transition system T denes the usual notion of SLD-derivation. Its specicity is due to the fact that we have dened it using the same semantic operators used in the denotational denition. Note that the rst transition rule can be expressed in a more general fashion like D 2 D ; c 2 P; A 2 Atoms; D on ((A tree (c)) Id) T P (D; D on ((A tree (c)) Id)) thus obtaining an equivalent transition relation. Since we are interested in all the SLD-derivations of a query G in P we dene its behavior as B [G in P ] = X f D j T P(f hg; f G gi g; D) g where T is the reexive and transitive closure of P T P. As we will see in the following (Corollary 3.9) the operational and denotational semantics of each query are the same. We dene the equivalence of two programs P 1 P 2 as P 1 P 2 () 8G 2 Goals; B [G in P 1 ] = B [G in P 2 ]: 3.3 The program denotation We can note that the semantic function P [P ] is essentially the \bottom-up" T P operator in the case of derivations. Using standard techniques it can be proved that P [P ] is continuous hence we can dene the xpoint denotation of the program P as the interpretation F [P ] = lfp P [P ] = P [P ] "!. This can be viewed as a program denotation since it is the semantics of the program as a set of denite clauses (or a set of procedure denitions). We can also dene a top-down program denotation. This can be obtained by collecting the behaviors for all most general atomic goals i.e. the behaviors of

8 the procedures with no constraints on the inputs. The top-down SLD-derivations denotation of a program P is the interpretation O [P ] = X f B [p(x) in P ] = g p(x)2goals: In the following we will prove that F [P ] and O [P ] are equivalent. Now we give two denitions to relate program equivalences to denotations. Let S [P ] be a program denotation (F [P ] or O [P ]) and be a program equivalence. Then i. S is correct w.r.t. if S [P 1 ] = S [P 2 ] =) P 1 P 2 ii. S is minimal w.r.t. if P 1 P 2 =) S [P 1 ] = S [P 2 ]. 3.4 Semantic properties of SLD-derivations We show that the program denotation O [P ] has several interesting properties which can all be viewed as compositionality properties. The rst compositionality result is a theorem which shows that the semantic function B is compositional w.r.t. procedure calls (atomic goals) and composition (conjunction) inside goals (AND-- compositionality). Theorem 3.4 Let A be an atom G 1 G 2 B [A in P ] = A O [P ]; B [G 1 in P ] = B [G 1 in P ] B [G 2 in P ]: be goals and P be a program. Then Corollary 3.5 Let A be an atom G be a goal and P be a program. Then B [ in P ] = f h; f gi g and B [A; G in P ] = A O [P ] B [G in P ]: The above closure property of O w.r.t. B allows us to show that the denotation O is correct and minimal w.r.t.. Corollary 3.6 Let P 1 P 2 be two programs. Then P 1 P 2 () O [P 1 ] = O [P 2 ]: By using the replacement operator we can dene an operator ] which computes the OR{composition of two denotations. Namely D 1 ] D 2 = fd 1 + D 2 g where fd g is the least solution of the equation fd g = Idj I + P f fd g on ((A D) Id) g A2Atoms : The following theorem shows the next compositionality property. Namely O [P ] is compositional w.r.t. [ (OR-compositionality). Theorem 3.7 Let P 1 P 2 be programs. Then O [P 1 [ P 2 ] = O [P 1 ] ] O [P 2 ]: The top-down and the bottom-up denotations are indeed equivalent.

9 Theorem 3.8 Let P be a program. Then O [P ] = F [P ]: The following theorem asserts the equivalence between the denotational and the operational semantics. Corollary 3.9 Let G be a goal and P be a program. Then Q [G in P ] = B [G in P ]: 4 The abstraction framework The properties we found for O and F allow us to claim that we have a good denotation modeling SLD-derivations. Our goal however is to nd the same results for the denotations modeling more abstract observables. We want then to develop a theory according to which the semantic properties of SLD-derivations shown in subsection 3.1 are inherited by the denotations which model abstractions of the SLDderivations. We will model the abstractions by using the Abstract Interpretation theory [4]. 4.1 Galois Insertions and Abstract Interpretation Abstract Interpretation is a theory developed to reason about the abstraction relation between two dierent semantics. The theory requires the two semantics to be dened on domains which are complete lattices. (C; ) (concrete domain) is the domain of the concrete semantics while (A; ) (abstract domain) is the domain of the abstract semantics. The partial order relations reect an approximation relation. The two domains are related by a pair of functions (abstraction) and (concretization) which form a Galois Insertion. Denition 4.1 (Galois Insertion) Let (C; ) be the concrete domain and (A; ) be the abstract domain. A Galois insertion is a pair of maps : C! A and : A! C such that i. and are monotonic ii. 8x 2 C x ( )(x) and 8y 2 A ( )(y) = y. Given a Galois Insertion between the concrete and the abstract domain and a concrete semantics we want to dene an abstract semantics. The concrete semantics is the least xpoint of a semantic function F : C! C. The abstract semantic function ~F : A! A is correct if 8x 2 C F (x) ( ~F ((x))). The same property holds for the least xpoints of F and ~F. F is in turn dened as composition of \primitive" operators. Let f : C n! C be one such an operator and assume that ~f is its abstract counterpart. Then f ~ is locally correct w.r.t. f if 8x 1 ; : : : ; x n 2 C

10 f(x 1 ; : : : ; x n ) ( f((x ~ 1 ); : : : ; (x n ))). The local correctness of all the primitive operators implies the global correctness. Hence we can dene an abstract semantics by dening locally correct abstract primitive semantic functions. An abstract computation is then related to the concrete computation simply by replacing the concrete operators by the corresponding abstract operators. According to the theory for each operator f there exists an optimal (most precise) locally correct abstract operator ~f dened as f(y ~ 1 ; : : : ; y n ) = (f((y 1 ); : : : ; (y n ))). However the composition of optimal operators is not necessarily optimal. The abstract interpretation theory allows us to model the approximation process which is typically involved in program analysis. In this paper we are only concerned with dierent semantics and therefore we look for precise abstractions. The abstract operator f ~ is precise if 8x 1 ; : : : ; x n 2 C; (f(x 1 ; : : : ; x n )) = f((x ~ 1 ); : : : ; (x n )). Hence the optimal abstract operator f ~ is precise if and only if (f(x 1 ; : : : ; x n )) = (f(( )x 1 ; : : : ; ( )x n )). So the precision of the optimal abstract operators can be reformulated in terms of properties of and the corresponding concrete operator. The above denitions are naturally extended to \primitive" semantic operators from P(C) to C. 4.2 The observables An observable property domain is a set of properties of the derivation with an ordering relation which can be viewed as an approximation structure. An observation consists in looking at an SLD-derivation and then extracting some property (abstraction). Our concrete domain D is then the domain of all the collections. We have already shown that (D ; v) is a compete lattice. Therefore the observable is a function from D to a suitable property domain D which preserves the approximation structure. Such a function must be a Galois connection. Denition 4.2 Let (D; ) be a complete lattice. A function : D! D is an observable if there exists s.t. (; ) : (D ; v)! (D; ) is a Galois insertion and 8D; D 0 2 D D D 0 () ((D)) ((D 0 )). The last condition states that the observation does not depend on the choice of the variable names. Hence we can dene an abstract variance relation ~ as S ~ S 0 () (S) (S 0 ). Note that in the following if there exists a bijective Galois connection between two domains we identify them. Each observable induces an observational equivalence on programs. Namely P 1 P 2 i 8G 2 Goals (B [G in P 1 ]) = (B [G in P 2 ]) i.e. if P 1 and P 2 cannot be distinguished by looking at their abstract behaviors. Note that whenever we have two equivalent observables the induced equivalences on programs are the same but the converse does not hold. For example P 1 P 2 i P 1 P 2. Therefore the equivalence on programs induced by the SLD-derivations semantics is the same as the syntactical equivalence on programs (variance). However we can observe much more properties in SLD-derivations than in programs.

11 Example 4.3 If denotes computed answer substitutions we can take D = P(Goals P(Subst)) as abstract domain and dene (; ) : D! D as (D) = f hg; i j hg; Si 2 D = f # j G # 1?! c 1 : : : #?! n 2 S and c n # = (# 1 # n )j G g 6= ; g. (X) = f hg; Si j S = f d j rst (d) = G last (d) = ; hg; i 2 X answer (d) 2 g [ f d j rst (d) = G; last (d) 6= g; S 6= ; g: It is easy to see that P 1 P 2 i for any goal G G has the same computed answer substitutions in P 1 and in P From the observables to the abstract semantics Once we have an observable : D! D we want to systematically derive the abstract semantics. The idea is to dene the optimal abstract versions of the various semantic operators and then check under which conditions (on the observable) we obtain the optimal abstract semantics. This will allow us to identify some interesting classes of observables. We start by dening the optimal abstract counterparts of the basic operators dened on I. Hence 8S; S 1 ; S 2 ; S i 2 D ~ P f Si g i2i = ( P f (S i ) g i2i ) A~ S = (A (S)) S 1 ~ S 2 = ((S 1 ) (S 2 )) S 1 ~on S 2 = ((S 1 ) on (S 2 )). Once we have the optimal abstract operators we can dene the corresponding abstract semantics obtained from the denotational and operational semantics of SLDderivations by replacing the basic semantic operators by their optimal abstract versions. Q [G in P ] = G [G] lfp P [P ] G [] S = (f g) G [A; G] S = A [A] S ~ G [G] S A [A] S = A~ S P [;] S = (Idj I ) P [fcg [ P ] S = C [c] S ~+ P [P ] S C [p(t) :? B] S = (tree (p(t) :? B)) ~on G [B] S ; F [P ] = lfp P [P ] = P [P ] "!: S 2 D; c 2 P; A 2 Atoms; S < S ~on? (A~ (tree (c))) ~ (Id) T P;? S; S ~on? (A~ (tree (c))) ~ (Id)

12 T P; (S 1 ; S 0 1); T P; (S 2 ; S 0 2) T P; (S 1 ~+ S 2 ; S 0 1 ~+ S 0 2) B [G in P ] = ~ P f S j T P; ((f G g); S) g O [P ] = ~ P f B [p(x) in P ] g p(x)2goals: We are looking for conditions which guarantee that this denition does not lead to a loss of precision. 4.4 Perfect observables The rst class of observables we consider is the class of observables for which both the abstract denotational and the abstract operational semantics are as precise as possible. As a consequence we can equivalently compute the abstract property in a top-down and in a bottom-up way by mimicking the concrete computations. Denition 4.4 Let : D! D be an observable. Then is a perfect observable if i. ( P f D i g i2i ) = ( P f ( )D i g i2i ) ii. (A D) = (A ( )D) iii. (D 1 D 2 ) = (( )D 1 ( )D 2 ) iv. (D 1 on D 2 ) = (( )D 1 on ( )D 2 ). Example 4.5 We consider the computed resultants observable dened by = ~ (D) = f hg; Ri j R = f G# B j hg; Si 2 D # n G # 1?! c 1 : : :?! c n B 2 S; # = (# 1 # n ) j G g R 6= ; g: (X) = f hg; Si j S = wf (f d j rst (d) = G hg; Ri 2 X G# last (d) 2 R # = answer (d) g) R 6= ; g: where wf (S) is the (greatest) well-formed subset of any S Deriv. It is easy to show that and satisfy the conditions of Denition 4.4. Hence computed resultants are a perfect observable. The ~ ~on and ~ operations are A~ X = f ha; Ri j R = f (A B)# j hh; R 0 i is a renamed apart element of X H B 2 R 0 there exists s.t. A = H and # = mgu (A; H 0 ) g R 6= ; g; X 1 ~ X 2 = f hg; Ri j R = f ((G 0 1; G 0 2) B)# j G = (G 1 ) hg 1 ; R 1 i 2 X 1 hg 2 ; R 1 i 2 X 2 r 1 = G 0 B R 1 r 2 = G 0 B R 2 var (r 1 ) \ var (r 2 ) var (G 1 ) \ var (G 2 ) and if B 1 6= then # = mgu (G 0 1; G 1 ) and B = (B 1 ) else B = B 2 and # = mgu ((G 1 ); (G 0 1; G 0 2)) g R 6= ; g

13 X 1 ~on X 2 = f hg; Ri j hg; R 1 i 2 X 1 R = R 1 [ f (G 0 G 3 )# j r 1 = G 0 G 2 2 R 1 hg 2 ; R 2 i 2 X 2 r 2 = G 0 2 G 3 2 R 2 var (r 1 ) \ var (r 2 ) = var (G 2 ) # = mgu (G 2 ; G 0 2) g g. while the optimal ~P operation turns out to be pair set union. Another interesting observable which can be proved to be perfect is the proof trees observable whose corresponding derivation is the Heyting semantics in [16 15]. Note that there exist observables which are not perfect. For example the observable of example 4.3 is not a perfect observable since the axiom (4.4.iv) does not hold. The following theorem shows that the abstract denotational semantics and the bottom-up denotation are precise. Theorem 4.6 Let : D! D be a perfect observable c be a clause A be an atom G be a goal and P be a program. Then (A [A] I ) = A [A] (I ) (G [G] I ) = G [G] (I ) (C [c] I ) = C [c] (I ) (P [P ] I ) = P [P ] (I ) P [P ] is continuous on D (F [P ]) = F [P ] (Q [G in P ]) = Q [G in P ]: The following theorem shows that the abstract transition relation is also precise. Theorem 4.7 Let : D! D be a perfect observable and P be a program. Then 8D; D 0 2 D T P (D; D 0 ) () T P; ((D); (D 0 )): We show now that all the properties of SLD-derivations stated in Section 3.2 hold for the abstract top-down denotation for any perfect observable as well. Corollary 4.8 Let : D! D be a perfect observable A be an atom G G 1 G 2 be goals and P P 1 P 2 be programs. Then B [A in P ] = A~ O [P ]; B [G 1 in P ] = B [G 1 in P ] ~ B [G 2 in P ]; B [ in P ] = (f g); B [A; G in P ] = A~ O [P ] ~ B [G in P ]; P 1 P 2 () O [P 1 ] = O [P 2 ]: In order to express the abstract OR-compositionality we have to dene also the operator ~] S 1 ~]S 2 = fs 1 ~+ S 2 g where fs g is the least solution of the equation fs g = (Idj I ) ~+ ~ P f fs g ~on((a~ S) (Id)) g A2Atoms :

14 Theorem 4.9 Let : D! D be a perfect observable c be a clause and P P 1 P 2 be programs. Then O [P 1 [ P 2 ] = O [P 1 ] ~] O [P 1 ]; We can now show that the operational semantics and the top-down denotation are indeed precise. Corollary 4.10 Let : D! D be a perfect observable G be a goal and P be a program. Then (B [G in P ]) = B [G in P ] and (O [P ]) = O [P ]: Finally we can prove the equivalences between the denotational and the operational semantics on one side and between the top-down and bottom-up denotations on the other side. Corollary 4.11 Let : D! D be a perfect observable G be a goal and P be a program. Then O [P ] = F [P ] and Q [G in P ] = B [G in P ]: There are several examples of observables for which ~on is not precise (for example as already mentioned computed answers). We can still try to dene the semantics by choosing the optimal abstractions for an upper level semantic operation. In the denotational semantics the operator on is only used to dene the semantic function C. We obtain a new class of observables by taking the optimal abstraction ~ C. 4.5 Denotational observables To dene a denotational observable we relax the optimality condition of axiom (4.4.iv) and admit a ~on operator which is not precise. Hence every perfect observable is a denotational observable but the converse does not hold. Denition 4.12 Let : D! D be an observable. observable if i. ( P f D i g i2i ) = ( P f ( )D i g i2i ) ii. (A D) = (A ( )D) Then is a denotational iii. (D 1 D 2 ) = (( )D 1 ( )D 2 ) iv. (D 1 on D 2 ) = (D 1 on ( )D 2 ). The following theorem shows that under these conditions we can just replace C by the optimal abstraction ~ C of C to make the denition precise. ~C [c] = C [c] : Theorem 4.13 Let be a denotational observable. Then (C [c] I ) = ~ C [c] (I ) :

15 As a consequence the abstract denotational semantics and bottom-up denotation are precise. In particular F [P ] = (O [P ]). Hence F is correct and minimal w.r.t.. Example 4.14 We show now how to reconstruct the s-semantics [6 7] by means of the observable of example 4.3. We can prove that is indeed a denotational observable since the condition (4.12.iv) now holds. The abstract operation ~ P turns out to be pair set union while ~ and ~ are: A~ X = f ha; i j = f # j hh; 0 i is a renamed apart version of an element in X # s.t. A = H and # = mgu (A; H# 0 )j A g 6= ; g X 1 ~ X 2 = f hg; i j = f # j G = (G 1 ) hg 1 ; 1 i 2 X 1 hg 2 ; 2 i 2 X 2 # # var (# 1 ) \ var (# 2 ) var (G 1 ) \ var (G 2 ) and # = mgu ((G 1 ); (G 1 # 1 # 2 ))j G g 6= ; g. The abstract semantic function is ~C [p(t) :? B] X = f hp(x); i j = f # j x are new variables ha i ; i i are renamed apart elements of X # i 2 i and # = (f x=t gmgu (B; (A 1 # 1 ; : : : ; A n # n )))j x g 6= ; g. The abstraction of the top-down denotation (O [P ]) = f hp(x); i j = f # j p(x) # 1?! c 1 : : :?! c n # = (# 1 # n ) j p(x) c i 2 P g 6= ; g = : is isomorphic to the top-down denition of the s-semantics O s [P ]. It is easy to see that it is just a matter of representation. In the s-semantics case the substitution is simply applied to the general atom while in our case is not. The same isomorphism holds between the abstract semantic function P [P ] X = f hp(x); i j = f # j 9 p(t) :? B 1 ; : : : ; B n 2 P x are new variables ha i ; i i are renamed apart elements of X # i 2 i # = (f x=t g# 0 )j x and # 0 = mgu ((B 1 ; : : : ; B n ); (A 1 # 1 ; : : : ; A n # n )) g 6= ; g. and the immediate consequences operator of the s-semantics. From Theorem 4.11 and 4.8 we can derive the usual properties of the s-semantics namely that F [P ] is correct and minimal w.r.t. computed answers and that the answers computed for any goal can be obtained from the answers computed for the most general atomic goals. The proof of the same results using classical methods [6] is much harder. # n

16 Example 4.15 The call patterns (with state) of a program P for a goal G are the atoms selected in any SLD-derivation of G in P via R. We dene the domain of the objects of the form hg; C; #i where the interpretation is \the execution of the goal G generates a procedure call C with state (computed answer substitution) #". Note that C can be. The abstraction which allows us to obtain the call patterns is (D) = f hg; Ri j R = f hc; #i j hg; Si 2 D G # 1?! c 1 : : : # n?! c n C; B 2 S # = (# 1 # n ) j G and B 6= ) C 6= g R 6= ; g: (X) = f hg; Si j S = wf (f d j rst (d) = G hg; Ri 2 X last (d) = (C; B) hc; answer (d)i 2 R and B 6= ) C 6= g) S 6= ; g: where wf (S) is the (greatest) well-formed subset of any S Deriv. The axioms (4.12.i ii iii iv) are satised while the axiom (4.4.iv) is not. Hence is a denotational observable. The operation ~ P turns out to be pair set union while ~ and ~ are: A~ X = f ha; Ri j R = f hc#; #j A i j hh; R 0 i is a renamed apart element of X hc; # 0 i 2 R 0 there exists s.t. A = H and # = mgu (A; H# 0 ) g R 6= ; g; X 1 ~ X 2 = f hg; Ri j R = f hc; #i j G = G 1 hg 1 ; R 1 i 2 X 1 hg 2 ; R 2 i 2 X 2 r 1 = hc 1 ; # 1 i 2 R 1 r 2 = hc 2 ; # 2 i 2 R 2 var (r 1 ) \ var (r 2 ) var (G 1 ) \ var (G 2 ) and if C 1 6= then hc; #i = hc 1 ; # 1 i else C = C 2 and # = mgu ((G 1 ); (G 1 # 1 # 2 ))j G g R 6= ; g: The abstract semantic function is ~C [p(t) :? B] X = f hp(x); Ri j R = f hc# 0 ; #i j B = B 0 ; B 00 x are new variables 9k s.t. hp i (x i ); R i i are renamed apart elements of X 8i < k h; # i i 2 R i hc; # k i 2 R k # = (f x=t g# 0 ) j x # 0 = mgu ((B); (p 1 (x 1 )# 1 ; : : : ; p k (x k )# k )) and B 00 6= ) C 6= g R 6= ; g:

17 5 Conclusions and Future Work The main feature of our construction is that we have now a powerful framework where we can easily reason about operational properties of denite logic programs. The overall construction has several similarities with the abstract interpretation frameworks which were one of the sources of inspiration. The main dierence has to do with the fact that we are concerned with abstractions which are not only correct but also precise. As a consequence we don't have to worry about the design of good abstract operators since we always automatically obtain the best operators. A second peculiarity of our framework is that we handle a denotational and operational semantics in an uniform way. This allows us to reason about the relation between the two denitions. We are currently working on an extension of the framework where we relax the requirement about precision by moving to the standard notion of correct approximation. This will allow us to accommodate abstract semantics useful for program analysis. Our extended algebraic framework will allow us to discuss various issues related to the denition of abstract domains useful for program analysis by providing the tools for formally comparing top-down and bottom-up analyses. We are currently P studying other classes of observables where the conditions on the operators and are not satised. This is typically the case P in observables used in program analysis. For example the abstract version of is often forced to loose precision in order to achieve termination. We are also considering the properties of those observables which are obtained by composition of observables of dierent classes. References [1] K. R. Apt. Introduction to Logic Programming. In J. van Leeuwen editor Handbook of Theoretical Computer Science volume B: Formal Models and Semantics pages 495{574. Elsevier Amsterdam and The MIT Press Cambridge [2] A. Bossi M. Gabbrielli G. Levi and M. Martelli. The s-semantics approach: Theory and applications. Journal of Logic Programming 19-20:149{ [3] M. Comini and G. Levi. An algebraic theory of observables. In M. Bruynooghe editor Proceedings of the 1994 Int'l Symposium on Logic Programming pages 172{186. The MIT Press Cambridge Mass [4] P. Cousot and R. Cousot. Systematic Design of Program Analysis Frameworks. In Proc. Sixth ACM Symp. Principles of Programming Languages pages 269{ [5] S. K. Debray and P. Mishra. Denotational and Operational Semantics for Prolog. Journal of Logic Programming 5:61{

18 [6] M. Falaschi G. Levi M. Martelli and C. Palamidessi. Declarative Modeling of the Operational Behavior of Logic Languages. Theoretical Computer Science 69(3):289{ [7] M. Falaschi G. Levi M. Martelli and C. Palamidessi. A Model-Theoretic Reconstruction of the Operational Semantics of Logic Programs. Information and Computation 102(1):86{ [8] M. Gabbrielli. The Semantics of Logic Programming as a Programming Language. PhD thesis Dipartimento di Informatica Universita di Pisa [9] M. Gabbrielli G. Levi and M. C. Meo. Observational Equivalences for Logic Programs. In K. Apt editor Proc. Joint Int'l Conf. and Symposium on Logic Programming pages 131{145. The MIT Press Cambridge Mass Extended version to appear in Information and Computation. [10] M. Gabbrielli G. Levi and M. C. Meo. Resultants semantics for PROLOG. Journal of Logic and Computation [11] M. Gabbrielli and M. C. Meo. Fixpoint Semantics for Partial Computed Answer Substitutions and Call Patterns. In H. Kirchner and G. Levi editors Algebraic and Logic Programming Proceedings of the Third International Conference volume 632 of Lecture Notes in Computer Science pages 84{99. Springer-Verlag Berlin [12] R. Giacobazzi. On the Collecting Semantics of Logic Programs. In F. S. de Boer and M. Gabbrielli editors Verication and Analysis of Logic Languages Proc. of the Post-Conference ICLP Workshop pages 159{ [13] N. D. Jones and A. Mycroft. Stepwise Development of Operational and Denotational Semantics for PROLOG. In Sten-Ake Tarnlund editor Proc. Second Int'l Conf. on Logic Programming pages 281{ [14] N. D. Jones and H. Sndergaard. A Semantics-based Framework for the Abstract Interpretation of PROLOG. In S. Abramsky and C. Hankin editors Abstract Interpretation of Declarative Languages pages 123{142. Ellis Horwood Ltd [15] R. Kemp and G. Ringwood. Reynolds base clark models and heyting semantics of logic programs. submitted for publication. [16] R. Kemp and G. Ringwood. An Algebraic Framework for the Abstract Interpretation of Logic Programs. In S. K. Debray and M. Hermenegildo editors Proc. North American Conf. on Logic Programming'90 pages 506{520. The MIT Press Cambridge Mass [17] J. W. Lloyd. Foundations of Logic Programming. Springer-Verlag Berlin Second edition.

Derivation of Proof Methods by Abstract. Giorgio Levi and Paolo Volpe. Abstract

Derivation of Proof Methods by Abstract. Giorgio Levi and Paolo Volpe. Abstract Derivation of roof Methods by Abstract Interpretation Giorgio Levi and aolo Volpe Abstract We study the application of abstract interpretation to the design of inductive methods for verifying properties

More information

Complementing Logic Program Semantics

Complementing Logic Program Semantics Complementing Logic Program Semantics Roberto Giacobazzi Francesco Ranzato Dipartimento di Informatica, Università di Pisa Corso Italia 40, 56125 Pisa, Italy giaco@di.unipi.it Dipartimento di Matematica

More information

A Preference Semantics. for Ground Nonmonotonic Modal Logics. logics, a family of nonmonotonic modal logics obtained by means of a

A Preference Semantics. for Ground Nonmonotonic Modal Logics. logics, a family of nonmonotonic modal logics obtained by means of a A Preference Semantics for Ground Nonmonotonic Modal Logics Daniele Nardi and Riccardo Rosati Dipartimento di Informatica e Sistemistica, Universita di Roma \La Sapienza", Via Salaria 113, I-00198 Roma,

More information

The non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω

The non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω 1 Preliminaries In this chapter we first give a summary of the basic notations, terminology and results which will be used in this thesis. The treatment here is reduced to a list of definitions. For the

More information

Boolean Algebra and Propositional Logic

Boolean Algebra and Propositional Logic Boolean Algebra and Propositional Logic Takahiro Kato June 23, 2015 This article provides yet another characterization of Boolean algebras and, using this characterization, establishes a more direct connection

More information

Boolean Algebra and Propositional Logic

Boolean Algebra and Propositional Logic Boolean Algebra and Propositional Logic Takahiro Kato September 10, 2015 ABSTRACT. This article provides yet another characterization of Boolean algebras and, using this characterization, establishes a

More information

Design of abstract domains using first-order logic

Design of abstract domains using first-order logic Centrum voor Wiskunde en Informatica REPORTRAPPORT Design of abstract domains using first-order logic E. Marchiori Computer Science/Department of Interactive Systems CS-R9633 1996 Report CS-R9633 ISSN

More information

1 Introduction 1.1 Motivation Theory of logic programming allows us to treat formally only pure Prolog programs, that is those whose syntax is based o

1 Introduction 1.1 Motivation Theory of logic programming allows us to treat formally only pure Prolog programs, that is those whose syntax is based o A Declarative Approach for First-Order Built-in's of Prolog Krzysztof R. Apt CWI P.O. Box 4079, 1009 AB Amsterdam, The Netherlands and Faculty of Mathematics and Computer Science University of Amsterdam,

More information

Weak Relative Pseudo-Complements of Closure Operators

Weak Relative Pseudo-Complements of Closure Operators Weak Relative Pseudo-Complements of Closure Operators Roberto Giacobazzi Catuscia Palamidessi Francesco Ranzato Dipartimento di Informatica, Università di Pisa Corso Italia 40, 56125 Pisa, Italy giaco@di.unipi.it

More information

Partial model checking via abstract interpretation

Partial model checking via abstract interpretation Partial model checking via abstract interpretation N. De Francesco, G. Lettieri, L. Martini, G. Vaglini Università di Pisa, Dipartimento di Ingegneria dell Informazione, sez. Informatica, Via Diotisalvi

More information

Wojciech Penczek. Polish Academy of Sciences, Warsaw, Poland. and. Institute of Informatics, Siedlce, Poland.

Wojciech Penczek. Polish Academy of Sciences, Warsaw, Poland. and. Institute of Informatics, Siedlce, Poland. A local approach to modal logic for multi-agent systems? Wojciech Penczek 1 Institute of Computer Science Polish Academy of Sciences, Warsaw, Poland and 2 Akademia Podlaska Institute of Informatics, Siedlce,

More information

Uniform Closures: Order-Theoretically Reconstructing Logic Program Semantics and Abstract Domain Refinements

Uniform Closures: Order-Theoretically Reconstructing Logic Program Semantics and Abstract Domain Refinements Information and Computation 145, 153190 (1998) Article No. IC982724 Uniform Closures: Order-Theoretically Reconstructing Logic Program Semantics and Abstract Domain Refinements Roberto Giacobazzi Dipartimento

More information

On 3-valued paraconsistent Logic Programming

On 3-valued paraconsistent Logic Programming Marcelo E. Coniglio Kleidson E. Oliveira Institute of Philosophy and Human Sciences and Centre For Logic, Epistemology and the History of Science, UNICAMP, Brazil Support: FAPESP Syntax Meets Semantics

More information

The Intensional Implementation Technique for Chain. Datalog Programs. P.O. BOX 1186, Ioannina, Greece, A. Paraskevi Attikis, Greece

The Intensional Implementation Technique for Chain. Datalog Programs. P.O. BOX 1186, Ioannina, Greece, A. Paraskevi Attikis, Greece The Intensional Implementation Technique for Chain Datalog Programs P. Rondogiannis 1 and M. Gergatsoulis 2 1 Dept. of Computer Science, University of Ioannina, P.O. BOX 1186, 45110 Ioannina, Greece, e

More information

An Abstract Interpretation Framework for Semantics and Diagnosis of Lazy Functional-Logic Languages

An Abstract Interpretation Framework for Semantics and Diagnosis of Lazy Functional-Logic Languages Università degli Studi di Udine Dipartimento di Matematica e Informatica Dottorato di Ricerca in Informatica Ph.D. Thesis An Abstract Interpretation Framework for Semantics and Diagnosis of Lazy Functional-Logic

More information

Guarded resolution for Answer Set Programming

Guarded resolution for Answer Set Programming Under consideration for publication in Theory and Practice of Logic Programming 1 Guarded resolution for Answer Set Programming V.W. Marek Department of Computer Science, University of Kentucky, Lexington,

More information

Understanding Finiteness Analysis Using Abstract

Understanding Finiteness Analysis Using Abstract Understanding Finiteness Analysis Using Abstract Interpretation (Extended Abstract) 1 Peter A. Bigot Saumya Debray Department of Computer Science The University of Arizona Tucson, AZ 85721 fpab, debrayg@cs.arizona.edu

More information

signicant in view of the fact that in many applications existential queries are of main interest. It also plays an important role in the problem of nd

signicant in view of the fact that in many applications existential queries are of main interest. It also plays an important role in the problem of nd On the Relationship Between CWA, Minimal Model and Minimal Herbrand Model Semantics Michael Gelfond Halina Przymusinska Teodor Przymusinski March 3, 1995 Abstract The purpose of this paper is to compare

More information

Quantum logics with given centres and variable state spaces Mirko Navara 1, Pavel Ptak 2 Abstract We ask which logics with a given centre allow for en

Quantum logics with given centres and variable state spaces Mirko Navara 1, Pavel Ptak 2 Abstract We ask which logics with a given centre allow for en Quantum logics with given centres and variable state spaces Mirko Navara 1, Pavel Ptak 2 Abstract We ask which logics with a given centre allow for enlargements with an arbitrary state space. We show in

More information

Transformation Rules for Locally Stratied Constraint Logic Programs

Transformation Rules for Locally Stratied Constraint Logic Programs Transformation Rules for Locally Stratied Constraint Logic Programs Fabio Fioravanti 1, Alberto Pettorossi 2, Maurizio Proietti 3 (1) Dipartimento di Informatica, Universit dell'aquila, L'Aquila, Italy

More information

Compositional Analysis for. Mara Alpuente, Moreno Falaschi and German Vidal. Departamento de Sistemas Informaticos y Computacion,

Compositional Analysis for. Mara Alpuente, Moreno Falaschi and German Vidal. Departamento de Sistemas Informaticos y Computacion, Compositional Analysis for Equational Horn Programs? Mara Alpuente, Moreno Falaschi and German Vidal 1 2 1 1 Departamento de Sistemas Informaticos y Computacion, Universidad Politecnica de Valencia, Camino

More information

On Controllability and Normality of Discrete Event. Dynamical Systems. Ratnesh Kumar Vijay Garg Steven I. Marcus

On Controllability and Normality of Discrete Event. Dynamical Systems. Ratnesh Kumar Vijay Garg Steven I. Marcus On Controllability and Normality of Discrete Event Dynamical Systems Ratnesh Kumar Vijay Garg Steven I. Marcus Department of Electrical and Computer Engineering, The University of Texas at Austin, Austin,

More information

SOCLP: A Set Oriented Calculus for Logic Programming

SOCLP: A Set Oriented Calculus for Logic Programming SOCLP: A Set Oriented Calculus for Logic Programming Rafael Caballero Y. García-Ruiz F. Sáenz-Pérez TECHNICAL REPORT SIP - 02/2006 Dep. Lenguajes, Sistemas Informáticos y Programación Univ. Complutense

More information

A hierarchy of Constraint Systems for Data-Flow Analysis of Constraint Logic-Based Languages

A hierarchy of Constraint Systems for Data-Flow Analysis of Constraint Logic-Based Languages A hierarchy of Constraint Systems for Data-Flow Analysis of Constraint Logic-Based Languages Roberto Bagnara Dipartimento di Informatica, Università di Pisa, Corso Italia 40, 56125 Pisa, Italy Abstract

More information

and combine the results of the searches. We consider parallel search with subdivision, although most notions can be generalized to using dierent searc

and combine the results of the searches. We consider parallel search with subdivision, although most notions can be generalized to using dierent searc On the representation of parallel search in theorem proving Maria Paola Bonacina Department of Computer Science { The University of Iowa Abstract This extended abstract summarizes two contributions from

More information

1 Introduction A general problem that arises in dierent areas of computer science is the following combination problem: given two structures or theori

1 Introduction A general problem that arises in dierent areas of computer science is the following combination problem: given two structures or theori Combining Unication- and Disunication Algorithms Tractable and Intractable Instances Klaus U. Schulz CIS, University of Munich Oettingenstr. 67 80538 Munchen, Germany e-mail: schulz@cis.uni-muenchen.de

More information

Abstract Interpretation from a Topological Perspective

Abstract Interpretation from a Topological Perspective (-: / 1 Abstract Interpretation from a Topological Perspective David Schmidt Kansas State University www.cis.ksu.edu/ schmidt Motivation and overview of results (-: / 2 (-: / 3 Topology studies convergent

More information

Computational Logic Fundamentals (of Definite Programs): Syntax and Semantics

Computational Logic Fundamentals (of Definite Programs): Syntax and Semantics Computational Logic Fundamentals (of Definite Programs): Syntax and Semantics 1 Towards Logic Programming Conclusion: resolution is a complete and effective deduction mechanism using: Horn clauses (related

More information

Characterising FS domains by means of power domains

Characterising FS domains by means of power domains Theoretical Computer Science 264 (2001) 195 203 www.elsevier.com/locate/tcs Characterising FS domains by means of power domains Reinhold Heckmann FB 14 Informatik, Universitat des Saarlandes, Postfach

More information

2 C. A. Gunter ackground asic Domain Theory. A poset is a set D together with a binary relation v which is reexive, transitive and anti-symmetric. A s

2 C. A. Gunter ackground asic Domain Theory. A poset is a set D together with a binary relation v which is reexive, transitive and anti-symmetric. A s 1 THE LARGEST FIRST-ORDER-AXIOMATIZALE CARTESIAN CLOSED CATEGORY OF DOMAINS 1 June 1986 Carl A. Gunter Cambridge University Computer Laboratory, Cambridge C2 3QG, England Introduction The inspiration for

More information

A Semantic Basis for Specialising Domain Constraints

A Semantic Basis for Specialising Domain Constraints A Semantic Basis for Specialising Domain Constraints Jacob M. Howe 1 and Andy King 2 Computing Laboratory, University of Kent, Canterbury, CT2 7NF, UK Abstract This paper formalises an analysis of finite

More information

Abductive Disjunctive Logic Programming. Ullrich Hustadt

Abductive Disjunctive Logic Programming. Ullrich Hustadt Abductive Disjunctive Logic Programming Ullrich Hustadt Max-Planck-Institut fur Informatik, Im Stadtwald, W-6600 Saarbrucken, Germany Phone: (+9 681) 302-531, Fax: (+9 681) 302-530, E-mail: Ullrich.Hustadt@mpi-sb.mpg.de

More information

Reasoning: From Basic Entailments. to Plausible Relations. Department of Computer Science. School of Mathematical Sciences. Tel-Aviv University

Reasoning: From Basic Entailments. to Plausible Relations. Department of Computer Science. School of Mathematical Sciences. Tel-Aviv University General Patterns for Nonmonotonic Reasoning: From Basic Entailments to Plausible Relations Ofer Arieli Arnon Avron Department of Computer Science School of Mathematical Sciences Tel-Aviv University Tel-Aviv

More information

Extremal problems in logic programming and stable model computation Pawe l Cholewinski and Miros law Truszczynski Computer Science Department Universi

Extremal problems in logic programming and stable model computation Pawe l Cholewinski and Miros law Truszczynski Computer Science Department Universi Extremal problems in logic programming and stable model computation Pawe l Cholewinski and Miros law Truszczynski Computer Science Department University of Kentucky Lexington, KY 40506-0046 fpaweljmirekg@cs.engr.uky.edu

More information

SLD-Resolution And Logic Programming (PROLOG)

SLD-Resolution And Logic Programming (PROLOG) Chapter 9 SLD-Resolution And Logic Programming (PROLOG) 9.1 Introduction We have seen in Chapter 8 that the resolution method is a complete procedure for showing unsatisfiability. However, finding refutations

More information

Loop Formulas for Disjunctive Logic Programs

Loop Formulas for Disjunctive Logic Programs Nineteenth International Conference on Logic Programming (ICLP-03), pages 451-465, Mumbai, India, 2003 Loop Formulas for Disjunctive Logic Programs Joohyung Lee and Vladimir Lifschitz Department of Computer

More information

Static Program Analysis using Abstract Interpretation

Static Program Analysis using Abstract Interpretation Static Program Analysis using Abstract Interpretation Introduction Static Program Analysis Static program analysis consists of automatically discovering properties of a program that hold for all possible

More information

Implementing -Reduction by. Hypergraph Rewriting. Sabine Kuske 1. Fachbereich Mathematik und Informatik. Universitat Bremen. D{28334 Bremen, Germany

Implementing -Reduction by. Hypergraph Rewriting. Sabine Kuske 1. Fachbereich Mathematik und Informatik. Universitat Bremen. D{28334 Bremen, Germany URL: http://www.elsevier.nl/locate/entcs/volume2.html 8 pages Implementing -Reduction by Hypergraph Rewriting abine Fachbereich Mathematik und Informatik Universitat Bremen D{28334 Bremen, Germany email:

More information

7. F.Balarin and A.Sangiovanni-Vincentelli, A Verication Strategy for Timing-

7. F.Balarin and A.Sangiovanni-Vincentelli, A Verication Strategy for Timing- 7. F.Balarin and A.Sangiovanni-Vincentelli, A Verication Strategy for Timing- Constrained Systems, Proc. 4th Workshop Computer-Aided Verication, Lecture Notes in Computer Science 663, Springer-Verlag,

More information

Applications of the Situation Calculus To Formalizing. Control and Strategic Information: The Prolog Cut Operator. Fangzhen Lin

Applications of the Situation Calculus To Formalizing. Control and Strategic Information: The Prolog Cut Operator. Fangzhen Lin Applications of the Situation Calculus To Formalizing Control and Strategic Information: The Prolog Cut Operator Fangzhen Lin (in@csusthk) Department of Computer Science The Hong Kong University of Science

More information

A version of for which ZFC can not predict a single bit Robert M. Solovay May 16, Introduction In [2], Chaitin introd

A version of for which ZFC can not predict a single bit Robert M. Solovay May 16, Introduction In [2], Chaitin introd CDMTCS Research Report Series A Version of for which ZFC can not Predict a Single Bit Robert M. Solovay University of California at Berkeley CDMTCS-104 May 1999 Centre for Discrete Mathematics and Theoretical

More information

Equational Logic. Chapter Syntax Terms and Term Algebras

Equational Logic. Chapter Syntax Terms and Term Algebras Chapter 2 Equational Logic 2.1 Syntax 2.1.1 Terms and Term Algebras The natural logic of algebra is equational logic, whose propositions are universally quantified identities between terms built up from

More information

Complementation in Abstract Interpretation

Complementation in Abstract Interpretation Complementation in Abstract Interpretation Agostino Cortesi Gilberto Filé Roberto Giacobazzi Catuscia Palamidessi Francesco Ranzato Abstract. The reduced product of abstract domains is a rather well known

More information

Continuity of partially ordered soft sets via soft Scott topology and soft sobrification A. F. Sayed

Continuity of partially ordered soft sets via soft Scott topology and soft sobrification A. F. Sayed Bulletin of Mathematical Sciences and Applications Online: 2014-08-04 ISSN: 2278-9634, Vol. 9, pp 79-88 doi:10.18052/www.scipress.com/bmsa.9.79 2014 SciPress Ltd., Switzerland Continuity of partially ordered

More information

2 PLTL Let P be a set of propositional variables. The set of formulae of propositional linear time logic PLTL (over P) is inductively dened as follows

2 PLTL Let P be a set of propositional variables. The set of formulae of propositional linear time logic PLTL (over P) is inductively dened as follows Translating PLTL into WSS: Application Description B. Hirsch and U. Hustadt Department of Computer Science, University of Liverpool Liverpool L69 7ZF, United Kingdom, fb.hirsch,u.hustadtg@csc.liv.ac.uk

More information

Dipartimento di Matematica e Informatica, Universita di Udine. This paper proposes a modal logic reconstruction of temporal reasoning

Dipartimento di Matematica e Informatica, Universita di Udine. This paper proposes a modal logic reconstruction of temporal reasoning A Modal Calculus of Partially Ordered Events in a Logic Programming Framework Iliano Cervesato 1 Dipartimento di Informatica, Universita di Torino Corso Svizzera 185, 10149 Torino - ITALY iliano@di.unito.it

More information

Diagram-based Formalisms for the Verication of. Reactive Systems. Anca Browne, Luca de Alfaro, Zohar Manna, Henny B. Sipma and Tomas E.

Diagram-based Formalisms for the Verication of. Reactive Systems. Anca Browne, Luca de Alfaro, Zohar Manna, Henny B. Sipma and Tomas E. In CADE-1 Workshop on Visual Reasoning, New Brunswick, NJ, July 1996. Diagram-based Formalisms for the Verication of Reactive Systems Anca Browne, Luca de Alfaro, Zohar Manna, Henny B. Sipma and Tomas

More information

example like a b, which is obviously not true. Using our method, examples like this will quickly halt and say there is no solution. A related deciency

example like a b, which is obviously not true. Using our method, examples like this will quickly halt and say there is no solution. A related deciency Goal-Directed E-Unication Christopher Lynch and Barbara Morawska Department of Mathematics and Computer Science Box 5815, Clarkson University, Potsdam, NY 13699-5815, USA, E-mail: clynch@clarkson.edu,morawskb@clarkson.edu??

More information

Introduction to Kleene Algebra Lecture 14 CS786 Spring 2004 March 15, 2004

Introduction to Kleene Algebra Lecture 14 CS786 Spring 2004 March 15, 2004 Introduction to Kleene Algebra Lecture 14 CS786 Spring 2004 March 15, 2004 KAT and Hoare Logic In this lecture and the next we show that KAT subsumes propositional Hoare logic (PHL). Thus the specialized

More information

Reinhold Heckmann. FB 14 { Informatik. D-6600 Saarbrucken. Bundesrepublik Deutschland. September 10, Abstract

Reinhold Heckmann. FB 14 { Informatik. D-6600 Saarbrucken. Bundesrepublik Deutschland. September 10, Abstract Power Domain Constructions Reinhold Heckmann FB 14 { Informatik Universitat des Saarlandes D-6600 Saarbrucken Bundesrepublik Deutschland email: heckmann@cs.uni-sb.de September 10, 1998 Abstract The variety

More information

Advanced Topics in LP and FP

Advanced Topics in LP and FP Lecture 1: Prolog and Summary of this lecture 1 Introduction to Prolog 2 3 Truth value evaluation 4 Prolog Logic programming language Introduction to Prolog Introduced in the 1970s Program = collection

More information

In pure logic programming, SLD resolution ([7]) will loop innitely as soon as a cycle occurs in the denition of arc (for instance arc(1; 2) and arc(2;

In pure logic programming, SLD resolution ([7]) will loop innitely as soon as a cycle occurs in the denition of arc (for instance arc(1; 2) and arc(2; A Rewrite Approach for Constraint Logic Programming Gilles Richard 1 and Frederic Saubion 1 LIFO, Dept. d'informatique, Universite d'orleans, 45067 Orleans Cedex 02 (France), e-mail: frichard, saubiong@lifo.univ-orleans.fr

More information

Linear Algebra (part 1) : Vector Spaces (by Evan Dummit, 2017, v. 1.07) 1.1 The Formal Denition of a Vector Space

Linear Algebra (part 1) : Vector Spaces (by Evan Dummit, 2017, v. 1.07) 1.1 The Formal Denition of a Vector Space Linear Algebra (part 1) : Vector Spaces (by Evan Dummit, 2017, v. 1.07) Contents 1 Vector Spaces 1 1.1 The Formal Denition of a Vector Space.................................. 1 1.2 Subspaces...................................................

More information

Real-Time Logics: Fictitious Clock as an Abstraction of Dense Time Jean-Francois Raskin and Pierre-Yves Schobbens Computer

Real-Time Logics: Fictitious Clock as an Abstraction of Dense Time Jean-Francois Raskin and Pierre-Yves Schobbens Computer Facultes Universitaires Notre-Dame de la Paix Namur, Belgium Institut d'informatique Rue Grandgagnage, 21 B-5000 Namur BELGIUM Real-Time Logics: Fictitious Clock as an Abstraction of Dense Time Jean-Francois

More information

Principles of Program Analysis: Control Flow Analysis

Principles of Program Analysis: Control Flow Analysis Principles of Program Analysis: Control Flow Analysis Transparencies based on Chapter 3 of the book: Flemming Nielson, Hanne Riis Nielson and Chris Hankin: Principles of Program Analysis. Springer Verlag

More information

Non-elementary Lower Bound for Propositional Duration. Calculus. A. Rabinovich. Department of Computer Science. Tel Aviv University

Non-elementary Lower Bound for Propositional Duration. Calculus. A. Rabinovich. Department of Computer Science. Tel Aviv University Non-elementary Lower Bound for Propositional Duration Calculus A. Rabinovich Department of Computer Science Tel Aviv University Tel Aviv 69978, Israel 1 Introduction The Duration Calculus (DC) [5] is a

More information

A Declarative View of Inheritance in Logic Programming

A Declarative View of Inheritance in Logic Programming A Declarative View of Inheritance in Logic Programming M. Bugliesi Dipartimento di Matematica Pura ed Applicata Via Belzoni 7, Padova ITALY michele@blues.unipd.it Abstract We discuss a declarative characterization

More information

arxiv: v1 [cs.pl] 19 May 2016

arxiv: v1 [cs.pl] 19 May 2016 arxiv:1605.05858v1 [cs.pl] 19 May 2016 Domain Theory: An Introduction Robert Cartwright Rice University Rebecca Parsons ThoughtWorks, Inc. Moez AbdelGawad SRTA-City Hunan University This monograph is an

More information

Splitting a Default Theory. Hudson Turner. University of Texas at Austin.

Splitting a Default Theory. Hudson Turner. University of Texas at Austin. Splitting a Default Theory Hudson Turner Department of Computer Sciences University of Texas at Austin Austin, TX 7872-88, USA hudson@cs.utexas.edu Abstract This paper presents mathematical results that

More information

Equivalence for the G 3-stable models semantics

Equivalence for the G 3-stable models semantics Equivalence for the G -stable models semantics José Luis Carballido 1, Mauricio Osorio 2, and José Ramón Arrazola 1 1 Benemérita Universidad Autóma de Puebla, Mathematics Department, Puebla, México carballido,

More information

Computing the acceptability semantics. London SW7 2BZ, UK, Nicosia P.O. Box 537, Cyprus,

Computing the acceptability semantics. London SW7 2BZ, UK, Nicosia P.O. Box 537, Cyprus, Computing the acceptability semantics Francesca Toni 1 and Antonios C. Kakas 2 1 Department of Computing, Imperial College, 180 Queen's Gate, London SW7 2BZ, UK, ft@doc.ic.ac.uk 2 Department of Computer

More information

Part IV Basic procs 131 Chapter 10 Possible delay, Delay, Prex In this chapter the procs pdly, dly and pref are introduced. Those procs make it possible to compare chronicles in several ways. Important

More information

1 CHAPTER 1 INTRODUCTION 1.1 Background One branch of the study of descriptive complexity aims at characterizing complexity classes according to the l

1 CHAPTER 1 INTRODUCTION 1.1 Background One branch of the study of descriptive complexity aims at characterizing complexity classes according to the l viii CONTENTS ABSTRACT IN ENGLISH ABSTRACT IN TAMIL LIST OF TABLES LIST OF FIGURES iii v ix x 1 INTRODUCTION 1 1.1 Background : : : : : : : : : : : : : : : : : : : : : : : : : : : : 1 1.2 Preliminaries

More information

On the Structure of Rough Approximations

On the Structure of Rough Approximations On the Structure of Rough Approximations (Extended Abstract) Jouni Järvinen Turku Centre for Computer Science (TUCS) Lemminkäisenkatu 14 A, FIN-20520 Turku, Finland jjarvine@cs.utu.fi Abstract. We study

More information

Higher-Order Chaotic Iteration Sequences

Higher-Order Chaotic Iteration Sequences Higher-Order Chaotic Iteration Sequences Mads Rosendahl DIKU, University of Copenhagen Universitetsparken 1, DK-2100 Copenhagen Ø, Denmark E-mail rose@diku.dk 1993 Abstract Chaotic iteration sequences

More information

Chapter 7. Negation: Declarative Interpretation

Chapter 7. Negation: Declarative Interpretation Chapter 7 1 Outline First-Order Formulas and Logical Truth The Completion semantics Soundness and restricted completeness of SLDNF-Resolution Extended consequence operator An alternative semantics: Standard

More information

Propositional and Predicate Logic - V

Propositional and Predicate Logic - V Propositional and Predicate Logic - V Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - V WS 2016/2017 1 / 21 Formal proof systems Hilbert s calculus

More information

The semantics of ALN knowledge bases is the standard model-based semantics of rst-order logic. An interpretation I contains a non-empty domain O I. It

The semantics of ALN knowledge bases is the standard model-based semantics of rst-order logic. An interpretation I contains a non-empty domain O I. It Backward Reasoning in Aboxes for Query Answering Marie-Christine Rousset L.R.I. Computer Science Laboratory C.N.R.S & University of Paris-Sud Building 490, 91405, Orsay Cedex, France mcr@lri.fr Abstract

More information

distinct models, still insists on a function always returning a particular value, given a particular list of arguments. In the case of nondeterministi

distinct models, still insists on a function always returning a particular value, given a particular list of arguments. In the case of nondeterministi On Specialization of Derivations in Axiomatic Equality Theories A. Pliuskevicien_e, R. Pliuskevicius Institute of Mathematics and Informatics Akademijos 4, Vilnius 2600, LITHUANIA email: logica@sedcs.mii2.lt

More information

A Type-Coercion Problem in Computer Algebra

A Type-Coercion Problem in Computer Algebra Lecture Notes in Computer Science 737, pages 188 194 A Type-Coercion Problem in Computer Algebra Andreas Weber Wilhelm-Schickard-Institut Universität Tübingen W-7400 Tübingen, Germany hweber@informatik.uni-tuebingen.dei

More information

From Constructibility and Absoluteness to Computability and Domain Independence

From Constructibility and Absoluteness to Computability and Domain Independence From Constructibility and Absoluteness to Computability and Domain Independence Arnon Avron School of Computer Science Tel Aviv University, Tel Aviv 69978, Israel aa@math.tau.ac.il Abstract. Gödel s main

More information

Parsing MELL Proof Nets

Parsing MELL Proof Nets University of Pennsylvania ScholarlyCommons IRCS Technical Reports Series Institute for Research in Cognitive Science October 1996 Parsing MELL Proof Nets Stefano Guerrini University of Pennsylvania Andrea

More information

Abstract. In this paper we study clausal specications over built-in algebras. To keep things simple, we consider built-in algebras only that

Abstract. In this paper we study clausal specications over built-in algebras. To keep things simple, we consider built-in algebras only that Partial Functions in Clausal Specications? J. Avenhaus, K. Madlener Universitat Kaiserslautern e-mail: favenhaus, madlener g@informatik.uni-kl.de Abstract. In this paper we study clausal specications over

More information

Predicative Semantics of Loops Theodore S. Norvell Faculty of Engineering Memorial University of Newfoundland St. John's NF A1B 3X5 Canada

Predicative Semantics of Loops Theodore S. Norvell Faculty of Engineering Memorial University of Newfoundland St. John's NF A1B 3X5 Canada Predicative Semantics of Loops Theodore S. Norvell Faculty of Engineering Memorial University of Newfoundland St. John's NF A1B 3X5 Canada theo@engr.mun.ca www.engr.mun.ca/theo/ Abstract A predicative

More information

Notes on Abstract Interpretation

Notes on Abstract Interpretation Notes on Abstract Interpretation Alexandru Sălcianu salcianu@mit.edu November 2001 1 Introduction This paper summarizes our view of the abstract interpretation field. It is based on the original abstract

More information

The overlap algebra of regular opens

The overlap algebra of regular opens The overlap algebra of regular opens Francesco Ciraulo Giovanni Sambin Abstract Overlap algebras are complete lattices enriched with an extra primitive relation, called overlap. The new notion of overlap

More information

Data Cleaning and Query Answering with Matching Dependencies and Matching Functions

Data Cleaning and Query Answering with Matching Dependencies and Matching Functions Data Cleaning and Query Answering with Matching Dependencies and Matching Functions Leopoldo Bertossi 1, Solmaz Kolahi 2, and Laks V. S. Lakshmanan 2 1 Carleton University, Ottawa, Canada. bertossi@scs.carleton.ca

More information

Systems. Nancy Lynch and Frits Vaandrager. MIT Laboratory for Computer Science. Cambridge, MA 02139, USA

Systems. Nancy Lynch and Frits Vaandrager. MIT Laboratory for Computer Science. Cambridge, MA 02139, USA Forward and Backward Simulations for Timing-Based Systems Nancy Lynch and Frits Vaandrager MIT Laboratory for Computer Science Cambridge, MA 02139, USA Abstract. A general automaton model for timing-based

More information

Abstract Interpretation and Static Analysis

Abstract Interpretation and Static Analysis / 1 Abstract Interpretation and Static Analysis David Schmidt Kansas State University www.cis.ksu.edu/~schmidt Welcome! / 2 / 3 Four parts 1. Introduction to static analysis what it is and how to apply

More information

Multiplicative Conjunction and an Algebraic. Meaning of Contraction and Weakening. A. Avron. School of Mathematical Sciences

Multiplicative Conjunction and an Algebraic. Meaning of Contraction and Weakening. A. Avron. School of Mathematical Sciences Multiplicative Conjunction and an Algebraic Meaning of Contraction and Weakening A. Avron School of Mathematical Sciences Sackler Faculty of Exact Sciences Tel Aviv University, Tel Aviv 69978, Israel Abstract

More information

Restricted truth predicates in first-order logic

Restricted truth predicates in first-order logic Restricted truth predicates in first-order logic Thomas Bolander 1 Introduction It is well-known that there exist consistent first-order theories that become inconsistent when we add Tarski s schema T.

More information

Mathematical Foundations of Logic and Functional Programming

Mathematical Foundations of Logic and Functional Programming Mathematical Foundations of Logic and Functional Programming lecture notes The aim of the course is to grasp the mathematical definition of the meaning (or, as we say, the semantics) of programs in two

More information

Introduction to Logic in Computer Science: Autumn 2007

Introduction to Logic in Computer Science: Autumn 2007 Introduction to Logic in Computer Science: Autumn 2007 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Tableaux for First-order Logic The next part of

More information

Syntax of FOL. Introduction to Logic in Computer Science: Autumn Tableaux for First-order Logic. Syntax of FOL (2)

Syntax of FOL. Introduction to Logic in Computer Science: Autumn Tableaux for First-order Logic. Syntax of FOL (2) Syntax of FOL Introduction to Logic in Computer Science: Autumn 2007 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam The syntax of a language defines the way in which

More information

Interleaved Alldifferent Constraints: CSP vs. SAT Approaches

Interleaved Alldifferent Constraints: CSP vs. SAT Approaches Interleaved Alldifferent Constraints: CSP vs. SAT Approaches Frédéric Lardeux 3, Eric Monfroy 1,2, and Frédéric Saubion 3 1 Universidad Técnica Federico Santa María, Valparaíso, Chile 2 LINA, Université

More information

Yet Another Proof of the Strong Equivalence Between Propositional Theories and Logic Programs

Yet Another Proof of the Strong Equivalence Between Propositional Theories and Logic Programs Yet Another Proof of the Strong Equivalence Between Propositional Theories and Logic Programs Joohyung Lee and Ravi Palla School of Computing and Informatics Arizona State University, Tempe, AZ, USA {joolee,

More information

2 1. INTRODUCTION We study algebraic foundations of semantics of nonmonotonic knowledge representation formalisms. The algebraic framework we use is t

2 1. INTRODUCTION We study algebraic foundations of semantics of nonmonotonic knowledge representation formalisms. The algebraic framework we use is t Chapter 1 APPROXIMATIONS, STABLE OPERATORS, WELL-FOUNDED FIXPOINTS AND APPLICATIONS IN NONMONOTONIC REASONING Marc Denecker Department of Computer Science, K.U.Leuven Celestijnenlaan 200A, B-3001 Heverlee,

More information

SOME MEASURABILITY AND CONTINUITY PROPERTIES OF ARBITRARY REAL FUNCTIONS

SOME MEASURABILITY AND CONTINUITY PROPERTIES OF ARBITRARY REAL FUNCTIONS LE MATEMATICHE Vol. LVII (2002) Fasc. I, pp. 6382 SOME MEASURABILITY AND CONTINUITY PROPERTIES OF ARBITRARY REAL FUNCTIONS VITTORINO PATA - ALFONSO VILLANI Given an arbitrary real function f, the set D

More information

Lean clause-sets: Generalizations of minimally. unsatisable clause-sets. Oliver Kullmann. University of Toronto. Toronto, Ontario M5S 3G4

Lean clause-sets: Generalizations of minimally. unsatisable clause-sets. Oliver Kullmann. University of Toronto. Toronto, Ontario M5S 3G4 Lean clause-sets: Generalizations of minimally unsatisable clause-sets Oliver Kullmann Department of Computer Science University of Toronto Toronto, Ontario M5S 3G4 e-mail: kullmann@cs.toronto.edu http://www.cs.utoronto.ca/kullmann/

More information

Logic + control: An example of program construction and verification

Logic + control: An example of program construction and verification 1 Logic + control: An example of program construction and verification The purpose of this paper is to show that 1. the correctness related issues of Prolog programs can, in practice, be dealt with mathematical

More information

Pairing Transitive Closure and Reduction to Efficiently Reason about Partially Ordered Events

Pairing Transitive Closure and Reduction to Efficiently Reason about Partially Ordered Events Pairing Transitive Closure and Reduction to Efficiently Reason about Partially Ordered Events Massimo Franceschet Angelo Montanari Dipartimento di Matematica e Informatica, Università di Udine Via delle

More information

Behavioural theories and the proof of. LIENS, C.N.R.S. U.R.A & Ecole Normale Superieure, 45 Rue d'ulm, F{75230 Paris Cedex 05, France

Behavioural theories and the proof of. LIENS, C.N.R.S. U.R.A & Ecole Normale Superieure, 45 Rue d'ulm, F{75230 Paris Cedex 05, France Behavioural theories and the proof of behavioural properties Michel Bidoit a and Rolf Hennicker b b a LIENS, C.N.R.S. U.R.A. 1327 & Ecole Normale Superieure, 45 Rue d'ulm, F{75230 Paris Cedex 05, France

More information

1. Introduction and preliminaries

1. Introduction and preliminaries Quasigroups and Related Systems 23 (2015), 283 295 The categories of actions of a dcpo-monoid on directed complete posets Mojgan Mahmoudi and Halimeh Moghbeli-Damaneh Abstract. In this paper, some categorical

More information

( V ametavariable) P P true. even in E)

( V ametavariable) P P true. even in E) Propositional Calculus E Inference rules (3.1) Leibniz: (3.2) Transitivity: (3.3) Equanimity: P = Q E[V := P ]=E[V := Q] P = Q Q = R P = R P P Q Q ( V ametavariable) Derived inference rules (3.11) Redundant

More information

As a rst step, we concentrate in this paper on the second problem and we abstract from the problem of synchronisation. We therefore dene a denotationa

As a rst step, we concentrate in this paper on the second problem and we abstract from the problem of synchronisation. We therefore dene a denotationa Probabilistic Concurrent Constraint Programming: Towards a Fully Abstract Model Alessandra Di Pierro and Herbert Wiklicky fadp,herbertg@cs.city.ac.uk City University, Northampton Square, London EC1V OHB

More information

Step-Indexed Biorthogonality: a Tutorial Example

Step-Indexed Biorthogonality: a Tutorial Example Step-Indexed Biorthogonality: a Tutorial Example Andrew Pitts University of Cambridge Computer Laboratory 1 Introduction The purpose of this note is to illustrate the use of step-indexing [2] combined

More information

On the Stable Model Semantics for Intensional Functions

On the Stable Model Semantics for Intensional Functions Under consideration for publication in Theory and Practice of Logic Programming 1 On the Stable Model Semantics for Intensional Functions Michael Bartholomew and Joohyung Lee School of Computing, Informatics,

More information

A Behavioral Congruence for Concurrent Constraint Programming with Nondeterministic Choice

A Behavioral Congruence for Concurrent Constraint Programming with Nondeterministic Choice A Behavioral Congruence for Concurrent Constraint Programming with Nondeterministic Choice Luis Pino*, Filippo Bonchi** and Frank Valencia* (Presented by: Jorge A. Pe rez) *E quipe Come te, LIX, Laboratoire

More information

Cours M.2-6 «Interprétation abstraite: applications à la vérification et à l analyse statique» Examen partiel. Patrick Cousot.

Cours M.2-6 «Interprétation abstraite: applications à la vérification et à l analyse statique» Examen partiel. Patrick Cousot. Master Parisien de Recherche en Informatique École normale supérieure Année scolaire 2010/2011 Cours M.2-6 «Interprétation abstraite: applications à la vérification et à l analyse statique» Examen partiel

More information

Denotational Semantics

Denotational Semantics 5 Denotational Semantics In the operational approach, we were interested in how a program is executed. This is contrary to the denotational approach, where we are merely interested in the effect of executing

More information