Computer Science I / Predicate Logic and Quantifiers
Practice question · Multiple choice

"Every student who studied passed" is true in a class where nobody studied. Why does the universal claim survive a domain with no qualifying members?

Hints
  1. Rewrite it as: for every student x, if x studied then x passed.
  2. Ask what a counterexample would have to look like, and whether one can exist here.
Show the answer

A. Because an implication with a false premise is true, so it holds vacuously.

Why

Written out, the claim is an implication per student, and a counterexample would be someone who studied and failed, with nobody studying, none exists. It is the same vacuous truth that makes ∅ a subset of every set. The practical warning is that it hides failure: a test asserting 'every returned record matches' goes green when the query returns nothing at all.

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