Maths WorkshopMaths problems with full solutions
Exercise 183Logic, sets and proofs › Sets and mapsL1Added 31 Oct 2026

De Morgan's law for sets

#sets#proofs

Statement

Let AA and BB be subsets of a set EE. Prove that
E∖(A∪B)=(E∖A)∩(E∖B).E\setminus(A\cup B)=(E\setminus A)\cap(E\setminus B).

Hint

Take an element xx of EE and translate "x∉A∪Bx\notin A\cup B" using logic.

Show solutionHide solution

Solution

Let x∈Ex\in E. Then
x∈E∖(A∪B)  ⟺  x∉A∪B  ⟺  not (x∈A or x∈B)  ⟺  x∉A and x∉B.x\in E\setminus(A\cup B)\iff x\notin A\cup B\iff \text{not}\,(x\in A\text{ or }x\in B)\iff x\notin A\text{ and }x\notin B.

The last statement means x∈E∖Ax\in E\setminus A and x∈E∖Bx\in E\setminus B, that is x∈(E∖A)∩(E∖B)x\in(E\setminus A)\cap(E\setminus B). The two sets have the same elements, so they are equal.