Scope, free variable, closed wff §In  X(A) or  X(A), where A is a wff : X is called the variable quantified over; A is said to be (within) the scope.

Slides:



Advertisements
Similar presentations
Resolution Proof System for First Order Logic
Advertisements

Biointelligence Lab School of Computer Sci. & Eng.
Inference Rules Universal Instantiation Existential Generalization
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Resolution.
First Order Logic Resolution
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.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Logic seminar 3 First order logic Slobodan Petrović.
Chapter 6 Logical Reasoning Xiu-jun GONG (Ph. D) School of Computer Science and Technology, Tianjin University
Resolution Proof Example Prateek Tandon, John Dickerson.
Predicate Calculus Formal Methods in Verification of Computer Systems Jeremy Johnson.
Discussion #18 1/13 Discussion #18 Resolution with Propositional Calculus; Prenex Normal Form.
Discussion #16 1/12 Discussion #16 Validity & Equivalences.
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
Computability and Complexity 8-1 Computability and Complexity Andrei Bulatov Logic Reminder.
Inference and Resolution for Problem Solving
Search in the semantic domain. Some definitions atomic formula: smallest formula possible (no sub- formulas) literal: atomic formula or negation of an.
Last time Proof-system search ( ` ) Interpretation search ( ² ) Quantifiers Equality Decision procedures Induction Cross-cutting aspectsMain search strategy.
Ch 1.3: Quantifiers Open sentences, or predicates, are sentences that contain one or more variables. They do not have a truth value until variables are.
Start with atomic sentences in the KB and apply Modus Ponens, adding new atomic sentences, until “done”.
Introduction to Logic for Artificial Intelligence Lecture 2 Erik Sandewall 2010.
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Predicates and Quantifiers
Section 1.3: Predicates and Quantifiers
CS544: Logic, Lecture 1 Jerry R. Hobbs USC/ISI Marina del Rey, CA February 22, 2011.
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
Advanced Topics in FOL Chapter 18 Language, Proof and Logic.
Inference in First-Order logic Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Quantified Formulas - Decision Procedure Daniel Kroening, Ofer Strichman Presented by Changki Hong 07 NOV 08.
Conjunctive normal form: any formula of the predicate calculus can be transformed into a conjunctive normal form. Def. A formula is said to be in conjunctive.
1 Chapter 8 Inference and Resolution for Problem Solving.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
1 Section 7.2 Equivalent Formulas Two wffs A and B are equivalent, written A  B, if they have the same truth value for every interpretation. Property:
CS 1813 Discrete Mathematics, Univ Oklahoma Copyright © 2000 by Rex Page 1 Lecture 10 CS 1813 – Discrete Mathematics Quantify What? Reasoning with Predicates.
Logic CL4 Episode 16 0 The language of CL4 The rules of CL4 CL4 as a conservative extension of classical logic The soundness and completeness of CL4 The.
First Order Predicate Logic
Introduction to Quantification Chapter 9 Language, Proof and Logic.
The Logic of Quantifiers Chapter 10 Language, Proof and Logic.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
CSE S. Tanimoto Horn Clauses and Unification 1 Horn Clauses and Unification Propositional Logic Clauses Resolution Predicate Logic Horn Clauses.
CS344: Introduction to Artificial Intelligence Lecture: Herbrand’s Theorem Proving satisfiability of logic formulae using semantic trees (from Symbolic.
CS621: Artificial Intelligence Pushpak Bhattacharyya CSE Dept., IIT Bombay Lecture 28– Interpretation; Herbrand Interpertation 30 th Sept, 2010.
1 Predicate (Relational) Logic 1. Introduction The propositional logic is not powerful enough to express certain types of relationship between propositions.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Resolution Strategies One common strategy for applying resolution is called level saturation. Here you try to resolve every pair of clauses from the original.
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
1 Section 9.1 Automatic Reasoning Recall that a wff W is valid iff ¬ W is unsatisfiable. Resolution is an inference rule used to prove unsatisfiability.
Chapter 2 Symbolic Logic. Section 2-1 Truth, Equivalence and Implication.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
第 1 6 章 谓词演算中的归结. 2 Outline Unification Predicate-Calculus Resolution Completeness and Soundness Converting Arbitrary wffs to Clause Form Using Resolution.
General resolution Method1 General Resolution method in FOL Lesson 8.
Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
1 Introduction to Abstract Mathematics Chapter 3: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 3.1.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
1 Section 7.3 Formal Proofs in Predicate Calculus All proof rules for propositional calculus extend to predicate calculus. Example. … k.  x p(x) P k+1.
Converting arbitrary wffs to CNF A wff is in prenex form iff it consists of a string of quantifiers (called a prefix) followed by a quantifier free formula.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Predicate Calculus CS 270 Math Foundations of Computer Science Jeremy Johnson Presentation uses material from Huth and Ryan, Logic in Computer Science:
Formal Proofs and Quantifiers
ece 627 intelligent web: ontology and beyond
Chapter 1 The Foundations: Logic and Proofs
CS201: Data Structures and Discrete Mathematics I
CS 1502 Formal Methods in Computer Science
Introduction to Predicates and Quantified Statements I
Predicates and Quantifiers
CS201: Data Structures and Discrete Mathematics I
Resolution Proof System for First Order Logic
Presentation transcript:

Scope, free variable, closed wff §In  X(A) or  X(A), where A is a wff : X is called the variable quantified over; A is said to be (within) the scope of the quantifier §An occurrence of a variable X in a wff B is said to be bound if the occurrence of X is in the subformula of B of the form  X(A) or  X(A).Otherwise the occurence is said to be free. §A variable X is said to be free in B iff there is an occurrence free of X in B. §A wff is closed (or a sentence) iff there are no free variables in the wff.

Converting arbitrary wffs to CNF 1. Eliminate implications: A  B becomes  A  B 2. Move  inwards: Apply De Morgan’s :  (A v B) becomes (  A   B)  (A  B) becomes (  A v  B) Apply double negation rule:   A becomes A   X (A) becomes  X (  A)   X (A) becomes  X (  A)

Converting arbitrary wffs to CNF 3. Standardize variables. Since variables within the scope of quantifiers are like dummy variables, they can be renamed so that each quantifier has its own variable symbol  X(  P(X)   XQ(X)) becomes  X(  P(X)   YQ(Y))

Converting arbitrary wffs to CNF 4. Eliminate existential quantifiers(Skolemization): a) the general rule for eliminating an existential quantifier from a formula is to replace each occurrence of its existentially quantified variable by a (NEW) Skolem function whose arguments are those universally quantified variables that are bound by universal quantifiers whose scope include the scope of the existential quantifier being eliminated. b) If the existential quantifier being eliminated is not within the scope of any universal quantifiers, we use a Skolem function of no arguments, which is just a (NEW) constant.

Converting arbitrary wffs to CNF To eliminate all of the existential variables, we use the preceding procedure on each subformula in turn. §Examples: (1) Eliminating  W in  X(  P(X) v  Y((  P(Y) v P(f(X, Y)))   W(Q(X, W)  P(W)))) to yield (1*)  X(  P(X) v  Y((  P(Y) v P(f(X, Y)))  Q(X, h(X))   P(h(X)))) where h is a NEW Skolem function.

Converting arbitrary wffs to CNF §Examples: (2) Eliminating  X in  X  Y  Z P(X, X, Y, Z, f(a)) to yield  Y  Z P(newskol, newskol, Y, Z, f(a)) where newskol is a NEW Skolem constant. Then we would have to apply this step again to eliminate  z to yield:  Y P(newskol, newskol, Y, g(Y), f(a)) where g is a NEW Skolem function.

Converting arbitrary wffs to CNF §Examples: (3) Eliminating  X in  Y  W  X  Z P(W, X, X, Y, Z, f(a)) to yield  Y  W  Z P(W, g(Y, W), g(Y, W), Y, Z, f(a)) where g is a NEW Skolem function. Then we would have to apply this step again to eliminate  z to yield:  Y  W P(W, g(Y, W), g(Y, W), Y, h(Y, W), f(a)) where h is a NEW Skolem function.

Converting arbitrary wffs to CNF Notice that the Skolem form of a wff is not equivalent to the original wff! Example:(4) P(sk) ||=  XP(X) but  XP(X) ||\= P(sk) But we have the important theorem: A set of formulas S is unsatisfiable iff the Skolem form of S is unsatisfiable

Converting arbitrary wffs to CNF A wff is in prenex form iff it consists of a string of quantifiers (called a prefix) followed by a quantifier free formula called a matrix. 5. Convert to Prenex Form At this stage there is no remaining existential quantifiers and each universal quantifier has its own variable symbol. We may now move all of the universal quantifiers to the front of the wff and let the scope of each quantifier include the entirety of the wff following it. The resulting wff is in prenex form. From (1*)  X(  P(X) v  Y((  P(Y) v P(f(X, Y)))  Q(X, h(X))   P(h(X))))  X  Y(  P(X) v ((  P(Y) v P(f(X, Y)))  Q(X, h(X))   P(h(X))))