Venn diagram with the union lit — complementing leaves only the outside region.Show proof
Take an element x. By the definition of complement, x∈(A∪B)c⟺x∈/A∪B.
x∈/A∪B⟺¬(x∈A∨x∈B). By the propositional De Morgan's law this is ¬(x∈A)∧¬(x∈B), i.e. (x∈/A)∧(x∈/B).
(x∈/A)∧(x∈/B)⟺x∈Ac∧x∈Bc⟺x∈Ac∩Bc. Since x was arbitrary, (A∪B)c=Ac∩Bc.
Prove f:A→B is bijective iff a two-sided inverse g:B→A exists.
Bijective mode — every dot is hit exactly once.Show proof
(⇒) For each b∈B there is an a with f(a)=b (surjective), and by injectivity that a is unique. Call it g(b); this defines g:B→A.
g(f(a))=a because the unique element mapping to f(a) is a itself; and f(g(b))=b is exactly the definition of g(b).
(⇐) Suppose such a g exists. If f(a1)=f(a2), applying g gives a1=g(f(a1))=g(f(a2))=a2 — injective. And for b∈B, putting a=g(b) gives f(a)=f(g(b))=b — surjective. Hence f is bijective.
Prove ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣ for finite sets, and evaluate it for ∣A∣=5, ∣B∣=4, ∣A∩B∣=2.
∣A∪B∣=5+4−2=7
∣A∣=5, ∣B∣=4, overlap 2 — the union has 7.Show proof
A∪B is the disjoint union of the three pairwise-disjoint pieces A∖B, B∖A, and A∩B.
∣A∣=∣A∖B∣+∣A∩B∣ and ∣B∣=∣B∖A∣+∣A∩B∣ (both are disjoint unions).
Adding the two equations gives ∣A∣+∣B∣=∣A∪B∣+∣A∩B∣ — the overlap was counted twice. Rearranging yields ∣A∪B∣=∣A∣+∣B∣−∣A∩B∣.