

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Section 1.4 Nested Quantifiers. 1.4.3. OPTIONAL CLASSROOM EXERCISE. An exercise about varying the subdomain from within the set of all people.
Typology: Study notes
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Section 1.4 Nested Quantifiers 1.4.
Example 1.4.1: Every sophomore owns a computer or has a friend in the junior class who owns a computer. Domains S and J are the sophomores and the juniors. Predicates C(u) and F (v, w) mean that u owns a computer and that w is a friend of v. (∀x ∈ S)[C(x) ∨ (∃y ∈ J)[F (x, y) ∧ C(y)]]. disambiguation: Specify the domain when not evident from context. Use brackets to identify scope of quantifiers.
TRANSPOSING QUANTIFIERS Be careful about transposing different kinds of quantifiers. (∀x)(∃y)[x^2 ≤ y] is true. (∃y)(∀x)[x^2 ≤ y] is false. However, you can safely transpose two quantifiers of the same kind.
Chapter 1 FOUNDATIONS 1.4.
RECALL NEGATION with QUANTIFIERS p: There exists some input data for which this program will crash. ¬p: No matter what input data you supply to this program, it will not crash. Rule 1: ¬(∃x)[P (x)] ⇔ (∀x)[¬P (x)] Rule 2: ¬(∀x)[P (x)] ⇔ (∃x)[¬P (x)]
CLASSROOM EXERCISE Write the negation of this statement (∀x)(∃y)[x^2 ≤ y] so that no negation (¬) appears to the left of a quantifier. ¬(∀x)(∃y)[x^2 ≤ y] =