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

Similar documents
CS 730/730W/830: Intro AI

CS 730/830: Intro AI. 1 handout: slides. Wheeler Ruml (UNH) Lecture 11, CS / 15. Propositional Logic. First-Order Logic

CS 730/830: Intro AI. 2 handouts: slides, asst 5. Wheeler Ruml (UNH) Lecture 10, CS / 19. What is KR? Prop. Logic. Reasoning

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

Propositional Reasoning

6.825 Techniques in Artificial Intelligence. Logic Miscellanea. Completeness and Incompleteness Equality Paramodulation

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

Propositional Resolution Introduction

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

Inference in first-order logic

Logic. Stephen G. Ware CSCI 4525 / 5525

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

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit:

Inference Methods In Propositional Logic

Knowledge based Agents

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

CS 520: Introduction to Artificial Intelligence. Review


Inference Methods In Propositional Logic

Deductive Systems. Lecture - 3

Inference in first-order logic

Inference in first-order logic

Propositional Logic: Methods of Proof (Part II)

Propositional Logic Resolution (6A) Young W. Lim 12/12/16

COMP9414: Artificial Intelligence First-Order Logic

Inference in Propositional Logic

Propositional Logic Part 1

Propositional Logic Resolution (6A) Young W. Lim 12/31/16

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

Logic and Computation

Artificial Intelligence

First Order Logic: Syntax and Semantics

Propositional Resolution

6. Logical Inference

AI Programming CS S-09 Knowledge Representation

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

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

Introduction to Intelligent Systems

CS 4700: Artificial Intelligence

Advanced Topics in LP and FP

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

7.5.2 Proof by Resolution

Convert to clause form:

Propositional Logic: Methods of Proof. Chapter 7, Part II

Objectives. Logical Reasoning Systems. Proofs. Outline. Example proof. Example proof. You should

CS 771 Artificial Intelligence. First Order Logic Inference

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

CS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón

Mathematical Logic Part Three

Comp487/587 - Boolean Formulas

Inference in First-Order Logic

CS 380: ARTIFICIAL INTELLIGENCE

Propositional logic II.

Warm-Up Problem. Is the following true or false? 1/35

The 30 Years War. Wheeler Ruml (UNH) Lecture 11, CS / 24. Leibniz. Logic in Practice. Satisfiability ILP

CS 730/830: Intro AI. 1 handout: slides. Wheeler Ruml (UNH) Lecture 17, CS / 16. Regression POP

Agenda. Artificial Intelligence. Reasoning in the Wumpus World. The Wumpus World

Introduction to Intelligent Systems

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

COMP3702/7702 Artificial Intelligence Week 5: Search in Continuous Space with an Application in Motion Planning " Hanna Kurniawati"

Propositional Resolution Part 1. Short Review Professor Anita Wasilewska CSE 352 Artificial Intelligence

473 Topics. Knowledge Representation III First-Order Logic. Logic-Based KR. Propositional. Logic vs. First Order

Propositional Logic: Methods of Proof (Part II)

CS 730/730W/830: Intro AI

Artificial Intelligence

Proof Methods for Propositional Logic

The non-logical symbols determine a specific F OL language and consists of the following sets. Σ = {Σ n } n<ω

Propositional Resolution

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method

Propositional Logic: Models and Proofs

Lecture 10: Even more on predicate logic" Prerequisites for lifted inference: Skolemization and Unification" Inference in predicate logic"

Announcements. CS311H: Discrete Mathematics. Propositional Logic II. Inverse of an Implication. Converse of a Implication

Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic

Logical Agent & Propositional Logic

CS560 Knowledge Discovery and Management. CS560 - Lecture 3 1

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

COMP4418: Knowledge Representation and Reasoning First-Order Logic

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence

Propositional Logic: Methods of Proof (Part II)

CS156: The Calculus of Computation

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

Logical Agent & Propositional Logic

CSC242: Intro to AI. Lecture 11. Tuesday, February 26, 13

Logic: Propositional Logic (Part I)

Announcements. CS243: Discrete Structures. Propositional Logic II. Review. Operator Precedence. Operator Precedence, cont. Operator Precedence Example

173 Logic and Prolog 2013 With Answers and FFQ

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

KE/Tableaux. What is it for?

Intelligent Systems. Propositional Logic. Dieter Fensel and Dumitru Roman. Copyright 2008 STI INNSBRUCK

Artificial Intelligence Chapter 7: Logical Agents

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna

Part 1: Propositional Logic

CS156: The Calculus of Computation Zohar Manna Winter 2010

Outline First-order logic. First-order Logic. Introduction. Recall: 4-Queens problem. First-order Logic. First-order Logic Syntax.

Guest Speaker. CS 416 Artificial Intelligence. First-order logic. Diagnostic Rules. Causal Rules. Causal Rules. Page 1

Lecture 12 September 26, 2007

Intelligent Agents. Pınar Yolum Utrecht University

Logic Programming (PLP 11) Predicate Calculus, Horn Clauses, Clocksin-Mellish Procedure

Transcription:

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 2 / 16

Logic Logic First-Order Logic The Joy of Power A logic is a formal system: syntax: defines sentences semantics: relation to world inference rules: reaching new conclusions three layers: proof, models, reality flexible, general, and principled form of KR Wheeler Ruml (UNH) Lecture 12, CS 730 3 / 16

First-Order Logic Logic First-Order Logic The Joy of Power 1. Things: constants: John, Chair23 functions (thing thing): MotherOf(John), SumOf(1,2) 2. Relations: predicates (objects T/F): IsWet(John), IsSittingOn(MotherOf(John),chair23) 3. Complex sentences: connectives: IsWet(John) IsSittingOn(MotherOf(John),Chair23) quantifiers and variables: person..., person... Wheeler Ruml (UNH) Lecture 12, CS 730 4 / 16

More First-Order Logic Logic First-Order Logic The Joy of Power person time (ItIsRaining(time) umbrella Holding(person, umbrella, time)) IsWet(person, time) John loves Mary. All crows are black. Dolphin are mammals that live in the water. Everyone loves someone. Mary likes the color of one of John s ties. I can t hold more than one thing at a time. Wheeler Ruml (UNH) Lecture 12, CS 730 5 / 16

The Joy of Power Logic First-Order Logic The Joy of Power 1. Indirect knowledge: Tall(MotherOf(John)) 2. Counterfactuals: Tall(John) 3. Partial knowledge (disjunction): IsSisterOf(b, a) IsSisterOf(c, a) 4. Partial knowledge (indefiniteness): xissisterof(x, a) Wheeler Ruml (UNH) Lecture 12, CS 730 6 / 16

in First-order Logic Wheeler Ruml (UNH) Lecture 12, CS 730 7 / 16

Clausal Form 1. Eliminate using and 2. Push inward using de Morgan s laws 3. Standardize variables apart 4. Eliminate using Skolem functions 5. Move to front 6. Move all outside any (CNF) 7. Can finally remove and Wheeler Ruml (UNH) Lecture 12, CS 730 8 / 16

Example 1. Cats like fish. 2. Cats eat everything they like. 3. Joe is a cat. Prove: Joe eats fish. Wheeler Ruml (UNH) Lecture 12, CS 730 9 / 16

Break asst 6, 7 project proposals due Tuesday Wheeler Ruml (UNH) Lecture 12, CS 730 10 / 16

Unifying Two Terms 1. if one is a constant and the other is 2. a constant: if the same, done; else, fail 3. a function: fail 4. a variable: substitute constant for var 5. if one is a function and the other is 6. a different function: fail 7. the same function: unify the two arguments lists 8. a variable: if var occurs in function, fail 9. otherwise, substitute function for var 10. otherwise, substitute one variable for the other Carry out substitutions on all expressions you are unifying! Build up substitutions as you go, carrying them out before checking expressions? See handout on website. Wheeler Ruml (UNH) Lecture 12, CS 730 11 / 16

Example 1. Anyone who can read is literate. 2. Dolphins are not literate. 3. Some dolphins are intelligent. 4. Prove: someone intelligent cannot read. Skolem, standardizing apart Wheeler Ruml (UNH) Lecture 12, CS 730 12 / 16

Tricky Cases don t unify x and f(x)! as in P(x,x) meets P(z,f(z)) note resolvent of P(f(x)) and P(z) P(f(z)) Semi-decidable: if yes, will terminate Wheeler Ruml (UNH) Lecture 12, CS 730 13 / 16

The Basis for Refutation Recall KB = α iff α true in every model of KB. 1. Assume KB = α. 2. So if a model i satisfies KB, then i satisfies α. 3. If i satisfies α, then doesn t satisfy α. 4. So no model satisfies KB and α. 5. So KB α is unsatisfiable. The other way: 1. Suppose no model that satisfies KB also satisfies α. In other words, KB α is unsatisfiable (= inconsistent = contradictory). 2. In every model of KB, α must be true or false. 3. Since in any model of KB, α is false, α must be true in all models of KB. Wheeler Ruml (UNH) Lecture 12, CS 730 14 / 16

Completeness Gödel s Completeness Theorem (1930) says a complete set of inference rules exists for FOL. Herbrand base: substitute all constants and combinations of constants and functions in place of variables. Potentially infinite! Herbrand s Theorem (1930): If a set of clauses S is unsatisfiable, then there exists a finite subset of its Herbrand base that is also unsatisfiable. Ground Resolution Thm: If a set of ground clauses is unsatisfiable, then the resolution closure of those clauses contains. Robinson (1965): If there is a proof on ground clauses, there is a corresponding proof in the original clauses. FOL is semi-decidable: if entailed, will eventually know Wheeler Ruml (UNH) Lecture 12, CS 730 15 / 16

EOLQs Please write down the most pressing question you have about the course material covered so far and put it in the box on your way out. Thanks! Wheeler Ruml (UNH) Lecture 12, CS 730 16 / 16