UNIHIVE

Study Hub UNIPORT MTH 114

MTH 114 · Introduction to Sets, Logic and Algebra

Quantifiers and predicate logic

Open sentences, the universal and existential quantifiers, truth of quantified statements, negating them, and nested quantifiers.

Our notes

1 min read

Predicates

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

Watch

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.

All MTH 114 topics

Report

Sign in to report this. It is free.

Is this your work (a lecturer, author or publisher)? Ask us to take it down.