The real numbers extend the rationals by filling in the “gaps,” allowing for a continuous number line.
Dedekind Cuts
A Dedekind cut is a partition of such that has no largest element and everything in is less than everything in . This construction formally defines irrational numbers like .
Interactive Lab
def is_in_sqrt2_cut(q):
# A = {q in Q | q < 0 or q^2 < 2}
if q < 0: return True
return q**2 < 2
test_rationals = [1, 1.4, 1.41, 1.414, 1.42, 1.5, 2]
for q in test_rationals:
print(f"{q} in A: {is_in_sqrt2_cut(q)}")
The Completeness Axiom states that every non-empty set of real numbers that is bounded above has a Least Upper Bound (Supremum) in . This is what distinguishes from .
Interactive Lab
import numpy as np
def find_supremum_approximation(func, bounds, steps=1000):
x = np.linspace(bounds[0], bounds[1], steps)
y = func(x)
return np.max(y)
# Find supremum of -x^2 + 4 on [0, 5]
# (Should be 4 at x=0)
f = lambda x: -x**2 + 4
print(f"Approximated Supremum: {find_supremum_approximation(f, [0, 5])}")
The Archimedean Property states that for any , there exists an such that . This implies that there are no “infinitely large” real numbers.
Knowledge Check
Does the set of rational numbers Q satisfy the completeness axiom?
Answer: No, because the supremum of {q in Q | q^2 < 2} is sqrt(2), which is not in Q.
Does the set of rational numbers Q satisfy the completeness axiom?
The Cantor Set
The Cantor Set is constructed by repeatedly removing the middle third of line segments. It is a classic example of a set that is uncountable but has “measure zero.”
Knowledge Check
What is the cardinality of the set of real numbers R?
Answer: C (Continuum)
What is the cardinality of the set of real numbers R?