Combining First-Order Logic Knowledge Bases and Logic Programming using fol-programs Master Thesis

Size: px
Start display at page:

Download "Combining First-Order Logic Knowledge Bases and Logic Programming using fol-programs Master Thesis"

Transcription

1 Combining First-Order Logic Knowledge Bases and Logic Programming using fol-programs Master Thesis Michael Felderer, July 2006 supervised by Univ.-Prof. Dr. Thomas Strang under co-supervision of Jos De Bruijn, MSc

2 Abstract The integration of knowledge bases in classical first-order logic (and in particular of ontologies in various description logics) with rule languages rooted in logic programming is receiving considerable attention in the context of current efforts around Semantic-Web languages. Towards this integration we introduce fol-programs, which combine logic programs under the answer set and the wellfounded semantics with first-order logic knowledge bases and which generalize dl-programs, a closely related approach combining description logics with rules. Therefore, we define a syntax and a semantics for fol-programs, namely we define minimal model, strong answer set, weak answer set and well-founded semantics for fol-programs, to properly generalize the semantics of ordinary logic programs to fol-programs. We then show computational properties of fol-programs and prove that fol-programs are more expressive than dl-programs. Finally, we present our implementation of the well-founded semantics of fol-programs based on the deductive database engine Ontobroker and the automated theorem prover for first-order logic Vampire and discuss representative reasoning experiments on it. i

3 Acknowledgements I would like to thank my immediate supervisor Jos de Bruijn for his guidance through my thesis. He always tried to answer my questions in full depth as soon as possible and let me profit from his tremendous knowledge on logic programming and combinations of it with classical theories. Also, I wish to thank all my lecturers who guided me through the master course in computer science at the University of Innsbruck and taught me the theoretical principles which made it possible for me to work on this thesis. In this sense, I especially want to thank Axel Polleres for his lecture on logic programming, Jos de Bruijn for his lecture on the Semantic Web and Georg Moser for his lectures on logic and algorithm theory. Finally, I want to thank my parents, Peter and Theresia, for their understanding, support and endless love. ii

4 Contents Abstract Acknowledgements List of Figures i ii vi List of Tables 1 1 Introduction 2 2 Preliminaries First-Order Logic Logic Programming Minimal Herbrand model Answer Set Semantics Well-Founded Semantics Description Logics Decidability and Undecidability Combining Classical Logics with Nonmonotonic Rules Issues to Combining Classical Logics and Rule-based Languages Domain of Discourse Uniqueness of Names Interaction between FOL knowledge bases and Rules Settings for Combining Classical Logic and Rules Current Approaches Combining Knowledge Bases SWRL and Subsets DL + log and its Predecessors dl-programs dl-programs Syntax Semantics Minimal Model Semantics of positive dl-programs iii

5 4.2.2 Answer Set Semantics of dl-programs Strong Answer Set Semantics of dl-programs Weak Answer Set Semantics of dl-programs Well-Founded Semantics of dl-programs fol-programs Syntax Semantics Minimal Model Semantics of positive fol-programs Answer Set Semantics of fol-programs Strong Answer Set Semantics of fol-programs Weak Answer Set Semantics of fol-programs Well-Founded Semantics of fol-programs Properties of fol-programs Computational Properties of fol-programs fol-programs and dl-programs Implementation and Experiments Reasoning Tools Vampire Ontobroker Input Format of the fol-programs reasoner Syntax of fol-rules Syntax of FOL knowledge bases Architecture of the fol-programs reasoner Implementation of the fol-programs builtins Overview Main classes Experiments Example Example Example Example Summary and Conclusions 90 Bibliography 92 A Listings of fol-programs 98 A.1 Source of Example A.1.1 Listing of abstract dl.flo A.1.2 Listing of abstract dl.flo A.1.3 Queries and Results iv

6 A.2 Source of Example A.2.1 Listing of computer shop.flo A.2.2 Listing of computer shop.vkb A.2.3 Queries and Results A.3 Source of Example A.3.1 Listing of graph.flo A.3.2 Listing of graph.vkb A.3.3 Queries and Results A.3.4 Additional Example A.4 Source of Example A.4.1 Listing of numbers.flo A.4.2 Listing of numbers.vkb A.4.3 Queries and Results v

7 List of Figures 6.1 Ontobroker Inference Procedure Architecture of fol-programs implementation Class Diagram of Fol Builtin Graph A.1 Family Graph vi

8 List of Tables 5.1 Knowledge Base Mapping Example Mapping of SHOIN axioms in computer shop KB to FOL formulas 87 1

9 Chapter 1 Introduction The question of combining knowledge bases in classical first-order logic with rule languages rooted in logic programming is recently gaining increasing interest in the context of the Semantic Web. The latter is built from different layers, of which the Ontology Layer is currently the highest layer of sufficient maturity, as evidenced by the W3C recommendation of the OWL Web ontology language [DS04]. Attention is now shifting towards defining a rule language for the Semantic Web which integrates with OWL. Such a rule language allows for defining relationships between the data on the Semantic Web, integrity constraints, policies, reactive behavior and workflows. From a formal point of view, OWL (DL) can be seen as a syntactic variant of an expressive description logic [BCM + 03], i.e., SHOIN (D) [HPS03], which is a decidable subset of classical-first order logic. Declarative rule languages, on the contrary, are usually based on logic programming, adopting a non-classical semantics via minimal Herbrand models and often including extensions with nonmonotonic negation [GRS91, GL88]. Therefore the main differences between classical logic and rule-based languages are assumptions concerning an open vs. a closed world, an open vs. a closed domain and non-uniqueness vs. uniqueness of names. Combinations of ontologies, or more generally, first-order logic (FOL) knowledge bases, and rule bases need to take these differences into account. There have recently been several approaches for integrating such classical ontologies (FOL knowledge bases) and rules [ELST04a, ELST04b, Ros05, Ros06, GHVD03, HPSB + 04, MSS05]. From all these approaches SWRL [HPSB + 04], DL + log [Ros06] and dl-programs [ELST04a, ELST04b] are the most promising ones [dbept06]. In SWRL and DL + log the interaction between rules and FOL knowledge bases is based on single models whereas in dl-programs the interaction is based on exchanging entailments. Therefore, in dl-programs the logic program and the description logics knowledge base are viewed as separate components which are only connected through a minimal interface. This allows for a more flexible and intuitive integration of rules and classical ontologies in dl-programs than in SWRL and DL + log. Therefore, it is possible to implement an efficient 2

10 reasoning system for dl-programs by a straightforward integration of existing reasoners and to apply different semantics to dl-programs, namely answer set semantics, which is widely used for knowledge representation and reasoning in planning, scheduling and combinatorics and which allows for using powerful off-the-shelf reasoners like DLV [LPF + 04], and well-founded semantics, which assigns an unique well-founded model to every logic program and allows for efficient query answering on the Semantic Web. According to that we think that dl-programs are a very promising approach for further extensions. Especially for modelling complex domains of knowledge and for reasoning on them, it may be useful to combine rules with full firstorder logic ontologies, which allow for expressing knowledge beyond description logics [Bor96]. Therefore, in this thesis we extend dl-programs to fol-programs, combining logic programs using arbitrary terms under the answer set and wellfounded semantics with full first-order knowledge bases. Obviously, fol-programs are more expressive than dl-programs and can therefore simulate them and the key inference tasks of fol-programs are only decidable if the inference tasks are decidable in the logic program and if satisfiability is decidable in the FOL knowledge base. Our main contributions are as follows. We consider some alternatives for the syntax of fol-programs and discuss their advantages and disadvantages. Based on the results of our discussion we fix a syntax for fol-programs, define it formally and provide some examples which explain the definitions. We then define the semantics of fol-programs in three steps. We first define minimal model semantics for positive fol-programs which is the basis for answer set semantics and well-founded semantics. Then we define two flavors of answer set semantics, namely strong answer set semantics resp., weak answer set semantics to handle resp., ignore the nonmonotonicity of some queries to the FOL knowledge base. Finally, we define well-founded semantics for fol-programs without classical negation and without nonmonotonic queries to the FOL knowledge base. The canonical reasoning tasks, i.e., checking Strong Answer Set Existence, Weak Answer Set Existence and Well-Founded Entailment are undecidable for fol-programs in general. We then show for each of these reasoning tasks that it is decidable if we restrict our fol-program to function-free rules and to an FOL knowledge base for which satisfiability is decidable. We show that fol-programs are strictly more expressive than dl-programs by (i) defining a mapping which assigns to every dl-program an fol-program in a way such that both programs have the same semantics, i.e., the same minimal models, the same strong resp., weak answer sets and the same well-founded model, and 3

11 (ii) by providing examples of fol-programs for which no dl-program with the same meaning exists. We have implemented the well-founded semantics of fol-programs, which allows for efficient query-answering on the Semantic Web, based on Ontobroker as logic programming reasoner and Vampire as first-order reasoner. We have then tested the implementation on some examples to show its expressive power and the simulation of dl-programs. The thesis is structured by the following chapter numbers: 2 Preliminaries. In this chapter we define the basic concepts needed for formally defining the syntax, the semantics and computational properties of folprograms, i.e., we review the syntax and semantics of first-order logic, logic programming and description logics and we informally introduce the notion of decidability. 3 Combining Classical Logics with Nonmonotonic Rules. In this chapter we address the main differences between classical logics and rule-based languages and then we discuss current approaches combining FOL and LP, namely SWRL and its subsets, DL + log and its predecessors and dl-programs. 4 dl-programs. In this chapter we review dl-programs formally and discuss some semantical and computational properties of them. 5 fol-programs. In this chapter we motivate and define the syntax, answer set semantics and well-founded semantics of fol-programs. We then show that fol-programs are strictly more expressive than dl-programs and define decidable fragments of fol-programs. 6 Implementation and Experiments. In this chapter we describe our prototypical implementation of the well-founded semantics of fol-programs based on Ontobroker and Vampire and experiments with it. 7 Summary and Conclusion. Finally we summarize our work, draw conclusions about our investigations on fol-programs and discuss possible future extensions of fol-programs. 4

12 Chapter 2 Preliminaries In this chapter we define those concepts formally, needed for a formal definition of dl-programs in Chapter 4 and fol-programs in Chapter 5. In Section 2.1 we review First-Order Logic, following [Fit96]. In Section 2.2 we review Logic Programming restricted to extended programs: we treat minimal Herbrand models which are appropriate for defining the semantics of positive programs and stratified programs [Llo87], answer set semantics [GL88] and well-founded semantics [GRS91] which both capture the semantics of normal programs. In Section 2.3 we introduce description logics as a very important formalism for representing ontologies. Finally, in Section 2.4 we study basic results of decidability in first-order logic, logic programming and description logics. 2.1 First-Order Logic In this section, we review classical First-Order Predicate Logic under the usual Tarski-style semantics (see e.g. [Fit96] or [End00]). In our treatment of First- Order Logic we follow the treatment of [Fit96]. Only those concepts of first-order logic are defined (sometimes without any additional motivation) that are applied in the following chapters. Every first-order language L is constructed by a collection of different categories of symbols: (1) a countable set of variables V, whose elements are written as x 1, x 2,... (or informally as x, y, z) (2) a finite set of operators:,,,,, ( bottom ), ( top ), ( forall ), ( exists ), = (3) a finite set of auxiliary symbols: parentheses, comma (4) countable sets of constant symbols, function symbols and predicates symbols, called a signature 5

13 Categories (1) - (3) are fixed, but (4), its so called signature, may vary for every first order-language L. Therefore, a first-order language is determined by the choice of its signature. Definition 2.1 (Signature). The signature Σ of a first-order language L is defined by a finite or countable set P of relation symbols or predicate symbols, each of which has a positive integer, called arity, associated with it finite or countable set F of function symbols, each of which has a positive integer, called arity, associated with it finite or countable set C of constant symbols A signature Σ = P, F, C is function-free iff F =. A first order-language is function-free iff its signature is function-free. The signature Σ of a first-order language L is denoted by Σ = P, F, C if its signature is of special interest. If we do not want to define the signature Σ = P, F, C of a first-order language L explicitly or stress its relation to a language, then we write L(P, F, C). We now define terms and atomic formulae by induction. Definition 2.2 (Terms). Let Σ = P, F, C be the signature of a first-order language L. The set of terms of L is defined as follows: Any variable is a term in L. Any constant in C is a term in L. If f is a function symbol in F of arity n and t 1,..., t n are terms in L, then f(t 1,..., t n ) is a term in llang. A ground term is a term without variables. Definition 2.3 (Atomic Formulae). Let Σ = P, F, C be the signature of a firstorder language L. The set of atomic formulae, also called atoms, of L is defined as follows: If p is a predicate symbol in P of arity n and t 1,..., t n are terms in L, then p(t 1,..., t n ) is an atomic formula in L. and are atomic formulae in L. If t 1, t 2 are terms in L, then t 1 = t 2 is an atomic formula in L. Ground atomic formulae or ground atoms are atomic formulae without variables. 6

14 The arity assigned to function symbols and predicate symbols is denoted by superscripted numbers. E.g., f 1 may denote a function symbol of arity 1 and p 2 may denote a predicate symbol of arity 2. In the remainder, the arity may be assigned implicitly to function symbols and predicate symbols by a consistent application of the symbols in the definition of knowledge bases or rules. For an n-ary predicate symbol p, the list of terms t 1,..., t n may be replaced by a boldface letter and thus, p(t 1,..., t n ) may also be written as p(t). This notation is especially used for denoting dl-atoms and fol-atoms in the following chapters. Based on the definitions of terms and atomic formulae, we now define inductively define formulae. Definition 2.4 (Formulae). Given the formulae φ, ψ L, the set of formulae of a first-order language L is defined as follows: Every atomic formula is a formula in L. φ is a formula in L. (negation) (φ ψ) is a formula in L. (conjunction) (φ ψ) is a formula in L. (disjunction) (φ ψ) is a formula in L. (implication) (φ ψ) is a formula in L. (equivalence) Given the variable x, then x φ is a formula L. Given the variable x, then x φ is a formula in L. Definition 2.5 (Literal). Let L be a first-order language. A literal in a firstorder language L is an atom in L or the negation of an atom in L. A positive literal in L is an atom in L. A negative literal in L is the negation of an atom in L. A ground literal in L is a ground atom in L or the negation of a ground atom in L. The set of terms, resp., the set atoms, resp., the set of formulae resp., the set of literals of a first-order language L is also denoted by L-terms, resp., L-atoms, resp., L-formulae, resp., L-literals. Definition 2.6. The scope of x (resp., x) in x φ (resp., x φ) is φ. Quantifier combinations x and x bind every occurrence of x in their scope. Occurrences of variables that are not bound, are called free. A formula is open if it has free variables. A formula is closed if it has no free variables. A closed formula is also called a sentence. 7

15 Example 2.1. Let L be a first-order language with signature Σ = P, F, C, where P = {p 1, q 2 }, F = {f 1, g 2 } and C = {a, b, c}. Then, g(x, b) and g(f(x), y) are terms in L. q(a, g(c, y)) and f(a) = g(f(x), c) are (atomic) formulae and thus literals in L, p(a) is a negative literal in L, (p(x) q(a, f(x))) and x(p(x) p(a)) are formulae in L. x q(x, y) is not a closed formula because y occurs free in it. The formula y x q(x, y) does not have a free occurrence of any variable, therefore it is closed. If we write φ L, then we treat a first-order language L as a set of formulae, such that φ L iff φ is a formula in L according to Definition 2.4. The arity of all function and predicate symbols is denoted implicitly by a consistent application of these symbols. The signature of φ L is the signature of the first-order language L. Definition 2.7 (FOL knowledge base). An FOL knowledge base Φ, also called an FOL theory, in a first-order language L is a set of formulae in L, denoted Φ L. The signature of Φ is obtained from all the constant symbols, function symbols and predicate symbols which occur in Φ. A FOL knowledge base is function-free iff its signature is function-free. Definition 2.8 (Interpretation). An interpretation for a first-order language L(P, F, C) (or L-interpretation) is a pair I = D, J, where D is a nonempty set, called the domain of the interpretation and J is a mapping, called the interpretation function, which associates: to every constant symbol c C an element c J D. to every function symbol f F of arity n, some n-ary function f J : D n D. to very predicate symbol p P of arity n, some n-ary relation p J D n. A variable assignment A in a L-interpretation I = D, J is a mapping which assigns an element x A D to every variable in L. A variable assignment A is an x-variant of A if y A = y A for every variable y x. Definition 2.9. Let I = D, J be an interpretation of the language L(P, F, C), and let A be a variable assignment in this interpretation. To each term t in L we associate a value t I,A as follows: For every constant symbol c C, c I,A = c J. For every variable x in L, x I,A = x A. If t = f(t 1,..., t n ), then t I,A = f J (t I,A 1,..., t I,A n ). 8

16 Example 2.2. Let L be a first-order language with signature Σ, where P =, F = {s, add} and C = {zero}. Let I = D, J be an interpretation with domain D = {0, 1, 2,...} = N 0 and an interpretation function J defined as follows: zero J = 0, s J is the successor function over N 0 and add J is the addition operation over N 0. Thus, if A is a variable assignment such that x A = 2, then (add(x, s(zero))) I,A = 3. Definition 2.10 (Satisfaction). Let I = D, J be an interpretation for L, A a variable assignment and φ a formula in L. We say that an interpretation I satisfies φ, given the variable assignment A, iff I = A φ, which is inductively defined as follows: I = A p(t 1,..., t n ) iff (t I,A 1,..., t I,A n ) p J I = A and I = A I = A t 1 = t 2 iff t I,A 1 = t I,A 2, for terms t 1,t 2 I = A φ iff I = A φ I = A (φ ψ) iff I = A φ and I = A ψ I = A (φ ψ) iff I = A φ or I = A ψ I = A (φ ψ) iff I = A φ or I = A ψ I = A (φ ψ) iff I = A φ or I = A ψ and I = A ψ or I = A φ I = A xφ iff for every x-variant A of A, I = A φ I = A xφ iff for some x-variant A of A, I = A φ A formula φ is satisfied by an interpretation I, i.e., φ is true in I, written I = φ, iff I = A φ for all variable assignments A. We say a formula φ is valid iff I = φ for every interpretation I. We say a formula φ is satisfiable iff I = φ for some interpretation I. We say I is a model of φ iff I = φ. We say I is a model of an FOL knowledge base Φ iff I = φ for every formula φ Φ. An FOL knowledge base Φ is satisfiable if there is a model I of Φ. Example 2.3. Let Σ be a signature with P = {}, F = {s, add} and C = {zero}. Consider I = N 0, J with J as in the previous example and a variable assignment A with x A = 2. Then I = A add(x, zero) = s(s(zero)) because (add(x, zero)) I,A = (s(s(zero))) I,A evaluates to 2 = 2. I = add(x, zero) = add(zero, x) because of the commutativity of the addition operation on N 0. φ φ is a valid formula. 9

17 Definition 2.11 (Entailment, Logical Consequence). An FOL knowledge base Φ entails a formula φ L, written as Φ = φ, iff for all models I in L for which I = Φ, also I = φ. For Φ = φ we also say that φ is a logical consequence of Φ. An FOL knowledge base Φ entails an FOL knowledge base Ψ iff P hi = ψ for every ψ Ψ. Two FOL knowledge bases Φ and Ψ are equivalent iff Φ = Ψ and Ψ = Φ. Every finite FOL knowledge base Φ is equivalent to the conjunction of its elements. Therefore, a knowledge base may also be interpreted as conjunction of formulas. Note that as long as an FOL knowledge base does not contain open formulae, a variable assignment is not necessary to determine the truth of a formulae. In the remainder of this document we assume every FOL knowledge base Φ consists only of closed formulae, unless indicated otherwise. 2.2 Logic Programming Logic Programming is based on a subset of first-order logic, called Horn Logic 1. However, the semantics of logic programs is based on minimal Herbrand models, rather than first-order models [Llo87, Doe94]. Logic Programming can be extended with default negation under different types of semantics. The most popular ones, which are treated in this section and applied in the following chapters, are the Answer Set Semantics (ASS) [GL91] and the Well-Founded Semantics (WFS) [GRS91]. Definition 2.12 (Extended Rule, Normal Rule). Let Σ = P, F, C be a signature, h, b 1,..., b m, m 0 be literals (as defined in the previous section). An extended rule r is of form h b 1,..., b k, not b k+1,..., not b m, m 0, H(r) = h is called the head of r. B(r) = {b 1,..., b k, not b k+1,..., not b m } is called the body of r. B(r) can be partitioned into B + (r) and B (r), where B + (r) = {b 1,..., b k } and B (r) = {b k+1,..., b m }. The elements of B + (r) are said to occur positively and the elements of B (r) are said to occur (default-)negated in the body of the rule r. An extended rule is not-free if B (r) =. A normal rule (or rule) is an extended rule which only has atoms or default-negated atoms in its body. Therefore, normal rules are extended rules where classical negation does not occur. A positive 1 Horn Logic Programs are sets of Horn rules. A Horn rule is a disjunction of literals with at most one positive literal, i.e., it is of form h 1... h n b (the b is optional), which has the same meaning as h 1... h n b 10

18 rule is an extended rule which is not-free. B(r) =. A fact is an extended rule r with We follow the standard convention in logic programming that requires variables in extended programs to begin with a capital letter. Example 2.4. Let Σ = P, F, C be a signature, where P = ({p, q, u}, F = {f} and C = {a}. Then u(x, f(a)) p(x), q(a), not p(a) is an extended rule r with H(r) = u(x, f(a)), B + (r) = {p(x, a), q(a)} and B (r) = { p(a)}. u(x, f(a)) p(x), q(a), not p(a) is a normal rule. p(x) q(x), u(a, a) is a positive rule. For readability reasons, facts are sometimes denoted without arrows, e.g. in the previous example a rule p(a), may also be written as p(a). Definition 2.13 (Extended Program, Normal Program). Let L be a first-order language. An extended program Π is a finite set of extended rules in L. A normal program (or program) is a finite set of normal rules. An extended program is notfree if all rules are not-free. Therefore, normal programs are not-free extended programs. A positive (or definite) program is a program which consists only of positive rules. The signature of an extended program Π is obtained from all constants, function symbols and predicate symbols which occur in Π. It is obtained from all the constants, function symbols and predicate symbols which occur in Π. An extended program is function-free iff its signature is function-free. In the remainder of this document, we assume that a signature Σ is implicitly given for every extended program and we define Σ by all constant symbols, function symbols and predicate symbols occurring in an extended program, i.e., extended programs are denoted as sets of rules and its signature is defined by all constant, function and predicate symbols occurring in it. Example 2.5. The normal program Π is defined as follows: {p(a) q(x, f(b)), not p(x) ; q(a, b) q(b, a)} is not positive because of its first rule. Its signature Σ = P, F, C is defined by P = {p 1, q 2 }, F = {f 1 } and C = {a, b} because these are the predicate, function and constant symbols with the superscripted arity occurring in Π. Note that there are two different types of negation with a different meaning in extended programs: (i)classical negation ( ), also called explicit negation and (ii) negation as failure ( not ), also called default-negation. Intuitively, for an atom a, not a means a is not believed (i.e., is unknown or false), whereas a means s is false (see, e.g. [She88] for formal differences between the two types of negation and further consequences). We say negative literal, as defined in Definition 2.5, for a classical-negated atom and negated literal or NAF-literal for a default-negated literal. 11

19 2.2.1 Minimal Herbrand model First, we introduce the minimal Herbrand semantics for positive programs and then we extend minimal Herbrand semantics for special subclass of rules with default-negation, so called stratified rules. Definition 2.14 (Herbrand universe). The Herbrand universe of an extended program Π, denoted U Π is the set of all ground terms which can be formed using the constant and function symbols in the signature of Π. Definition 2.15 (Herbrand base). The Herbrand base of an extended program Π, denoted B Π, is the set of all ground atomic literals which can be formed with the predicate symbols in the signature of Π and the terms in U Π, i.e., all formulas of the form: p(t 1,..., t n ) or p(t 1,..., t n ) with p an n-ary predicate symbol in the signature of Π and t 1,..., t n U Π. The Herbrand base of a normal program Π, denoted B Π, is the set of all ground atoms Definition 2.16 (Grounding). The grounding of an extended program Π (or ground instantiation of Π), denoted ground(π), is the ground instantiation of Π, which can be obtained as follows: The ground instantiation of a rule r is the collection of all formulae r[x 1 /t 1,..., x n /t n ] with x 1,..., x n denoting the variables which occur in r and t 1,..., t n ranging over all terms in U Π. The ground instantiation of an extended program ground(π) is defined as the union of the ground instantiation of all rules r Π. For literals l = a (resp., l = a), where a is an atom, we use l to denote a (resp., a) and for sets of literals S, we define S = { l l S} and S + = {a S a is an atom}. A set S B Π is consistent iff S S =. A set S B Π which is not consistent is inconsistent. A literal l is inconsistent with S iff l S. Definition 2.17 (Herbrand interpretation). A Herbrand interpretation I of Π is a consistent subset of B Π. A Herbrand interpretation I of an extended program Π corresponds to a first-order logic interpretation U Π, J where U Π is the Herbrand universe of Π and J satisfies the following conditions: c J = c for every constant symbol c C (f(t 1,..., t n )) I = f(t 1,..., t n ) for very n-ary function symbol f F and ground terms t 1,..., t n. and I = φ iff φ is in the Herbrand interpretation. Herbrand interpretations satisfy the unique-names assumption, i.e., for any two distinct ground terms in the Herbrand universe, their interpretations are distinct as well. 12

20 Definition 2.18 (Herbrand model). Let Π be a positive program. A Herbrand interpretation I of Π is a model of Π iff for every rule h b 1,..., b n ground(π) the following condition holds: If b 1,..., b n I, then h I The intersection of all Herbrand models of a positive program Π is also a model of Π (Model Intersection Property) and is called the minimal Herbrand model. There is also a computational characterization of the minimal Herbrand model based on the least fixpoint of the immediate consequence operator of Π. Definition 2.19 (Fixpoint of operators). An operator T is a function T : P(U) P(U), where P(U) denotes the powerset of a countable set U. An operator T : P(U) P(U) is monotonic iff I J implies T (I) T (J) for all I, J U. A set X U is called a fixpoint of the operator T : P(U) P(U) iff T (X) = X. According to the Fixpoint Theorem of Knaster and Tarski [KM97] each monotonic operator T has a least fixpoint lfp(t ). Moreover if an operator T is continuous 2, then by Kleene s theorem [Doe94], lfp(t ) can be computed as follows: lfp(t ) = T ( ), where T i is inductively defined by T 0 =, T i+1 = T (T i ) for i = 0, 1, All operators considered in this document are monotonic and continuous, therefore the least fixpoint can always be computed in this way. Especially, the minimal Herbrand model of a positive program Π can be characterized as least fix point of the following immediate consequence operator. Definition 2.20 (Immediate Consequence Operator). Let Π be a normal program. The immediate consequence operator T Π is the function T Π : P(B Π ) P(B Π ) defined as follows: { BΠ if X inconsistent T Π (X) = {H(r) r ground(π) and l X for all l B(r)} otherwise Example 2.6. The minimal Herbrand model of the following ground positive program Π p(a) r(a) q(a) p(a), r(a) 2 The notion of continuous operators is not defined formally here, because it is based on the theory of lattices, see e.g. [Llo87] for a formal definition. 13

21 can be computed as follows: T 0 Π = T 1 Π = T Π( ) = {p(a), r(a)} TΠ 2 = T Π(TΠ 1 ) = {p(a), r(a), q(a)} TΠ 3 = T Π (TΠ) 2 = TΠ 2 = TΠ. Thus, lfp(t Π ) = T Π = {p(a), r(a), q(a)} is the minimal Herbrand model of Π. Minimal Herbrand models can also be defined for an extended program Π with default negation: A Herbrand interpretation I of Π is a model of Π iff for every rule h b 1,..., b k, not b k+1,..., not b n ground(π) the following condition holds: If b 1,..., b k I and b k+1,..., b n I, then h I But, as the following example shows, the minimal Herbrand model for extended programs is not unique any more. Example 2.7. The following extended program r(a) (2.1) q(x) not p(x), r(x) (2.2) p(x) not q(x), r(x) (2.3) has two minimal Herbrand models: {r(a), q(a)} and {r(a), p(a)}. minimal Herbrand model is not unique. Hence, the The least fixpoint computation of the extension of the immediate consequence operator for extended programs, T Π : P(B Π) P(B Π ), defined as follows: B Π if X inconsistent T Π (X) = {H(r) r ground(π), l X if l B + (r) and l X if l B (r)} otherwise does not compute minimal Herbrand models in general because, e.g. in Example 2.7, {r(a), p(a), q(a)} is a fixpoint of T Π but not a minimal Herbrand model of Example 2.7. Note that for stratified programs, which are a subset of extended programs, the fixpoints of the extended consequence operator T Π are minimal Herbrand models. 14

22 Definition 2.21 (Stratification). A stratification of a normal program Π is a mapping function λ : B Π {0, 1,..., k} such that (i) λ(h(r)) λ(l) for each r ground(π) and l B + (r) (ii) λ(h(r)) > λ(l) for each r ground(π) and l B (r) An extended program Π is stratified iff it has a stratification λ of some length k 0. Example 2.8. The following extended program p(a) r(a) q(x) not p(x), r(x) is stratified because there exists a mapping function λ defined as follows λ(p(a)) = 0, λ(r(a)) = 0, λ(q(a)) = 1. Thus, the minimal Herbrand model can be computed via the extended fixpoint operator and it is {p(a), r(a)}. The extended program in Example 2.7 is not stratified because for a mapping function both λ(q(a)) > λ(p(a)) (according to rule (2.2)) and λ(p(a)) > λ(q(a)) (according to rule (2.3)) must hold, which is not possible. We make use of the definition and computation of minimal Herbrand models in the definitions of answer set and well-founded semantics in Subsections and 2.2.3, but also in the definitions of the semantics of dl-programs in Chapter 4 and fol-programs in Chapter Answer Set Semantics Our treatment of the answer set semantics (ASS) of extended programs follows the original definitions in [GL91]. The underlying ideas of ASS have originally been applied to normal program as stable model semantics (SMS) [GL88]. For normal programs ASS coincides with SMS in the sense that the same set of models is generated. ASS is defined for ground extended programs. Therefore, ASS for arbitrary extended programs Π is defined for its grounding ground(π). We first define Gelfond-Lifschitz transform which transforms an extended program to a positive program. Definition 2.22 (Gelfond-Lifschitz transform). Let Π be an extended program and I B Π. The Gelfond-Lifschitz transform of Π with respect to I, denoted Π I, is obtained from ground(π) by: (i) Deleting each rule r with B (r) I (ii) Deleting the negative body from every remaining rule 15

23 The Gelfond-Lifschitz transform of Π is also called the reduct of Π. Clearly, Π I doesn t contain not, and is therefore a positive logic program which has a unique minimal model used for defining the notion of an answer set of an extended program. Definition 2.23 (Answer Set). Let Π be an extended program. An answer set of Π is an interpretation I B Π such that I is the minimal model of Π I. The following example illustrates the computation of answer sets. Example 2.9. Consider the following normal program Π: p(a) not q(a) q(a) not p(a) Π has two answer sets: {p(a)} and {q(a)}. We can see this as follows: Let I = {p(a)} be an interpretation. The Gelfond-Lifschitz transform Π {p(a)} is p(a). Now, clearly, I is the answer set of Π {p(a)}. Similar for I = {q(a)}. Finally, we define entailment for the answer set semantics. Due to the fact that each normal program may have zero or more answer sets, there are different approaches for defining entailment in answer set semantics. We consider cautious and brave entailment. Definition 2.24 (Cautious Entailment). An extended program Π cautiously entails a ground atomic formula a iff a I for every answer set I of Π. Definition 2.25 (Brave Entailment). An extended program Π bravely entails a ground atomic formula a iff a I for some answer set I of Π. In the remainder of this document, whenever talking about entailment under the answer set semantics we mean cautious entailment, unless specified otherwise Well-Founded Semantics There exist several approaches to well-founded semantics, e.g. [Prz90, Fit91, BS91, GRS91]. Because there is no consensus on how to define well-founded semantics for extended programs, we restrict ourselves to the definition of wellfounded semantics for normal programs. We follow the classical definition of well-founded semantics for normal programs from [GRS91]. Therefore, we first define the notion of an unfounded set, which provides the basis for negative conclusions in the well-founded semantics. 16

24 Definition 2.26 (Partial and Total Interpretation). Let Π be a normal program and B Π its Herbrand base. A partial interpretation of Π, or three-valued interpretation, I is a consistent subset of B Π. A total interpretation of Π, or two-valued interpretation, is a partial interpretation of Π that contains every atom of B Π or its negation. A literal is true in I when it is in I, it is false in I when its complement is in I and we say, it is undefined in I when neither the literal nor its negation is in I. Definition 2.27 (Unfounded Set). Let Π be a normal program, B Π its Herbrand base and I a partial interpretation. U B Π is an unfounded set of Π with respect to I, iff for every h U and every rule r ground(π) with H(r) = h, either (i) b I U for some atom b B + (r), (ii) b I for some atom b B (r). In order to define the well-founded semantics, we introduce three operators (see previous subsection for its definition), also called transformations in this context. Definition For a ground normal program Π and a partial interpretation I B Π we define the transformations T Π : P(B Π ) P(B Π ), U Π : P(B Π ) P(B Π ) and W Π : P(B Π ) P(B Π ) as follows: T Π (I) = {H(r) r Π, B + (r) B (r) I}, i.e., h T Π (I) iff there is some rule r Π with head h and each literal in the body of r is true in I. U Π (I) is the greatest unfounded set of Π with respect to I, which is the union of all sets which are unfounded with respect to I W Π (I) = T Π (I) U Π (I) W Π is monotonic, thus we can define the well-founded semantics of a normal program Π by the least fixpoint of W Π. Definition 2.29 (Well-Founded model). The least fixpoint of W Π, is the wellfounded model of Π, denoted W F M(Π). According to the previous subsection the least fixpoint of W Π can be computed as follows, lfp(w Π ) = W Π ( )3 In case, lfp(w Π ) B Π is a total interpretation of Π, then lfp(w Π ) is a total well-founded model. An atom a B Π is well-founded (resp., unfounded) w.r.t. Π iff a (resp., a) is in lfp(w Π ). WFS is defined for ground normal programs. Therefore, WFS for arbitrary normal programs Π is defined for its grounding ground(π). Finally, we define entailment for the well-founded semantics of normal programs. 3 It is in general not guaranteed that the least fixpoint is finite; thus the computation may never terminate. 17

25 Definition 2.30 (Entailment). A normal program Π entails a ground atom b under the well-founded semantics, denoted Π = b, if it is true in W F M(Π). Example Consider the following normal program Π: p(a) not q(a) q(a) not p(a) Π has one well-founded model in which both p(a) and q(a) are undefined. There are two important distinctions between the answer set semantics for normal programs, also called stable model semantics, and the well-founded semantics as defined in this subsection: (1) the well-founded semantics is threevalued (true, false, undefined), whereas the answer set semantics is two-valued (true, false) and (2) every normal program has exactly one well-founded model, whereas every normal program has zero or more answer sets. There are, however, also commonalities. The following are some of the results which have been obtained from [GRS91] about the relationship between stable model semantics and well-founded semantics. Proposition 2.1 (from [GRS91]). Every stratified normal program Π has a total well-founded model W F M(Π). W F M(Π) is also the unique answer set of Π. Proposition 2.2 (from [GRS91]). If a normal program Π has a total well-founded model W F M(Π), W F M(Π) is also the unique answer set of Π. 2.3 Description Logics Description Logics (DLs) [BCM + 03, BS01, CGLN01] are a family of knowledge representation languages that can be used to represent the knowledge of an application domain in a structured and formally well-understood way. The name description logics is motivated by the fact that, on the one hand, the important notions of the domain are described by concept descriptions, i.e., expressions that are built from atomic concepts (unary predicates) and atomic roles (binary predicates) using the concept and role constructors provided by the particular DL. On the other hand, DLs differ from their predecessors, such as semantic networks and frames, in that they are equipped with a formal, logic-based semantics [BHS03]. Basic description logics differ in the constructors and axioms, they provide for modelling knowledge. In this section, we give formal definitions of the syntax and semantics of the rather expressive Description Logic SHOIN which is also of practical relevance because it is the Description Logic underlying OWL DL [HPS03]. Let A, R and I be nonempty finite and pairwise disjoint sets of atomic concepts, atomic roles and individuals. We use R to denote the set of all inverse R of atomic roles R R. 18

26 A role in the DL SHOIN is an element of R R. A Concept description in the DL SHOIN is inductively defined as follows: Let C,D be concept descriptions, A an atomic concept, R an atomic role, o 1,... o n individuals and n a nonnegative integer. C,D A (atomic concept) (top) (bottom) (C D) (intersection) (C D) (union) C (negation) R.C (exists restriction) R.C (value restriction) nr (atleast restriction) nr (atmost restriction) {o 1,..., o n } (oneof ) R.{o} (hasvalue) We now define axioms in SHOIN which allow the expression of relations between concepts, roles and individuals. Definition 2.31 (Axiom). Let C,D be concepts, R,S be roles and a,b individuals. An axiom in the DL SHOIN is an expression of the following form: (1) C D (concept equivalence) (2) R S (role equivalence) (3) C D (concept inclusion) (4) R S (role inclusion) (5) T rans(r) (role transitivity) (6) C(a) (concept membership) (7) R(a, b) (role membership) (8) a = b, resp. a b (equality, resp. inequality) Due to different reasoning tasks and their optimized implementation, axioms are partitioned into terminological axioms and assertional axioms [BCM + 03, DL96]. Terminological axioms are about general properties of concepts and roles. In the previous list of axiom definitions (1)-(5) are terminological axioms. Assertional axioms comprise assertions on individual objects. In the previous list of axiom definitions (6)-(8) are assertional axioms. In Description Logic Systems 19

27 like Racer [HM01], reasoning on terminological axioms is implemented in a so called TBox and reasoning on assertional axioms is implemented in a so called ABox. The separation into a TBox and an ABox has no logical significance but may be conceptually and implementationally convenient. We now define Description Logic Knowledge Bases as finite sets of DL-axioms and give an example. Definition 2.32 (Description Logic Knowledge Base). A Description Logic Knowledge Base L in a Description Logic DL, denoted L DL, is a finite set of DL-axioms. A Description Logic Knowledge Base L, denoted DL-knowledge base, is a Description Logic Knowledge Base in any DL. This term is used whenever the underlying DL is not relevant, e.g. when defining dl-programs in Chapter 4. Example The following knowledge base from [ELST04b] in the description logic SHOIN models a small computer store that obtains its hardware from several vendors. It uses the following set of axioms in SHOIN which contain information about the product range that is provided by each vendor and about possible rebate conditions (we assume here that choosing two or more parts from the same seller causes a discount). For some parts a shop may already be contracted as a supplier. Let A = {P art, Shop} be a set of atomic concepts, R = {provides, supplier} be a set of atomic roles and I = {harddisk, cpu, case, s 1, s 2, s 3 } be a set of individuals. 1supplier Shop supplier.p art 2supplier Discount P art(harddisk) P art(cpu) P art(case) Shop(s 1 ) Shop(s 2 ) Shop(s 3 ) provides(s 1, case) provides(s 2, cpu) provides(s 3, case) provides(s 1, cpu) provides(s 2, harddisk) provides(s 3, harddisk) supplier(s 3, case) We will revisit this example in Chapter 6 and test it on our implementation of fol-programs. We now define a the semantics of SHOIN by analogy to the semantics of first-order logic via the concepts of an interpretation and the satisfaction relation. Definition 2.33 (Interpretation). An interpretation of a Description Logic DL is a pair I =, I where is a nonempty set, called the (abstract) domain, and I is a mapping, called the interpretation function of the DL, which assigns to each atomic concept from A a subset of, to each individual o I an element of and to each atomic role from R a subset of. The mapping function 20

28 I of a DL is extended by induction to all concept and role definitions of that DL. For the DL SHOIN this extension is defined as follows: ({o 1,..., o n }) I = {o I 1,..., oi n } ( R.{o}) I = {x x, o I R I } (C D) I = C I D I (C D) I = C I D I ( C) I = \ C I ( R.C) I = {x y x, y R I y C I } ( R.C) I = {x y x, y R I y C I } ( nr) I = {x #{ x, y R I } n} ( nr) I = {x #{ x, y R I } n} (R ) I = { b, a a, b R I }, where C and D are concepts, R,S are roles and o 1,..., o n are individuals, n is a nonnegative integer and #S denotes the cardinality of a set S. Definition 2.34 (Satisfaction). Let I =, I be an interpretation for a Description Logic DL. The satisfaction relation is defined for all DL-axioms F, denoted I = F. For SHOIN the satisfaction relation is defined as follows: I = C D iff C I = D I I = R S iff R I = S I I = C D iff C I D I I = R S iff R I S I I = T rans(r) iff R I is transitive I = C(a) iff a I C I I = R(a, b) iff a I, b I R I I = a = b iff a I = b I I = a b iff a I b I An interpretation I of a DL satisfies the axiom F, or I is a model of F, iff I = F. I satisfies a DL knowledge base L, or I is a model of L, denoted I = L, iff I = F for all F L. We say L is satisfiable (resp., unsatisfiable) iff L has a (resp., no) model. An axiom F is a logical consequence of L, denoted L = F, iff every model of L satisfies F. A negated axiom F is a logical consequence of L, denoted L = F, iff every model of L does not satisfy F. 21

29 From the previous definitions, one can immediately derive a number of (so called standard) inference problems for DL systems that are commonly studied. Concept Satisfiability, i.e., a concept C is satisfiable with respect to a DL knowledge L if there exists a model I of L such that C I is nonempty. Concept Subsumption, i.e., a concept C is subsumed by a concept D with respect to a DL knowledge base L if C I D I for every model I of L. Concept subsumption can be reduced to concept satisfiability [BCM + 03]. Knowledge Base Satisfiability, i.e., a DL knowledge base L is satisfiable if there is an interpretation of L which is a model of L. Instance Checking,i.e., given a DL knowledge base L, then an individual o is an instance of a concept C if o I C I for every model I of L. As shown in [BCM + 03] the inference problems of concept satisfiability, concept subsumption and instance checking can be reduced a check of knowledge base (un)satisfiability. In all description logics introduced so far, knowledge must be represented on the abstract logical level. In many applications, one would like to be able to refer to concrete domains and predefined predicates on these domains when defining concepts. An example of such a concrete domain could be the set of nonnegative integers, with predicates such as or <. The extension of a DL by a concrete domain D is denoted by adding (D) to the name of a DL, e.g. SHOIN (D), which corresponds to the ontology language OWL DL. Description Logics with concrete domains still have a formal declarative semantics and there exist appropriate reasoning algorithms for DLs with concrete domains [BCM + 03, HMW01]. Most DLs are similar to 2-variable fragment of function-free FOL [Bor96], because concepts correspond to unary predicates, roles correspond to binary predicates and there are no more than two variables under the scope of a quantifier an exception are transitive properties, which have three variables. 2.4 Decidability and Undecidability In this section, we give an informal overview of the most important decidability and undecidability results 4 for first-order logic, logic programming and description logics which are referred to in the remainder of this document. Intuitively, a property (relation), represented by a subset A of all possible problem instances B, is decidable if there is a decision procedure for membership 4 see, e.g. [HMU00] for a formal approach to decidability based on Turing machines and e.g. [Coo04] for a formal approach to decidability based on µ-recursive functions. 22

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

Theoretical Computer Science. The loop formula based semantics of description logic programs

Theoretical Computer Science. The loop formula based semantics of description logic programs Theoretical Computer Science 415 (2012) 60 85 Contents lists available at SciVerse ScienceDirect Theoretical Computer Science journal homepage: www.elsevier.com/locate/tcs The loop formula based semantics

More information

Extending Logic Programs with Description Logic Expressions for the Semantic Web

Extending Logic Programs with Description Logic Expressions for the Semantic Web Extending Logic Programs with Description Logic Expressions for the Semantic Web Yi-Dong Shen 1 and Kewen Wang 2 1 State Key Laboratory of Computer Science, Institute of Software Chinese Academy of Sciences,

More information

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P.

Syntax. Notation Throughout, and when not otherwise said, we assume a vocabulary V = C F P. First-Order Logic Syntax The alphabet of a first-order language is organised into the following categories. Logical connectives:,,,,, and. Auxiliary symbols:.,,, ( and ). Variables: we assume a countable

More information

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas. 1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is

More information

Translating Ontologies from Predicate-based to Frame-based Languages

Translating Ontologies from Predicate-based to Frame-based Languages 1/18 Translating Ontologies from Predicate-based to Frame-based Languages Jos de Bruijn and Stijn Heymans Digital Enterprise Research Institute (DERI) University of Innsbruck, Austria {jos.debruijn,stijn.heymans}@deri.org

More information

On the Relationship between Description Logic-based and F-Logic-based Ontologies

On the Relationship between Description Logic-based and F-Logic-based Ontologies Fundamenta Informaticae??? (200?) 1001 1024 1001 IOS Press On the Relationship between Description Logic-based and F-Logic-based Ontologies Jos de Bruijn Faculty of Computer Science Free University of

More information

Introduction to Logic in Computer Science: Autumn 2006

Introduction to Logic in Computer Science: Autumn 2006 Introduction to Logic in Computer Science: Autumn 2006 Ulle Endriss Institute for Logic, Language and Computation University of Amsterdam Ulle Endriss 1 Plan for Today Today s class will be an introduction

More information

G52DOA - Derivation of Algorithms Predicate Logic

G52DOA - Derivation of Algorithms Predicate Logic G52DOA - Derivation of Algorithms Predicate Logic Venanzio Capretta Predicate Logic So far, we studied propositional logic, in which we started with unspecified propositional variables A, B, C, and combined

More information

Phase 1. Phase 2. Phase 3. History. implementation of systems based on incomplete structural subsumption algorithms

Phase 1. Phase 2. Phase 3. History. implementation of systems based on incomplete structural subsumption algorithms History Phase 1 implementation of systems based on incomplete structural subsumption algorithms Phase 2 tableau-based algorithms and complexity results first tableau-based systems (Kris, Crack) first formal

More information

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig First-Order Logic First-Order Theories Roopsha Samanta Partly based on slides by Aaron Bradley and Isil Dillig Roadmap Review: propositional logic Syntax and semantics of first-order logic (FOL) Semantic

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

Relations to first order logic

Relations to first order logic An Introduction to Description Logic IV Relations to first order logic Marco Cerami Palacký University in Olomouc Department of Computer Science Olomouc, Czech Republic Olomouc, November 6 th 2014 Marco

More information

Fuzzy Answer Set semantics for Residuated Logic programs

Fuzzy Answer Set semantics for Residuated Logic programs semantics for Logic Nicolás Madrid & Universidad de Málaga September 23, 2009 Aims of this paper We are studying the introduction of two kinds of negations into residuated : Default negation: This negation

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

Hybrid Rules with Well-Founded Semantics

Hybrid Rules with Well-Founded Semantics Hybrid Rules with Well-Founded Semantics W lodzimierz Drabent Jan Ma luszyński arxiv:0906.3815v1 [cs.lo] 20 Jun 2009 March 13, 2009 Submitted for publication Abstract A general framework is proposed for

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

Loop Formulas for Description Logic Programs

Loop Formulas for Description Logic Programs Loop Formulas for Description Logic Programs Yisong Wang 1, Jia-Huai You 2, Li-Yan Yuan 2, Yidong Shen 3 1 Guizhou University, China 2 University of Alberta, Canada 3 Institute of Software, Chinese Academy

More information

Nonmonotonic Reasoning in Description Logic by Tableaux Algorithm with Blocking

Nonmonotonic Reasoning in Description Logic by Tableaux Algorithm with Blocking Nonmonotonic Reasoning in Description Logic by Tableaux Algorithm with Blocking Jaromír Malenko and Petr Štěpánek Charles University, Malostranske namesti 25, 11800 Prague, Czech Republic, Jaromir.Malenko@mff.cuni.cz,

More information

RDF and Logic: Reasoning and Extension

RDF and Logic: Reasoning and Extension RDF and Logic: Reasoning and Extension Jos de Bruijn Faculty of Computer Science, Free University of Bozen-Bolzano, Italy debruijn@inf.unibz.it Stijn Heymans Digital Enterprise Research Institute (DERI),

More information

Fuzzy Description Logics

Fuzzy Description Logics Fuzzy Description Logics 1. Introduction to Description Logics Rafael Peñaloza Rende, January 2016 Literature Description Logics Baader, Calvanese, McGuinness, Nardi, Patel-Schneider (eds.) The Description

More information

Dealing with Inconsistency when Combining Ontologies and Rules using DL-Programs

Dealing with Inconsistency when Combining Ontologies and Rules using DL-Programs Dealing with Inconsistency when Combining Ontologies and Rules using DL-Programs Jörg Pührer, Stijn Heymans, and Thomas Eiter Institute of Information Systems 184/3 Vienna University of Technology Favoritenstraße

More information

First-Order Theorem Proving and Vampire

First-Order Theorem Proving and Vampire First-Order Theorem Proving and Vampire Laura Kovács 1,2 and Martin Suda 2 1 TU Wien 2 Chalmers Outline Introduction First-Order Logic and TPTP Inference Systems Saturation Algorithms Redundancy Elimination

More information

Motivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory

Motivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory Motivation CS389L: Automated Logical Reasoning Lecture 10: Overview of First-Order Theories Işıl Dillig Last few lectures: Full first-order logic In FOL, functions/predicates are uninterpreted (i.e., structure

More information

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms First-Order Logic 1 Syntax Domain of Discourse The domain of discourse for first order logic is FO structures or models. A FO structure contains Relations Functions Constants (functions of arity 0) FO

More information

Description Logics. an introduction into its basic ideas

Description Logics. an introduction into its basic ideas Description Logics an introduction into its basic ideas A. Heußner WS 2003/2004 Preview: Basic Idea: from Network Based Structures to DL AL : Syntax / Semantics Enhancements of AL Terminologies (TBox)

More information

Automated Reasoning Lecture 5: First-Order Logic

Automated Reasoning Lecture 5: First-Order Logic Automated Reasoning Lecture 5: First-Order Logic Jacques Fleuriot jdf@inf.ac.uk Recap Over the last three lectures, we have looked at: Propositional logic, semantics and proof systems Doing propositional

More information

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes

Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes Foundations of Mathematics MATH 220 FALL 2017 Lecture Notes These notes form a brief summary of what has been covered during the lectures. All the definitions must be memorized and understood. Statements

More information

Classical First-Order Logic

Classical First-Order Logic Classical First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2008/2009 Maria João Frade (DI-UM) First-Order Logic (Classical) MFES 2008/09

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

CS411 Notes 3 Induction and Recursion

CS411 Notes 3 Induction and Recursion CS411 Notes 3 Induction and Recursion A. Demers 5 Feb 2001 These notes present inductive techniques for defining sets and subsets, for defining functions over sets, and for proving that a property holds

More information

ALC Concept Learning with Refinement Operators

ALC Concept Learning with Refinement Operators ALC Concept Learning with Refinement Operators Jens Lehmann Pascal Hitzler June 17, 2007 Outline 1 Introduction to Description Logics and OWL 2 The Learning Problem 3 Refinement Operators and Their Properties

More information

First-Order Theorem Proving and Vampire. Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester)

First-Order Theorem Proving and Vampire. Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester) First-Order Theorem Proving and Vampire Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester) Outline Introduction First-Order Logic and TPTP Inference Systems

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 Survey of Temporal Knowledge Representations

A Survey of Temporal Knowledge Representations A Survey of Temporal Knowledge Representations Advisor: Professor Abdullah Tansel Second Exam Presentation Knowledge Representations logic-based logic-base formalisms formalisms more complex and difficult

More information

Chapter 2 Background. 2.1 A Basic Description Logic

Chapter 2 Background. 2.1 A Basic Description Logic Chapter 2 Background Abstract Description Logics is a family of knowledge representation formalisms used to represent knowledge of a domain, usually called world. For that, it first defines the relevant

More information

Outline. Formale Methoden der Informatik First-Order Logic for Forgetters. Why PL1? Why PL1? Cont d. Motivation

Outline. Formale Methoden der Informatik First-Order Logic for Forgetters. Why PL1? Why PL1? Cont d. Motivation Outline Formale Methoden der Informatik First-Order Logic for Forgetters Uwe Egly Vienna University of Technology Institute of Information Systems Knowledge-Based Systems Group Motivation Syntax of PL1

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

THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16)

THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16) THE LANGUAGE OF FIRST-ORDER LOGIC (FOL) Sec2 Sec1(1-16) FOL: A language to formulate knowledge Logic is the study of entailment relationslanguages, truth conditions and rules of inference. FOL or Predicate

More information

03 Review of First-Order Logic

03 Review of First-Order Logic CAS 734 Winter 2014 03 Review of First-Order Logic William M. Farmer Department of Computing and Software McMaster University 18 January 2014 What is First-Order Logic? First-order logic is the study of

More information

Logic: Propositional Logic (Part I)

Logic: Propositional Logic (Part I) Logic: Propositional Logic (Part I) Alessandro Artale Free University of Bozen-Bolzano Faculty of Computer Science http://www.inf.unibz.it/ artale Descrete Mathematics and Logic BSc course Thanks to Prof.

More information

First Order Logic: Syntax and Semantics

First Order Logic: Syntax and Semantics CS1081 First Order Logic: Syntax and Semantics COMP30412 Sean Bechhofer sean.bechhofer@manchester.ac.uk Problems Propositional logic isn t very expressive As an example, consider p = Scotland won on Saturday

More information

Local Closed World Reasoning with Description Logics under the Well-Founded Semantics

Local Closed World Reasoning with Description Logics under the Well-Founded Semantics Local Closed World Reasoning with Description Logics under the Well-Founded Semantics Matthias Knorr a,, José Júlio Alferes a,1, Pascal Hitzler b,2 a CENTRIA, Departamento de Informática, FCT/UNL, Quinta

More information

LINDSTRÖM S THEOREM SALMAN SIDDIQI

LINDSTRÖM S THEOREM SALMAN SIDDIQI LINDSTRÖM S THEOREM SALMAN SIDDIQI Abstract. This paper attempts to serve as an introduction to abstract model theory. We introduce the notion of abstract logics, explore first-order logic as an instance

More information

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Description Logics. Foundations of Propositional Logic.   franconi. Enrico Franconi (1/27) Description Logics Foundations of Propositional Logic Enrico Franconi franconi@cs.man.ac.uk http://www.cs.man.ac.uk/ franconi Department of Computer Science, University of Manchester (2/27) Knowledge

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

First-Order Logic. Chapter Overview Syntax

First-Order Logic. Chapter Overview Syntax Chapter 10 First-Order Logic 10.1 Overview First-Order Logic is the calculus one usually has in mind when using the word logic. It is expressive enough for all of mathematics, except for those concepts

More information

Expressive number restrictions in Description Logics

Expressive number restrictions in Description Logics Expressive number restrictions in Description Logics Franz Baader and Ulrike Sattler August 12, 1999 Abstract Number restrictions are concept constructors that are available in almost all implemented Description

More information

A Tableau Calculus for Minimal Modal Model Generation

A Tableau Calculus for Minimal Modal Model Generation M4M 2011 A Tableau Calculus for Minimal Modal Model Generation Fabio Papacchini 1 and Renate A. Schmidt 2 School of Computer Science, University of Manchester Abstract Model generation and minimal model

More information

Fuzzy Description Logic Programs under the Answer Set Semantics for the Semantic Web

Fuzzy Description Logic Programs under the Answer Set Semantics for the Semantic Web Fuzzy Description Logic Programs under the Answer Set Semantics for the Semantic Web Thomas Lukasiewicz Dipartimento di Informatica e Sistemistica Università di Roma La Sapienza Via Salaria 113, I-00198

More information

CHAPTER 2. FIRST ORDER LOGIC

CHAPTER 2. FIRST ORDER LOGIC CHAPTER 2. FIRST ORDER LOGIC 1. Introduction First order logic is a much richer system than sentential logic. Its interpretations include the usual structures of mathematics, and its sentences enable us

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

Foundations of Rule-Based Query Answering

Foundations of Rule-Based Query Answering Foundations of Rule-Based Query Answering 1 / 175 Foundations of Rule-Based Query Answering François Bry, Norbert Eisinger, Thomas Eiter, Tim Furche, Georg Gottlob, Clemens Ley, Benedikt Linse, Reinhard

More information

Lecture 2: Syntax. January 24, 2018

Lecture 2: Syntax. January 24, 2018 Lecture 2: Syntax January 24, 2018 We now review the basic definitions of first-order logic in more detail. Recall that a language consists of a collection of symbols {P i }, each of which has some specified

More information

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010)

Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics Lecture notes in progress (27 March 2010) http://math.sun.ac.za/amsc/sam Seminaar Abstrakte Wiskunde Seminar in Abstract Mathematics 2009-2010 Lecture notes in progress (27 March 2010) Contents 2009 Semester I: Elements 5 1. Cartesian product

More information

Normal Description Logic Programs as Default Theories

Normal Description Logic Programs as Default Theories Normal Description Logic Programs as Default Theories Yisong Wang Jia-Huai You Liyan Yuan Yi-Dong Shen Nonmon@30 Lexington, Kentucky 1 / 23 Applications of ASP/SAT fall into... 1 Stand alone applications

More information

INTRODUCTION TO NONMONOTONIC REASONING

INTRODUCTION TO NONMONOTONIC REASONING Faculty of Computer Science Chair of Automata Theory INTRODUCTION TO NONMONOTONIC REASONING Anni-Yasmin Turhan Dresden, WS 2017/18 About the Course Course Material Book "Nonmonotonic Reasoning" by Grigoris

More information

On Terminological Default Reasoning about Spatial Information: Extended Abstract

On Terminological Default Reasoning about Spatial Information: Extended Abstract On Terminological Default Reasoning about Spatial Information: Extended Abstract V. Haarslev, R. Möller, A.-Y. Turhan, and M. Wessel University of Hamburg, Computer Science Department Vogt-Kölln-Str. 30,

More information

Introduction to Sets and Logic (MATH 1190)

Introduction to Sets and Logic (MATH 1190) Introduction to Sets Logic () Instructor: Email: shenlili@yorku.ca Department of Mathematics Statistics York University Sept 18, 2014 Outline 1 2 Tautologies Definition A tautology is a compound proposition

More information

Learning Goals of CS245 Logic and Computation

Learning Goals of CS245 Logic and Computation Learning Goals of CS245 Logic and Computation Alice Gao April 27, 2018 Contents 1 Propositional Logic 2 2 Predicate Logic 4 3 Program Verification 6 4 Undecidability 7 1 1 Propositional Logic Introduction

More information

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation Knowledge Bases and Databases Part 1: First-Order Queries Diego Calvanese Faculty of Computer Science Master of Science in Computer Science A.Y. 2007/2008 Overview of Part 1: First-order queries 1 First-order

More information

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19. Intelligent Agents First Order Logic Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University last change: 19. Mai 2015 U. Schmid (CogSys) Intelligent Agents last change: 19. Mai 2015

More information

CMPS 217 Logic in Computer Science. Lecture #17

CMPS 217 Logic in Computer Science.   Lecture #17 CMPS 217 Logic in Computer Science https://courses.soe.ucsc.edu/courses/cmps217/spring13/01 Lecture #17 1 The Complexity of FO-Truth on a Structure Structure A Complexity of Th(A) Structure of the natural

More information

185.A09 Advanced Mathematical Logic

185.A09 Advanced Mathematical Logic 185.A09 Advanced Mathematical Logic www.volny.cz/behounek/logic/teaching/mathlog13 Libor Běhounek, behounek@cs.cas.cz Lecture #1, October 15, 2013 Organizational matters Study materials will be posted

More information

Classical First-Order Logic

Classical First-Order Logic Classical First-Order Logic Software Formal Verification Maria João Frade Departmento de Informática Universidade do Minho 2009/2010 Maria João Frade (DI-UM) First-Order Logic (Classical) MFES 2009/10

More information

First Order Logic (FOL) 1 znj/dm2017

First Order Logic (FOL) 1   znj/dm2017 First Order Logic (FOL) 1 http://lcs.ios.ac.cn/ znj/dm2017 Naijun Zhan March 19, 2017 1 Special thanks to Profs Hanpin Wang (PKU) and Lijun Zhang (ISCAS) for their courtesy of the slides on this course.

More information

Revision of DL-Lite Knowledge Bases

Revision of DL-Lite Knowledge Bases Revision of DL-Lite Knowledge Bases Zhe Wang, Kewen Wang, and Rodney Topor Griffith University, Australia Abstract. We address the revision problem for knowledge bases (KBs) in Description Logics (DLs).

More information

MAI0203 Lecture 7: Inference and Predicate Calculus

MAI0203 Lecture 7: Inference and Predicate Calculus MAI0203 Lecture 7: Inference and Predicate Calculus Methods of Artificial Intelligence WS 2002/2003 Part II: Inference and Knowledge Representation II.7 Inference and Predicate Calculus MAI0203 Lecture

More information

Two New Definitions of Stable Models of Logic Programs with Generalized Quantifiers

Two New Definitions of Stable Models of Logic Programs with Generalized Quantifiers Two New Definitions of Stable Models of Logic Programs with Generalized Quantifiers Joohyung Lee and Yunsong Meng School of Computing, Informatics and Decision Systems Engineering Arizona State University,

More information

First-Order Predicate Logic. Basics

First-Order Predicate Logic. Basics First-Order Predicate Logic Basics 1 Syntax of predicate logic: terms A variable is a symbol of the form x i where i = 1, 2, 3.... A function symbol is of the form fi k where i = 1, 2, 3... und k = 0,

More information

Adding ternary complex roles to ALCRP(D)

Adding ternary complex roles to ALCRP(D) Adding ternary complex roles to ALCRP(D) A.Kaplunova, V. Haarslev, R.Möller University of Hamburg, Computer Science Department Vogt-Kölln-Str. 30, 22527 Hamburg, Germany Abstract The goal of this paper

More information

Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January )

Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January ) Notes on Propositional and First-Order Logic (CPSC 229 Class Notes, January 23 30 2017) John Lasseter Revised February 14, 2017 The following notes are a record of the class sessions we ve devoted to the

More information

Quasi-Classical Semantics for Expressive Description Logics

Quasi-Classical Semantics for Expressive Description Logics Quasi-Classical Semantics for Expressive Description Logics Xiaowang Zhang 1,4, Guilin Qi 2, Yue Ma 3 and Zuoquan Lin 1 1 School of Mathematical Sciences, Peking University, Beijing 100871, China 2 Institute

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

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

2.2 Lowenheim-Skolem-Tarski theorems

2.2 Lowenheim-Skolem-Tarski theorems Logic SEP: Day 1 July 15, 2013 1 Some references Syllabus: http://www.math.wisc.edu/graduate/guide-qe Previous years qualifying exams: http://www.math.wisc.edu/ miller/old/qual/index.html Miller s Moore

More information

A Description Logic with Concrete Domains and a Role-forming Predicate Operator

A Description Logic with Concrete Domains and a Role-forming Predicate Operator A Description Logic with Concrete Domains and a Role-forming Predicate Operator Volker Haarslev University of Hamburg, Computer Science Department Vogt-Kölln-Str. 30, 22527 Hamburg, Germany http://kogs-www.informatik.uni-hamburg.de/~haarslev/

More information

A Brief Introduction to Nonmonotonic Reasoning

A Brief Introduction to Nonmonotonic Reasoning A Brief Introduction to Nonmonotonic Reasoning Gerhard Brewka, Stefan Woltran Computer Science Institute University of Leipzig [brewka,woltran]@informatik.uni-leipzig.de G. Brewka, S. Woltran (Leipzig)

More information

LTCS Report. Decidability and Complexity of Threshold Description Logics Induced by Concept Similarity Measures. LTCS-Report 16-07

LTCS Report. Decidability and Complexity of Threshold Description Logics Induced by Concept Similarity Measures. LTCS-Report 16-07 Technische Universität Dresden Institute for Theoretical Computer Science Chair for Automata Theory LTCS Report Decidability and Complexity of Threshold Description Logics Induced by Concept Similarity

More information

Lloyd-Topor Completion and General Stable Models

Lloyd-Topor Completion and General Stable Models Lloyd-Topor Completion and General Stable Models Vladimir Lifschitz and Fangkai Yang Department of Computer Science The University of Texas at Austin {vl,fkyang}@cs.utexas.edu Abstract. We investigate

More information

A New Approach to Knowledge Base Revision in DL-Lite

A New Approach to Knowledge Base Revision in DL-Lite A New Approach to Knowledge Base Revision in DL-Lite Zhe Wang and Kewen Wang and Rodney Topor School of ICT, Griffith University Nathan, QLD 4111, Australia Abstract Revising knowledge bases (KBs) in description

More information

Definite Logic Programs

Definite Logic Programs Chapter 2 Definite Logic Programs 2.1 Definite Clauses The idea of logic programming is to use a computer for drawing conclusions from declarative descriptions. Such descriptions called logic programs

More information

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes)

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) Steve Vickers CS Theory Group Birmingham 2. Theories and models Categorical approach to many-sorted

More information

Informal Statement Calculus

Informal Statement Calculus FOUNDATIONS OF MATHEMATICS Branches of Logic 1. Theory of Computations (i.e. Recursion Theory). 2. Proof Theory. 3. Model Theory. 4. Set Theory. Informal Statement Calculus STATEMENTS AND CONNECTIVES Example

More information

Propositional logic (revision) & semantic entailment. p. 1/34

Propositional logic (revision) & semantic entailment. p. 1/34 Propositional logic (revision) & semantic entailment p. 1/34 Reading The background reading for propositional logic is Chapter 1 of Huth/Ryan. (This will cover approximately the first three lectures.)

More information

OPPA European Social Fund Prague & EU: We invest in your future.

OPPA European Social Fund Prague & EU: We invest in your future. OPPA European Social Fund Prague & EU: We invest in your future. Description Logics Petr Křemen petr.kremen@fel.cvut.cz FEL ČVUT 39 / 157 Our plan Towards Description Logics ALC Language 40 / 157 Towards

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

Trichotomy Results on the Complexity of Reasoning with Disjunctive Logic Programs

Trichotomy Results on the Complexity of Reasoning with Disjunctive Logic Programs Trichotomy Results on the Complexity of Reasoning with Disjunctive Logic Programs Mirosław Truszczyński Department of Computer Science, University of Kentucky, Lexington, KY 40506, USA Abstract. We present

More information

Tightly Coupled Probabilistic Description Logic Programs for the Semantic Web

Tightly Coupled Probabilistic Description Logic Programs for the Semantic Web Tightly Coupled Probabilistic Description Logic Programs for the Semantic Web Andrea Calì 1, Thomas Lukasiewicz 1, 2, Livia Predoiu 3, and Heiner Stuckenschmidt 3 1 Computing Laboratory, University of

More information

Inquisitive semantics

Inquisitive semantics Inquisitive semantics NASSLLI 2012 lecture notes Ivano Ciardelli University of Bordeaux Floris Roelofsen University of Amsterdam June 25, 2012 Jeroen Groenendijk University of Amsterdam About this document

More information

22c:145 Artificial Intelligence. First-Order Logic. Readings: Chapter 8 of Russell & Norvig.

22c:145 Artificial Intelligence. First-Order Logic. Readings: Chapter 8 of Russell & Norvig. 22c:145 Artificial Intelligence First-Order Logic Readings: Chapter 8 of Russell & Norvig. Einstein s Puzzle in Logic We used propositinal variables to specify everything: x 1 = house #1 is red ; x 2 =

More information

Local Closed-World Reasoning with Description Logics under the Well-founded Semantics

Local Closed-World Reasoning with Description Logics under the Well-founded Semantics Local Closed-World Reasoning with Description Logics under the Well-founded Semantics Matthias Knorr a,, José Júlio Alferes a,1, Pascal Hitzler b,2 a CENTRIA, Departamento de Informática, FCT/UNL, Quinta

More information

A Crisp Representation for Fuzzy SHOIN with Fuzzy Nominals and General Concept Inclusions

A Crisp Representation for Fuzzy SHOIN with Fuzzy Nominals and General Concept Inclusions A Crisp Representation for Fuzzy SHOIN with Fuzzy Nominals and General Concept Inclusions Fernando Bobillo Miguel Delgado Juan Gómez-Romero Department of Computer Science and Artificial Intelligence University

More information

DL-Lite Contraction and Revision

DL-Lite Contraction and Revision Journal of Artificial Intelligence Research 56 (2016) 329-378 Submitted 12/15; published 06/16 DL-Lite Contraction and Revision Zhiqiang Zhuang Institute for Integrated and Intelligent Systems Griffith

More information

ISTITUTO DI ANALISI DEI SISTEMI ED INFORMATICA

ISTITUTO DI ANALISI DEI SISTEMI ED INFORMATICA ISTITUTO DI ANALISI DEI SISTEMI ED INFORMATICA CONSIGLIO NAZIONALE DELLE RICERCHE A. Pettorossi, M. Proietti TOTALLY CORRECT LOGIC PROGRAM TRANSFORMATIONS VIA WELL-FOUNDED ANNOTATIONS R. 639 Febbraio 2006

More information

Chapter 2: Basic Notions of Predicate Logic

Chapter 2: Basic Notions of Predicate Logic 2. Basic Notions of Predicate Logic 2-1 Deductive Databases and Logic Programming (Winter 2009/2010) Chapter 2: Basic Notions of Predicate Logic Signature, Formula Interpretation, Model Implication, Consistency,

More information

Classical Propositional Logic

Classical Propositional Logic The Language of A Henkin-style Proof for Natural Deduction January 16, 2013 The Language of A Henkin-style Proof for Natural Deduction Logic Logic is the science of inference. Given a body of information,

More information

An Introduction to Description Logics

An Introduction to Description Logics An Introduction to Description Logics Marco Cerami Palacký University in Olomouc Department of Computer Science Olomouc, Czech Republic Olomouc, 21.11.2013 Marco Cerami (UPOL) Description Logics 21.11.2013

More information

VARIABLE-STRENGTH CONDITIONAL PREFERENCES FOR RANKING OBJECTS IN ONTOLOGIES

VARIABLE-STRENGTH CONDITIONAL PREFERENCES FOR RANKING OBJECTS IN ONTOLOGIES I N F S Y S R E S E A R C H R E P O R T INSTITUT FÜR INFORMATIONSSYSTEME ARBEITSBEREICH WISSENSBASIERTE SYSTEME VARIABLE-STRENGTH CONDITIONAL PREFERENCES FOR RANKING OBJECTS IN ONTOLOGIES THOMAS LUKASIEWICZ

More information