Computer Science I / Sets and Set Operations
Practice question · Multiple choice

De Morgan’s laws appear in set theory as AB=AB\overline{A \cup B} = \overline{A} \cap \overline{B} and in logic as ¬(pq)=¬p¬q\lnot(p \lor q) = \lnot p \land \lnot q. Why is one proof enough for both?

Hints
  1. Ask what "xABx \in \overline{A \cup B}" says as a sentence about xx.
  2. The element-level statement is the logical one.
Show the answer

C. Because both are statements in the same Boolean algebra

Why

One structure, two notations. This is why a database query optimiser, a circuit simplifier and a proof assistant can all apply the same rewrite rule.

Read the lesson: Sets and Set Operations →

Practise Sets and Set Operations

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

More questions on Sets and Set Operations