Search Knowledge

© 2026 LIBREUNI PROJECT

Axiomatic Set Theory and the ZFC Framework

Axiomatic Set Theory and the ZFC Framework

Set theory is often called the “language of mathematics.” Virtually every mathematical object—numbers, functions, manifolds, operators—can be formally defined as a set.

Russell’s Paradox and the Necessity of Axioms

In Naive Set Theory, one could define a set through any property PP: S={xP(x)}S = \{x \mid P(x)\}. Bertrand Russell asked: if we define R={xxx}R = \{x \mid x \notin x\} (the set of all sets that do not contain themselves), does RR contain itself?

python
1class RussellSet:
2 def __contains__(self, item):
3 # A set that contains itself only if it DOES NOT contain itself
4 return not (item in item if hasattr(item, "__contains__") else False)
5 
6r = RussellSet()
7try:
8 print(f"Does r contain r? {r in r}")
9except RecursionError:
10 print("Infinite recursion: Russell's Paradox detected!")

The Axioms of ZFC

To resolve such paradoxes, the Zermelo-Fraenkel axioms with the Axiom of Choice (ZFC) were developed.

  1. Extensionality: Sets are equal if they have the same elements.
  2. Empty Set: \emptyset exists.
  3. Power Set: For any set xx, there exists a set P(x)\mathcal{P}(x) containing all subsets of xx.
python
1from itertools import chain, combinations
2 
3def power_set(iterable):
4 s = list(iterable)
5 return chain.from_iterable(combinations(s, r) for r in range(len(s)+1))
6 
7s = {1, 2, 3}
8ps = list(power_set(s))
9print(f"Set: {s}")
10print(f"Power Set size: {len(ps)}")
11print(f"Subsets: {ps}")

Constructing the Universe: The Von Neumann Hierarchy

Using these axioms, we can build the natural numbers N\mathbb{N}:

  • 0=0 = \emptyset
  • 1={0}={}1 = \{0\} = \{\emptyset\}
  • 2={0,1}={,{}}2 = \{0, 1\} = \{\emptyset, \{\emptyset\}\}
python
1def von_neumann_ordinal(n):
2 if n == 0:
3 return set()
4 prev = von_neumann_ordinal(n - 1)
5 # n = prev U {prev}
6 return prev | {frozenset(prev)}
7 
8for i in range(4):
9 print(f"{i}: {von_neumann_ordinal(i)}")

Ordinals and Cardinals

  • Ordinals: Describe the order type (position).
  • Cardinals: Describe the size (quantity). Two sets have the same cardinality if there exists a bijection between them.

Which axiom in ZFC was specifically introduced to resolve Russell's Paradox by restricting set construction to subsets of existing sets?

The Axiom of Choice (AC)

AC states that given a collection of non-empty sets, we can select one element from each. While intuitive, it leads to non-constructive results like the Banach-Tarski Paradox (decomposing a ball into two identical balls).

If |A| = n, what is the cardinality of the power set P(A)?

Previous Module Recurrence Relations
Finish Course