Chapter 3Elementary Discrete Mathslides.en.pdf:148-151

Set Operations

∪, ∩, \, ×, powerset, #A

Def 1.3Set equalityDef 1.4SubsetDef 1.8UnionDef 1.9IntersectionDef 1.10Set differenceDef 1.11Power setDef 1.12Empty setDef 1.13Cartesian productDef 1.14Size #(A)
Concept

Once we have sets, we have set operations:

  • Equality ABA \equiv B: x.xAxB\forall x. x \in A \Leftrightarrow x \in B.
  • Subset ABA \subseteq B: x.xAxB\forall x. x \in A \Rightarrow x \in B.
  • Proper subset ABA \subset B: ABABA \subseteq B \land A \neq B.
  • Union ABA \cup B: {xxAxB}\{x \mid x \in A \lor x \in B\}.
  • Intersection ABA \cap B: {xxAxB}\{x \mid x \in A \land x \in B\}.
  • Difference ABA \setminus B: {xxAxB}\{x \mid x \in A \land x \notin B\}.
  • Power set P(A)\mathcal{P}(A): the set of all subsets of AA.
  • Empty set \emptyset: x.x\forall x. x \notin \emptyset.
  • Cartesian product A×BA \times B: {(a,b)aAbB}\{(a, b) \mid a \in A \land b \in B\}.
  • Size #(A)\#(A): number of elements.

Key fact: #(P(A))=2#(A)\#(\mathcal{P}(A)) = 2^{\#(A)}.

Animation — set ops construction
Transcript — click a line to jump5 cues
  1. 0.0sSet-Builder Notation
  2. 1.2sTokens assemble left to right: brace x bar P(x) brace
  3. 5.4sThe cyan box highlights x: an element of the source set
  4. 7.5sThe amber box highlights P(x): a predicate on x
  5. 9.7sRead as: the set of all x satisfying P(x)
Fallacy: Proof by authority

A proof by authority is the fallacy of accepting a statement because an authority figure asserted it, without checking the argument itself. In mathematics this is not a valid proof — only the argument matters, not who said it.

Examples to refuse:
- 'It must be true, Professor X said so.'
- 'It was proved in a famous paper, so I won't reproduce it.'

Even correct theorems require a proof. Appeal to authority outside mathematics (e.g. 'the priest says so') is irrelevant; appeal to authority inside mathematics still requires the actual argument. The reason: mathematics is self-certifying — proofs can be mechanically checked.

Empty set and powerset cardinalities

Fact. #=0\#\emptyset = 0 — the empty set has zero elements.

Fact. #P(X)=2#X\#\mathcal{P}(X) = 2^{\#X} — the powerset of a finite set has 2n2^n elements.

Worked example. Compute #P(P())\#\mathcal{P}(\mathcal{P}(\emptyset)):
1. #=0\#\emptyset = 0.
2. #P()=20=1\#\mathcal{P}(\emptyset) = 2^0 = 1 (only the empty set itself).
3. #P(P())=21=2\#\mathcal{P}(\mathcal{P}(\emptyset)) = 2^1 = 2.

The two elements are: \emptyset and {}\{\emptyset\}.

Why no function f:f: \emptyset \to \emptyset? A function is a relation. The empty set IS a valid function (with empty graph). The unique function \emptyset \to \emptyset exists.

Why no function {a}\emptyset \to \{a\}? None exists — for ff to be total, every element of the domain must map somewhere. The empty set has no elements, so this is fine! Wait — actually the empty function {a}\emptyset \to \{a\} does exist (it has an empty graph).

Theorem. For any set XX, there is exactly one function X\emptyset \to X (the empty function).

Theorem (no injection from {0,1}\{0, 1\} into \emptyset). Such an ff would need f(0)f(0) and f(1)f(1) both in \emptyset, but \emptyset has no elements. So no injection exists — confirming #{0,1}>#\#\{0,1\} > \#\emptyset.

Worked example
Step 0 of 2
Practice — score 100% to advance
Multiple choice
Q1
{1,2}{2,3}\{1,2\} \cap \{2,3\} = ?
Q2
{1,2}{2,3}\{1,2\} \cup \{2,3\} = ?
Q3
{1,2}{2,3}\{1,2\} \setminus \{2,3\} = ?
Q4
#(P({a,b}))\#(\mathcal{P}(\{a, b\})) = ?
Q5
ABA \subseteq B means:
Q6
A×A \times \emptyset = ?
Q7
Which of these is a proof by authority?
Q8
#P(P())\#\mathcal{P}(\mathcal{P}(\emptyset)) equals:
Fill in the blank
Q1
#\#\emptyset equals ___.
Loading…