CS 4700: Foundations of Artificial Intelligence

Slides:



Advertisements
Similar presentations
Big Ideas in Cmput366. Search Blind Search State space representation Iterative deepening Heuristic Search A*, f(n)=g(n)+h(n), admissible heuristics Local.
Advertisements

Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 06 : First Order Logic Resolution Prove.
Resolution.
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
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.
13 Automated Reasoning 13.0 Introduction to Weak Methods in Theorem Proving 13.1 The General Problem Solver and Difference Tables 13.2 Resolution.
Resolution Theorem Prover in First-Order Logic
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2004.
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
Formal Aspects of Computer Science – Week 12 RECAP Lee McCluskey, room 2/07
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
CS6700 Advanced AI Bart Selman. Admin Project oriented course Projects --- research style or implementation style with experimental component. 1 or 2.
Ming Fang 6/12/2009. Outlines  Classical logics  Introduction to DL  Syntax of DL  Semantics of DL  KR in DL  Reasoning in DL  Applications.
MATH 224 – Discrete Mathematics
Computing & Information Sciences Kansas State University Wednesday, 20 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 12 of 42 Wednesday, 20 September.
Unification Algorithm Input: a finite set Σ of simple expressions Output: a mgu for Σ (if Σ is unifiable) 1. Set k = 0 and  0 = . 2. If Σ  k is a singleton,
CPSC 322, Lecture 23Slide 1 Logic: TD as search, Datalog (variables) Computer Science cpsc322, Lecture 23 (Textbook Chpt 5.2 & some basic concepts from.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 11 of 41 Wednesday, 15.
Computing & Information Sciences Kansas State University Lecture 13 of 42 CIS 530 / 730 Artificial Intelligence Lecture 13 of 42 William H. Hsu Department.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 17 Wednesday, 01 October.
3.2 Semantics. 2 Semantics Attribute Grammars The Meanings of Programs: Semantics Sebesta Chapter 3.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 12 Friday, 17 September.
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.
Modeling Speech Acts and Joint Intentions in Modal Markov Logic Henry Kautz University of Washington.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 14 of 41 Wednesday, 22.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
Answer Extraction To use resolution to answer questions, for example a query of the form  X C(X), we must keep track of the substitutions made during.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 14 of 42 Wednesday, 22.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
CS 416 Artificial Intelligence Lecture 13 First-Order Logic Chapter 9 Lecture 13 First-Order Logic Chapter 9.
Computing & Information Sciences Kansas State University Friday, 13 Oct 2006CIS 490 / 730: Artificial Intelligence Lecture 21 of 42 Friday, 13 October.
Announcements  Upcoming due dates  Thursday 10/1 in class Midterm  Coverage: everything in lecture and readings except first-order logic; NOT probability.
Computing & Information Sciences Kansas State University Monday, 18 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 11 of 42 Monday, 18 September.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
CS 4700: Foundations of Artificial Intelligence
EA C461 Artificial Intelligence
Chapter 7. Propositional and Predicate Logic
Introduction to Logic for Artificial Intelligence Lecture 2
Announcements No office hours today!
Computer Science cpsc322, Lecture 20
CS 4700: Foundations of Artificial Intelligence
Topics Covered since 1st midterm…
CS 4700: Foundations of Artificial Intelligence
Knowledge and reasoning – second part
Propositional Logic Session 3
CS 4700: Foundations of Artificial Intelligence
CS 4700: Foundations of Artificial Intelligence
CS 4700: Foundations of Artificial Intelligence
EPISTEMIC LOGIC.
CS 4700: Foundations of Artificial Intelligence
Emergence of Intelligent Machines: Challenges and Opportunities
Dave Touretzky Read R&N Ch
Logic for Artificial Intelligence
CS6700 Advanced AI Prof. Carla Gomes Prof. Bart Selman
Knowledge and reasoning – second part
Logics for Data and Knowledge Representation
Chapter 7. Propositional and Predicate Logic
CS 416 Artificial Intelligence
CS 188: Artificial Intelligence
CSNB234 ARTIFICIAL INTELLIGENCE
Computer Science cpsc322, Lecture 20
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
Announcements Midterm is Wednesday March 20, 7pm-9pm 
Presentation transcript:

CS 4700: Foundations of Artificial Intelligence Bart Selman selman@cs.cornell.edu Module: Knowledge, Reasoning, and Planning First-Order Logic and Inference R&N: Chapters 8 and 9

Finite domains === “essentially propositional.” Also called: Propositional schema.

Also discussed earlier. Here some additional axiom details Also discussed earlier. Here some additional axiom details. R&N Section 10.4.2.

Result(action, situation)  situation (unique outcome)

Again, as discussed in propositional case.

R&N 8.4.2. Further illustration of FOL formulation.

Always define first and carefully.

Aside: previously The same here but we want a bit more “detailed answer”. Inference will also give us variable bindings if existential query is entailed.

Done with prop. logic. Just check for syntax and FOL form.

See R&N p. 443 FOL formalizations can be challenging for “everyday” concepts. Probabilistic representations (extending prop. logic / FOL) can help!

Chapter 9 R&N. But for finite domains that are not too large, better to “ground to” propositional and use SAT solver.

Find the “right” substitution for a universal quantified variable.

Can substitute in because original clause universally quantified.

YES! Natural language input. (From dog to more general.) (General statement.) The query YES! What “hidden” background knowledge is being used?

( ) Cats are animals. Not stated explicitly! This is an example of background knowledge key to Natural Language Understanding. Query: KB |== Kills(Curiosity, Tuna) ?? Executable semantic parsing. Persi Liang, Stanford. NLU needs to resolve “the cat” to Curiosity!

Proof by contradiction for resolution. 8. ¬ Kills(Curiosity, Tuna) D is a “fake name” for the dog. Negation of query! Proof by contradiction for resolution. 8. ¬ Kills(Curiosity, Tuna) Missing? Translation to clausal form automatic.

Warning: Non-standard notation!! i.e. : Kills(Curiosity,Tuna) Warning: Non-standard notation!!

First-order resolution proof (more carefully) 9. ¬ Owns(x, D)∨ AnimalLover(x) using S(x)/D 10. AnimalLover(Jack) using x/Jack 11. Animal (Tuna) using z/Tuna

11. Animal (Tuna) 12. ¬ AnimalLover(w) ∨ ¬ Kills(w, Tuna) using y/Tuna 10. AnimalLover(Jack) 13. ¬ Kills(Jack, Tuna) using w/Jack 14. Kills(Curiosity, Tuna) 15 lines; trivial with modern solvers. Can do 1+ billion lines! 8. ¬ Kills(Curiosity, Tuna) 15 ⧠ (contradiction reached) So, KB |== Kills(Curiosity, Tuna)

So, we answered a natural language query using Natural language parsing (almost there) Background knowledge (much work remaining) Reasoning (works fine now) We will see much progress in this kind of natural language question answering in next decade. Eg executable semantic parsing. Persi Liang, Stanford.

Certain sets of first-order statements can overwhelm general resolution solvers, e.g. about infinite sets (natural numbers). Or, better yet, for finite domains, fall back to SAT solvers.

Concludes propositional and first-order logic for knowledge representation and reasoning. Next “Big Picture Slide”

AI Knowledge- Data- Inference Triangle Intensive Computer Vision NLU Common Sense 20+yr GAP! Google’s Knowl. Graph Semantic Web Watson Verification Google Transl. Siri Object recognition Robbin’s Conj. 4-color thm. Sentiment analysis Google Search (IR) Deep Blue Speech understanding Reasoning/Search Intensive Data Intensive