1 / 20

Predicates and Quantifiers

CSE 2813 Discrete Structures. Predicates. A predicate is a statement that contains variables.Example: P(x) : x > 3 Q(x,y) : x = y 3 R(x,y,z) : x y = z. CSE 2813 Discrete Structures. Predicates. A predicate becomes a proposition if the variable(s) contained is(are)Assigned specific

zenda
Download Presentation

Predicates and Quantifiers

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


    1. CSE 2813 Discrete Structures Predicates and Quantifiers Section 1.3

    2. CSE 2813 Discrete Structures Predicates A predicate is a statement that contains variables. Example: P(x) : x > 3 Q(x,y) : x = y + 3 R(x,y,z) : x + y = z

    3. CSE 2813 Discrete Structures Predicates A predicate becomes a proposition if the variable(s) contained is(are) Assigned specific value(s) Quantified P(x) : x > 3. What are the truth values of P(4) and P(2)? Q(x,y) : x = y + 3. What are the truth values of Q(1,2) and Q(3,0)?

    4. CSE 2813 Discrete Structures Quantifiers Two types of quantifiers Universal Existential Universe of discourse - the particular domain of the variable in a propositional function

    5. CSE 2813 Discrete Structures Universal Quantification P(x) is true for all values of x in the universe of discourse. ?x P(x) “for all x, P(x)” “for every x, P(x)” The variable x is bound by the universal quantifier, producing a proposition

    6. CSE 2813 Discrete Structures Example U = {all real numbers}, P(x): x+1 > x What is the truth value of ?x P(x) U = {all real numbers}, Q(x): x < 2 What is the truth value of ?x Q(x) U = {all students in CSE 2813} R(x) : x has an account on banner What does ?x R(x) mean?

    7. CSE 2813 Discrete Structures For universal quantification P(x) ? P(x1) ? P(x2) ? … ? P(xn) If the elements in the universe of discourse can be listed, U = {x1, x2, …, xn} ?x P(x) ? P(x1) ? P(x2) ? … ? P(xn) Example U = {positive integers not exceeding 3} and P(x): x2 < 10 What is the truth value of ?x P(x) P(1) ^ P(2) ^ P (3) T ^ T ^ T T

    8. CSE 2813 Discrete Structures Existential Quantification P(x) is true for some x in the universe of discourse ?x P(x) “for some x, P(x)” “There exists an x such that P(x)” “There is at least one x such that P(x)” The variable x is bound by the existential quantifier, producing a proposition

    9. CSE 2813 Discrete Structures

More Related