The Semantic Web – WEEK 8: An automatic Proof technique.. The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse] You are here!

Slides:



Advertisements
Similar presentations
Artificial Intelligence 8. The Resolution Method
Advertisements

Resolution Proof System for First Order Logic
First-Order Logic.
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Biointelligence Lab School of Computer Sci. & Eng.
Inference Rules Universal Instantiation Existential Generalization
1 A formula in predicate logic An atom is a formula. If F is a formula then (~F) is a formula. If F and G are Formulae then (F /\ G), (F \/ G), (F → G),
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Standard Logical Equivalences
First-Order Logic (FOL) aka. predicate calculus. First-Order Logic (FOL) Syntax User defines these primitives: – Constant symbols (i.e., the "individuals"
Resolution.
Automated Reasoning Systems For first order Predicate Logic.
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
First Order Logic Resolution
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
For Friday No reading Homework: –Chapter 9, exercise 4 (This is VERY short – do it while you’re running your tests) Make sure you keep variables and constants.
Logic Use mathematical deduction to derive new knowledge.
13 Automated Reasoning 13.0 Introduction to Weak Methods in Theorem Proving 13.1 The General Problem Solver and Difference Tables 13.2 Resolution.
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
Prolog IV Logic, condensed. 2 Propositional logic Propositional logic consists of: The logical values true and false ( T and F ) Propositions: “Sentences,”
Formal Aspects of Computer Science - Week 5 Logic and Reasoning Lee McCluskey, room 2/07
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
CSE (c) S. Tanimoto, 2008 Propositional Logic
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2004.
The Semantic Web – WEEK 7: Logic, Reasoning and Proof The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse] You are here!
AI - Week 16 Logic and Reasoning in AI: Resolution Refutation Lee McCluskey, room 2/07
1 Automated Reasoning Introduction to Weak Methods in Theorem Proving 13.1The General Problem Solver and Difference Tables 13.2Resolution Theorem.
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution.
AI - Week 15 Logic and Reasoning in AI Lee McCluskey, room 2/07
Resolution Refutation Formal Aspects of Computer Science - Week 9 Resolution Refutation, Relation with Prolog Lee McCluskey, room 2/07
Inference and Resolution for Problem Solving
Chapter 3 Propositional Logic
Artificial Intelligence
The Semantic Web – WEEK 10: Introduction to Description Logics The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse] We are back down to.
Formal Aspects of Computer Science – Week 12 RECAP Lee McCluskey, room 2/07
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
The Semantic Web – WEEK 8: Proof in FOL continued The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse] You are here!
Resolution Refutation Formal Aspects of Computer Science - Week 8 The Law of Resolution and the Resolution Procedure Lee McCluskey, room 2/07
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
Inference in First-Order logic Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Conjunctive normal form: any formula of the predicate calculus can be transformed into a conjunctive normal form. Def. A formula is said to be in conjunctive.
1 Chapter 8 Inference and Resolution for Problem Solving.
Logical Agents Logic Propositional Logic Summary
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Propositional Calculus – Methods of Proof Predicate Calculus Math Foundations of Computer Science.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
9/30/98 Prof. Richard Fikes Inference In First Order Logic Computer Science Department Stanford University CS222 Fall 1998.
Computing & Information Sciences Kansas State University Lecture 14 of 42 CIS 530 / 730 Artificial Intelligence Lecture 14 of 42 William H. Hsu Department.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Automated Reasoning Early AI explored how to automate several reasoning tasks – these were solved by what we might call weak problem solving methods as.
CS6133 Software Specification and Verification
Reasoning using First-Order Logic
The Law of Resolution Formal Aspects of Computer Science - Week 7 The Law of Resolution Lee McCluskey, room 2/07
Propositional Logic Predicate Logic
第 1 6 章 谓词演算中的归结. 2 Outline Unification Predicate-Calculus Resolution Completeness and Soundness Converting Arbitrary wffs to Clause Form Using Resolution.
For Wednesday Finish reading chapter 10 – can skip chapter 8 No written homework.
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Introduction to Logic for Artificial Intelligence Lecture 2
Propositional Logic Resolution
Logic Use mathematical deduction to derive new knowledge.
Horn Clauses and Unification
Computer Security: Art and Science, 2nd Edition
CSNB234 ARTIFICIAL INTELLIGENCE
Horn Clauses and Unification
RESOLUTION.
Presentation transcript:

The Semantic Web – WEEK 8: An automatic Proof technique.. The “Layer Cake” Model – [From Rector & Horrocks Semantic Web cuurse] You are here!

The Semantic Web Recap For agents to reason, negotiate etc in the Semantic Web environment they need to represent knowledge and do automated inference. Logic is good at representing conceptual knowledge AND reasoning with it. Laws of Inference are methods for deducing wffs. They are SOUND if they only ever deduce wffs that also logically follow. Modus Ponens and Modus Tollens are good inference rules for Natural Deduction

The Semantic Web Example Revisited “Every student is an academic. Everybody who teaches an academic is an academic. Jeff teaches Fred who is a student.” What can we say about the statement “Jeff is an academic” Translate to FOL: S = student, D = academic, T = teaches 1. Ax S(x)=>D(x) 2. Ax (Ey T(x,y) & D(y)) => D(x) 3. S(Fred) 4. T(Jeff,Fred) Goal: D(Jeff) ? Proof: 1+3 using Modus Ponens: |- D(Fred) 4+D(Fred) using &-introduction: |- T(Jeff,Fred)&D(Fred) 2+T(Jeff,Fred)&D(Fred) using Modus Ponens++ : |- D(Jeff) BUT this is not very good for AUTOMATED deduction

The Semantic Web Proof by Contradiction (Reductio ad Absurdum) This is a very common way of reasoning - we assume what we are trying to prove is FALSE, then get a CONTRADICTION => what we were trying to prove is TRUE. Imagine we know Wff1 to be TRUE and we want to prove Wff2 logically follows from Wff1. If we can derive a contradicition from (Wff1 & ~Wff2) then assuming Wff1 is TRUE we know Wff1 |- Wff2

The Semantic Web Resolution Refutation Resolution is a super law of inference which (a) can easily be automated (b) when used in refutation mode it is COMPLETE - it can deduce any Wff that logically follows. Resolution Refutation: To PROVE Wff2 FROM Wff1 1. Translate Wff1 to CLAUSAL FORM 2. Translate ~ Wff2 to CLAUSAL FORM 3. Get contradiction from using Resolution …. If follows that Wff1 |- Wff2

The Semantic Web CLAUSAL FORM - SOME JARGON n A LITERAL is a predicate which may be negated, called a negative literal, or a predicate itself, called a positive literal. n A CLAUSE is a disjunction of literals which contain only universally quantified variables. Sometimes we think of a clause as a SET of literals implicitly disjuncted. n A set of wffs w1, w2,... wn is in CLAUSAL FORM if each wi (i=1 to n) is a clause

The Semantic Web To change any Wff to Clausal Form: Those Eight Steps …….. 1. Replace any occurrences of using the law: A B = (A => B) & (A <= B) 2. Replace all occurrences of => and <= using the laws: A => B = ~A v B …and... A <= B = A v ~B 3. Reduce the scope of every “~” so that they all operate on predicates. To do this use you may need the laws: ~(Ax wff) = Ex (~wff) and ~(Ex wff) = Ax (~wff) etc 4. Standardise variables - make sure all quantified variables are different 5. Eliminate existential quantifiers - change into Skolem Constants 6. Universal quantifiers can now all be removed, making every variable implicitly universally quantified. 7. Use the laws to convert to conjunctions of disjunctive literals (A & B) V C = (AVC) & (B V C) 8. Making all the conjunctions implicit, we are left with a set of clauses.

The Semantic Web Unification - substition The law of resolution depends on the idea of “unification”. This is like (but much more general than) the technique of ‘matching’ in Haskell (cf PLS module). We first introduce the idea of substitution: A legal substitution is the consistent replacing of a variable symbol x by a term T on condition that T does not contain any occurrence of x. If W is either is a clause we may write: W[T/x] meaning perform the textual substitution T for x throughout W, or W/S meaning perform the following sequence of substitutions on W: S = { [T1/x1],..., [Tn/xn]}. [cf Reduction in Lambda Calculus in PLS module ]

The Semantic Web Unification - definition A set of literals unify if and only if each literal in the set is identical or a step by step application of a sequence of legal substitutions make them identical. Identical here means: - they all have the same predicate symbol; - they all have the same polarity; - they all have the same number of slots; - they all have identical terms in corresponding slots. Given a set of literals we can try to UNIFY them by applying substitutions systematically

The Semantic Web The Law of (Binary) Resolution Two PARENT clauses w1 and w2 infer a CHILD clause wr if there are literals L in w1 and M in w2 such that {L,~M} unify under some substitution sequence S. we can deduce wr = [ w1 U w2 -- { L, ~ M } ]/S. The law also assumes that each clause has unique variable letters. This does not restrict its generality because variables in separate clauses are independent.

The Semantic Web Example S = student, D = academic, T = teaches Ax S(x)=>D(x) ; Ax (Ey T(x,y) & D(y)) => D(x) S(Fred) ; T(Jeff,Fred) Goal: D(Jeff) CLAUSAL FORM of Wff1 & ~Wff2: 1. ~S(x) V D(x) 2. ~T(x,y) V ~D(y) V D(x) 3. S(Fred) 4. T(Jeff,Fred) 5. ~D(Jeff)

The Semantic Web Example 1. ~S(x) V D(x)3. S(Fred) D(Fred)2. ~T(x,y) V ~D(y) V D(x) ~T(x,Fred) V D(x)5. ~D(Jeff) ~T(Jeff,Fred)4. T(Jeff,Fred) Subs = Fred / x Subs = Fred / y Subs = Jeff / x..So D(Jeff) follows from our premises

The Semantic Web Summary Resolution is a law of inference that is based on: - Wffs in CLAUSAL FORM - The method of UNIFICATION of literals Resolution Refutation is a deduction procedure that is n COMPLETE n amenable to AUTOMATION