Model Generation and State Generation for Disjunctive Logic. Programs. University of Tubingen. Sand 13, D { Tubingen, Germany

Size: px
Start display at page:

Download "Model Generation and State Generation for Disjunctive Logic. Programs. University of Tubingen. Sand 13, D { Tubingen, Germany"

Transcription

1 Model Generation and State Generation for Disjunctive Logic rograms Dietmar Seipel 1, Jack Minker 2, Carolina Ruiz 2 1 Department of Computer Science. University of Tubingen. Sand 13, D { Tubingen, Germany seipel@informatik.uni-tuebingen.de 2 Institute for Advanced Computer Studies and Department of Computer Science. University of Maryland. College ark, MD U.S.A. fminker, cruizcg@cs.umd.edu Abstract This paper investigates two xpoint approaches for minimal model reasoning with disjunctive logic programs. The rst one, called model generation [4], is based on an operator T dened on sets of Herbrand interpretations, whose least xpoint is logically equivalent to the set of minimal Herbrand models of the program. The second approach, called state generation [12], uses a xpoint operator T s based on hyperresolution. It operates on disjunctive Herbrand states and its least xpoint is the set of logical consequences of, the so{called minimal model state of the program. We establish a useful relationship between hyperresolution by T s and model generation by T. Then we investigate the problem of continuity of the two operators T s and T. It is known that the operator T s is continuous [12], and so it reaches its least xpoint in at most! steps. On the other hand, the question of whether T is continuous has been open. We show by a counterexample that T is not continuous. Nevertheless, we prove that it converges towards its least xpoint in at most! steps too, as follows from the relationship that we show exists between hyperresolution and model generation. We dene an iterative version of T that computes the perfect model semantics of stratied disjunctive logic programs. On each stratum of the program, this operator converges in at most! steps. Model generations for the stable semantics and the partial stable (and so the well{ founded) semantics are respectively achieved by using this iterative operator together with the evidential transformation [3] and the 3-S transformation [16]. 1 Introduction The semantics of a disjunctive logic program has been characterized by its set of minimal Herbrand models or, equivalently, by the collection of all positive disjunctions that hold in every minimal Herbrand model of the program (see [11]). This collection is called the minimal model state of the program. The last two authors acknowledge the support of the National Science Foundation under grant number IRI

2 These equivalent semantic denitions gave rise to two alternative ways of computing the meaning of a program. The rst one, denoted here by model generation, relies on a xpoint operator T M that operates on sets of Herbrand interpretations and whose least xpoint is the set of minimal Herbrand models of the program. This operator was originally introduced by Fernandez and Minker in [4] (see also [2, 5]) for the case of disjunctive logic programs without function symbols. The second approach, developed by Minker and Rajasekar [12], is based on a xpoint operator T s dened on sets of positive disjunctions called states. This operator uses hyperresolution to construct the model state of the program as its least xpoint. We refer to this approach as state generation. In this paper, we further investigate the nature of model and state generations and prove some useful relationships between them. In particular, we investigate the problem of continuity of the two operators T s and T M. It is known that the operator T s is continuous [12], and so it reaches its least xpoint in at most! steps. On the other hand, the question of whether T M is continuous when applied to arbitrary disjunctive logic programs (with function symbols) has been open. We argue that this problem is ill{posed as the domain of T M is not closed under least upper bounds. We then give a natural extension of T M in terms of a new operator T dened on a more suitable domain and reformulate the continuity problem for the new operator. We prove, by means of a counterexample, that T is not continuous. Nevertheless, from a relationship that we show exists between state generation by T s and model generation by T, we prove that T reaches its least xpoint in at most! steps, too. We dene an iterative version of T that computes the perfect model semantics of stratied disjunctive logic programs. On each stratum of the program, this operator converges in at most! steps. Due to the characterizations of the stable and the partial stable (and so the well{founded) semantics respectively presented in [3] and [16], this iterative operator can be used to construct the stable models and partial stable models (the well{founded model in particular) of normal disjunctive logic programs. The paper consists of the following sections: Section 2 presents some basic denitions and notation. Section 3 summarizes the main properties of state generation. Section 4 surveys model generation, denes the new operator T and shows that it is not continuos. This section also proves the existence of minimal models of disjunctive logic programs. Section 5 establishes some useful relationships between model generation and state generation. As a consequence of these relationships, it is proven that T reaches its least xpoint in at most! steps. Section 6 provides an iterated version of the operator T that constructs the perfect models of stratied disjunctive logic programs, and is used to generate the (partial) stable models of normal disjunctive logic programs. Section 7 concludes the paper. 2 Basic Denitions and Notations Given a rst order language, a disjunctive logic program consists of logical inference rules of the form A 1 _ : : : _ A k B 1 ^ : : : ^ B m ; (1) where A i, i 2 h 1; k i, and B i, i 2 h 1; mi, are (positive) atoms in the language and k; m 2 IN 0. 1 A rule is called a fact if m = 0. The set of all ground instances of the rules and facts in is 1 By IN + we denote the set f 1; 2; 3; : : : g of positive natural numbers, whereas IN 0 denotes the set f 0; 1; 2; : : : g of all natural numbers. 2

3 denoted by gnd (). A disjunctive logic program is called a disjunctive deductive database if the program does not contain any function symbols. Two important concepts are associated with a logic program : (i) First, a subset I HB of the Herbrand base HB is called a Herbrand interpretation. The set of all Herbrand interpretations is denoted by HI. A Herbrand interpretation I is called a model of if for all ground rules of the form (1) in, it holds that f B i j i 2 h 1; mi g I implies that there exists i 2 h 1; k i such that A i 2 I. The set of all Herbrand models of is denoted by MOD, and sometimes by MOD(). (ii) Secondly, the set DHB of all ground disjunctions A 1 _ : : : _ A k, k 2 IN 0, that can be formed by atoms A i 2 HB is called the disjunctive Herbrand base of. A subset S DHB is called a disjunctive Herbrand state. For reasoning with disjunctive deductive logic programs two main approaches have been developed. The rst approach generates the set MM of all minimal Herbrand models of. A model I is called minimal if there is no smaller model I 0 of for which I 0 ( I. The second approach uses hyperresolution for deriving the set MS of all ground disjunctions C 2 DHB that are logical consequences of the logic program, i.e., the disjunctions that hold in all models of the logic program. This set is called the minimal model state of the logic program [12]. Below, we put together some important notation and results on partial orderings and lattices and on xpoint theory on complete lattices, cf. e.g. [9, 1]. Let O = h S; i, where S is a set and is a binary relation on S. O is called a partial ordering on S, if is reexive, transitive and antisymmetric. A partial ordering O is called a complete lattice, if for all subsets X S there exists a least upper bound, denoted by lub (X), and a greatest lower bound, denoted by glb(x), in S. 2 A very common example of a complete lattice that will occur in this paper is O = h 2 U ; i where 2 U is the power set of some set U, ordered by set inclusion, and least upper bounds and greatest lower bounds are given by the operations union and intersection, respectively. Certain mappings T : L! L on a complete lattice O = h L; i are of special interest: monotonic mappings which preserve the partial ordering and continuous mappings which commute with the least upper bound operator of the lattice. T is called monotonic, if x 1 x 2 implies T (x 1 ) T (x 2 ), for all elements x 1 ; x 2 2 L. A subset X L is called directed, if for every nite subset X 0 of X there exists an upper bound of X 0 in X. T is called continuous, if T (lub(x)) = lub (T (X)) for all directed subsets X L, where T (X) = f T (x) j x 2 X g: Every continuous mapping on a complete lattice is also monotonic. The converse, however, is not true. The elements of a lattice which are invariant under a mapping on the lattice are called xpoints of the mapping. That is, an element x 2 L is called a xpoint of T, if T (x) = x. A xpoint x 2 L of T is called the least xpoint of T, denoted by lfp (T ), if x x 0 for all xpoints x 0 of T. 3 Given a mapping T : L! L on a complete lattice O = h L; i we can dene its ordinal powers { corresponding to repeated applications of the mapping { as new mappings on the same lattice by using transnite recursion on in conjunction with the least upper bound operation on the lattice. The ordinal powers T " : L! L of T are dened as follows: T "0 (x) = x; 2 The notations lub (X) and glb (X) are justied since for every set X its least upper bound and its greatest lower bound are unique if they exist. 3 The notation lfp (T ) is justied since for every mapping T its least xpoint is unique if it exists. 3

4 T " (x) = T (T " 1 (x)); for a successor ordinal ; T " (x) = lub (f T " (x) j < g); for a limit ordinal : For the important special case of the bottom element? = glb(l) of O, the ordinal powers T " of T are lattice elements given by T " = T " (?): The well-known theorem of Knaster and Tarski, cf. [8] and [20], relates the xpoints of a monotonic mapping on a complete lattice to the ordinal powers: If T is monotonic, then the collection of xpoints of T forms a complete lattice and so T has a unique least xpoint lfp (T ). For any ordinal, it holds T " lfp (T ); and there exists an ordinal, such that T " 0 = lfp(t ) for all 0. The smallest such is called the closure ordinal of T. If T is continuous, then T "! = lfp(t ) (see [7]). 3 State Generation The xpoint semantics of a disjunctive logic program is based on a disjunctive consequence operator T s given in [12] (see also [10]). Denition 3.1 (Consequence Operator T s ) Let be a disjunctive logic program and let S DHB be a disjunctive Herbrand state. The disjunctive consequence operator T s : 2 DHB! 2 DHB of is dened as T s (S) = S [ f C _ C 1 _ : : : _ C m j C; C 1 ; : : :; C m 2 DHB and there is a rule C B 1 ^ : : : ^ B m 2 gnd () : 8 i 2 h 1; mi : B i _ C i 2 S g: Note that according to the above denition the result of applying the operator T s to a disjunctive Herbrand state S contains the state S as well as all disjunctions that can be derived from S and the rules in by one step of hyperresolution. Minker and Rajasekar show in [12] that the disjunctive consequence operator T s is continuous with respect to the complete lattice O = h 2 DHB ; i on disjunctive Herbrand states, and hence also monotonic. The bottom element of O is? = ;. Following the general setting given in Section 2, the ordinal powers of the disjunctive consequence operator are dened with respect to the lattice O as follows. Denition 3.2 (Ordinal owers for T s on O = h 2DHB ; i) Let be a disjunctive logic program. (i) For S DHB, the ordinal powers T s " (S) are dened by T s"0 (S) = S; T s" (S) = T [ (T s s" 1 (S)); for a successor ordinal ; " (S) = T s" (S); for a limit ordinal : T s < (ii) The ordinal powers T s " are dened by T s " = T s " (;): 4

5 Example 3.3 (Disjunctive Transitive Closure) Consider the disjunctive logic program = f path(x; Y ) arc(x; Z) ^ path(z; Y ); path(x; Y ) arc(x; Y ); arc(a; b) _ arc(a; c); arc(b; d); arc(c; d) g; that consists of the classical transitive closure rules and some disjunctive facts for the arc{relation, cf. Figure 1. a Q 3 Q sq b c Q QQ Qs 3 d Figure 1: Graph with disjunctive arcs The ordinal powers S n = T s " n = T s "n (;), n 1, are given by S 1 = f arc(a; b) _ arc(a; c); arc(b; d); arc(c; d) g; S 2 = S 1 [ f arc(a; b) _ path(a; c); path(a; b) _ arc(a; c); path(b; d); path(c; d) g; S 3 = S 2 [ f path(a; b) _ path(a; c); path(a; d) _ arc(a; c); path(a; d) _ arc(a; b); S 4 = S 3 [ f path(a; d) g; S n = S 4 ; for all n 4: path(a; d) _ path(a; c); path(a; d) _ path(a; b) g; Thus, T s "! = T s " 4: This example shows that T s facts. can also derive denite facts from disjunctive A disjunction C 0 is called a sub-disjunction of another disjunction C if every atom appearing in C 0 also appears in C. C 0 is called a proper sub-disjunction of C if C 0 6= C and C 0 is a sub-disjunction of C. For a disjunctive Herbrand state S, let can (S) = f C 2 S j 6 9C 0 2 S : C 0 is a proper sub-disjunction of C g; exp (S) = f C 2 DHB j 9C 0 2 S : C 0 is a sub-disjunction of C g: can (S) and exp (S) are respectively the canonization and the expansion of S, and it holds that can (S) S exp (S). Two disjunctive Herbrand states S 1 and S 2 are called equivalent if exp (S 1 ) = exp (S 2 ). This is denoted by S 1 S 2. The minimal model state MS is equivalent to the least xpoint of the disjunctive consequence operator T s, and it can be derived as MS = exp (T s "!), as was proven by Minker and Rajasekar in [12]. 5

6 Theorem 3.4 (Characterization of MS [12]) Let be a disjunctive logic program. Then MS lfp(t s ) = T s " ; where is the closure ordinal of T s on O = h 2DHB ; i: 4 Model Generation The model generation approach constructs the minimal Herbrand models of a given logic program. For a denite logic program (without disjunctions) and a given Herbrand interpretation I the classical consequence operator T of van Emden and Kowalski [21] computes the Herbrand interpretation J that consists of the head atoms of all rules in gnd (), such that the bodies of the rules are satised by I. The unique minimal Herbrand model of the program is precisely the least xpoint of this operator. For disjunctive logic programs, model generation deals with sets of Herbrand interpretations. For conciseness, we abbreviate the set of Herbrand interpretations as coin (collection of interpretations). We use the following two operations min and exp for a coin I: min (I) = f I 2 I j 6 9J 2 I : J ( I g; exp (I) = f I 2 2 HI j 9J 2 I : J I g: Note that we use the operator exp for states as well as for coins, but it will be clear from the context to which case we are refering. A coin I is called canonical if it does not contain two dierent Herbrand interpretations I; J such that I ( J, i.e. if I = min (I). A coin I is called expanded if for each Herbrand interpretation I 2 I it also contains all Herbrand interpretations that are supersets of I, i.e. if I = exp (I). E.g. for the Herbrand base HB = f a; b; c g and the coin I = f fag; fa; bg; fb; cg g; we get min (I) = f fag; fb; cg g and exp (I) = I [ f fa; cg; fa; b; cg g: The following consequence operator T generalizes the operator T of van Emden and Kowalski to the case of disjunctive logic programs. T maps coins to coins. Denition 4.1 (Consequence Operators T and T M ) Let be a disjunctive logic program. (i) The consequence operator operates on sets I 2 2 HI (ii) The consequence operator operates on sets I 2 2 HI T : 2 HI! 2 HI of Herbrand interpretations: [ T (I) = MOD(T(I)): s I2I T M : 2HI! 2 HI of Herbrand interpretations: T M (I) = min (T (I)): 6

7 For each I 2 I, T (I) contains all Herbrand interpretations J which extend I and at the same time satisfy all ground rules of whose bodies are satised by I. Thus, from each interpretation several interpretations may be derived. Furthermore, the result T (I) is expanded. The operator T M was originally introduced by Fernandez and Minker [4] (see also [2, 5]) to compute the minimal Herbrand models of a disjunctive deductive database (i.e. a disjunctive logic program with no function symbols). In this case, due to the fact that the Herbrand base of a database is nite, coins are nite sets of nite interpretations and so have the property that T (I) = exp (T M(I)). 4 Example 4.2 (Consequence Operator T M ) Consider the disjunctive deductive database of Example 3.3. (i) For the Herbrand interpretation I = ; the rules whose bodies are satised by I are precisely the facts of. Thus, T M (f;g) = I 1 = fi 1 ; J 1 g; is the set of minimal Herbrand interpretations of the facts of, where I 1 = f arc(a; b); arc(b; d); arc(c; d) g; J 1 = f arc(a; c); arc(b; d); arc(c; d) g: (ii) For the Herbrand interpretations in I 1 the bodies of some ground instances of the second rule are satised. Thus, T M extends I 1; J 1. We get T M(I 1) = I 2 = fi 2 ; J 2 g; where I 2 = I 1 [ f path(a; b); path(b; d); path(c; d) g; J 2 = J 1 [ f path(a; c); path(b; d); path(c; d) g: Fernandez and Minker (cf. [5]) investigated some of the properties of the consequence operator T M based on the following subsumption relation v dened for coins I; J 2 2HI : I v J i 8 J 2 J : 9 I 2 I : I J: E.g. for I = f fag; fa; bg; fb; cg g and J = f fag; fcg g we get J v I: The pair O = h 2 HI ; vi however is only a quasi-ordering, since on 2 HI the relation v is reexive and transitive, but not antisymmetric. To overcome this, one can work with equivalence classes of coins as follows: Two coins I; J 2 2 HI are called equivalent with respect to the quasiordering v, denoted by I v J, if they subsume each other, i.e. I v J i I v J and J v I: Fernandez and Minker then restricted the domain of T M to O min = h 2 HI min ; vi; where 2HI min consists of all canonical coins. This subdomain does form a partial ordering. For disjunctive deductive databases, this partial ordering is also complete since the Herbrand base of a such a database is nite. Based on this, they proved the monotonicity of T M on O min and the following characterization of the set MM of minimal Herbrand models of in terms of the consequence operator T M and its ordinal powers T M " = T M " (f ; g) with respect to O min. 4 For an arbitrary disjunctive logic program, a coin can be an innite set and it can contain innite interpretations. Thus, this property may not hold for, since there may exist some I 2 T (I) for which there is no minimal interpretation in T (I) contained in I. 7

8 Theorem 4.3 (Characterization of MM [5]) Let be a disjunctive deductive database. Then where is the closure ordinal of T M MM = lfp (T M ) = T M " ; on O min = h 2 HI min ; vi: Since the Herbrand base of a disjunctive deductive database is nite, the operator T M its least xpoint in a nite number of iterations. reaches Example 4.4 (Disjunctive Transitive Closure) For the disjunctive logic program of Example 3.3 all ordinal powers T M " n = f I n ; J n g, n 1, consist of two Herbrand interpretations, where I 1 ; J 1 and I 2 ; J 2 have been given in Example 4.2 and I 3 = I 2 [ f path(a; d) g; J 3 = J 2 [ f path(a; d) g: It holds I n = I 3 and J n = J 3, for all n 3. Thus, the set of minimal Herbrand models of is given by MM = f I 3 ; J 3 g. In principle, one can apply the operator T M to disjunctive logic programs containing function symbols. The question of whether or not the operator is continuous in this extended context has been open. Notice however that, in the extended context, the partial ordering O min = h 2 HI min ; vi is not a complete lattice (the least upper bound of a collection X of canonical coins may not exist). Hence the question of continuity in this subdomain is ill{posed. We reformulate the continuity problem in a more appropriate domain O exp = h 2 HI exp ; vi; where 2 HI exp consists of all expanded coins. It is easy to show that in this subdomain of expanded coins the relation v reduces to superset inclusion, since for all I; J 2 2 HI it holds I v J i exp (I) exp (J ): This shows that O exp = h 2 HI exp ; vi is a complete lattice, and that the least upper bound and the greatest lower bound of a set X 2 HI exp of \ expanded coins are given [ by lub exp (X) = I; glb exp (X) = I2X The bottom element of O exp is the coin? exp = HI consisting of all Herbrand interpretations. Note that both the intersection and the union of a set X of expanded coins is an expanded coin. 5 We remark that the construction of O exp is similar to the concept of free!-completion of partial orderings, cf. [23]. In the domain O exp we can work with the operator T that produces expanded coins. For every coin I it holds I v T (I); since every Herbrand interpretation J 2 T (I) is derived by extending an Herbrand interpretation I 2 I, where I J. Moreover, the operator T is monotonic on O = h 2 HI ; vi (and hence in O exp ): I2X I v J implies T (I) v T (J ): Following the general setting given in Section 2, the ordinal powers of T to the complete lattice O exp as follows. 5 This does not hold for canonical coins. I: are dened with respect 8

9 Denition 4.5 (Ordinal owers for T Let be a disjunctive logic program. (i) For I 2 2 HI exp on O exp = h 2 HI exp ; vi), the ordinal powers T " (I) are dened by T T T "0 (I) = I; " (I) = T \ " (I) = < (T T " 1 (I)); for a successor ordinal ; " (I); for a limit ordinal : (ii) The ordinal powers T " are dened by T " = T " (? exp ): For disjunctive deductive databases it can be shown that the respective ordinal powers of the operators T and T M are equivalent, i.e. T " v T M " : It holds T " = exp (T M " ) and T M " = min (T " ): We show now by means of a counterexample that the operator T is not continuous. Example 4.6 (Non{continuity of Model Generation through T ) Consider the disjunctive logic program = f a 0 a(x) ^ a(y ) ^ di (X; Y ); a(x) a(y ); d(f(c)) d(c) g and the complete lattice O exp = h 2 HI exp ; i: Consider the following Herbrand interpretation for the predicate symbol di : I di = f di (f m (c); f n (c)) j m; n 2 IN 0 ; m 6= n g: This Herbrand interpretation I di says that for di (X; Y ) to be true, it must hold that X and Y denote dierent terms. Let a n denote the atom a(f n (c)), for all n 2 IN +, and let I a = fa n jn 2 IN + g. We are interested in the following expanded coins I n, where all I 2 I n contain the Herbrand interpretation I di : I n = exp (f fa m g [ I di j m n g); for n 2 IN + : The set X = f I n j n 2 IN + g of coins forms a chain, since it holds I n I k ; for all n k: Thus, X is a directed set of coins. The least upper bound of X is given by lub exp (X) = \ n2in + I n = f I HB j I \ I a is innite and I di I g; i.e. it consists exactly of those Herbrand interpretations I, which contain innitely many of the atoms a n and also contain the whole Herbrand interpretation I di. Thus, each of these Herbrand interpretations I contains at least two dierent atoms a n = a(f n (c)) and a k = a(f k (c)) and the corresponding atom di (f n (c); f k (c)). This implies that the rst rule of the logic program will extend I with the atom a 0, and that the second rule of the logic program will extend I with all other atoms a m 2 I a. Thus, it holds T (lub exp (X)) = exp (f fa 0 g [ I a [ I di g): 9

10 On the other hand it holds T (I n ) = exp (f I a [ I di g); for all n 2 IN + ; i.e. all coins T (I n), n 2 IN +, are identical. Thus, \ lub exp (f T (I n) j n 2 IN + g) = T n2in + (I n) = exp (f I a [ I di g): This shows that the operator T does not commute with lub exp, i.e. T This implies also that T to O = h 2 HI ; vi. (lub exp (X)) 6= lub exp (f T (I n ) j n 2 IN + g): is not continuous with respect to O exp = h 2 HI exp ; vi nor with respect In the next section we show that even though T is not continuous it reaches its least xpoint in at most! steps. Furthermore, based on the operator T, we are able to generalize the characterization of the minimal Herbrand model semantics that Fernandez and Minker obtained for disjunctive deductive databases to arbitrary disjunctive logic programs, namely that MM v lfp (T ) = T "! (see Theorem 5.5). 2 The following lemma is used in the next section. It shows that the set of minimal Herbrand models of a disjunctive logic program is equivalent to the set of all Herbrand models of the logic program with respect to the quasi-ordering v. In other words, this means that each Herbrand model of the logic program contains a minimal Herbrand model of the program. This result is not trivial since, for an arbitrary disjunctive logic program, it could have been the case that there were an innitely decreasing chain M 1 ) M 2 ) M 3 ) : : : of models of. Lemma 4.7 (Existence of Minimal Models) Let be a disjunctive logic program. Then MM v MOD: roof: For each M 2 MOD we want to show that there exists some I 2 MM such that I M. Let I M = f I 2 MOD j I M g. We prove below that each chain K I 6 M has a lower bound I in I M. Using Zorn's lemma, this implies that the coin I M contains a minimal element. Hence, MM v MOD: The statement MOD v MM is trivial, since MM MOD: Now let K I M be a chain of Herbrand models. \ Obviously, the Herbrand interpretation I = is a lower bound of K and I M. We want to show that I is also a model of, i.e. I 2 MOD. Consider a rule A 1 _ : : : _ A k B 1 ^ : : : ^ B m 2 gnd () I2K such that I j= B 1 ^ : : : ^ B m. Since K is a chain, we get that 6 i.e. for each I; J 2 K it either holds I J or J I. J = f I \ f A 1 ; : : :; A k g j I 2 I g I 10

11 is a chain, too. Since all elements of J have a nite cardinality between 0 and k, there exists an element J 0 2 J with minimal cardinality. Since J is a chain, it holds 8J 2 J : J 0 J: Consider the Herbrand interpretation I 0 2 K, such that J 0 = I 0 \ f A 1 ; : : :; A k g. Since I j= B 1 ^ : : :^ B m and I I 0, it holds I 0 j= B 1 ^ : : :^ B m. From I 0 2 MOD we get I 0 j= A 1 _ : : :_ A k, i.e. J 0 = I 0 \ f A 1 ; : : :; A k g 6= ;. Since all elements of J are supersets of J 0, we get 8I 2 K : J 0 I: This shows that J 0 I, i.e. I j= A 1 _ : : : _ A k. Thus, I is a Herbrand model of contained in I M. 2 5 Relationships between State Generation and Model Generation For disjunctive logic programs the minimal model state MS and the set MM of minimal Herbrand models of are dual concepts, i.e., they can be derived from each other. According to [10], it holds where the dualization operations are dened by MM = MM(MS ); MS = MS(MM ); MS(I) = fc 2 DHB j 8I 2 I : I j= C g; MM(S) = min (fi 2 HI j 8C 2 S : I j= C g): This resembles the duality between the conjunctive and the disjunctive normal form of boolean formulas, since MS represents the conjunction of its disjunctions, whereas MM represents the disjunction of the conjunctions formed by its models. This duality relates the least xpoints MS and MM ( v MOD ) of the consequence operators T s and T, respectively (see Figure 2). In the following we also compare the intermediate results of the respective xpoint iterations. Corollary 5.3 establishes the relationship between the ordinal powers T s " n and T " n. Lemma 5.1 (Connection between T s and T [17]) Let be a disjunctive logic program, let I be a coin, and let S DHB be a disjunctive Herbrand state, such that I MOD(S). Then T (I) MOD(T s(s)); T(S) s MS(T (I)): 11

12 T s " 0 = ;? T s " n T s T s? T s "! MS MOD - MS MOD - MS T T " 0 =? exp T?? T " n T "! v MM Figure 2: Comparing Fixpoint Computations roof: (i) Assume M is a Herbrand interpretation, such that We will show that M 2 MOD(T s (S)): M 2 T (I): There is some I 2 I, such that M 2 MOD(T s (I)). Thus, I M. Since I MOD(S), we get I 2 MOD(S). Since I is a model of S, we get that M is a model of S. For each C 2 T s(s)ns, there is a rule C 0 B 1 ^ : : : ^ B m 2 gnd () and there are facts B i _ C i 2 S; such that C = C 0 _ C 1 _ : : :_ C m : If I j= C 1 _ : : : _ C m, then M j= C. Otherwise, since I j= B i _C i, 1 i m, we get I j= B 1^: : :^B m. Thus, C 0 2 T s(i). Since M 2 MOD(T s(i)), we get that M j= C0 : Thus, again M j= C. Summarizing, M is a model of T s (S) n S. This shows that M 2 MOD(T s (S)), i.e. (ii) Application of MS to (i) yields Since T s(s) MS(MOD(T s (S))); we get T (I) MOD(T(S)): s MS(MOD(T(S))) s MS(T (I)): T(S) s MS(T (I)): 2 From this connection we can derive some relationships between state generation and model generation, i.e., between the ordinal powers T s " of the operator T s on disjunctive Herbrand states and the ordinal powers T " of the operator T on sets of Herbrand interpretations. 12

13 Theorem 5.2 (State Generation vs. Model Generation) Let be a disjunctive logic program, let S DHB be a disjunctive Herbrand state of and let I be a coin, such that I MOD(S) and S MS(I). For all ordinals it holds roof: T T s " (I) MOD(T s" (S)); " (S) MS(T " (I)): (i) The rst set inclusion is shown by induction on. = 0 : The induction basis is shown by T "0 (I) = I MOD(S) = MOD(T s"0 (S)):! + 1 : Using the induction assumption for and the monotonicity of T we get T "+1 (I) = T (T " (I)) T (MOD(T s" (S))): Let I 0 = MOD(T s " (S)) and S 0 = T s " (S). Then I 0 = MOD(S 0 ). Applying the rst set inclusion of Lemma 5.1 to S 0 and I 0 yields T (I0 ) MOD(T s(s0 )); i.e., T (MOD(T s " (S))) MOD(T s (T s " (S)))) = MOD(T s "+1 (S)): By transitivity we get: T "+1 (I) MOD(T s"+1 (S)): a limit ordinal: Intersecting the set inclusions for all < yields \ \ " (I) MOD(T s" (S)): Since T < T we get that \ < < T " (I) = T " (I); and MOD(T s < " (S)) = MOD( [ (ii) If we apply MS to the rst set inclusion we get < T " (I) MOD(T s" (S)): T s " (S)) = MOD(T s " (S)); MS(MOD(T s " (S))) MS(T " (I)): By chaining with T s " (S) MS(MOD(T s " (S))) we get the second set inclusion. 2 Corollary 5.3 (State Generation vs. Model Generation) Let be a disjunctive logic program. For all ordinals it holds T " MOD(T s " ); T s " MS(T " ): 13

14 Sometimes, the set inclusions in Corollary 5.3 are strict, as the following example shows. Example 5.4 (State Generation vs. Model Generation) Given some n 2 IN +, consider the disjunctive logic program = f a b i j 1 i n g [ f b 1 _ : : : _ b n g with n rules and one fact. Let S m = T s " m and I m = T M " m: For n = 2 we get S 1 = f b 1 _ b 2 g; S 2 = f b 1 _ b 2 ; a _ b 1 ; a _ b 2 g; I 1 = f f b 1 g; f b 2 g g; I 2 = f f b 1 ; a g; f b 2 ; a g g: Thus, for the atom a we get a 2 MS(I 2 ); but a 62 S 2 : For n 2 we get the disjunctive Herbrand states S m = f b 1 _ : : : _ b n g [ f a _ b i1 _ : : : _ b i k j fi 1 ; : : :; i k g h1; ni; n m + 1 k n 1 g; for all m 2 IN + ; where hn; mi denotes the interval f n; n + 1; : : :; m g of all natural numbers between n and m. On the other hand, I 1 = f fb 1 g; : : :; fb n g g; I m = f f b i ; a g j 1 i n g; for all m 2: The least xpoint of T M is always reached after two steps: lfp (T M) = I 2; whereas the least xpoint of T s is reached after n + 1 steps: lfp(t s) = S n+1 = S n [ fag. We can show that MOD(S n ) = exp (I n [ fi b g); MS(I n ) = exp (S n [ fag); where I b = f b i j 1 i n g. This shows that a 2 MS(I n ) n S n ; inclusions in Corollary 5.3 are strict. I b 2 MOD(S n ) n I n ; i.e., the set Since the operator T s is continuous (see [12]), its ordinal powers converge towards its least xpoint in at most! steps, i.e., lfp (T s) = T s "! MS : Corollary 5.3 helps to show that the ordinal powers of the operator T converge towards its least xpoint in at most! steps, too. That is, the closure ordinal of T on O exp is!. Moreover, this least xpoint is equivalent to the set MM of the minimal Herbrand models of the program. Theorem 5.5 (Convergence of Model Generation by T ) Let be a disjunctive logic program. Then MM v lfp(t ) = T "!: roof: We will show that MM v T "! and that T "! v MM : 14

15 (i) From Corollary 5.3 we know that T "! MOD(T s "!): With T s "! MS ; we get MOD(MS ) v T "!: From Lemma 4.7 we know that MM(MS ) v MM(MS ) = MM : This shows that MOD(MS ); and from [12] we know that (ii) From and T O exp = h 2 HI exp T MM v T "!: " 0 =? exp v MM (MM ) = MM and the monotonicity of the operator T ; vi, by induction on n 2 IN 0 we get that T " n v MM ; for all n 2 IN 0 : on the partial ordering This shows that T "! = lub exp (f T " n j n 2 IN 0 g) v MM : Hence T "! v MM : Since MM is a xpoint of T, i.e., T (MM ) = MM, this implies that lfp(t ) v MM : Thus, the operator T is an example of a monotonic operator that is not continuous, but nevertheless reaches its least xpoint in at most! steps. 6 Iterative Model Generation of erfect and (artial) Stable Semantics In [5], Minker and Fernandez dened an iterative method to compute the perfect models of a stratied disjunctive deductive database. In this section we extend their method to work with arbitrary stratied disjunctive logic programs by using the operator T dened on Section 4. Given a rst order language, a normal disjunctive logic program consists of logical inference rules of the form A 1 _ : : : _ A k B 1 ^ : : : ^ B m ^ not C 1 ^ : : : ^ not C n ; (2) where A i, i 2 h 1; k i, B i, i 2 h 1; mi, and C i, i 2 h 1; ni, are (positive) atoms in the language; k; m; n 2 IN 0 ; and not is the negation-by-default operator. Given a predicate p in the language, the denition of p in is the set of all rules in whose heads (i.e. A 1 _ : : : _ A k ) contain an atom in which p appears. The denition of an atom A is taken to be the denition of the predicate symbol appearing in A. A normal disjunctive logic program is called stratied (see [13]) if it is possible to partition the set of rules of into sets f 1 ; : : :; r g, called strata, such that for every rule of the form (2) in there exists a constant c, 1 c r, such that: (1) the denition of each A i is contained in c ; (2) the denition of each B j is contained in S sc s ; and (3) the denition of each C l is contained in S s<c s. Any partition f 1 ; : : :; r g of satisfying the above conditions is called a stratication of. 2 15

16 The intended meaning of a stratied disjunctive logic program is given by its collection of perfect models as dened in [13]. It is well{known (see e.g. [13]) that this collection can be constructed by induction on the strata as follows. Given a stratication f 1 ; : : :; r g of S, let M i denote the set of perfect models of the rst i strata of, i.e. of the logic program si s. By denition, the lowest stratum 1 (which may be the empty set) is free of negation{by{default and its set of perfect models is given by M 1 = MM 1. When M i has been constructed, it is used to evaluate the negated by default literals appearing in the i + 1 stratum as follows: If I 2 M i, then I i+1 is the disjunctive logic program: I i+1 = f A 1 _ : : : _ A k B 1 ^ : : : ^ B m j A 1 _ : : : _ A k fc 1 ; : : :; C n g \ I = ;g: B 1 ^ : : : ^ B m ^ not C 1 ^ : : : ^ not C n 2 i+1 and I is called the i+1 Gelfond{Lifschitz transformation S of i+1 with respect to I. The perfect models of the rst i + 1 strata are then taken to be I2M i MM I i+1 [I. The collection of perfect models of is exactly M r. It is worth noticing that this collection of models is the same independently of the particular stratication of used in the induction. For the case of function{free logic programs, Minker and Fernandez used an iterative version of their operator T M to compute this collection of perfect models [5]. We extend now this procedure to arbitrary stratied disjunctive logic programs by dening the iterative version of our operator T. Denition 6.1 (Iterative version of T ) Let be a stratied disjunctive logic program and f 1 ; : : :; r g be a stratication of. iterative version of T is dened as follows: T I T I h 1 ;:::;n+1i = [ h 1 i = min (T I 1 " h 1;; i ); I2T I h 1 ;:::;n i where h i;i i is the closure ordinal of T I ( I i [I). min (T I ( I n+1 [I) " h n+1;i i) The set of perfect models of is given by T I h 1. Notice that, due to Theorem 5.5, each of ;:::;ri the closure ordinals I i in the previous denition is at most!. Fernandez et al. [3] showed how to transform an arbitrary normal disjunctive logic program into a stratied one, denoted by E, in such a way that the perfect models of E that satisfy a given set of integrity constraints correspond to the stable models of (as dened in [14]). They called this transformation the evidential transformation. Using this characterization of stable models, the iterative version of T can be used to construct the stable semantics of. Similarly, the operator T can be used to generate the collection of partial (or 3{valued) stable models ([15]) of a normal disjunctive logic program by using a characterization of this collection of models given by Ruiz and Minker in [16]. This characterization is based on a transformation called the 3S-transformation which applied to a normal disjunctive logic program produces a constrained logic program (free of negation-by-default) 3S, whose minimal (2-valued) consistent models correspond to the partial stable models of the original program. Since the well{founded model ([22]) is a distinct partial stable model of a normal logic program (see [15]), then model generation for the well{founded semantics is also achieved using the operator T the 3S-transformation. 16 The together with

17 7 Conclusions Given a disjunctive logic program, there are two approaches for deriving the minimal model state MS and two approaches for deriving the set MM of minimal models of the database. Both sets can be derived based on hyperresolution as well as on model generation from. Using hyperresolution, MS is computed as the least xpoint of the disjunctive consequence operator T s. Using model generation, MM is computed as the least xpoint of the consequence operator T. By dualization of the minimal model state MS we get the set of minimal models of as MM(MS ). Similarly, dualization of MM yields MS as MS(MM ). As shown in this paper, both approaches converge in at most! steps. For the case of disjunctive deductive databases, these approaches have been implemented within the disjunctive deductive database engine DisLog 7, cf. [19], developed at the University of Tubingen. Experimenting with DisLog, we have observed that the eciency of each approach depends on the relation between the number n = jcan (MS )j of minimal 8 disjunctions in MS and the number m = jmm j of minimal models. We conjecture that the following may be the case. If n and m are about equal, then for each derivation it is better to use the specialized approach, i.e., to derive MS by hyperresolution and to derive MM by model generation. If n is much bigger than m, then the fastest is to use model generation for deriving MM and to derive MS from MM by dualization. If n is much smaller than m, then the fastest is to use hyperresolution for deriving MS and to derive MM from MS by dualization. Based on the theorems of Section 5 it has been shown in [18] that during a xpoint iteration with T s it is possible to switch to some iterations of model generation. Intermediate information about the size of the ordinal powers T s " n can be used to decide if this would be advantageous. However, general criteria to decide in advance which method is more ecient when faced with a particular disjunctive logic program are still to be determined. Using model generation by T, perfect, well{founded, stable and partial stable models of normal disjunctive logic programs can also be computed. For a stratied disjunctive logic program, the perfect models of can be computed by an iterative model generation applied to the strata. For a normal disjunctive logic program, the stable models and the partial stable models (the well{founded model in particular) of can be respectively computed by model generation with the evidential transformation E ([3]) and by model generation with the 3S-Transformation 3S ([16]). References [1] B.A. Davey, H.A. riestley: Introduction to Lattices and Order, Cambridge University ress, [2] J.A. Fernandez: Disjunctive Deductive Databases, h.d. Thesis, University of Maryland, [3] J.A. Fernandez, J. Lobo, J. Minker, V.S. Subrahmanian: Disjunctive L + Integrity Constrains = Stable Model Semantics, Annals of Mathematics and Articial Intelligence, vol. 8 (3-4), 1993, pp for a demo version of DisLog visit 8 a disjunction C in MS is minimal if there is no sub-disjunction C 0 of C in MS. 17

18 [4] J.A. Fernandez and J. Minker: Bottom-up Evaluation of Hierarchical Disjunctive Deductive Databases. roc. Eighth Intl. Conference on Logic rogramming, MIT ress, 1991, pp [5] J.A. Fernandez and J. Minker: Bottom-up computation of perfect models for disjunctive theories, Journal of Logic rogramming, vol. 25(1), 1995, pp [6] K. Inoue, M. Koshimura, R. Hasegawa: Embedding Negation as Failure into a Model Generation Theorem rover, roc. Intl. Conference on Automated Deduction 1992, pp [7] S.C. Kleene: Introduction to MetaMathematics, Van Nostrand, New York, [8] B. Knaster: Un theorem sur les fonctions d'ensembles, Annals Soc. ol. Math., vol. 6, 1928, pp [9] J.W. Lloyd: Foundations of Logic rogramming, Springer, second edition, [10] J. Lobo, J. Minker, A. Rajasekar: Foundations of Disjunctive Logic rogramming, MIT ress, [11] J. Minker: On Indenite Databases and the Closed World Assumption, roc. Conference on Automated Deduction 1982, Springer LNCS 138, 1982, pp [12] J. Minker, A. Rajasekar: A Fixpoint Semantics for Disjunctive Logic rograms, Journal of Logic rogramming, vol. 9(1), 1990, pp [13] T.C. rzymusinski: On the declarative semantics of Deductive Databases and Logic rogramming, in Foundations of Deductive Databases and Logic rogramming, J. Minker ed., 1988, pp [14] T.C. rzymusinski: Extended Stable Semantics for Normal and Disjunctive rograms, roc. of the Seventh Intl. Conference on Logic rogramming, 1990, [15] T.C. rzymusinski: Stable Semantics for Disjunctive rograms, New Generation Computing, vol. 9, 1991, pp [16] C. Ruiz, J. Minker: Computing Stable and artial Stable Models of Extended Disjunctive Logic rograms, in Nonmonotonic Extensions of Logic rogramming, 1995, J. Dix and L.M. ereira and T.C. rzymusinski eds., Lecture Notes in Computer Science 927. Springer-Verlag, pp [17] D. Seipel: Ecient Reasoning in Disjunctive Deductive Databases, Habilitation Thesis, University of Tubingen, [18] D. Seipel, U. Guntzer: Mixed Fixpoint Theory for Disjunctive Deductive Databases, roc. Intl. Workshop on Logic rogramming 1995, pp [19] D. Seipel, H. Thone: DisLog { A System for Reasoning in Disjunctive Deductive Databases, roc. Intl. Workshop on the Deductive Approach to Information Systems and Databases 1994, pp [20] A. Tarski: A Lattice-Theoretical Fixpoint Theorem and its Applications, acic Journal of Mathematics, vol. 5, 1955, pp [21] M.H. van Emden, R.A. Kowalski: The Semantics of redicate Logic as a rogramming Language, Journal of the ACM, vol. 23(4), 1976, pp [22] A. Van Gelder, K.A. Ross, J.S. Schlipf:, Unfounded Sets and Well-Founded Semantics for General Logic rograms, roc. of the Seventh ACM Symposium on rinciples of Database Systems, 1988, pp [23] W. Wechler: Universal Algebra for Computer Scientists, Springer,

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

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

Duality in Logic Programming

Duality in Logic Programming Syracuse University SURFACE Electrical Engineering and Computer Science Technical Reports College of Engineering and Computer Science 3-1991 Duality in Logic Programming Feng Yang Follow this and additional

More information

Generalized Closed World Assumption is ng-complete*

Generalized Closed World Assumption is ng-complete* Generalized Closed World Assumption is ng-complete* TR89-036 October, 1989 Jan Chomicki V.S. Subrahmanian 1 The University of North Carolina at Chapel Hill Department of Computer Science CB#3175, Sitterson

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

Bottom-up Evaluation and Query Optimization of Well-Founded. Models. Abstract

Bottom-up Evaluation and Query Optimization of Well-Founded. Models. Abstract Bottom-up Evaluation and Query Optimization of Well-Founded Models David B. Kemp Divesh Srivastava y Peter J. Stuckey Abstract We present a bottom-up operational procedure for computing well-founded models

More information

Level mapping characterizations for quantitative and disjunctive logic programs

Level mapping characterizations for quantitative and disjunctive logic programs Level mapping characterizations for quantitative and disjunctive logic programs Matthias Knorr Bachelor Thesis supervised by Prof. Dr. Steffen Hölldobler under guidance of Dr. Pascal Hitzler Knowledge

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

Updating Disjunctive Databases via Model. Trees. John Grant. Computer and Information Sciences, Towson State University.

Updating Disjunctive Databases via Model. Trees. John Grant. Computer and Information Sciences, Towson State University. Updating Disjunctive Databases via Model Trees John Grant Computer and Information Sciences, Towson State University Jaros law Gryz Computer Science Department, University of Maryland, College Park Jack

More information

[36] K.A. Ross. A procedural semantics for well founded negation in logic programs. In ACM

[36] K.A. Ross. A procedural semantics for well founded negation in logic programs. In ACM [36] K.A. Ross. A procedural semantics for well founded negation in logic programs. In ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems, pages 22{33, 1989. [37] K.A. Ross. The Semantics

More information

An assumption-based framework for. Programming Systems Institute, Russian Academy of Sciences

An assumption-based framework for. Programming Systems Institute, Russian Academy of Sciences An assumption-based framework for non-monotonic reasoning 1 Andrei Bondarenko 2 Programming Systems Institute, Russian Academy of Sciences Pereslavle-Zalessky, Russia andrei@troyka.msk.su Francesca Toni,

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

Minimum Model Semantics for Logic Programs With Negation-As-Failure

Minimum Model Semantics for Logic Programs With Negation-As-Failure Minimum Model Semantics for Logic rograms With Negation-As-Failure anos Rondogiannis William W. Wadge Abstract We give a purely model-theoretic characterization of the semantics of logic programs with

More information

computing stable models of propositional normal disjunctive logic programs, using case analysis and simplication. Our procedure enumerates all stable

computing stable models of propositional normal disjunctive logic programs, using case analysis and simplication. Our procedure enumerates all stable Computing Stable Models by rogram Transformation Jurgen Stuber Max-lanck-Institut fur Informatik Im Stadtwald D-66123 Saarbrucken Germany juergen@mpi-sbmpgde Abstract In analogy to the Davis-utnam procedure

More information

Comparing Disjunctive Well-founded Semantics

Comparing Disjunctive Well-founded Semantics Comparing Disjunctive Well-founded Semantics Matthias Knorr 1 and Pascal Hitzler 2 1 CENTRIA, Universidade Nova de Lisboa, Portugal 2 AIFB, Universität Karlsruhe, Germany Abstract. While the stable model

More information

rules strictly includes the class of extended disjunctive programs. Interestingly, once not appears positively as above, the principle of minimality d

rules strictly includes the class of extended disjunctive programs. Interestingly, once not appears positively as above, the principle of minimality d On Positive Occurrences of Negation as Failure 3 Katsumi Inoue Department of Information and Computer Sciences Toyohashi University of Technology Tempaku-cho, Toyohashi 441, Japan inoue@tutics.tut.ac.jp

More information

A Comparison of Disjunctive Well-founded Semantics

A Comparison of Disjunctive Well-founded Semantics A Comparison of Disjunctive Well-founded Semantics Matthias Knorr 1 and Pascal Hitzler 2 1 CENTRIA, Universidade Nova de Lisboa, Portugal 2 AIFB, Universität Karlsruhe, Germany Technical Report AIFB, University

More information

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

Compositionality in SLD-derivations and their abstractions Marco Comini, Giorgio Levi and Maria Chiara Meo Dipartimento di Informatica, Universita di Compositionality in SLD-derivations and their abstractions Marco Comini Giorgio Levi and Maria Chiara Meo Dipartimento di Informatica Universita di Pisa Corso Italia 40 56125 Pisa Italy fcomini levi meog@di.unipi.it

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

particular formulas are entailed by this theory. Autoepistemic logic (as well as other nonmonotonic systems) can be used in this mode, too. Namely, un

particular formulas are entailed by this theory. Autoepistemic logic (as well as other nonmonotonic systems) can be used in this mode, too. Namely, un Fixpoint 3-valued semantics for autoepistemic logic Marc Denecker Department of Computer Science K.U.Leuven Celestijnenlaan 200A, B-3001 Heverlee, Belgium marcd@cs.kuleuven.ac.be Victor Marek and Miros

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

A Fixed Point Representation of References

A Fixed Point Representation of References A Fixed Point Representation of References Susumu Yamasaki Department of Computer Science, Okayama University, Okayama, Japan yamasaki@momo.cs.okayama-u.ac.jp Abstract. This position paper is concerned

More information

Part II. Logic and Set Theory. Year

Part II. Logic and Set Theory. Year Part II Year 2018 2017 2016 2015 2014 2013 2012 2011 2010 2009 2008 2007 2006 2005 2018 60 Paper 4, Section II 16G State and prove the ǫ-recursion Theorem. [You may assume the Principle of ǫ- Induction.]

More information

Propositional Logic Language

Propositional Logic Language Propositional Logic Language A logic consists of: an alphabet A, a language L, i.e., a set of formulas, and a binary relation = between a set of formulas and a formula. An alphabet A consists of a finite

More information

Ultimate approximation and its application in nonmonotonic knowledge representation systems

Ultimate approximation and its application in nonmonotonic knowledge representation systems Ultimate approximation and its application in nonmonotonic knowledge representation systems Marc Denecker Department of Computer Science, K.U.Leuven Celestijnenlaan 200A, B-3001 Heverlee Département d

More information

Pushing Extrema Aggregates to Optimize Logic Queries. Sergio Greco

Pushing Extrema Aggregates to Optimize Logic Queries. Sergio Greco Pushing Extrema Aggregates to Optimize Logic Queries Sergio Greco DEIS - Università della Calabria ISI-CNR 87030 Rende, Italy greco@deis.unical.it Abstract In this paper, we explore the possibility of

More information

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION

KRIPKE S THEORY OF TRUTH 1. INTRODUCTION KRIPKE S THEORY OF TRUTH RICHARD G HECK, JR 1. INTRODUCTION The purpose of this note is to give a simple, easily accessible proof of the existence of the minimal fixed point, and of various maximal fixed

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

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

Partial Grounded Fixpoints

Partial Grounded Fixpoints Proceedings of the Twenty-Fourth International Joint Conference on Artificial Intelligence (IJCAI 2015) Partial Grounded Fixpoints Bart Bogaerts, Joost Vennekens, Marc Denecker Department of Computer Science,

More information

Independence of Boolean algebras and forcing

Independence of Boolean algebras and forcing Annals of Pure and Applied Logic 124 (2003) 179 191 www.elsevier.com/locate/apal Independence of Boolean algebras and forcing Milos S. Kurilic Department of Mathematics and Informatics, University of Novi

More information

Nested Epistemic Logic Programs

Nested Epistemic Logic Programs Nested Epistemic Logic Programs Kewen Wang 1 and Yan Zhang 2 1 Griffith University, Australia k.wang@griffith.edu.au 2 University of Western Sydney yan@cit.uws.edu.au Abstract. Nested logic programs and

More information

A strongly rigid binary relation

A strongly rigid binary relation A strongly rigid binary relation Anne Fearnley 8 November 1994 Abstract A binary relation ρ on a set U is strongly rigid if every universal algebra on U such that ρ is a subuniverse of its square is trivial.

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

Class Notes on Poset Theory Johan G. Belinfante Revised 1995 May 21

Class Notes on Poset Theory Johan G. Belinfante Revised 1995 May 21 Class Notes on Poset Theory Johan G Belinfante Revised 1995 May 21 Introduction These notes were originally prepared in July 1972 as a handout for a class in modern algebra taught at the Carnegie-Mellon

More information

Lecture Notes 1 Basic Concepts of Mathematics MATH 352

Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Lecture Notes 1 Basic Concepts of Mathematics MATH 352 Ivan Avramidi New Mexico Institute of Mining and Technology Socorro, NM 87801 June 3, 2004 Author: Ivan Avramidi; File: absmath.tex; Date: June 11,

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

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

Default Reasoning and Belief Revision: A Syntax-Independent Approach. (Extended Abstract) Department of Computer Science and Engineering

Default Reasoning and Belief Revision: A Syntax-Independent Approach. (Extended Abstract) Department of Computer Science and Engineering Default Reasoning and Belief Revision: A Syntax-Independent Approach (Extended Abstract) Dongmo Zhang 1;2, Zhaohui Zhu 1 and Shifu Chen 2 1 Department of Computer Science and Engineering Nanjing University

More information

[8]. Stable model semantics coincides with the semantics based on stable expansions of autoepistemic logic [13]. This demonstrates how the declarative

[8]. Stable model semantics coincides with the semantics based on stable expansions of autoepistemic logic [13]. This demonstrates how the declarative Cautious Models for General Logic Programs Tomi Janhunen, Digital Systems Laboratory, Helsinki University of Technology, Otakaari 1, FIN-02150 Espoo, FINLAND. Email: Tomi.Janhunen@hut. May 24, 1995 Abstract

More information

Computing Loops With at Most One External Support Rule

Computing Loops With at Most One External Support Rule Computing Loops With at Most One External Support Rule Xiaoping Chen and Jianmin Ji University of Science and Technology of China P. R. China xpchen@ustc.edu.cn, jizheng@mail.ustc.edu.cn Fangzhen Lin Department

More information

Predicates and Predicate Transformers for. Systems 1. Ratnesh Kumar. Department of Electrical Engineering. University of Kentucky

Predicates and Predicate Transformers for. Systems 1. Ratnesh Kumar. Department of Electrical Engineering. University of Kentucky Predicates and Predicate Transformers for Supervisory Control of Discrete Event Dynamical Systems 1 Ratnesh Kumar Department of Electrical Engineering University of Kentucy Lexington, KY 40506-0046 Vijay

More information

Computability and Complexity

Computability and Complexity Computability and Complexity Non-determinism, Regular Expressions CAS 705 Ryszard Janicki Department of Computing and Software McMaster University Hamilton, Ontario, Canada janicki@mcmaster.ca Ryszard

More information

model semantics of [5] can be faithfully embedded in fuzzy logic programs under our stable semantics. 2 Preliminaries A predicate logic signature = hr

model semantics of [5] can be faithfully embedded in fuzzy logic programs under our stable semantics. 2 Preliminaries A predicate logic signature = hr A Logical Reconstruction of Fuzzy Inference in Databases and Logic Programs Gerd Wagner * gw@inf.fu-berlin.de http://www.informatik.uni-leipzig.de/gwagner Abstract We propose to replace Zadeh's DeMorgan-type

More information

Denition 2: o() is the height of the well-founded relation. Notice that we must have o() (2 ) +. Much is known about the possible behaviours of. For e

Denition 2: o() is the height of the well-founded relation. Notice that we must have o() (2 ) +. Much is known about the possible behaviours of. For e Possible behaviours for the Mitchell ordering James Cummings Math and CS Department Dartmouth College Hanover NH 03755 January 23, 1998 Abstract We use a mixture of forcing and inner models techniques

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

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

1 Introduction In this paper we propose a framework for studying the process of database revision. Revisions that we have in mind are specied by means

1 Introduction In this paper we propose a framework for studying the process of database revision. Revisions that we have in mind are specied by means Revision programming Victor W. Marek Miros law Truszczynski Department of Computer Science University of Kentucky Lexington, KY 40506-0027 Abstract In this paper we introduce revision programming a logic-based

More information

Completeness of Hyper-Resolution via the Semantics of Disjunctive Logic Programs

Completeness of Hyper-Resolution via the Semantics of Disjunctive Logic Programs Completeness of Hyper-Resolution via the Semantics of Disjunctive Logic Programs Linh Anh Nguyen Rajeev Goré Institute of Informatics RSISE and NICTA University of Warsaw The Australian National University

More information

Two-Valued Logic Programs

Two-Valued Logic Programs Two-Valued Logic Programs Vladimir Lifschitz University of Texas at Austin, USA Abstract We define a nonmonotonic formalism that shares some features with three other systems of nonmonotonic reasoning

More information

Mathematische Fakultat, Universitat Tubingen, Germany. Abstract. We study strictly level-decreasing logic programs (sld-programs) as dened earlier

Mathematische Fakultat, Universitat Tubingen, Germany. Abstract. We study strictly level-decreasing logic programs (sld-programs) as dened earlier Strictly Level-Decreasing Logic Programs 1 Anthony Karel Seda and Pascal Hitzler Department of Mathematics, National University of Ireland, Cork, Ireland. E-mail: aks@bureau.ucc.ie Mathematische Fakultat,

More information

Elementary Sets for Logic Programs

Elementary Sets for Logic Programs Elementary Sets for Logic Programs Martin Gebser Institut für Informatik Universität Potsdam, Germany Joohyung Lee Computer Science and Engineering Arizona State University, USA Yuliya Lierler Department

More information

(1.) For any subset P S we denote by L(P ) the abelian group of integral relations between elements of P, i.e. L(P ) := ker Z P! span Z P S S : For ea

(1.) For any subset P S we denote by L(P ) the abelian group of integral relations between elements of P, i.e. L(P ) := ker Z P! span Z P S S : For ea Torsion of dierentials on toric varieties Klaus Altmann Institut fur reine Mathematik, Humboldt-Universitat zu Berlin Ziegelstr. 13a, D-10099 Berlin, Germany. E-mail: altmann@mathematik.hu-berlin.de Abstract

More information

A Connection between the Cantor-Bendixson Derivative and the Well-Founded Semantics of Finite Logic Programs

A Connection between the Cantor-Bendixson Derivative and the Well-Founded Semantics of Finite Logic Programs amai manuscript No. (will be inserted by the editor) A Connection between the Cantor-Bendixson Derivative and the Well-Founded Semantics of Finite Logic Programs Douglas Cenzer Jerey B. Remmel Abstract

More information

Stratified, Weak Stratified, and Three-valued Semantics

Stratified, Weak Stratified, and Three-valued Semantics Stratified, Weak Stratified, and Three-valued Semantics Melvin Fitting mlflc@cunyvm.cuny.edu Dept. Mathematics and Computer Science Lehman College (CUNY), Bronx, NY 10468 Depts. Computer Science, Philosophy,

More information

Elementary Sets for Logic Programs

Elementary Sets for Logic Programs Elementary Sets for Logic Programs Martin Gebser Institut für Informatik Universität Potsdam, Germany Joohyung Lee Computer Science and Engineering Arizona State University, USA Yuliya Lierler Department

More information

Tableau Calculus for Local Cubic Modal Logic and it's Implementation MAARTEN MARX, Department of Articial Intelligence, Faculty of Sciences, Vrije Uni

Tableau Calculus for Local Cubic Modal Logic and it's Implementation MAARTEN MARX, Department of Articial Intelligence, Faculty of Sciences, Vrije Uni Tableau Calculus for Local Cubic Modal Logic and it's Implementation MAARTEN MARX, Department of Articial Intelligence, Faculty of Sciences, Vrije Universiteit Amsterdam, De Boelelaan 1081a, 1081 HV Amsterdam,

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

This program is equivalent to: path(x; Y ) edge(x; Y ): path(x; Y ) edge(x; Z); path(z; Y ): The second is a linear program, while the rst is not. In

This program is equivalent to: path(x; Y ) edge(x; Y ): path(x; Y ) edge(x; Z); path(z; Y ): The second is a linear program, while the rst is not. In On Transformations into Linear Database Logic Programs Foto Afrati 1, Manolis Gergatsoulis 2, Maria Katzouraki 2 1 Dept. of Electrical and Computer Engineering, National Technical University of Athens,

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

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

[3] R.M. Colomb and C.Y.C. Chung. Very fast decision table execution of propositional

[3] R.M. Colomb and C.Y.C. Chung. Very fast decision table execution of propositional - 14 - [3] R.M. Colomb and C.Y.C. Chung. Very fast decision table execution of propositional expert systems. Proceedings of the 8th National Conference on Articial Intelligence (AAAI-9), 199, 671{676.

More information

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2.

Review CHAPTER. 2.1 Definitions in Chapter Sample Exam Questions. 2.1 Set; Element; Member; Universal Set Partition. 2. CHAPTER 2 Review 2.1 Definitions in Chapter 2 2.1 Set; Element; Member; Universal Set 2.2 Subset 2.3 Proper Subset 2.4 The Empty Set, 2.5 Set Equality 2.6 Cardinality; Infinite Set 2.7 Complement 2.8 Intersection

More information

INSTITUT F UR INFORMATIK. Lehr- und Forschungseinheit fur. Programmier- und Modellierungssprachen. Oettingenstrae 67, D{80538 Munchen

INSTITUT F UR INFORMATIK. Lehr- und Forschungseinheit fur. Programmier- und Modellierungssprachen. Oettingenstrae 67, D{80538 Munchen INSTITUT F UR INFORMATIK Lehr- und Forschungseinheit fur Programmier- und Modellierungssprachen Oettingenstrae 67, D{80538 Munchen A Goal-Driven Approach to Ecient Query Processing in Disjunctive Databases

More information

Answer Set Programming

Answer Set Programming Quick Summary Department of Applied Informatics Comenius University in Bratislava 2015/2016 Language Definition (Language of LP) constants a, b, c,... variables X, Y, Z,... function symbols f, g, h,...

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

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

2 THE COMPUTABLY ENUMERABLE SUPERSETS OF AN R-MAXIMAL SET The structure of E has been the subject of much investigation over the past fty- ve years, s

2 THE COMPUTABLY ENUMERABLE SUPERSETS OF AN R-MAXIMAL SET The structure of E has been the subject of much investigation over the past fty- ve years, s ON THE FILTER OF COMPUTABLY ENUMERABLE SUPERSETS OF AN R-MAXIMAL SET Steffen Lempp Andre Nies D. Reed Solomon Department of Mathematics University of Wisconsin Madison, WI 53706-1388 USA Department of

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

2 logic, such as those for resolution and hyperresolution. A number of recent developments serve as the motivation for the current paper. In [2, 3], i

2 logic, such as those for resolution and hyperresolution. A number of recent developments serve as the motivation for the current paper. In [2, 3], i Sequents, Frames, and Completeness Thierry Coquand 1 and Guo-Qiang Zhang 2?? 1 Department of Computer Science, University of Goteborg S 412 96, Goteborg, Sweden coquand@cs.chalmers.se 2 Department of Computer

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

A Tree Construction of the Preferable Answer Sets for Prioritized Basic Disjunctive Logic Programs

A Tree Construction of the Preferable Answer Sets for Prioritized Basic Disjunctive Logic Programs A Tree Construction of the Preferable Answer Sets for Prioritized Basic Disjunctive Logic Programs Zaiyue Zhang 1, Yuefei Sui 2, and Cungen Cao 2 1 Department of Computer Science, Jiangsu University of

More information

Introduction to Kleene Algebras

Introduction to Kleene Algebras Introduction to Kleene Algebras Riccardo Pucella Basic Notions Seminar December 1, 2005 Introduction to Kleene Algebras p.1 Idempotent Semirings An idempotent semiring is a structure S = (S, +,, 1, 0)

More information

Gerwin Klein, June Andronick, Ramana Kumar S2/2016

Gerwin Klein, June Andronick, Ramana Kumar S2/2016 COMP4161: Advanced Topics in Software Verification {} Gerwin Klein, June Andronick, Ramana Kumar S2/2016 data61.csiro.au Content Intro & motivation, getting started [1] Foundations & Principles Lambda

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

Contents Propositional Logic: Proofs from Axioms and Inference Rules

Contents Propositional Logic: Proofs from Axioms and Inference Rules Contents 1 Propositional Logic: Proofs from Axioms and Inference Rules... 1 1.1 Introduction... 1 1.1.1 An Example Demonstrating the Use of Logic in Real Life... 2 1.2 The Pure Propositional Calculus...

More information

Canonical extensions and the intermediate structure

Canonical extensions and the intermediate structure Canonical extensions and the intermediate structure Andrew Craig Mathematical Institute, Oxford University Workshop on Lattices, Relations and Kleene Algebras UCL 21 September 2010 Let L be a lattice and

More information

Denability of Boolean function classes by linear equations

Denability of Boolean function classes by linear equations Discrete Applied Mathematics 142 (2004) 29 34 www.elsevier.com/locate/dam Denability of Boolean function classes by linear equations over GF(2) Miguel Couceiro a;b, Stephan Foldes a a Institute of Mathematics,

More information

Ultimate approximation and its application in nonmonotonic knowledge representation systems

Ultimate approximation and its application in nonmonotonic knowledge representation systems Ultimate approximation and its application in nonmonotonic knowledge representation systems Marc Denecker a a Department of Computer Science, K.U.Leuven Celestijnenlaan 200A, B-3001 Heverlee Département

More information

Finite information logic

Finite information logic Finite information logic Rohit Parikh and Jouko Väänänen January 1, 2003 Abstract: we introduce a generalization of Independence Friendly (IF) logic in which Eloise is restricted to a nite amount of information

More information

Löwenheim-Skolem Theorems, Countable Approximations, and L ω. David W. Kueker (Lecture Notes, Fall 2007)

Löwenheim-Skolem Theorems, Countable Approximations, and L ω. David W. Kueker (Lecture Notes, Fall 2007) Löwenheim-Skolem Theorems, Countable Approximations, and L ω 0. Introduction David W. Kueker (Lecture Notes, Fall 2007) In its simplest form the Löwenheim-Skolem Theorem for L ω1 ω states that if σ L ω1

More information

Solvability of Word Equations Modulo Finite Special And. Conuent String-Rewriting Systems Is Undecidable In General.

Solvability of Word Equations Modulo Finite Special And. Conuent String-Rewriting Systems Is Undecidable In General. Solvability of Word Equations Modulo Finite Special And Conuent String-Rewriting Systems Is Undecidable In General Friedrich Otto Fachbereich Mathematik/Informatik, Universitat GH Kassel 34109 Kassel,

More information

form, but that fails as soon as one has an object greater than every natural number. Induction in the < form frequently goes under the fancy name \tra

form, but that fails as soon as one has an object greater than every natural number. Induction in the < form frequently goes under the fancy name \tra Transnite Ordinals and Their Notations: For The Uninitiated Version 1.1 Hilbert Levitz Department of Computer Science Florida State University levitz@cs.fsu.edu Intoduction This is supposed to be a primer

More information

Negation. Logic and Deductive Databases. Xuegang Wang. School of Computer Studies. The University of Leeds

Negation. Logic and Deductive Databases. Xuegang Wang. School of Computer Studies. The University of Leeds Negation in Logic and Deductive Databases Xuegang Wang School of Computer Studies The University of Leeds A September 1999 Submitted in accordance with the requirements for the degree of Doctor of Philosophy.

More information

for Propositional Temporal Logic with Since and Until Y. S. Ramakrishna, L. E. Moser, L. K. Dillon, P. M. Melliar-Smith, G. Kutty

for Propositional Temporal Logic with Since and Until Y. S. Ramakrishna, L. E. Moser, L. K. Dillon, P. M. Melliar-Smith, G. Kutty An Automata-Theoretic Decision Procedure for Propositional Temporal Logic with Since and Until Y. S. Ramakrishna, L. E. Moser, L. K. Dillon, P. M. Melliar-Smith, G. Kutty Department of Electrical and Computer

More information

Combining explicit Negation and. Negation by Failure via Belnap's Logic. Francois FAGES. Paul RUET. Laboratoire d'informatique, URA 1327 du CNRS

Combining explicit Negation and. Negation by Failure via Belnap's Logic. Francois FAGES. Paul RUET. Laboratoire d'informatique, URA 1327 du CNRS Combining explicit Negation and Negation by Failure via Belnap's Logic Francois FAGES Paul RUET Laboratoire d'informatique, URA 1327 du CNRS Departement de Mathematiques et d'informatique Ecole Normale

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

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

current set (database, belief set) and none of the elements b l, 1 l n, belongs to the current set then, in the case of rule (1), the item a should be

current set (database, belief set) and none of the elements b l, 1 l n, belongs to the current set then, in the case of rule (1), the item a should be Annotated revision programs Victor Marek Inna Pivkina Miros law Truszczynski Department of Computer Science, University of Kentucky, Lexington, KY 40506-0046 marek inna mirek@cs.engr.uky.edu Abstract Revision

More information

same literal in a formula), and useful equivalence-preserving operations based on anti-links are

same literal in a formula), and useful equivalence-preserving operations based on anti-links are Fast Subsumption Checks Using Anti-Links Anavai Ramesh y Intel Corporation, MS CH6-418, 5000 W. Chandler Blvd., Chandler, AZ 85226. Email: agramesh@sedona.intel.com Bernhard Beckert and Reiner Hahnle University

More information

of acceptance conditions (nite, looping and repeating) for the automata. It turns out,

of acceptance conditions (nite, looping and repeating) for the automata. It turns out, Reasoning about Innite Computations Moshe Y. Vardi y IBM Almaden Research Center Pierre Wolper z Universite de Liege Abstract We investigate extensions of temporal logic by connectives dened by nite automata

More information

Semantic Forcing in Disjunctive Logic Programs

Semantic Forcing in Disjunctive Logic Programs Semantic Forcing in Disjunctive Logic Programs Marina De Vos and Dirk Vermeir Dept. of Computer Science Free University of Brussels, VUB Pleinlaan 2, Brussels 1050, Belgium Abstract We propose a semantics

More information

Disjunctive Bottom Set and Its Computation

Disjunctive Bottom Set and Its Computation Disjunctive Bottom Set and Its Computation Wenjin Lu and Ross King Department of Computer Science, University of Wales, Aberystwyth Ceredigion, SY23 3DB, Wales, UK e-mail:{wwl, rdk}@aber.ac.uk Abstract

More information

Krivine s Intuitionistic Proof of Classical Completeness (for countable languages)

Krivine s Intuitionistic Proof of Classical Completeness (for countable languages) Krivine s Intuitionistic Proof of Classical Completeness (for countable languages) Berardi Stefano Valentini Silvio Dip. Informatica Dip. Mat. Pura ed Applicata Univ. Torino Univ. Padova c.so Svizzera

More information

On Modal Logics of Partial Recursive Functions

On Modal Logics of Partial Recursive Functions arxiv:cs/0407031v1 [cs.lo] 12 Jul 2004 On Modal Logics of Partial Recursive Functions Pavel Naumov Computer Science Pennsylvania State University Middletown, PA 17057 naumov@psu.edu June 14, 2018 Abstract

More information

Part II Logic and Set Theory

Part II Logic and Set Theory Part II Logic and Set Theory Theorems Based on lectures by I. B. Leader Notes taken by Dexter Chua Lent 2015 These notes are not endorsed by the lecturers, and I have modified them (often significantly)

More information

Stanford Encyclopedia of Philosophy

Stanford Encyclopedia of Philosophy Stanford Encyclopedia of Philosophy The Mathematics of Boolean Algebra First published Fri Jul 5, 2002; substantive revision Mon Jul 14, 2014 Boolean algebra is the algebra of two-valued logic with only

More information

A Study on Monotone Self-Dual Boolean Functions

A Study on Monotone Self-Dual Boolean Functions A Study on Monotone Self-Dual Boolean Functions Mustafa Altun a and Marc D Riedel b a Electronics and Communication Engineering, Istanbul Technical University, Istanbul, Turkey 34469 b Electrical and Computer

More information