MTH 114 · Introduction to Sets, Logic and Algebra
Our notes
1 min readPredicates
A predicate (open sentence) P(x) becomes a statement when x is given a value or when it is quantified. "x > 3" is a predicate; "5 > 3" is a true statement.
The domain (universe of discourse) is the set x ranges over. Truth depends on it.
The two quantifiers
- Universal: ∀x P(x), "for every x, P(x)". True only if P(x) holds for every x in the domain; one counterexample makes it false.
- Existential: ∃x P(x), "there exists an x with P(x)". True if at least one x works.
Worked examples (domain Z).
- ∀x (x² ≥ 0): true.
- ∀x (x² > 0): false; counterexample x = 0.
- ∃x (x² = 2): false in Z (and in Q), true in R (x = √2).
- ∃x (2x + 1 = 7): true, x = 3.
Negation
- ¬∀x P(x) ≡ ∃x ¬P(x): "not all are" means "some are not".
- ¬∃x P(x) ≡ ∀x ¬P(x): "none is" means "all are not".
Example. "Every student in the hostel has paid" negates to "Some student in the hostel has not paid".
Nested quantifiers
Order matters.
- ∀x ∃y (x + y = 0) over Z: true (take y = −x).
- ∃y ∀x (x + y = 0): false (no single y works for every x).
To negate, flip each quantifier and negate the inside: ¬∀x ∃y P(x, y) ≡ ∃x ∀y ¬P(x, y).
Writing quantified statements
- "All A are B": ∀x (A(x) → B(x)).
- "Some A are B": ∃x (A(x) ∧ B(x)).
Note the different connectives: ∀ goes with →, ∃ with ∧.
Exams usually ask: decide the truth of quantified statements over a given domain; negate them; translate English sentences into quantified form.
Common mistake: negating "all students passed" as "all students failed". The correct negation is "at least one student did not pass".
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Contemporary Mathematics, 2.1 Statements and Quantifiers
(opens openstax.org in a new tab)
OpenStax, Contemporary Mathematics, 2.1 Statements and Quantifiers, CC BY-NC-SA 4.0 · licence
-
Levin, Discrete Mathematics: An Open Introduction, Section 1.1 Mathematical Statements
(opens discrete.openmathbooks.org in a new tab)
Levin, Discrete Mathematics: An Open Introduction, Levin, Discrete Mathematics: An Open Introduction, Section 1.1 Mathematical Statements, CC BY-NC-SA 4.0 · licence
-
Quantifier (logic)
(opens en.wikipedia.org in a new tab)
Wikipedia, Quantifier (logic), CC BY-SA 4.0 · licence
-
Hammack, Book of Proof, 3rd edition (whole free textbook)
A free proof textbook used in many universities (PDF, about 1.8 MB): sets, logic, direct and contrapositive proof, contradiction, induction, relations, functions, cardinality.
(opens richardhammack.github.io in a new tab)
Hammack, Book of Proof, CC BY-NC-ND 4.0 · licence
Watch
-
Best pick Universal and Existential Quantifiers, ∀ "For All" and ∃ "There Exists"
10 min · ≈ 45 MB · about ₦25
(opens youtube.com in a new tab)
-
Negating Universal and Existential Quantifiers
8 min · ≈ 36 MB · about ₦20
(opens youtube.com in a new tab)
-
Introduction to Nested Quantifiers
3 min · ≈ 14 MB · about ₦8
(opens youtube.com in a new tab)
-
Negating Logical Statements with Multiple Quantifiers
9 min · ≈ 41 MB · about ₦23
(opens youtube.com in a new tab)
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.