Closed Book Examination. Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. M.Sc. in Advanced Computer Science

Size: px
Start display at page:

Download "Closed Book Examination. Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. M.Sc. in Advanced Computer Science"

Transcription

1 Closed Book Examination COMP60121 Appendix: definition sheet (3 pages) Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE M.Sc. in Advanced Computer Science Automated Reasoning Tuesday 27 th January 2009 Time: 09:45 11:45 Please answer THREE out of FOUR Questions provided [PTO]

2 Page 2 of 4 COMP a) Consider the signature consisting of a constant a, unary function symbols f and unary predicate symbol p. To avoid writing too many parentheses we will write applications of f without them, for example, f f x means f (f (x)). For each of the following formulas, find a Herbrand interpretation in which this formula is false. i) ( x)(p(x) p(f x)) ( x)p(x) (3 marks) ii) p(a) ( x)(p(x) (p(f x) p(f f x))) p(f f f f a)). (5 marks) b) Consider the clause p(x, f (y)) p( f(y), x) p(f(z), g(z)) in which all literals are selected. Write down all possible factors of this clause (i.e., clauses obtained by applying the factoring rule to this clause). (5 marks) c) Transform the formula ( y)( x)(p(x, y) ( x)p(x, y)) into negation normal form. (4 marks) d) Consider an inference process with deletion: S 0 S 1 S 2 Write the definitions of persistent clause and limit for this process. (3 marks) 2. a) Write Prolog programs defining i) The list concatenation. The concatenation of two lists a 1,..., a m and b 1,..., b n gives the list a 1,..., a m, b 1,..., b n. (2 marks) ii) The list reversal. The reversal of a 1,..., a m gives a m,..., a 1. (4 marks) b) Transform the formula (p (q r)) ( q s) into a set of clauses using the CNF transformation. (4 marks) c) Consider the formula ( x)(p(x) ( x)p(x)). Is this formula valid or not? If it is valid, explain why. If it is not, show a structure in which this formula is false. (6 marks) d) Apply the unification algorithm to i) The pair of terms h(z, f(x), x) and h(f(y), y, f(z)). (2 marks) ii) The pair of terms h(g(y, y)) and h(g(f(x), z)). (2 marks) If any of these pairs is unifiable, give a most general unifier.

3 Page 3 of 4 COMP Orderings, model construction, application a) Let N be the set of these clauses. 1. P3 P3 P 2. P2 P5 3. P3 P5 4. P2 P4 5. P4 6. P P i) Let the ordering on atoms be defined by P1 P2 P3 P4 P5. Sort the clauses in N with respect to C. (2 marks) ii) Compute the candidate model I N for N as described in Part II of the lectures. Is it a model of N? (5 marks) iii) Explain the role the candidate model I N plays in proving refutational completeness of resolution. (3 marks) b) By definition, any clause which contains at most one positive literal is called a Horn clause. i) For each of the following clauses say whether they are Horn clauses or are not? Give a short reason for each of your answers. (5 marks) A. P(x) P(g(a)) Q( b, x) B. P(x) Q( b,x) R( b) C. Q( b,x) R( b) D. Q( b,x) E. Px ( ) ii) iii) Show that the resolvent of any two Horn clauses is a Horn clause. (3 marks) Resolution without factoring is generally (refutationally) incomplete. Show that factoring on sets of Horn clauses is not needed, i.e. resolution alone suffices for completeness on sets of Horn clauses. (2 marks) [PTO]

4 Page 4 of 4 COMP Redundancy, ordering & selection, ordered resolution a) Briefly explain the purpose of the notion of redundancy. Give two examples of instances of redundancy to illustrate your answer. (6 marks) b) Briefly explain the purpose of the ordering and the selection function in Res s. Give two advantages of orderings and a selection function. (4 marks) c) Let be a total and well-founded ordering on ground atoms such that, if the atom A contains more symbols than B, then A B. Let N be the following set of clauses: px ( ) p( f( x)) py ( ) pf ( ( f( y ))) Use Res s to derive from N, where S is the empty selection function. Justify each step in your derivation. (10 marks) END OF EXAMINATION Appendix: definition sheet (3 pages)

5 COMP60121: Part II, Definition Sheet for Examination 2008/2009 Orderings. Let (X, ) be an ordering. The multi-set extension ordering mul on (finite) multi-sets over X is defined by S 1 mul S 2 iff S 1 S 2 and x X, if S 2 (x) > S 1 (x) then y X : y x and S 1 (y) > S 2 (y) Suppose is a total and well-founded ordering on ground atoms. L denotes the ordering on ground literals and is defined by: [ ]A L [ ]B, if A B A L A C denotes the ordering on ground clauses and is defined by the multi-set extension of L, i.e. C = ( L ) mul. Maximal literals. Let be a total and well-founded ordering on ground atoms. A ground literal L is called [strictly] maximal wrt. a ground clause C iff for all L in C: L L [L L ]. A non-ground literal L is [strictly] maximal wrt. a (ground or non-ground) clause C iff there exists a ground substitution σ such that for all L in C: Lσ L σ [Lσ L σ]. Herbrand models. The Herbrand universe (over Σ), denoted T Σ, is the set of all ground terms over Σ. A Herbrand interpretation (over Σ), denoted I, is a set of ground atoms over Σ. Truth in I of ground formulae is defined inductively by: I = I = I = A iff A I, for any ground atom A I = F iff I = F I = F G iff I = F and I = G I = F G iff I = F or I = G Truth in I of any quantifier-free formula F with free variables x 1,...,x n is defined by: I = F(x 1,...,x n ) iff I = F(t 1,...,t n ), for every t i T Σ Truth in I of any set N of clauses is defined by: I = N iff I = C, for each C N October University of Manchester

6 COMP60121: Part II, Definition Sheet for Examination 2008/2009 Construction of candidate models. Let N, be given. For all ground clauses C over the given signature, the sets I C and C are inductively defined with respect to the clause ordering by: I C := C D D {A}, if C N, C = C A, A C C := and I C = C, otherwise We say that C produces A, if C = {A}. The candidate model for N (wrt. ) is given as I N := C N We also simply write I N, or I, for IN, if is either irrelevant or known from the context. C. Ordered resolution with selection calculus Res S. Let be an atom ordering and S a selection function. (Ordered resolution with selection rule) provided σ = mgu(a, B) and C A B D (C D)σ (i) Aσ strictly maximal wrt. Cσ; (ii) nothing is selected in C by S; (iii) either B is selected, or else nothing is selected in B D and Bσ is maximal wrt. Dσ. (Ordered factoring rule) provided σ = mgu(a, B) and C A B (C A)σ (i) Aσ is maximal wrt. Cσ and (ii) nothing is selected in C. October University of Manchester

7 COMP60121: Part II, Definition Sheet for Examination 2008/2009 Hyperresolution calculus HRes. (Ordered hyperresolution rule) C 1 A 1... C n A n B 1... B n D (C 1... C n D)σ provided σ is the mgu s.t. A 1 σ = B 1 σ,..., A n σ = B n σ, and (i) A i σ strictly maximal in C i σ, 1 i n; (ii) nothing is selected in C i (i.e. C i is positive); (iii) the indicated B i are exactly the ones selected by S, and D is positive. (Ordered factoring rule) provided σ = mgu(a, B) and C A B (C A)σ (i) Aσ is maximal wrt. Cσ and (ii) nothing is selected in C. Redundancy. Let N be a set of ground clauses and C a ground clause. C is called redundant wrt. N, if there exist C 1,..., C n N, n 0, such that (i) all C i C, and (ii) C 1,..., C n = C. A general clause C is called redundant wrt. N, if all ground instances Cσ of C are redundant wrt. G Σ (N). N is called saturated up to redundancy (wrt. Res S ) iff every conclusion of an Res S-inference with non-redundant clauses in N is in N or is redundant (i.e. Res S (N \ Red(N)) N Red(N), where Red(N) denotes the set of clauses redundant wrt. N). October University of Manchester

Two hours. Examination definition sheet is available at the back of the examination. UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE

Two hours. Examination definition sheet is available at the back of the examination. UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE COMP 60332 Two hours Examination definition sheet is available at the back of the examination. UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE Automated Reasoning and Verification Date: Wednesday 30th

More information

Part 1: Propositional Logic

Part 1: Propositional Logic Part 1: Propositional Logic Literature (also for first-order logic) Schöning: Logik für Informatiker, Spektrum Fitting: First-Order Logic and Automated Theorem Proving, Springer 1 Last time 1.1 Syntax

More information

First-Order Logic. Resolution

First-Order Logic. Resolution First-Order Logic Resolution 1 Resolution for predicate logic Gilmore s algorithm is correct and complete, but useless in practice. We upgrade resolution to make it work for predicate logic. 2 Recall:

More information

Resolution for Predicate Logic

Resolution for Predicate Logic Resolution for Predicate Logic The connection between general satisfiability and Herbrand satisfiability provides the basis for a refutational approach to first-order theorem proving. Validity of a first-order

More information

Resolution for Predicate Logic

Resolution for Predicate Logic Logic and Proof Hilary 2016 James Worrell Resolution for Predicate Logic A serious drawback of the ground resolution procedure is that it requires looking ahead to predict which ground instances of clauses

More information

Rewrite-Based Equational Theorem Proving With Selection and Simplification. Leo Bachmair Harald Ganzinger

Rewrite-Based Equational Theorem Proving With Selection and Simplification. Leo Bachmair Harald Ganzinger Rewrite-Based Equational Theorem Proving With Selection and Simplification Leo Bachmair Harald Ganzinger MPI I 91 208 September 1991 Authors Addresses Leo Bachmair, Department of Computer Science, SUNY

More information

Propositional Logic: Models and Proofs

Propositional Logic: Models and Proofs Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505

More information

A Resolution Decision Procedure for the Guarded Fragment with Transitive Guards

A Resolution Decision Procedure for the Guarded Fragment with Transitive Guards A Resolution Decision Procedure for the Guarded Fragment with Transitive Guards Yevgeny Kazakov MPI für Informatik, Saarbrücken, Germany ykazakov@mpi-sb.mpg.de Abstract. We show how well-known refinements

More information

07 Equational Logic and Algebraic Reasoning

07 Equational Logic and Algebraic Reasoning CAS 701 Fall 2004 07 Equational Logic and Algebraic Reasoning Instructor: W. M. Farmer Revised: 17 November 2004 1 What is Equational Logic? Equational logic is first-order logic restricted to languages

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 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

Hierarchic Superposition: Completeness without Compactness

Hierarchic Superposition: Completeness without Compactness Hierarchic Superposition: Completeness without Compactness Peter Baumgartner 1 and Uwe Waldmann 2 1 NICTA and Australian National University, Canberra, Australia Peter.Baumgartner@nicta.com.au 2 MPI für

More information

CTL-RP: A Computational Tree Logic Resolution Prover

CTL-RP: A Computational Tree Logic Resolution Prover 1 -RP: A Computational Tree Logic Resolution Prover Lan Zhang a,, Ullrich Hustadt a and Clare Dixon a a Department of Computer Science, University of Liverpool Liverpool, L69 3BX, UK E-mail: {Lan.Zhang,

More information

Superposition for Fixed Domains. Matthias Horbach and Christoph Weidenbach

Superposition for Fixed Domains. Matthias Horbach and Christoph Weidenbach Superposition for Fixed Domains Matthias Horbach and Christoph Weidenbach MPI I 2009 RG1 005 Oct. 2009 Authors Addresses Matthias Horbach and Christoph Weidenbach Max Planck Institute for Informatics Campus

More information

Automated Reasoning in First-Order Logic

Automated Reasoning in First-Order Logic Automated Reasoning in First-Order Logic Peter Baumgartner http://users.cecs.anu.edu.au/~baumgart/ 7/11/2011 Automated Reasoning in First-Order Logic... First-Order Logic Can express (mathematical) structures,

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

Resolution for mixed Post logic

Resolution for mixed Post logic Resolution for mixed Post logic Vladimir Komendantsky Institute of Philosophy of Russian Academy of Science, Volkhonka 14, 119992 Moscow, Russia vycom@pochtamt.ru Abstract. In this paper we present a resolution

More information

Logic. Knowledge Representation & Reasoning Mechanisms. Logic. Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning

Logic. Knowledge Representation & Reasoning Mechanisms. Logic. Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning Logic Knowledge Representation & Reasoning Mechanisms Logic Logic as KR Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning Logical inferences Resolution and Theorem-proving Logic

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

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

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning. 3: Logic Why logic? Logic about inference or argument Start from assumptions or axioms Make deductions according to rules of reasoning Logic 3-1 Why logic? (continued) If I don t buy a lottery ticket on

More information

Computational Logic Automated Deduction Fundamentals

Computational Logic Automated Deduction Fundamentals Computational Logic Automated Deduction Fundamentals 1 Elements of First-Order Predicate Logic First Order Language: An alphabet consists of the following classes of symbols: 1. variables denoted by X,

More information

3.17 Semantic Tableaux for First-Order Logic

3.17 Semantic Tableaux for First-Order Logic 3.17 Semantic Tableaux for First-Order Logic There are two ways to extend the tableau calculus to quantified formulas: using ground instantiation using free variables Tableaux with Ground Instantiation

More information

CogSysI Lecture 8: Automated Theorem Proving

CogSysI Lecture 8: Automated Theorem Proving CogSysI Lecture 8: Automated Theorem Proving Intelligent Agents WS 2004/2005 Part II: Inference and Learning Automated Theorem Proving CogSysI Lecture 8: Automated Theorem Proving p. 200 Remember......

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

3 Propositional Logic

3 Propositional Logic 3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists

More information

1 FUNDAMENTALS OF LOGIC NO.10 HERBRAND THEOREM Tatsuya Hagino hagino@sfc.keio.ac.jp lecture URL https://vu5.sfc.keio.ac.jp/slide/ 2 So Far Propositional Logic Logical connectives (,,, ) Truth table Tautology

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

Convert to clause form:

Convert to clause form: Convert to clause form: Convert the following statement to clause form: x[b(x) ( y [ Q(x,y) P(y) ] y [ Q(x,y) Q(y,x) ] y [ B(y) E(x,y)] ) ] 1- Eliminate the implication ( ) E1 E2 = E1 E2 x[ B(x) ( y [

More information

Definite Logic Programs: Derivation and Proof Trees. CSE 505 Computing with Logic Stony Brook University

Definite Logic Programs: Derivation and Proof Trees. CSE 505 Computing with Logic Stony Brook University Definite Logic Programs: Derivation and Proof Trees CSE 505 Computing with Logic Stony Brook University http://www.cs.stonybrook.edu/~cse505 1 Refutation in Predicate Logic parent(pam, bob). parent(tom,

More information

4 Predicate / First Order Logic

4 Predicate / First Order Logic 4 Predicate / First Order Logic 4.1 Syntax 4.2 Substitutions 4.3 Semantics 4.4 Equivalence and Normal Forms 4.5 Unification 4.6 Proof Procedures 4.7 Implementation of Proof Procedures 4.8 Properties First

More information

Automated Reasoning (in First Order Logic) Andrei Voronkov. University of Manchester

Automated Reasoning (in First Order Logic) Andrei Voronkov. University of Manchester Automated Reasoning (in First Order Logic) Andrei Voronkov University of Manchester 1 Overview Automated reasoning in first-order logic. Completeness. Theory of Resolution and Redundancy. From Theory to

More information

CS 730/830: Intro AI. 3 handouts: slides, asst 6, asst 7. Wheeler Ruml (UNH) Lecture 12, CS / 16. Reasoning.

CS 730/830: Intro AI. 3 handouts: slides, asst 6, asst 7. Wheeler Ruml (UNH) Lecture 12, CS / 16. Reasoning. CS 730/830: Intro AI 3 handouts: slides, asst 6, asst 7 Wheeler Ruml (UNH) Lecture 12, CS 730 1 / 16 Logic First-Order Logic The Joy of Power in First-order Logic Wheeler Ruml (UNH) Lecture 12, CS 730

More information

Automated Reasoning in First-Order Logic

Automated Reasoning in First-Order Logic Automated Reasoning in First-Order Logic Peter Baumgartner 2010 Automated Reasoning An application-oriented subfield of logic in computer science and artificial intelligence About algorithms and their

More information

Some Rewriting Systems as a Background of Proving Methods

Some Rewriting Systems as a Background of Proving Methods Some Rewriting Systems as a Background of Proving Methods Katalin Pásztor Varga Department of General Computer Science Eötvös Loránd University e-mail: pkata@ludens.elte.hu Magda Várterész Institute of

More information

Reasoning in Description Logics with a Concrete Domain in the Framework of Resolution

Reasoning in Description Logics with a Concrete Domain in the Framework of Resolution Reasoning in Description Logics with a Concrete Domain in the Framework of Resolution Ullrich Hustadt 1 and Boris Motik 2 and Ulrike Sattler 3 Abstract. In description logics, concrete domains are used

More information

Resolution: Motivation

Resolution: Motivation Resolution: Motivation Steps in inferencing (e.g., forward-chaining) 1. Define a set of inference rules 2. Define a set of axioms 3. Repeatedly choose one inference rule & one or more axioms (or premices)

More information

α-formulas β-formulas

α-formulas β-formulas α-formulas Logic: Compendium http://www.ida.liu.se/ TDDD88/ Andrzej Szalas IDA, University of Linköping October 25, 2017 Rule α α 1 α 2 ( ) A 1 A 1 ( ) A 1 A 2 A 1 A 2 ( ) (A 1 A 2 ) A 1 A 2 ( ) (A 1 A

More information

Outline. Logic. Definition. Theorem (Gödel s Completeness Theorem) Summary of Previous Week. Undecidability. Unification

Outline. Logic. Definition. Theorem (Gödel s Completeness Theorem) Summary of Previous Week. Undecidability. Unification Logic Aart Middeldorp Vincent van Oostrom Franziska Rapp Christian Sternagel Department of Computer Science University of Innsbruck WS 2017/2018 AM (DCS @ UIBK) week 11 2/38 Definitions elimination x φ

More information

Integrating Linear Arithmetic into Superposition Calculus

Integrating Linear Arithmetic into Superposition Calculus Integrating Linear Arithmetic into Superposition Calculus Konstantin Korovin and Andrei Voronkov The University of Manchester {korovin voronkov}@cs.man.ac.uk Abstract. We present a method of integrating

More information

CSC384: Intro to Artificial Intelligence Knowledge Representation II. Required Readings: 9.1, 9.2, and 9.5 Announcements:

CSC384: Intro to Artificial Intelligence Knowledge Representation II. Required Readings: 9.1, 9.2, and 9.5 Announcements: CSC384: Intro to Artificial Intelligence Knowledge Representation II Required Readings: 9.1, 9.2, and 9.5 Announcements: 1 Models Examples. Environment A Language (Syntax) Constants: a,b,c,e Functions:

More information

Part 1: Propositional Logic

Part 1: Propositional Logic Part 1: Propositional Logic Literature (also for first-order logic) Schöning: Logik für Informatiker, Spektrum Fitting: First-Order Logic and Automated Theorem Proving, Springer 1 Last time 1.1 Syntax

More information

README - Syntax. Skolemization. Skolemization - Example 1. Skolemization - Example 1. Skolemization - Example 1. Skolemization - Example 2

README - Syntax. Skolemization. Skolemization - Example 1. Skolemization - Example 1. Skolemization - Example 1. Skolemization - Example 2 README - Syntax Skolemization Logical implication is commonly included in the syntax of first-order and propositional logical languages. The symbol used to denote logical implication differs from language

More information

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017 3. The Logic of Quantified Statements Summary Aaron Tan 28 31 August 2017 1 3. The Logic of Quantified Statements 3.1 Predicates and Quantified Statements I Predicate; domain; truth set Universal quantifier,

More information

8 General first order representation

8 General first order representation Intro. to Artificial Intelligence: Dale Schuurmans, Relu Patrascu 1 8 General first order representation 8.1 First order language Propositional core constants A, B, C, D predicates on(, ) associated arity,

More information

The Model Evolution Calculus with Equality

The Model Evolution Calculus with Equality The Model Evolution Calculus with Equality Peter Baumgartner Programming Logics Group Max-Planck-Institut für Informatik baumgart@mpi-sb.mpg.de Cesare Tinelli Department of Computer Science The University

More information

Mathematical Foundations of Logic and Functional Programming

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

More information

AAA615: Formal Methods. Lecture 2 First-Order Logic

AAA615: Formal Methods. Lecture 2 First-Order Logic AAA615: Formal Methods Lecture 2 First-Order Logic Hakjoo Oh 2017 Fall Hakjoo Oh AAA615 2017 Fall, Lecture 2 September 24, 2017 1 / 29 First-Order Logic An extension of propositional logic with predicates,

More information

Reasoning in Description Logics using Resolution and Deductive Databases

Reasoning in Description Logics using Resolution and Deductive Databases Zur Erlangung des akademischen Grades eines Doktors der Wirtschaftswissenschaften (Dr. rer. pol.) von der Fakultät für Wirtschaftswissenschaften der Universität Fridericiana zu Karlsruhe genehmigte Dissertation.

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

COMP9414: Artificial Intelligence First-Order Logic

COMP9414: Artificial Intelligence First-Order Logic COMP9414, Wednesday 13 April, 2005 First-Order Logic 2 COMP9414: Artificial Intelligence First-Order Logic Overview Syntax of First-Order Logic Semantics of First-Order Logic Conjunctive Normal Form Wayne

More information

INF3170 / INF4171 Notes on Resolution

INF3170 / INF4171 Notes on Resolution INF3170 / INF4171 Notes on Resolution Andreas Nakkerud Autumn 2015 1 Introduction This is a short description of the Resolution calculus for propositional logic, and for first order logic. We will only

More information

RYERSON UNIVERSITY DEPARTMENT OF MATHEMATICS

RYERSON UNIVERSITY DEPARTMENT OF MATHEMATICS RYERSON UNIVERSITY DEPARTMENT OF MATHEMATICS MTH 110 Final Exam December 6, 2008 Total marks: 100 Time allowed: 3 Hours. NAME (Print): STUDENT #: SIGNATURE: Circle your Lab Section: Section 1 Section 2

More information

Bachelor/Master Exam Version V3B

Bachelor/Master Exam Version V3B Prof aadr Jürgen Giesl Carsten Fuhs, Carsten Otto, Thomas Ströder Bachelor/Master Exam Version V3B First Name: Last Name: Immatriculation Number: Course of Studies (please mark exactly one): Informatik

More information

COMP2411 Lecture 10: Propositional Logic Programming. Note: This material is not covered in the book. Resolution Applied to Horn Clauses

COMP2411 Lecture 10: Propositional Logic Programming. Note: This material is not covered in the book. Resolution Applied to Horn Clauses COMP2411 Lecture 10: Propositional Logic Programming Note: This material is not covered in the book Consider two Horn clauses Resolution Applied to Horn Clauses p p 1... p n and q q 1... q m Suppose these

More information

CS 730/730W/830: Intro AI

CS 730/730W/830: Intro AI CS 730/730W/830: Intro AI 1 handout: slides 730W journal entries were due Wheeler Ruml (UNH) Lecture 9, CS 730 1 / 16 Logic First-Order Logic The Joy of Power Wheeler Ruml (UNH) Lecture 9, CS 730 2 / 16

More information

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system): Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building

More information

Automated Reasoning. Schedule. Peter Baumgartner NICTA, Canberra and RSISE, ANU

Automated Reasoning. Schedule. Peter Baumgartner NICTA, Canberra and RSISE, ANU NICTA, Canberra and RSISE, ANU Contact Office: NICTA Bldg, Tower A, 7 London Circuit Email: Peter.Baumgartner@nicta.com.au Web: http://users.rsise.anu.edu.au/~baumgart/ Many slides based on material from

More information

6. Logical Inference

6. Logical Inference Artificial Intelligence 6. Logical Inference Prof. Bojana Dalbelo Bašić Assoc. Prof. Jan Šnajder University of Zagreb Faculty of Electrical Engineering and Computing Academic Year 2016/2017 Creative Commons

More information

Technische Universität München Summer term 2011 Theoretische Informatik Prof. Dr. Dr. h.c J. Esparza / M. Luttenberger / R.

Technische Universität München Summer term 2011 Theoretische Informatik Prof. Dr. Dr. h.c J. Esparza / M. Luttenberger / R. Technische Universität München Summer term 2011 Theoretische Informatik Prof. Dr. Dr. h.c J. Esparza / M. Luttenberger / R. Neumann SOLUTION Logic Endterm 2 Please note : If not stated otherwise, all answers

More information

Inference Methods In Propositional Logic

Inference Methods In Propositional Logic Lecture Notes, Artificial Intelligence ((ENCS434)) University of Birzeit 1 st Semester, 2011 Artificial Intelligence (ENCS434) Inference Methods In Propositional Logic Dr. Mustafa Jarrar University of

More information

Equational Logic. Chapter 4

Equational Logic. Chapter 4 Chapter 4 Equational Logic From now on First-order Logic is considered with equality. In this chapter, I investigate properties of a set of unit equations. For a set of unit equations I write E. Full first-order

More information

Propositional Reasoning

Propositional Reasoning Propositional Reasoning CS 440 / ECE 448 Introduction to Artificial Intelligence Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri Spring 2010 Intro to AI (CS

More information

ILP = Logic, CS, ML Stop counting, start reasoning

ILP = Logic, CS, ML Stop counting, start reasoning ILP = Logic, CS, ML Stop counting, start reasoning Gilles Richard AOC team The story so far Several actors K. Brouwer K. Godel J. Herbrand A. Colmerauer R. Kowalski S. Muggleton L. Brouwer (1881-1966)

More information

Prolog. Resolution (for beginners?) Resolution (cont.) Resolution (cont.) Unification. Resolution (still cont.) Resolution & Unification

Prolog. Resolution (for beginners?) Resolution (cont.) Resolution (cont.) Unification. Resolution (still cont.) Resolution & Unification Resolution & Unification Prolog Computer Science Resolution (for beginners?) Resolution is a theorem proving method developed by Robinson based on representing logical formulas as clauses Clauses are build

More information

Combining Instance Generation and Resolution

Combining Instance Generation and Resolution Combining Instance Generation and Resolution Christopher Lynch and Ralph Eric McGregor Clarkson University www.clarkson.edu/projects/carl Abstract. We present a new inference system for first-order logic,

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

Pretending to be an SMT Solver with Vampire (and How We Do Instantiation)

Pretending to be an SMT Solver with Vampire (and How We Do Instantiation) Pretending to be an SMT Solver with Vampire (and How We Do Instantiation) Giles Reger 1, Martin Suda 2, and Andrei Voronkov 1,2 1 School of Computer Science, University of Manchester, UK 2 TU Wien, Vienna,

More information

Rewriting for Satisfiability Modulo Theories

Rewriting for Satisfiability Modulo Theories 1 Dipartimento di Informatica Università degli Studi di Verona Verona, Italy July 10, 2010 1 Joint work with Chris Lynch (Department of Mathematics and Computer Science, Clarkson University, NY, USA) and

More information

Topics in Model-Based Reasoning

Topics in Model-Based Reasoning Towards Integration of Proving and Solving Dipartimento di Informatica Università degli Studi di Verona Verona, Italy March, 2014 Automated reasoning Artificial Intelligence Automated Reasoning Computational

More information

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) B.Y. Choueiry 1 Instructor s notes #12 Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) Introduction to Artificial Intelligence CSCE 476-876, Fall 2018 URL: www.cse.unl.edu/ choueiry/f18-476-876

More information

Exercises 1 - Solutions

Exercises 1 - Solutions Exercises 1 - Solutions SAV 2013 1 PL validity For each of the following propositional logic formulae determine whether it is valid or not. If it is valid prove it, otherwise give a counterexample. Note

More information

Model Evolution with Equality Revised and Implemented

Model Evolution with Equality Revised and Implemented Model Evolution with Equality Revised and Implemented Peter Baumgartner 1 NICTA and The Australian National University, Canberra, Australia Björn Pelzer Institute for Computer Science, Universität Koblenz-Landau,

More information

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5 rtificial Intelligence Topic 12 Logical Inference Reading: Russell and Norvig, Chapter 7, Section 5 c Cara MacNish. Includes material c S. Russell & P. Norvig 1995,2003 with permission. CITS4211 Logical

More information

Lecture 2: First-Order Logic - Syntax, Semantics, Resolution

Lecture 2: First-Order Logic - Syntax, Semantics, Resolution Lecture 2: First-Order Logic - Syntax, Semantics, Resolution Ruzica Piskac Ecole Polytechnique Fédérale de Lausanne, Switzerland ruzica.piskac@epfl.ch Seminar on Automated Reasoning 2010 Acknowledgments

More information

Developing Modal Tableaux and Resolution Methods via First-Order Resolution

Developing Modal Tableaux and Resolution Methods via First-Order Resolution Developing Modal Tableaux and Resolution Methods via First-Order Resolution Renate Schmidt University of Manchester Reference: Advances in Modal Logic, Vol. 6 (2006) Modal logic: Background Established

More information

Notation for Logical Operators:

Notation for Logical Operators: Notation for Logical Operators: always true always false... and...... or... if... then...... if-and-only-if... x:x p(x) x:x p(x) for all x of type X, p(x) there exists an x of type X, s.t. p(x) = is equal

More information

Hyper-Resolution AUTOMATED REASONING SLIDES 8: HYPER-RESOLUTION Hyper-resolution Refinement The Otter Theorem Prover Generalised Hyper-resolution.

Hyper-Resolution AUTOMATED REASONING SLIDES 8: HYPER-RESOLUTION Hyper-resolution Refinement The Otter Theorem Prover Generalised Hyper-resolution. AUTOMATED REASONING SLIDES 8: HYPER-RESOLUTION Hyper-resolution Refinement The Otter Theorem Prover Generalised Hyper-resolution KB - AR - 09 Hyper-resolution is the strategy employed in the widely used

More information

Inference Methods In Propositional Logic

Inference Methods In Propositional Logic Lecture Notes, Advanced Artificial Intelligence (SCOM7341) Sina Institute, University of Birzeit 2 nd Semester, 2012 Advanced Artificial Intelligence (SCOM7341) Inference Methods In Propositional Logic

More information

Division of Informatics, University of Edinburgh

Division of Informatics, University of Edinburgh T E H U N I V E R S I T Y O H F R G E D I N B U Division of Informatics, University of Edinburgh Laboratory for Foundations of Computer Science Learning Inequated Range Restricted Horn Expressions by Marta

More information

2.5.2 Basic CNF/DNF Transformation

2.5.2 Basic CNF/DNF Transformation 2.5. NORMAL FORMS 39 On the other hand, checking the unsatisfiability of CNF formulas or the validity of DNF formulas is conp-complete. For any propositional formula φ there is an equivalent formula in

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

A Resolution Calculus for First-order Schemata

A Resolution Calculus for First-order Schemata A Resolution Calculus for First-order Schemata Vincent Aravantinos, Mnacho Echenim, Nicolas Peltier To cite this version: Vincent Aravantinos, Mnacho Echenim, Nicolas Peltier. A Resolution Calculus for

More information

First-Order Logic (FOL)

First-Order Logic (FOL) First-Order Logic (FOL) Also called Predicate Logic or Predicate Calculus 2. First-Order Logic (FOL) FOL Syntax variables x, y, z, constants a, b, c, functions f, g, h, terms variables, constants or n-ary

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

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

MODELLING AND VERIFICATION ANALYSIS OF A TWO SPECIES ECOSYSTEM VIA A FIRST ORDER LOGIC APPROACH

MODELLING AND VERIFICATION ANALYSIS OF A TWO SPECIES ECOSYSTEM VIA A FIRST ORDER LOGIC APPROACH International Journal of Pure and Applied Mathematics Volume 114 No. 3 2017, 583-592 ISSN: 1311-8080 (printed version); ISSN: 1314-3395 (on-line version) url: http://www.ijpam.eu doi: 10.12732/ijpam.v114i3.13

More information

A Unified Approach to Theory Reasoning

A Unified Approach to Theory Reasoning A Unified Approach to Theory Reasoning Peter Baumgartner, Ulrich Furbach Universität Koblenz Rheinau 3 4 W-5400 Koblenz {peter,uli}@infko.uni-koblenz.de Uwe Petermann Universitaet Leipzig Augustusplatz

More information

Predicate Logic: Sematics Part 1

Predicate Logic: Sematics Part 1 Predicate Logic: Sematics Part 1 CS402, Spring 2018 Shin Yoo Predicate Calculus Propositional logic is also called sentential logic, i.e. a logical system that deals with whole sentences connected with

More information

Model Evolution with Equality Modulo Built-in Theories

Model Evolution with Equality Modulo Built-in Theories Model Evolution with Equality Modulo Built-in Theories Peter Baumgartner 1 and Cesare Tinelli 2 1 NICTA and Australian National University, Canberra, Australia 2 The University of Iowa, USA Abstract. Many

More information

COMP4418: Knowledge Representation and Reasoning First-Order Logic

COMP4418: Knowledge Representation and Reasoning First-Order Logic COMP4418: Knowledge Representation and Reasoning First-Order Logic Maurice Pagnucco School of Computer Science and Engineering University of New South Wales NSW 2052, AUSTRALIA morri@cse.unsw.edu.au COMP4418

More information

Propositional Resolution

Propositional Resolution Artificial Intelligence Propositional Resolution Marco Piastra Propositional Resolution 1] Deductive systems and automation Is problem decidible? A deductive system a la Hilbert (i.e. derivation using

More information

Version January Please send comments and corrections to

Version January Please send comments and corrections to Mathematical Logic for Computer Science Second revised edition, Springer-Verlag London, 2001 Answers to Exercises Mordechai Ben-Ari Department of Science Teaching Weizmann Institute of Science Rehovot

More information

Strong AI vs. Weak AI Automated Reasoning

Strong AI vs. Weak AI Automated Reasoning Strong AI vs. Weak AI Automated Reasoning George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving Artificial intelligence can be classified into two categories:

More information

Herbrand Theorem, Equality, and Compactness

Herbrand Theorem, Equality, and Compactness CSC 438F/2404F Notes (S. Cook and T. Pitassi) Fall, 2014 Herbrand Theorem, Equality, and Compactness The Herbrand Theorem We now consider a complete method for proving the unsatisfiability of sets of first-order

More information

Web Science & Technologies University of Koblenz Landau, Germany. Models in First Order Logics

Web Science & Technologies University of Koblenz Landau, Germany. Models in First Order Logics Web Science & Technologies University of Koblenz Landau, Germany Models in First Order Logics Overview First-order logic. Syntax and semantics. Herbrand interpretations; Clauses and goals; Datalog. 2 of

More information

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning COMP9414, Monday 26 March, 2012 Propositional Logic 2 COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning Overview Proof systems (including soundness and completeness) Normal Forms

More information

Artificial Intelligence. Propositional Logic. Copyright 2011 Dieter Fensel and Florian Fischer

Artificial Intelligence. Propositional Logic. Copyright 2011 Dieter Fensel and Florian Fischer Artificial Intelligence Propositional Logic Copyright 2011 Dieter Fensel and Florian Fischer 1 Where are we? # Title 1 Introduction 2 Propositional Logic 3 Predicate Logic 4 Reasoning 5 Search Methods

More information

PROPOSITIONAL LOGIC. VL Logik: WS 2018/19

PROPOSITIONAL LOGIC. VL Logik: WS 2018/19 PROPOSITIONAL LOGIC VL Logik: WS 2018/19 (Version 2018.2) Martina Seidl (martina.seidl@jku.at), Armin Biere (biere@jku.at) Institut für Formale Modelle und Verifikation BOX Game: Rules 1. The game board

More information