PL continued: Quantifiers and the syntax of PL 1. Quantifiers of PL 1. Quantifier symbols 2. Variables used with quantifiers 2. Truth functional compounds.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Predicate Logic Colin Campbell. A Formal Language Predicate Logic provides a way to formalize natural language so that ambiguity is removed. Mathematical.
The Logic of Quantified Statements
Standard Logical Equivalences
Resolution.
Chapter Two Symbolizing in Sentential Logic This chapter is a preliminary to the project of building a model of validity for sentential arguments. We.
Exam #3 will be given on Monday Nongraded Homework: Now that we are familiar with the universal quantifier, try
L41 Lecture 2: Predicates and Quantifiers.. L42 Agenda Predicates and Quantifiers –Existential Quantifier  –Universal Quantifier 
Today’s Topics Logical Syntax Logical Syntax o Well-Formed Formulas o Dominant Operator (Main Connective) Putting words into symbols Putting words into.
Predicate Logic and the language PL  In SL, the smallest unit is the simple declarative sentence.  But many arguments (and other relationships between.
Knowledge Representation Methods
Test 4 Review For test 4, you need to know: Definitions the recursive definition of ‘formula of PL’ atomic formula of PL sentence of PL bound variable.
The Language P 8 9 ( 8 x) ( 9 y) ( 8 z) 9 8. Quantificational Logic Quantificational Logic: Quantificational Logic is the logic of sentences involving.
Proofs in Predicate Logic A rule of inference applies only if the main operator of the line is the right main operator. So if the line is a simple statement,
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Exam #3 is Friday. It will consist of proofs, plus symbolizations in predicate logic.
For Wednesday, read chapter 6, section 1. As nongraded HW, do the problems on p Graded Homework #7 is due on Friday at the beginning of class. In.
For Friday, read chapter 6, section 2. As nongraded HW, do the problems on p Graded Homework #7 is due on Friday at the beginning of class.
For Wed, read Chapter 3, section 3. Nongraded Homework: Exercises the end of the section. Even better, do Power of Logic, 7.3, A and B. Graded homework.
March 10: Quantificational Notions Interpretations: Every interpretation interprets every individual constant, predicate, and sentence letter of PL. Our.
Review Test 5 You need to know: How to symbolize sentences that include quantifiers of overlapping scope Definitions: Quantificational truth, falsity and.
Sentential Logic(SL) 1.Syntax: The language of SL / Symbolize 2.Semantic: a sentence / compare two sentences / compare a set of sentences 3.DDerivation.
Predicate Logic (PL) 1.Syntax: The language of PL Formula VS. Sentence Symbolize A-, E, I-, and O-sentences 2.Semantic: a sentence compare two sentences.
March 5: more on quantifiers We have encountered formulas and sentences that include multiple quantifiers: Take, for example: UD: People in Michael’s office.
EE1J2 - Slide 1 EE1J2 – Discrete Maths Lecture 6 Limitations of propositional logic Introduction to predicate logic Symbols, terms and formulae, Parse.
Formal Logic Mathematical Structures for Computer Science Chapter 1 Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
Predicate-Argument Structure Monadic predicates: Properties Dyadic predicate: Binary relations Polyadic Predicates: Relations with more then two arguments.
Tweedledum: “I know what you’re thinking, but it isn’t so. No how.” Tweedledee: “Contrariwise, if it was so, it might be; and if it were so, it would be;
Introduction to Logic for Artificial Intelligence Lecture 2 Erik Sandewall 2010.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
No new reading for Wednesday. Exam #1 will be given in class on Friday. It covers Chapters 1 and 2 (except for chapter 2, section 6). On Monday, I’ll give.
Discussion #141/20 Discussion #14 Predicate Calculus.
Formal Logic Mathematical Structures for Computer Science Chapter Copyright © 2006 W.H. Freeman & Co.MSCS SlidesFormal Logic.
1st-order Predicate Logic (FOL)
Quantifiers, Predicates, and Names Kareem Khalifa Department of Philosophy Middlebury College Universals, by Dena Shottenkirk.
PART TWO PREDICATE LOGIC. Chapter Seven Predicate Logic Symbolization.
Great Theoretical Ideas in Computer Science about AWESOME Some Generating Functions Probability Infinity MATH Some Formal Logic (which is really.
Predicate Calculus Syntax Countable set of predicate symbols, each with specified arity  0. For example: clinical data with multiple tables of patient.
© Kenneth C. Louden, Chapter 11 - Functional Programming, Part III: Theory Programming Languages: Principles and Practice, 2nd Ed. Kenneth C. Louden.
Albert Gatt LIN3021 Formal Semantics Lecture 4. In this lecture Compositionality in Natural Langauge revisited: The role of types The typed lambda calculus.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 8.
First Order Logic Dr. Rogelio Dávila Pérez Professor - Researcher Information Technologies Department ITESM, Campus Guadalajara.
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.
No new reading for Wednesday. Keep working on chapter 5, section 3. Exam #3 is next Monday.
Discrete Mathematics CS 2610 August 22, Agenda Last class Propositional logic Logical equivalences This week Predicate logic & rules of inference.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
Chapter 9: Syntax and Semantics II : Logic & Proofs July 23, 2009 Karin Howe.
Albert Gatt LIN3021 Formal Semantics Lecture 3. Aims This lecture is divided into two parts: 1. We make our first attempts at formalising the notion of.
1 Outline Quantifiers and predicates Translation of English sentences Predicate formulas with single variable Predicate formulas involving multiple variables.
SL: Basic syntax - formulae Atomic formulae – have no connectives If P is a formula, so is ~P If P and Q are formulae, so are (P&Q), (P  Q), (P  Q),
Section 1.5 and 1.6 Predicates and Quantifiers. Vocabulary Predicate Domain Universal Quantifier Existential Quantifier Counterexample Free variable Bound.
Chapter Nine Predicate Logic Proofs. 1. Proving Validity The eighteen valid argument forms plus CP and IP that are the proof machinery of sentential logic.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Propositional Logic. Assignment Write any five rules each from two games which you like by using propositional logic notations.
Lecture 1-3: Quantifiers and Predicates. Variables –A variable is a symbol that stands for an individual in a collection or set. –Example, a variable.
8.1 Symbols and Translation
ece 627 intelligent web: ontology and beyond
Predicate Calculus Discussion #14 Chapter 2, Section 1 1/20.
Discussion #14 Predicate Calculus
CS201: Data Structures and Discrete Mathematics I
Predicate Calculus Discussion #14 Chapter 2, Section 1.
1st-order Predicate Logic (FOL)
For Wednesday, read chapter 8, section 2 (pp )
CS201: Data Structures and Discrete Mathematics I
Predicate Calculus. Predicate Calculus Topics Predicates Variables and instantiation Quantifiers Logical expressions Bound and free variables.
Introduction to Computational Linguistics
Representations & Reasoning Systems (RRS) (2.2)
1st-order Predicate Logic (FOL)
Presentation transcript:

PL continued: Quantifiers and the syntax of PL 1. Quantifiers of PL 1. Quantifier symbols 2. Variables used with quantifiers 2. Truth functional compounds 2. Truth functional compounds of PL 3. The formal syntax of PL 1. Vocabulary 2. Quantifier of PL 3. Atomic formula of PL 4. Recursive definition of ‘formula of PL’

PL continued: Quantifiers and the syntax of PL Kinds of formulas of PL 1. Main logical operators 2. Subformulas (immediate and otherwise) Variables: bound and free 7. Sentences of PL

PL continued: Quantifiers and the syntax of PL Quantity terms: all, each, everyone, everything, someone, something, no one, none, nothing Quantifier symbols:  and  Quantifiers: (  x): A universal quantifier ‘Each x is such that…’ (  x): An existential quantifier ‘There is at least one x such that…’ (or ‘there is some x such that …’)

PL continued: Quantifiers and the syntax of PL UD: people in Michael’s office Lxy: x likes y m: Michael r: Rita s: Sue ‘Michael likes everyone’ ‘Each person is such that Michael likes them’ (  x) Lmx Note: the variable ‘x’ appears twice: as part of the quantifier and as part of the expression that follows it.

PL continued: Quantifiers and the syntax of PL ‘Michael likes someone’ (  x) Lmx ‘Everyone likes Michael’ (  x) Lxm Michael doesn’t like anyone. ~(  x) Lmx Michael doesn’t like some people. (  x) ~Lmx

PL continued: Quantifiers and the syntax of PL Variables used in quantifiers and in sentences of PL: w, x, y and z They serve as placeholders for individual variables in the specification of predicates, such as Lxy: x likes y They can be replaced by constants, such as ‘m’ in Lmm: (‘Michael likes himself’) And they serve as placeholders for terms such as ‘thing’ in ‘something’, ‘one’ in ‘someone’ ‘body’ in ‘somebody’

PL continued: Quantifiers and the syntax of PL We can use any of the 4 variables in specifying predicates (for example: Ey: y is easygoing) And any of the four variables in quantifiers and expressions that include quantifiers: (  y), (  w), and (  z) are all quantifiers Finally, we can use (  z) Lmz to symbolize ‘Michael likes everyone’ Even if our symbolization key includes: Lxy: x likes y

So far, we have considered sentences that include only one quantifier, one predicate, and, in some cases, a tilde. But we can easily form truth-functional compounds of such sentences: UD: people in Michael’s office Ex: x is easygoing Lxy: x likes y m: Michael r: Rita ‘Either everyone is easygoing or no one is’ (  x) Ex v (  x) ~Ex OR (  x) Ex v ~(  x) Ex BUT NOT AS: (  x) Ex v ~(  x) Ex

And because of what we’ve said about variables, we can also symbolize: ‘Either everyone is easygoing or no one is’ as: (  x) Ex v (  w) ~Ew (  y) Ey v ~(  z) Ez We can symbolize ‘If Michael is easygoing, everyone is’ as Em  (  x) Ex and ‘Michael likes everyone but Rita doesn’t’ as (  x) Lmx & ~(  y) Lry

Again, using the symbolization key, we can symbolize ‘If anyone is easygoing, Michael is’ as (  x) Ex  Em and ‘Rita is easygoing if and only if everyone is’ as Er  (  x) Ex

Why we don’t actually need both existential and universal quantifiers. Any sentence of the form: ‘Everything is this or that’, say ‘Everyone likes Michael’, which can be symbolized as (  x) Lxm Can be rephrased as: ‘There is nothing that is not this or that’ (‘There isn’t anyone who doesn’t like Michael’) ~(  x) ~Lxm

And any sentence of the form ‘Something is this or that’ (such as ‘Michael likes someone’), which can be symoblized as (  x) Lmx can be paraphrased as: ‘It is not the case that Michael doesn’t like everyone’ or ‘It is not the case that Michael likes no one’ and symbolized as: and symbolized as: ~(  x) ~Lmx

The syntax of PL Vocabulary: Sentence letters of PL: Capital Roman letters, A through Z, with or without subscripts (just the sentence letters of SL) Predicates of PL: Capital letters, A through Z, with or without subscripts followed by one or more variables: Ax, Axy, Axyz… Bx, Bwz, Bwzx.. Individual constants of PL: lowercase Roman letters, a through v, without or without subscripts Individual variables of PL: the lowercase Roman letters, ‘w’ through ‘z’ with or without subscripts. Truth-functional connectives: ~ & v   Quantifier symbols:   Punctuation: ( ) [ ]

The syntax of PL PL contains expressions. PL contains formulas. Not all expressions of PL are formulas. PL contains sentences. Not all formulas of PL are sentences. An expression of PL: An expression of PL: a sequence of not necessarily distinct elements of the vocabulary of PL. Examples: (((a  bba) A  Fx (  x) Txx (  x) (  y) Fxy

The formal syntax of PL We use the bold letters P, Q, and R as meta variables ranging over expressions of PL. We use bold ‘a’ as a meta variable to range over individual constants of PL. We use bold ‘x’ as a meta variable to range over individual variables of PL.

The formal syntax of PL Quantifier of PL: Quantifier of PL: An expression of PL of the form (  x) or (  x). A quantifier contains a variable: (  y) and (  y) contain the variable ‘y’ and are ‘y’ quantifiers; (  x) and (  x) contain the variable ‘x’ and are ‘x’ quantifiers… and so forth for ‘w’ and ‘z’ variables and quantifiers. Atomic formulas of PL: Every expression of PL that is either a sentence letter of PL or an n-place predicate of PL followed by n individual terms of PL. (E.g., ‘B’, ‘Fab’, and ‘Gxx’ are atomic formulas)

Recursive definition of a formula of PL Every atomic formula of PL is a formula of PL If P is a formula of PL, so is ~P If P is a formula of PL, so are (P & Q), (P v Q), (P  Q), and (P  Q) If P is a formula of PL that contains at least one occurrence of x and no x-quantifier, then (  x) and (  x) are both formulas of PL Nothing else is a formula of PL. Step 4 is to rule out expressions such as: (  x) (  x) Lx

Logical operators of PL Logical operator of PL: An expression of PL that is either a quantifier or a truth functional connective. Every formula of PL is either atomic, quantified, or a truth- functional compound. It is atomic if it contains no logical operations. It is quantified if its main logical operator is a quantifier. It is truth-functional if its main logical operator is a truth- functional connective. CabzNo logical operator ~Cabz & Gwx& is the main logical operator (  y) (Gy  Fya) (  y) is the main logical operator (  x) Gx v Cabzv is the main logical operator

Logical operators of PL Main logical operators and subformulas: Defined by cases (see p. 300 in text): 1. If P is an atomic formula of PL, then P contains no logical operator, and hence no main logical operator, and P is the only subformula of P. 2. If P is a formula of PL of the form ~Q, then the tilde that precedes Q is the main logical operator of P and Q is the immediate subformula of P. 3. If P is a formula of PL of the form Q & R, Q v R, Q  R, or Q  R, then the binary connective between Q and R is the main logical operator of P, and Q and R are the immediate subformulas of P.

Logical operators of PL Main logical operators and subformulas: Defined by cases (see p. 300 in text): 4. If P is a formula of PL of the form (  x) Q or (  x) Q, then the quantifier that occurs before Q is the main logical operator of P and Q is the immediate subformula of P. 5. If P is a formula of PL, then every subformula (immediate or not) of a subformula of P is a subformula of P and P is a subformula of itself.

Immediate FormulaSubformulaMLO Type GadzGadznone atomic ~GadzGadz~ truth-functional (  z) GadzGadz(  z) quantified ~ (  z) Gadz (  z) Gadz ~ truth-functional Scope of a quantifier: The scope of a quantifier in a formula P of SL is the subformula Q of which that quantifier is the main connective. (  z) Gadz : the scope of (  z) is all of (  z) Gadz. (  z) Gadz & Em: the scope of (  z) is (  z) Gadz. (  z) (Gadz & Ez): the scope of (  z) is the entire sentence.

Bound variable: An occurrence of a variable x in a formula of PL that is within the scope of an x- quantifier. Free variable: An occurrence of a variable x in a formula of PL that is not bound. Sentence of PL: A formula P of PL is a sentence of PL if and only if no occurrence of a variable in P is free. (Gx)  (  x) Fx is not a sentence of PL. (  x) Gx  (  x) Fx is a sentence of PL. (  x) (Gx  Fx) A formula of PL that is not a sentence of PL is called an open sentence of PL.

Sentences of PL Which of the following are sentences of PL? (  x) Bx  ~(  x) ~Bx (  x) Bx  ~Bx (  x) (Bx  ~Bx) (  x) Fxa (  x) Fya G & (  y) Cyy ~(Bxa & Bax) v (  x) (Gx) ~~ Dbc  (  x) Dbx 1, 3, 4, 6, and 8

Sentences of PL Substitution instances We use P(a/x) to specify the formula of PL that is like P except that it contains the individual constant a wherever P contains the individual variable x. So if P is ‘(  x) Fx’, then P (a/x) is ‘Fa’ Substitution instance of P: If P is a sentence of PL of the form (  x) Q or (  x) Q, and a is an individual constant, then Q (a/x) is a substitution instance of P. The constant a is the instantiating constant.

Sentences of PL Homework: 7.5E Exercises E Exercises 1 and 2 Read section 7.7