CS 730/730W/830: Intro AI

Similar documents
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. 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

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

Knowledge based Agents

Logic. Stephen G. Ware CSCI 4525 / 5525

Inference Methods In Propositional Logic

Propositional Resolution Introduction

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

Inference in first-order logic

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


Deductive Systems. Lecture - 3

Inference Methods In Propositional Logic

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

Inference in Propositional Logic

First Order Logic: Syntax and Semantics

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

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

Comp487/587 - Boolean Formulas

Inference in first-order logic

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

Propositional Logic Part 1

Propositional Logic: Models and Proofs

CS 380: ARTIFICIAL INTELLIGENCE

Inference in first-order logic

Advanced Topics in LP and FP

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

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

Propositional Logic: Methods of Proof (Part II)

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

Artificial Intelligence

CS 520: Introduction to Artificial Intelligence. Review

CS156: The Calculus of Computation

AI Programming CS S-09 Knowledge Representation

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

Propositional Logic: Methods of Proof (Part II)

Propositional logic II.

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

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

7.5.2 Proof by Resolution

Logic: Propositional Logic (Part I)

Mathematical Logic Part Three

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

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

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

Introduction to Intelligent Systems

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

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

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

A brief introduction to Logic. (slides from

COMP9414: Artificial Intelligence First-Order Logic

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

CS560 Knowledge Discovery and Management. CS560 - Lecture 3 1

Propositional Logic: Review

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

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

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

CS 4700: Artificial Intelligence

Artificial Intelligence Chapter 7: Logical Agents

Introduction to Intelligent Systems

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

Propositional Logic: Semantics and an Example

Intelligent Agents. Pınar Yolum Utrecht University

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

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

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

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence

Inference in First-Order Logic

How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague, such as: this paint is grey.

CS 730/730W/830: Intro AI

Convert to clause form:

Reasoning. Inference. Knowledge Representation 4/6/2018. User

Proof Methods for Propositional Logic

ECE473 Lecture 15: Propositional Logic

CS 771 Artificial Intelligence. First Order Logic Inference

Part 1: Propositional Logic

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

MAI0203 Lecture 7: Inference and Predicate Calculus

6. Logical Inference

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

Language of Propositional Logic

Logic: First Order Logic

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

Logical Agent & Propositional Logic

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

Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic

Propositional Resolution

CS 4700: Artificial Intelligence

CS156: The Calculus of Computation Zohar Manna Autumn 2008

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

Propositional Logic: Methods of Proof (Part II)

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

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

Propositional and First-Order Logic

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

CS 771 Artificial Intelligence. Propositional Logic

Transcription:

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

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 9, 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 9, 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 9, 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 9, CS 730 6 / 16

Reasoning in Wheeler Ruml (UNH) Lecture 9, 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 9, 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 9, CS 730 9 / 16

Break asst 1 asst 2 office hours Wheeler Ruml (UNH) Lecture 9, 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 9, 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 9, CS 730 12 / 16

Models A model is: Propositional: a truth assignment for symbols. Exponential number of models. First-order: a set of objects and an interpretation for constants, functions, and predicates (fixing referent of every term). Unbounded number of models. No unique names assumption: constants not distinct. No closed world assumption: unknown facts not false. α valid iff true in every model α = β iff β true in every model of α FOL is semi-decidable: if entailed, will eventually know Wheeler Ruml (UNH) Lecture 9, CS 730 13 / 16

The Basis for Refutation Recall α = β iff β true in every model of α. 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 9, 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. Wheeler Ruml (UNH) Lecture 9, 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 9, CS 730 16 / 16