Chapter 3 The Logic of Quantified Statements

Slides:



Advertisements
Similar presentations
Nested Quantifiers Section 1.4.
Advertisements

Discrete Structures Chapter 1 Part B Fundamentals of Logic Nurul Amelina Nasharuddin Multimedia Department 1.
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
First Order Logic (chapter 2 of the book) Lecture 3: Sep 14.
Discrete Structures Chapter 3: The Logic of Quantified Statements
First Order Logic. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about first order.
Predicates and Quantifiers
Chapter 1: The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
CS 103 Discrete Structures Lecture 05
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
Arguments with Quantified Statements M Universal Instantiation If some property is true for everything in a domain, then it is true of any particular.
First Order Logic Lecture 2: Sep 9. This Lecture Last time we talked about propositional logic, a logic on simple statements. This time we will talk about.
Copyright © Cengage Learning. All rights reserved. CHAPTER 3 THE LOGIC OF QUANTIFIED STATEMENTS THE LOGIC OF QUANTIFIED STATEMENTS.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
(CSC 102) Lecture 8 Discrete Structures. Previous Lectures Summary Predicates Set Notation Universal and Existential Statement Translating between formal.
Predicates and Quantified Statements
Chapter 2 The Logic of Quantified Statements. Section 2.1 Intro to Predicates & Quantified Statements.
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
1 Introduction to Abstract Mathematics Predicate Logic Instructor: Hayk Melikya Purpose of Section: To introduce predicate logic (or.
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
Fall 2008/2009 I. Arwa Linjawi & I. Asma’a Ashenkity 1 The Foundations: Logic and Proofs Predicates and Quantifiers.
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.
First Order Logic Lecture 3: Sep 13 (chapter 2 of the book)
Predicate Logic One step stronger than propositional logic Copyright © Curt Hill.
Week 4 - Friday.  What did we talk about last time?  Floor and ceiling  Proof by contradiction.
Section 1.5 and 1.6 Predicates and Quantifiers. Vocabulary Predicate Domain Universal Quantifier Existential Quantifier Counterexample Free variable Bound.
PREDICATES AND QUANTIFIERS COSC-1321 Discrete Structures 1.
Section 1.4. Propositional Functions Propositional functions become propositions (and have truth values) when their variables are each replaced by a value.
Introduction to Predicates and Quantified Statements I Lecture 9 Section 2.1 Wed, Jan 31, 2007.
Discrete Mathematical Structures: Theory and Applications 1 Logic: Learning Objectives  Learn about statements (propositions)  Learn how to use logical.
DISCRETE COMPUTATIONAL STRUCTURES CSE 2353 Fall 2010 Most slides modified from Discrete Mathematical Structures: Theory and Applications by D.S. Malik.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
Harper Langston New York University Summer 2017
CSE15 Discrete Mathematics 02/13/17
CS 2210:0001 Discrete Structures Logic and Proof
3. The Logic of Quantified Statements Summary
Predicates and Quantified Statements I
Argument An argument is a sequence of statements.
CSE15 Discrete Mathematics 01/23/17
Predicate Calculus Discussion #14 Chapter 2, Section 1 1/20.
Discussion #14 Predicate Calculus
Methods of Proof CS 202 Epp, chapter 3.
Predicate Calculus Validity
Negations of Quantified Statements
Chapter 1 The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
Copyright © Cengage Learning. All rights reserved.
CS201: Data Structures and Discrete Mathematics I
Copyright © Cengage Learning. All rights reserved.
CHAPTER 1: LOGICS AND PROOF
Predicate Calculus Discussion #14 Chapter 2, Section 1.
1st-order Predicate Logic (FOL)
First Order Logic Rosen Lecture 3: Sept 11, 12.
Introduction to Predicates and Quantified Statements I
MA/CSSE 474 More Math Review Theory of Computation
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Discrete Mathematics Lecture 3: Predicate and Quantifier
Information Technology Department SKN-SITS,Lonavala.
Copyright © Cengage Learning. All rights reserved.
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Predicates and Quantifiers
Discrete Mathematics Lecture 4 Logic of Quantified Statements
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
CS201: Data Structures and Discrete Mathematics I
Predicate Calculus. Predicate Calculus Topics Predicates Variables and instantiation Quantifiers Logical expressions Bound and free variables.
Predicates and Quantifiers
1st-order Predicate Logic (FOL)
Presentation transcript:

Chapter 3 The Logic of Quantified Statements

Quantified Statements A quantified statement is a statement that specifies quantity (of something). Examples: There is at least one student absent today. Everybody in the class passes the 1st quiz. The equation x2 + 5x – 6 = 0 has exactly two different real solutions. A non-quantified statement: “3331 is a prime number.”

Quantified Statements Most interesting properties (theorems) in mathematics are quantified statements. Examples: All polynomial functions are differentiable. For all real number x, sin2x + cos2x = 1. For any whole number n > 1, there is always a prime number between n and 2n.

Quantifiers A quantifier is a symbols that expresses the quantity of a certain type of objects. Only two types of quantifiers will be needed. Universal quantifier:  x(x2  0) means “for all x, x2  0” Existential quantifier:  n (n×n = n+n) means “there exists an n such that n×n = n+n”

Quantifiers How do we express “there exists only one” with a quantified statement ? ! x P(x) means there is exactly one x such that P(x) is true. It is the abbrev. of  x { P(x)  [y (y  x  P(y))]}

Section 3.1 Predicate Calculus In a quantified statement, the sentence after the quantifier is called a predicate. Example: x such that x2 – 3x + 2 = 0 the sentence “x2 – 3x + 2 = 0” is called a predicate. A predicate is a sentence with a finite number of variables, and it normally does not have any truth value. A predicate becomes a statement when specific values are substituted for the variables. Examples: P(x): x2 – 3x + 2 = 0 Q(n): n is the sum of two integer squares R(x): sin2(x)  cos2(x)

Examples: P(x): x2 – 3x + 2 = 0 Q(n): n is the sum of two integer squares R(x): sin2(x)  cos2(x) Domain of a predicate is the set of values that can be substituted to the variable(s) in the predicate. dom P(x) = the set of real numbers dom Q(n) = the set of integers dom R(x) = the set of real numbers

Notations for some common sets R is the set of real numbers Z is the set of integers Zahlen (German for numbers). Q is the set of rational numbers N is the set of natural numbers C is the set of complex numbers Another notation: P(x)  Q(x) means that for any c in the common domain of P and Q, if P(c) is true then so is Q(c). Example: x > 4  x2 > 16 Note: A predicate can be interpreted as a function whose (output) value(s) is a proposition.

Quantifiers There are two ways to convert a predicate to a statement: assigning values to its variables quantifying its variables Examples For all real number x, sin2(x) + cos2(x) = 1 There is at least one positive integer n such that n×n = n + n Universal quantifier:  xD, P(x) means for every x in the domain D, P(x) Existential quantifier:  nD, Q(n) means there is at least one n in the domain D such that Q(n)

Bound and Free variables In the following predicate  xy P(x, y, z) x and y are called bound variables z is called a free variable. Free variables can be substituted by numbers but bound variables cannot.

Truth and Falsity of Quantified statements A universal statement xD P(x) is true if for each x in D, P(x) is true Example: The statement “n N (n is the sum of 4 integer squares)” is true if 0 is the sum of 4 integer squares, 1 is the sum of 4 integer squares, 2 is the sum of 4 integer squares, … … Note: the above example explains why predicate calculus is much more difficult than propositional calculus – the truth value of a quantified statement cannot be determined by a calculator or even computer.

A universal statement xD P(x) is false if there is at least one element w in D such that P(w) is false. Note: In some unusual cases, the domain D turns out to be empty, and therefore it is impossible to find any w in D such that P(w) is false. xD P(x) cannot be false, xD P(x) must be true. We say that xD P(x) is true by default Example: “x{x: sin(x)>1} ( x3 – 7x + 5 = 0 )” is true.

An existential statement xD Q(x) is true if there is a w in D such that Q(w) is true Example: The statement “ nN (n is the sum of its proper factors)” is true because 6 = 1 + 2 + 3 is the sum of all it’s proper factors. (note: proper here means less than n itself.) There are of course more numbers of this type (i.e. perfect numbers) but it is irrelevant to the truth of this statement. The next three perfect numbers are 28, 496, 8128.

Note: the truth of an existential statement cannot always be determined by a computer either, as the search may last for ever. Example: “ nN (n is odd  n is perfect)” is still an unanswered question. If such an odd perfect number does exist, it must be greater than 10200.

Negations of Quantified Statements [xD P(x) ] is equiv. to xD [P(x)] [xD P(x) ] is equiv. to xD [P(x)] Examples: Everyone in this class has a computer at home. negation: There is at least one person in this class that does not have a computer at home. There was at least one day last year that I did not watch TV. Everyday last year I watched TV (at least for a while).

Section 3.2 Multiple Quantifiers A statement with multiple quantifiers is more complex but is more expressive as well. Examples: “there is no largest number” can be rephrased as [ yR xR (x  y  y > x) ] “Every real number has an additive inverse” is expressed as xR yR ( x + y = 0 ) “limit of f (x) = L at x = c” is defined as  > 0   > 0 s.t. x (0<  x – c  <    f (x) – L  < ) “If n is an integer greater than 1, there is a prime number between n and 2n” n Z [n>1  p Z (“p is prime”  n < p < 2n) ]

Negations [  x D  y D P(x, y)]   x D  y D [P(x, y)] Remark: if there is no change to the domain, we can skip the domain when it is clear in the context. [ xy  z Q(x, y, z)]  x y  z [ Q(x, y, z)] [ xy  z Q(x, y, z)]  x y  z [ Q(x, y, z)]

Relations among ,  and ,  If the domain D of quantification is finite, say D = {x1, x2, … , xn} then a universal statement is just a conjunction x D Q(x)  Q(x1)  Q(x2)  …  Q(xn) an existential statement is just a disjunction x D Q(x)  Q(x1)  Q(x2)  …  Q(xn) If the domain D is infinite, then a universal statement is an “infinite conjunction” an existential statement is an “infinite disjunction” The above informal thought suggests that predicate calculus is an extension of propositional calculus.

Section 3.3 Arguments with quantified statements Universal Modus Ponens x { P(x)  Q(x) } P(a) for a particular a  Q(a) Example: For any integer n, if the sum of the digits in n is divisible by 3, then n is divisible by 3. The sum of digits in 54627 is divisible by 3.  54627 is divisible by 3.

Universal Modus Tollens x { P(x)  Q(x) } Q(a) for a particular a  P(a) Example: For any real sequence {an}, if an is convergent, then an goes to 0 as n goes to  . does not go to 0 as n goes to  is not convergent.