1 / 15

Predicates and Quantifiers (§1.3)

Predicates and Quantifiers (§1.3). 述詞. 量詞. In the sentence “ x is greater than 3”: The phrase “x” denotes the subject - the object or entity that the sentence is about. The phrase “is greater than 3” denotes the predicate - a property that is true of the subject.

Download Presentation

Predicates and Quantifiers (§1.3)

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. Predicates and Quantifiers (§1.3) 述詞 量詞 • In the sentence “x is greater than 3”: • The phrase “x” denotes the subject - the object or entity that the sentence is about. • The phrase “is greater than 3” denotes the predicate- a property that is true of the subject. • In predicate logic, a predicate is modeled as a functionP(·) from objects (universal of discourse, u.d.) to propositions. P(x) = “x>3” (where x is any object). (論域;定義域)

  2. Propositional Functions 命題函數 • View P(x) as a function defined on a set (e.g. R) to the set {true, false}. • E.g. let P(x) = “x>3”, then if x=“5”, then P(5) = “5>3”. This is a proposition and the truth value of this proposition is true. The truth value of P(3.3) is false.

  3. Quantifier Expressions • Quantifiers provide a notation that allows us to quantify (count) how many objects in the univ. of disc. satisfy a given predicate. • “” is the FORLL or universal quantifier.xP(x) means for allx in the u.d., P holds. • “” is the XISTS or existential quantifier.x P(x) means there exists an x in the u.d. (that is, 1 or more) such thatP(x) is true.

  4. The Universal Quantifier  全稱量詞 • Example: Let the u.d. of x be parking spaces at ISU.Let P(x) be the predicate “x is full.”Then the universal quantification of P(x), xP(x), is the proposition: • “All parking spaces at ISU are full.” • “Every parking space at ISU is full.” • “For each parking space at ISU, that space is full.”

  5. The Existential Quantifier  存在量詞 • Example: Let the u.d. of x be parking spaces at ISU.Let P(x) be the predicate “x is full.”Then the existential quantification of P(x), xP(x), is the proposition: • “Some parking space at ISU is full.” • “There is a parking space at ISU that is full.” • “At least one parking space at ISU is full.”

  6. Nested Quantifiers (§1.4) 群組量詞 • The negation of Quantifications • The negation of universal quantification (x P(x))  x P(x) • The negation of existential quantification (x P(x))  x P(x)

  7. Defining New Quantifiers As per their name, quantifiers can be used to express that a predicate is true of any given quantity (number) of objects. Define !xP(x) to mean “P(x) is true of exactly onex in the universe of discourse.” !xP(x)  x (P(x)  y (P(y)  y x))“There is an x such that P(x), where there is no y such that P(y) and y is other than x.”

  8. Calculus Example • One way of precisely defining the calculus concept of a limit, using quantifiers:

  9. Example • P(x, y) has 2 free variables, x and y. • Let L(x, y)=“x likes y” Then y L(x, y) = “There is someone whom x likes.” (A predicate with 1 free variable, x) Then x (y L(x,y)) = “Everyone has someone whom they like.” (A predicate with 0 free variable.)

  10. Topic #3 – Predicate Logic Quantifier Exercise • If R(x,y)=“x relies upon y,” express the following in unambiguous English: x(y R(x,y))= y(xR(x,y))= x(y R(x,y))= y(x R(x,y))= x(y R(x,y))= Everyone has someone to rely on. There’s a poor overburdened soul whom everyone relies upon (including himself)! There’s some needy person who relies upon everybody (including himself). Everyone has someone who relies upon them. Everyone relies upon everybody, (including themselves)!

  11. Topic #3 – Predicate Logic Still More Conventions • Sometimes the universe of discourse is restricted within the quantification, e.g., • x>0 P(x)“For all x that are greater than zero, P(x).”i. e. x (x>0  P(x)) • x>0 P(x)“There is an x greater than zero such that P(x).”i. e. x (x>0  P(x))

  12. Topic #3 – Predicate Logic Quantifier Equivalence Laws • Definitions of quantifiers: If u.d.=a,b,c,… x P(x)  P(a)  P(b)  P(c)  … x P(x)  P(a)  P(b)  P(c)  … • From those, we can prove the laws:x P(x)  x P(x)x P(x)  x P(x) • Which propositional equivalence laws can be used to prove this? DeMorgan's

  13. Topic #3 – Predicate Logic More Equivalence Laws • x y P(x,y)  y x P(x,y)x y P(x,y)  y x P(x,y) • x (P(x)  Q(x))  (x P(x))  (x Q(x))x (P(x)  Q(x))  (x P(x))  (x Q(x))

  14. Topic #3 – Predicate Logic Number Theory Example • Let u.d. = the natural numbers 0, 1, 2, … “A number x is even, E(x), if and only if it is equal to 2 times some other number.”x (E(x)  (y x=2y))

  15. Express the statement into common sentance • P(x, y) “義守大學的學生x選了y這門課。” • x yP(x, y) • x yP(x, y) • x yP(x, y) • x yP(x, y) 每個義大的學生都選至少一門課。 有個義大的學生選了一門課。 每個義大的學生都選了每一門課。 有個義大的學生選了每一門課。

More Related