Propositional Calculus A propositional calculus formula is composed of atomic propositions, which area simply statements that are either true or false.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

1 A formula in predicate logic An atom is a formula. If F is a formula then (~F) is a formula. If F and G are Formulae then (F /\ G), (F \/ G), (F → G),
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Standard Logical Equivalences
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
We have seen that we can use Generalized Modus Ponens (GMP) combined with search to see if a fact is entailed from a Knowledge Base. Unfortunately, there.
Logic Use mathematical deduction to derive new knowledge.
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
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 Proving
Logic Concepts Lecture Module 11.
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
Knowledge Representation Methods
Prolog IV Logic, condensed. 2 Propositional logic Propositional logic consists of: The logical values true and false ( T and F ) Propositions: “Sentences,”
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
CSE (c) S. Tanimoto, 2008 Propositional Logic
Logic. Propositional Logic Logic as a Knowledge Representation Language A Logic is a formal language, with precisely defined syntax and semantics, which.
Logic Programming Languages. Objective To introduce the concepts of logic programming and logic programming languages To introduce a brief description.
1 Automated Reasoning Introduction to Weak Methods in Theorem Proving 13.1The General Problem Solver and Difference Tables 13.2Resolution Theorem.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
From Chapter 4 Formal Specification using Z David Lightfoot
Knoweldge Representation & Reasoning
Chapter 3 Propositional Logic
Artificial Intelligence
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
Logical and Rule-Based Reasoning Part I. Logical Models and Reasoning Big Question: Do people think logically?
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Adapted from Discrete Math
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
Pattern-directed inference systems
Logical Agents Logic Propositional Logic Summary
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
1 CMSC 471 Fall 2002 Class #10/12–Wednesday, October 2 / Wednesday, October 9.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
CSE 311 Foundations of Computing I Lecture 7 Logical Inference Autumn 2012 CSE
Logic Programming Languages Session 13 Course : T Programming Language Concept Year : February 2011.
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.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
CS6133 Software Specification and Verification
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
© Kenneth C. Louden, Chapter 12 - Logic Programming Programming Languages: Principles and Practice, 2nd Ed. Kenneth C. Louden.
Propositional Logic Predicate Logic
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
Logic Programming Tarik Booker. What will we cover?  Introduction  Definitions  Predicate Calculus  Prolog  Applications.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
First-Order Logic Reading: C. 8 and C. 9 Pente specifications handed back at end of class.
1-1 An Introduction to Logical Programming Sept
Propositional Logic. Assignment Write any five rules each from two games which you like by using propositional logic notations.
By P. S. Suryateja Asst. Professor, CSE Vishnu Institute of Technology
Chapter 7. Propositional and Predicate Logic
Introduction to Logic for Artificial Intelligence Lecture 2
Resolution in the Propositional Calculus
Logic Programming Languages
CSE 311 Foundations of Computing I
Logic Use mathematical deduction to derive new knowledge.
Biointelligence Lab School of Computer Sci. & Eng.
Computer Security: Art and Science, 2nd Edition
Chapter 7. Propositional and Predicate Logic
CSNB234 ARTIFICIAL INTELLIGENCE
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
RESOLUTION.
Presentation transcript:

Propositional Calculus A propositional calculus formula is composed of atomic propositions, which area simply statements that are either true or false. Ex. “It is sunny outside” “It is raining outside”. Atomic propositions are combined with various connectives to form more complex sentences. The connectives used are ^ - and v - or ¬ - not → - implies, That is, A → B is true so long as B is true whenever A is. ↔ - equivalence, That is, A ↔ B is true if A and B are either both true or both false. Example - let’s develop a proof of the following in : (A ↔ B) ↔ ((A → B) ^ (B → A))

Modus ponens says: given A → B, and given A, we can conclude B Symbolically; A → B, A B snowing → cold, snowing cold Modus tolens says: given A → B, and given ¬ B, we can conclude ¬ A Symbolically; A → B, ¬ B ¬ A Symbolically snowing → cold, ¬ not cold ¬ snowing

Note well that it is not sound to say “given A → B, and given B, we can conclude A”. This sort of reasoning is called abduction. While it sometimes the case, it is not always the case. Example: if we believe “it is snowing outside implies it is cold outside”, and we are told “it cold outside”, it is not necessarily the case that “it is snowing outside”. Another sound rule of inference that happens to be particularly easy to automate in AI systems is called resolution. Like modus ponens and modus tolens (but unlike abduction) it is a sound rule of inference. Given A v B and ¬B v C, we can infer A v C Symbolically: A v B, ¬B v C A v C

The Predicate Calculus A predicate is a relationship holds for one or more arguments. Predicates have a truth value - they are either true or false. Predicate calculus formulas can easily be represented using the programming languages widely used in AI (LISP and Prolog). Problems with predicate logic:- Incomplete knowledge: How shall the system cope with a situation where the age of a particular patient is not known? Inexact knowledge. To continue the above example, maybe all we know is that the age is between 40 and 50. Uncertain knowledge. Often times we face situations where we say things like “I'm fairly sure that this is true”.

Predicate Logic Terms represent specific objects in the world and can be constants, variables or functions. Predicate Symbols refer to a particular relation among objects. Sentences represent facts, and are made of terms, quantifiers and predicate symbols. Quantifiers and variables allow us to refer to a collection of objects without explicitly naming each object.

Examples Predicates: Brother, Sister, Mother, Father Objects: Bill, Hillary, Chelsea, Roger Facts expressed as atomic sentences(literals): Father(Bill, Chelsea) Mother(Hillary, Chelsea) Brother(Bill, Roger)

Variables and Universal Quantification Universal Quantification allows us to make a statement about a collection of objects: ∀ x Cat(x) ∀ Mammel(x) All cats are mammels ∀ x Father(Bill,x) → Mother(Hillary, x) All of Bill’s kids are also Hillary’s kids.

Variables and Existential Quantification Existential Quantification allows us to state that an object does exist (without naming it): ∃ x Cat(x) Ù Mean(x) There is a mean cat. ∃ x Father(Bill, x) ^ Mother (Hillary, x) There is a kid whose father is Bill and whose mother is Hillary. ∀ x, y Parent(x,y) → Child(y, x) ∀ x ∃ y Loves(x, y)

Example

Resolution refutation Resolution refutation operates as follows: to our set of axioms, we add the NEGATION of the theorem we wish to prove. We then use resolution until we get to clauses that resolve down to nil - e.g. B and ¬B a) This situation indicates that there is a contradiction in our set of clauses. b) If our original axioms were consistent, then the contradiction must have arisen because we introduced the negation of what we want to prove. If it is contradiction to believe the negation of our theorem, then our theorem must be true.

Given the following axioms ( ∀ X)( ∀ Y) (dog(X) ^ cat(Y) → chases(X, Y)) dog(rocco) cat(alexander) Prove chases(rocco, alexander) 1. Convert the axioms to clause form: ¬ dog(X) v ¬ cat(Y) v chases(X, Y) dog(rocco) cat(alexander) 2. Add the negation of the theorem to the database: ¬ chases(rocco, alexander) 3. Apply Resolution.

Example Given the following statements: The father of someone or the mother of someone is an ancestor of that person. An ancestor of someone's ancestor is also an ancestor of that person. Jesse is the father of David. David is an ancestor of Mary. Mary is the mother of Jesus. Prove: Jesse is an ancestor of Jesus.

Formalization (with conversion to clause form given for the rules): a) ( ∀ X)( ∀ Y) [ ( father(X, Y) v mother(X, Y) ) → ancestor(X, Y) ] ¬father(X1, Y1) v ancestor(X1, Y1) ¬mother(X2, Y2) v ancestor(X2, Y2) b) ∀ R)( ∀ S)( ∀ T) [ ( ancestor(R, S) ^ ancestor(S, T) ) → ancestor(R, T) ] ¬ancestor(R, S) v ¬ancestor(S, T) v ancestor(R, T) c) father(jesse, david) d) ancestor(david, mary) e) mother(mary, jesus) Prove: ancestor(jesse, jesus). Negated theorem: ¬ancestor(jesse, jesus)