The Logic of Quantified Statements

Slides:



Advertisements
Similar presentations
Nested Quantifiers Section 1.4.
Advertisements

Propositional Predicate
Chapter 3 Tuple and Domain Relational Calculus. Tuple Relational Calculus.
CS128 – Discrete Mathematics for Computer Science
Discrete Structures Chapter 1 Part B Fundamentals of Logic Nurul Amelina Nasharuddin Multimedia Department 1.
Discrete Mathematics Lecture 2 Alexander Bukharovich New York University.
EECS 20 Lecture 3 (January 22, 2001) Tom Henzinger Sets, Tuples, Functions.
CSE115/ENGR160 Discrete Mathematics 01/25/11 Ming-Hsuan Yang UC Merced 1.
Discrete Structures Chapter 3: The Logic of Quantified Statements
Copyright © Cengage Learning. All rights reserved.
Discrete Structures Chapter 3: The Logic of Quantified Statements
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.
Adapted from Discrete Math
Predicates and Quantifiers
Predicates & Quantifiers Goal: Introduce predicate logic, including existential & universal quantification Introduce translation between English sentences.
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
4.4 Equations as Relations
Nested Quantifiers. 2 Nested Iteration Let the domain be {1, 2, …, 10}. Let P(x, y) denote x > y.  x,  y, P(x, y) means  x, (  y, P(x, y) ) Is the.
Chapter 1, Part II: Predicate Logic With Question/Answer Animations.
PART TWO PREDICATE LOGIC. Chapter Seven Predicate Logic Symbolization.
Logic Disjunction A disjunction is a compound statement formed by combining two simple sentences using the word “OR”. A disjunction is true when at.
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
In this section, we will introduce the definite integral and begin looking at what it represents and how to calculate its value.
Chapter 1: The Foundations: Logic and Proofs 1.1 Propositional Logic 1.2 Propositional Equivalences 1.3 Predicates and Quantifiers 1.4 Nested Quantifiers.
Statements with Multiple Quantifiers. When a statement contains more than one quantifier, we imagine the actions suggested by the quantifiers as being.
Lecture Propositional Equivalences. Compound Propositions Compound propositions are made by combining existing propositions using logical operators.
Selected Exercises of Sec. 1.2~Sec.1.4 Sec. 1.2 Exercise 41 p, q, r 중에 두 개가 참이면 참이 되고, 그 외 의 경우에는 거짓이 되는 복합명제를 구하 시오. Find a compound proposition involving.
Chapter 2 The Logic of Quantified Statements. Section 2.1 Intro to Predicates & Quantified Statements.
Theorem Proving Semantic Tableaux CIS548 November 15, 2006.
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.
Lecture 7 – Jan 28, Chapter 2 The Logic of Quantified Statements.
CS 285- Discrete Mathematics Lecture 4. Section 1.3 Predicate logic Predicate logic is an extension of propositional logic that permits concisely reasoning.
Predicates and Quantifiers Dr. Yasir Ali. 1.Predicates 2.Quantifiers a.Universal Quantifiers b.Existential Quantifiers 3.Negation of Quantifiers 4.Universal.
Copyright © Peter Cappello 2011 Predicates & Quantifiers.
Section 1.5 and 1.6 Predicates and Quantifiers. Vocabulary Predicate Domain Universal Quantifier Existential Quantifier Counterexample Free variable Bound.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
1 Introduction to Abstract Mathematics Chapter 3: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 3.1.
Goal: Identify and graph functions..  Relation: mapping or pairing, of input values with output values.  Domain: Set of input values.  Range: set of.
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.
Mathematical Induction. The Principle of Mathematical Induction Let S n be a statement involving the positive integer n. If 1.S 1 is true, and 2.the truth.
رياضيات متقطعة لعلوم الحاسب MATH 226. Chapter 1 Predicates and Quantifiers 1.4.
CSE15 Discrete Mathematics 01/25/17
3. The Logic of Quantified Statements Summary
Predicates and Quantified Statements I
EQUATION IN TWO VARIABLES:
Chapter 1 Logic and Proofs.
Predicates & Quantifiers
Negations of Quantified Statements
Chapter 1 The Foundations: Logic and Proofs
Copyright © Cengage Learning. All rights reserved.
Copyright © Cengage Learning. All rights reserved.
Mathematics for Computer Science MIT 6.042J/18.062J
(1.4) An Introduction to Logic
Introduction to Predicates and Quantified Statements I
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Discrete Mathematics Lecture 3: Predicate and Quantifier
Department of Computer Science Abdul Wali Khan University Mardan
What are the following properties?
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.
1.3 Propositional Equivalences
Solution Sets for Equations and Inequalities
2-2 Logic Part 2 Truth Tables.
2-2 Logic Vocab Statement: A sentence that is either true or false
Propositional Satisfiability
Presentation transcript:

The Logic of Quantified Statements

Definition of Predicate Predicate is a sentence that  contains finite number of variables;  becomes a statement when specific values are substituted for the variables. Ex:  let predicate P(x,y) be “x>2 and x+y=8”  when x=5 and y=3, P(5,3) is “5>2 and 5+3=8” Domain of a predicate variable is the set of all possible values of the variable. Ex (cont.): D(x)= ; D(y)=R

Truth Set of a Predicate If P(x) is a predicate and x has domain D, then the truth set of P(x) is all xD such that P(x) is true. (denoted {xD | P(x)} ) Ex: P(x) is “5<x<9” and D(x)=Z. Then {xD | P(x)} ={6, 7, 8}

Universal Statement and Quantifier Let P(x) be “x should take Math306”; D={Math majors} be the domain of x. Then “all Math majors take Math306” is denoted xD, P(x) and is called universal statement.  is called universal quantifier; expressions for : “for all”, “for arbitrary”, “for any”, “for each”.

Truth and Falsity of Universal Statements Universal statement “xD, P(x)”  is true iff P(x) is true for every x in D;  is false iff P(x) is false for at least one x. (that x is called counterexample) Ex: 1) Let D be the set of even integers. “xD yD, x+y is even” is true. 2) Let D be the set of all NBA players. “xD, x has a college degree” is false. Counterexample: Kobe Bryant.

Existential Statement and Quantifier Let P(x) be “x(x+2)=24”; D =Z be the domain of x. Then ”there is an integer x such that x(x+2)=24” is denoted “xD, P(x)” and is called existential statement.  is called existential quantifier; expressions for  : “there exists”, “there is a”, “there is at least one”, “we can find a”.

Truth and Falsity of Existential Statements Existential statement “ xD, P(x)”  is true iff P(x) is true for at least one x in D;  is false iff P(x) is false for all x in D. Ex: 1) Let D be the set of rational numbers. “ xD, ” is true. 2) Let D = Z. “ xD, x(x-1)(x-2)(x-3)<0” is false. Why? Hint: Use proof by division into cases.

Negations of Quantified Statements The negation of universal statement “xD, P(x)” is the existential statement “xD, ~P(x)” Example: The negation of “All NBA players have college degree” is “There is a NBA player who doesn’t have college degree”.

Negations of Quantified Statements The negation of existential statement “ xD, P(x)” is the universal statement “ xD, ~P(x)” Example: The negation of “ x Z such that x(x+1)<0” is “ x Z, x(x+1) ≥ 0”.

Statements containing multiple quantifiers Ex: 1) xR, yZ such that |x-y|<1. 2) For any building x in the city there is a fire-station y such that the distance between x and y is at most 2 miles. 3) xZ such that y[3,5], x<y. 4) There is a student who solved all the problems of the exam correctly.

Truth values of multiply quantified statements Ex:  Students = {Joe, Ann, Bob, Dave}  2 groups of languages: Asian languages={Japanese,Chinese,Korean}; European languages={French, German, Italian, Spanish}.  Joe speaks Italian and French; Ann speaks German, French and Japanese; Bob speaks Spanish, Italian and Chinese; Dave speaks Japanese and Korean.

Truth values of multiply quantified statements Ex(cont.): Determine truth values of the following statements: 1)  a student S s.t.  language L, S speaks L. 2)  a student S s.t. for  language group G  L in G s.t. S speaks L. 3)  a language group G s.t. for  student S  L in G s.t. S speaks L.

Negating multiply quantified statements Example: The negation of “for xR, yR s.t. “ is logically equivalent to “xR s.t. for yR, “. Generally, the negation of x, y s.t. P(x,y) x s.t. y, ~P(x,y)

Negating multiply quantified statements Example: The negation of “ xR s.t. yZ, x>y“ is logically equivalent to “xR yZ s.t. x≤y“. Generally, the negation of x s.t. y, P(x,y) x y s.t. ~P(x,y)

The Relation among , , Λ, ν Let Q(x) be a predicate; D={x_1, x_2, …, x_n} be the domain of x. Then  xD, Q(x) is logically equivalent to Q(x_1) Λ Q(x_2) Λ … Λ Q(x_n) ;  xD, Q(x) is logically equivalent to Q(x_1) ν Q(x_2) ν … ν Q(x_n) .

Universal Conditional Statement Definition:  x, if P(x) then Q(x) . Example:  undergrad S, if S takes CS300, then S has taken CS240. Negation of universal conditional statement:  x such that P(x) and ~Q(x) Ex(cont.):  undergrad who takes CS300 but hasn’t taken CS240.

Variations of universal conditional statements Variations of xD, if P(x) then Q(x): Contrapositive: xD, if ~Q(x) then ~P(x); Converse: xD, if Q(x) then P(x); Inverse: xD, if ~P(x) then ~Q(x). The original statement is logically equivalent to its contrapositive. Converse is logically equivalent to inverse.

Necessary and Sufficient Conditions “x, P(x) is a sufficient condition for Q(x)” means “x, if P(x) then Q(x)” “x, P(x) is a necessary condition for Q(x)” means “x, if Q(x) then P(x)”

Validity of Arguments with Quantified Statements Argument form is valid means that for any substitution of the predicates, if the premises are true, then the conclusion is also true.

Valid Argument Forms: Universal Instantiation x D, P(x); aD; P(a). If some property is true for everything in a domain, then it is true for any particular thing in the domain.

Valid Argument Forms: Universal Instantiation Ex: 1) All Italians are good cooks; Tony is an Italian;  Tony is a good cook. 2) For x,y R, 74.5, 73.5 R 

Testing validity by diagrams Ex: All integers are rational numbers; 5 is an integer;  5 is a rational number. Rational numbers Integers 5

Testing validity by diagrams Ex: All logicians are mathematicians; John is not a mathematician;  John is not a logician. Mathematicians Logicians John

Testing validity by diagrams: Converse Error Ex: All Math majors are taking Math306; Bill is taking Math306;  Bill is a Math major. Math306 class Math majors Bill