Computer Science I / Predicate Logic and Quantifiers
Practice question · Match the pairs

Match each quantified statement to its correct negation.

  • for all x, P(x)
  • there exists x with P(x)
  • every student passed
  • some student passed
  • there exists x with NOT P(x)
  • for all x, NOT P(x)
  • no student passed
  • at least one student did not pass
Hints
  1. Negation flips the quantifier and negates what is inside it.
  2. The negation of a universal claim is an existential one, and vice versa, never the same quantifier twice.
Show the answer
  • for all x, P(x) there exists x with NOT P(x)
  • there exists x with P(x) for all x, NOT P(x)
  • every student passed at least one student did not pass
  • some student passed no student passed
Why

Negating 'all are P' gives 'at least one is not P', which is exactly why one counterexample refutes a universal claim; negating 'some is P' gives 'none is P'. Writing the negation of 'all are P' as 'all are not P' is the standard error, and it is a much stronger claim than the truth requires.

Read the lesson: Predicate Logic and Quantifiers →

Practise Predicate Logic and Quantifiers

The app has 4 more questions on this lesson, and keeps your place in the course. Computer Science I is free to start.

More questions on Predicate Logic and Quantifiers