Quiz 2
Registry Synced

Set Theory

927 words
5 min read

Reading compass

Now · 🎯 Learning Objectives

Set Theory

🎯 Learning Objectives

  • Define sets using roster and set-builder notation
  • Perform set operations: \cup, \cap, - (difference), A\overline{A} (complement)
  • Prove set identities using element arguments
  • Understand power sets and Cartesian products
  • Compare finite and infinite cardinalities

5.1 Intuition: The Building Blocks of Mathematics

A set is a collection of distinct objects. It's the most fundamental concept in mathematics — everything else (numbers, functions, relations) is built from sets.
🔑 Key Insight: Two sets are equal iff they have exactly the same elements. Order and repetition don't matter.

5.2 Definitions

Basic Notation

  • A={1,2,3}A = \{1, 2, 3\} — roster notation
  • B={xN:x>5}B = \{x \in \mathbb{N} : x > 5\} — set-builder notation
  • \emptyset — empty set (or {}\{\})
  • aAa \in Aaa is an element of AA
  • ABA \subseteq BAA is a subset of BB

Important Sets

  • N={1,2,3,}\mathbb{N} = \{1, 2, 3, \dots\} — natural numbers
  • Z={,2,1,0,1,2,}\mathbb{Z} = \{\dots, -2, -1, 0, 1, 2, \dots\} — integers
  • Q={pq:p,qZ,q0}\mathbb{Q} = \{\frac{p}{q} : p,q \in \mathbb{Z}, q \neq 0\} — rationals
  • R\mathbb{R} — real numbers
  • C\mathbb{C} — complex numbers

5.3 Set Operations

OperationNotationDefinitionExample ( A={1,2},B={2,3}A=\{1,2\}, B=\{2,3\} )
UnionABA \cup B{x:xAxB}\{x : x \in A \lor x \in B\}{1,2,3}\{1,2,3\}
IntersectionABA \cap B{x:xAxB}\{x : x \in A \land x \in B\}{2}\{2\}
DifferenceABA - B{x:xAxB}\{x : x \in A \land x \notin B\}{1}\{1\}
ComplementA\overline{A}{xU:xA}\{x \in U : x \notin A\}Depends on universe UU

5.4 Set Identities

NameIdentity
CommutativeAB=BAA \cup B = B \cup A ; AB=BAA \cap B = B \cap A
Associative(AB)C=A(BC)(A \cup B) \cup C = A \cup (B \cup C)
DistributiveA(BC)=(AB)(AC)A \cap (B \cup C) = (A \cap B) \cup (A \cap C)
De MorganAB=AB\overline{A \cup B} = \overline{A} \cap \overline{B} ; AB=AB\overline{A \cap B} = \overline{A} \cup \overline{B}
IdentityA=AA \cup \emptyset = A ; AU=AA \cap U = A
DominationAU=UA \cup U = U ; A=A \cap \emptyset = \emptyset

Proving Set Identities: Element Method

Prove A(BC)=(AB)(AC)A \cap (B \cup C) = (A \cap B) \cup (A \cap C): Proof (\subseteq): Let xA(BC)x \in A \cap (B \cup C). Then xAx \in A AND xBCx \in B \cup C.
  • Since xBCx \in B \cup C, either xBx \in B or xCx \in C.
  • If xBx \in B, then xABx \in A \cap B, so x(AB)(AC)x \in (A \cap B) \cup (A \cap C).
  • If xCx \in C, then xACx \in A \cap C, so x(AB)(AC)x \in (A \cap B) \cup (A \cap C). Proof (\supseteq): Let x(AB)(AC)x \in (A \cap B) \cup (A \cap C).
  • Either xABx \in A \cap B or xACx \in A \cap C.
  • In either case, xAx \in A. And xBx \in B or xCx \in C, so xBCx \in B \cup C.
  • Therefore xA(BC)x \in A \cap (B \cup C). \square

5.5 Power Sets

The power set P(A)\mathcal{P}(A) is the set of all subsets of AA. If A=n|A| = n, then P(A)=2n|\mathcal{P}(A)| = 2^n. Example: A={a,b}A = \{a, b\}, P(A)={,{a},{b},{a,b}}\mathcal{P}(A) = \{\emptyset, \{a\}, \{b\}, \{a, b\}\}.

5.6 Cartesian Products

A×B={(a,b):aA,bB}A \times B = \{(a, b) : a \in A, b \in B\} — ordered pairs. If A=m|A| = m and B=n|B| = n, then A×B=mn|A \times B| = mn.

5.7 Cardinality

Finite sets: A|A| = number of elements. Infinite sets: Two sets have the same cardinality if there's a bijection between them.
  • N=Z=Q|\mathbb{N}| = |\mathbb{Z}| = |\mathbb{Q}| (countably infinite)
  • R|\mathbb{R}| is uncountably infinite (Cantor's diagonal argument)

✅ Practice Questions

Q1: If A={1,2,3}A = \{1,2,3\}, B={2,3,4}B = \{2,3,4\}, find ABA \cup B, ABA \cap B, ABA - B, BAB - A.
Solution
AB={1,2,3,4}A \cup B = \{1,2,3,4\}, AB={2,3}A \cap B = \{2,3\}, AB={1}A - B = \{1\}, BA={4}B - A = \{4\}. Q2: Prove AB=AB\overline{A \cap B} = \overline{A} \cup \overline{B} using element argument. Solution
(\subseteq): Let xABx \in \overline{A \cap B}. Then xABx \notin A \cap B, so xAx \notin A or xBx \notin B. If xAx \notin A, then xAABx \in \overline{A} \subseteq \overline{A} \cup \overline{B}. Similarly if xBx \notin B. (\supseteq): Let xABx \in \overline{A} \cup \overline{B}. Then xAx \notin A or xBx \notin B, so xABx \notin A \cap B, hence xABx \in \overline{A \cap B}. Q3: How many subsets does {a,b,c,d}\{a,b,c,d\} have? Solution
24=162^4 = 16 subsets. Q4: Prove ABA \subseteq B iff AB=AA \cap B = A. Solution
(\to) Assume ABA \subseteq B. If xAx \in A, then xBx \in B, so xABx \in A \cap B. Thus AABA \subseteq A \cap B. Also ABAA \cap B \subseteq A always. So AB=AA \cap B = A. (\leftarrow) Assume AB=AA \cap B = A. If xAx \in A, then xABx \in A \cap B, so xBx \in B. Thus ABA \subseteq B. Q5: Show N=Z|\mathbb{N}| = |\mathbb{Z}| by constructing a bijection. Solution
Define f:NZf: \mathbb{N} \to \mathbb{Z} as:
>f(n)={0n=1n2n evenn12n odd,n>1>> f(n) = \begin{cases} 0 & n=1 \\ \frac{n}{2} & n \text{ even} \\ -\frac{n-1}{2} & n \text{ odd}, n>1 \end{cases} >
This gives: 101 \to 0, 212 \to 1, 313 \to -1, 424 \to 2, 525 \to -2, etc. It's bijective. Join Discord PreviousAdvanced ProofsNextSet Operation Proofs
Document outline

Keep your place and jump directly to a heading.

Table of Contents
System Normal // Awaiting Context

Intelligence Hub

Navigate the knowledge graph to generate context. The Hub adapts dynamically to surface backlinks, related notes, and metadata insights.