Inference in First-Order Logic

Slides:



Advertisements
Similar presentations
TWO STEP EQUATIONS 1. SOLVE FOR X 2. DO THE ADDITION STEP FIRST
Advertisements

You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
Applications Computational LogicLecture 11 Michael Genesereth Spring 2004.
Inference in First-Order Logic
1 Knowledge and reasoning – second part Knowledge representation Logic and representation Propositional (Boolean) logic Normal forms Inference in propositional.
Advanced Piloting Cruise Plot.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Chapter 1 The Study of Body Function Image PowerPoint
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Appendix 01.
UNITED NATIONS Shipment Details Report – January 2006.
Summary of Convergence Tests for Series and Solved Problems
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Title Subtitle.
My Alphabet Book abcdefghijklm nopqrstuvwxyz.
DIVIDING INTEGERS 1. IF THE SIGNS ARE THE SAME THE ANSWER IS POSITIVE 2. IF THE SIGNS ARE DIFFERENT THE ANSWER IS NEGATIVE.
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Addition Facts
Year 6 mental test 5 second questions
Year 6 mental test 10 second questions
2010 fotografiert von Jürgen Roßberg © Fr 1 Sa 2 So 3 Mo 4 Di 5 Mi 6 Do 7 Fr 8 Sa 9 So 10 Mo 11 Di 12 Mi 13 Do 14 Fr 15 Sa 16 So 17 Mo 18 Di 19.
Solve Multi-step Equations
Richmond House, Liverpool (1) 26 th January 2004.
Artificial Intelligence
Inference in first-order logic
First-Order Logic.
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Randomized Algorithms Randomized Algorithms CS648 1.
ABC Technology Project
1 Undirected Breadth First Search F A BCG DE H 2 F A BCG DE H Queue: A get Undiscovered Fringe Finished Active 0 distance from A visit(A)
VOORBLAD.
15. Oktober Oktober Oktober 2012.
1 Breadth First Search s s Undiscovered Discovered Finished Queue: s Top of queue 2 1 Shortest path from s.
BIOLOGY AUGUST 2013 OPENING ASSIGNMENTS. AUGUST 7, 2013  Question goes here!
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Basel-ICU-Journal Challenge18/20/ Basel-ICU-Journal Challenge8/20/2014.
1..
1 Declarative Programming Motivation Warm Fuzzies What is Logic?... Logic Programming? Mechanics of Prolog Terms, Substitution, Unification, Horn Clauses,
© 2012 National Heart Foundation of Australia. Slide 2.
Lets play bingo!!. Calculate: MEAN Calculate: MEDIAN
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
Chapter 5 Test Review Sections 5-1 through 5-4.
GG Consulting, LLC I-SUITE. Source: TEA SHARS Frequently asked questions 2.
Addition 1’s to 20.
25 seconds left…...
H to shape fully developed personality to shape fully developed personality for successful application in life for successful.
Januar MDMDFSSMDMDFSSS
Week 1.
Analyzing Genes and Genomes
We will resume in: 25 Minutes.
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
Intracellular Compartments and Transport
PSSA Preparation.
Immunobiology: The Immune System in Health & Disease Sixth Edition
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
CpSc 3220 Designing a Database
Inference Rules Universal Instantiation Existential Generalization
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2004.
Inference in First-Order Logic
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Fall 2004.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2005.
Inference in First Order Logic. Outline Reducing first order inference to propositional inference Unification Generalized Modus Ponens Forward and backward.
Presentation transcript:

Inference in First-Order Logic Proofs Unification Generalized modus ponens Forward and backward chaining Completeness Resolution Logic programming

Inference in First-Order Logic Proofs – extend propositional logic inference to deal with quantifiers Unification Generalized modus ponens Forward and backward chaining – inference rules and reasoning program Completeness – Gödel’s theorem: for FOL, any sentence entailed by another set of sentences can be proved from that set Resolution – inference procedure that is complete for any set of sentences Logic programming

Remember: propositional logic

Proofs

Proofs Universal Elimination (UE): The three new inference rules for FOL (compared to propositional logic) are: Universal Elimination (UE): for any sentence , variable x and ground term , x  {x/} Existential Elimination (EE): for any sentence , variable x and constant symbol k not in KB, x  {x/k} Existential Introduction (EI): for any sentence , variable x not in  and ground term g in ,  x {g/x}

Proofs Universal Elimination (UE): The three new inference rules for FOL (compared to propositional logic) are: Universal Elimination (UE): for any sentence , variable x and ground term , x  e.g., from x Likes(x, Candy) and {x/Joe} {x/} we can infer Likes(Joe, Candy) Existential Elimination (EE): for any sentence , variable x and constant symbol k not in KB, x  e.g., from x Kill(x, Victim) we can infer {x/k} Kill(Murderer, Victim), if Murderer new symbol Existential Introduction (EI): for any sentence , variable x not in  and ground term g in ,  e.g., from Likes(Joe, Candy) we can infer x {g/x} x Likes(x, Candy)

Example Proof

Example Proof

Example Proof

Example Proof

Search with primitive example rules

Unification

Unification

Generalized Modus Ponens (GMP)

Soundness of GMP

Properties of GMP Why is GMP and efficient inference rule? - It takes bigger steps, combining several small inferences into one - It takes sensible steps: uses eliminations that are guaranteed to help (rather than random UEs) - It uses a precompilation step which converts the KB to canonical form (Horn sentences) Remember: sentence in Horn from is a conjunction of Horn clauses (clauses with at most one positive literal), e.g., (A  B)  (B  C  D), that is (B  A)  ((C  D)  B)

Horn form We convert sentences to Horn form as they are entered into the KB Using Existential Elimination and And Elimination e.g., x Owns(Nono, x)  Missile(x) becomes Owns(Nono, M) Missile(M) (with M a new symbol that was not already in the KB)

Forward chaining

Forward chaining example

Backward chaining

Backward chaining example

Completeness in FOL

Historical note

Resolution

Resolution inference rule

Remember: normal forms “product of sums of simple variables or negated simple variables” “sum of products of simple variables or negated simple variables”

Conjunctive normal form

Skolemization

Resolution proof

Resolution proof