Logic- Meaning & Logical Reasoning Neil Heffernan (Slides from Andrew Moore at CMU) See Chapter 6 of Russell and Norvig.

Slides:



Advertisements
Similar presentations
Geometry Logic.
Advertisements

TRUTH TABLES Section 1.3.
TRUTH TABLES The general truth tables for each of the connectives tell you the value of any possible statement for each of the connectives. Negation.
Logic & Critical Reasoning
Truth Tables Presented by: Tutorial Services The Math Center.
1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: The Moon is made of green cheese. Trenton.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
3/30/00 Agents that Reason Logically by Chris Horn Jiansui Yang Xiaojing Wu.
Artificial Intelligence Knowledge-based Agents Russell and Norvig, Ch. 6, 7.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Fall 2005.
CS 561, Sessions Knowledge and reasoning – second part Knowledge representation Logic and representation Propositional (Boolean) logic Normal forms.
Class Project Due at end of finals week Essentially anything you want, so long as its AI related and I approve Any programming language you want In pairs.
1 Problem Solving CS 331 Dr M M Awais Representational Methods Formal Methods Propositional Logic Predicate Logic.
CS 460, Sessions Knowledge and reasoning – second part Knowledge representation Logic and representation Propositional (Boolean) logic Normal forms.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Knowledge Representation & Reasoning (Part 1) Propositional Logic chapter 6 Dr Souham Meshoul CAP492.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
1 Section 1.2 Propositional Equivalences. 2 Equivalent Propositions Have the same truth table Can be used interchangeably For example, exclusive or and.
CPSC 322, Lecture 21Slide 1 Bottom Up: Soundness and Completeness Computer Science cpsc322, Lecture 21 (Textbook Chpt 5.2) March, 5, 2010.
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2005.
Through the Looking Glass, 1865
Propositional Logic 7/16/ Propositional Logic A proposition is a statement that is either true or false. We give propositions names such as p, q,
Truth Tables for Negation, Conjunction, and Disjunction.
Logic ChAPTER 3.
Validity: Long and short truth tables Sign In! Week 10! Homework Due Review: MP,MT,CA Validity: Long truth tables Short truth table method Evaluations!
Normal or Canonical Forms Rosen 1.2 (exercises). Logical Operators  - Disjunction  - Conjunction  - Negation  - Implication p  q   p  q  - Exclusive.
Section 1-4 Logic Katelyn Donovan MAT 202 Dr. Marinas January 19, 2006.
Discrete Maths 2. Propositional Logic Objective
Logical Agents Chapter 7 (based on slides from Stuart Russell and Hwee Tou Ng)
Chapter 1 The Logic of Compound Statements. Section 1.1 Logical Form and Logical Equivalence.
Math 240: Transition to Advanced Math Deductive reasoning: logic is used to draw conclusions based on statements accepted as true. Thus conclusions are.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Logical Agents Logic Propositional Logic Summary
Class Project Due at end of finals week Essentially anything you want, so long as its AI related and I approve Any programming language you want In pairs.
Chapter 3: Semantics PHIL 121: Methods of Reasoning March 13, 2013 Instructor:Karin Howe Binghamton University.
Conditional Statements
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
For Friday Read chapter 8 Homework: –Chapter 7, exercise 1.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
How do I show that two compound propositions are logically equivalent?
LOGIC.
1 The Wumpus Game StenchBreeze Stench Gold Breeze StenchBreeze Start  Breeze.
If a quadrilateral is a square, then it has 4 right angles. What is p? A quad is a square What is the conclusion? It has 4 right angles What is the converse?
Section 1.1. Section Summary Propositions Connectives Negation Conjunction Disjunction Implication; contrapositive, inverse, converse Biconditional Truth.
Computer Science CPSC 322 Lecture 22 Logical Consequences, Proof Procedures (Ch 5.2.2)
Statement Forms and Material Equivalence Kareem Khalifa Department of Philosophy Middlebury College.
Joan Ridgway. If a proposition is not indeterminate then it is either true (T) or false (F). True and False are complementary events. For two propositions,
UNIT 01 – LESSON 10 - LOGIC ESSENTIAL QUESTION HOW DO YOU USE LOGICAL REASONING TO PROVE STATEMENTS ARE TRUE? SCHOLARS WILL DETERMINE TRUTH VALUES OF NEGATIONS,
Outline Logic Propositional Logic Well formed formula Truth table
Section 1.1. Propositions A proposition is a declarative sentence that is either true or false. Examples of propositions: a) The Moon is made of green.
Conditional Statements Lecture 2 Section 1.2 Fri, Jan 20, 2006.
Conditional statement or implication IF p then q is denoted p ⇒ q p is the antecedent or hypothesis q is the consequent or conclusion ⇒ means IF…THEN.
Chapter 1. Chapter Summary  Propositional Logic  The Language of Propositions (1.1)  Logical Equivalences (1.3)  Predicate Logic  The Language of.
Logical Operators (Connectives) We will examine the following logical operators: Negation (NOT,  ) Negation (NOT,  ) Conjunction (AND,  ) Conjunction.
Discrete Structures for Computer Science Presented By: Andrew F. Conn Slides adapted from: Adam J. Lee Lecture #1: Introduction, Propositional Logic August.
Knowledge and reasoning – second part
EA C461 – Artificial Intelligence Logical Agent
Learning and Knowledge Acquisition
Logical Agents Chapter 7.
Artificial Intelligence
Class #9– Thursday, September 29
Knowledge and reasoning – second part
The Logic of Declarative Statements
Logical Agents Chapter 7.
CS 416 Artificial Intelligence
CMSC 471 Fall 2011 Class #10 Tuesday, October 4 Knowledge-Based Agents
Logical and Rule-Based Reasoning Part I
Logical Agents Prof. Dr. Widodo Budiharto 2018
Presentation transcript:

Logic- Meaning & Logical Reasoning Neil Heffernan (Slides from Andrew Moore at CMU) See Chapter 6 of Russell and Norvig

Goal: Make Logical Decesions Adjancent squares (not diagonal) to wumps are stenchy Next to pit are breezes Agents don’t know where they are- they will percive a bump if they try to walk into a wall. Shoot wumpus with one arrow in straight line Die if move into room with wumpus Goal- get in and get out with gold in as few as moves as possible.

Truth Tables PQ ? True FalseTrue FalseTrue False

Truth Tables PQ ? True False TrueFalse True False True

Truth Tables PQ ? True False TrueFalse

Truth Tables PQ P => Q True ? False? True? False ? True False True If P is true that I am claim that Q is true, otherwise I am making no claim

Truth Tables PQ P Q True ? False? True? False ? True False True

Valid Sentences (Tautologies) A sentence is valid if it is true in all possible worlds P or not P true P v Q is not valid for it is only true is the worlds where wither P or Q is true.

Satisfiable A sentence is satisfiable only if there is some interpretion that makes it true. P True False is not satisfiable P and not P is not satisifaible

PQR TTT TTF TFT TFF FTT FTF FFT FFF

P v Q  (Q  R) PQRP v Q QRQRP v Q  (Q  R) TTTTTT TTFTFF TFTTFF TFFTTT FTTTTT FTFTFF FFTFFT FFFFTT

Draw a venn Diagram representing satisfiable sentences, valid sentences and unstatisfiable sentence.

Answer Your knowledge base has many sentences about that relates P, Q, R, S and T like –P v Q  (S v T) –~P v S –etc You want to know if some arbiraty statement like (R  Q) v T You contruct and implication statement like –(Knowledgebase and’ed togheter) => ((R  Q) v T) –Premise => conclusion

…. (an inference proceudre is complete if you can find a proof for any sentence entitled in the knowledge base) This truth table method of inference is Complete- because it is always possible to enemeurate out all of the 2^n rows for any proof invovling n propositional symbols

How do you show that these inference rules are sound (that they don’t cause you to entail things that are not in your knoweldge base)

Prove that the four rules are sound

Our agent needs to be able to act Can we ask the knowledge base what action we should take?

No- But we can encode things not to do like “Don’t go forward if the wumpus is in front of you” A(1,1) ^ East(A) ^ W(2,1) => ~Forward How many rules do we need for this?

Practice Is this valid? Prove it or show counter example –P^(Q V R)  (P ^ Q) v (P ^ R)