Search Knowledge

© 2026 LIBREUNI PROJECT

Real Numbers and Continuity

Real Numbers and Continuity

The real numbers R\mathbb{R} extend the rationals Q\mathbb{Q} by filling in the “gaps,” allowing for a continuous number line.

Dedekind Cuts

A Dedekind cut (A,B)(A, B) is a partition of Q\mathbb{Q} such that AA has no largest element and everything in AA is less than everything in BB. This construction formally defines irrational numbers like 2\sqrt{2}.

python
1def is_in_sqrt2_cut(q):
2 # A = {q in Q | q < 0 or q^2 < 2}
3 if q < 0: return True
4 return q**2 < 2
5 
6test_rationals = [1, 1.4, 1.41, 1.414, 1.42, 1.5, 2]
7for q in test_rationals:
8 print(f"{q} in A: {is_in_sqrt2_cut(q)}")

Completeness Axiom

The Completeness Axiom states that every non-empty set of real numbers that is bounded above has a Least Upper Bound (Supremum) in R\mathbb{R}. This is what distinguishes R\mathbb{R} from Q\mathbb{Q}.

python
1import numpy as np
2 
3def find_supremum_approximation(func, bounds, steps=1000):
4 x = np.linspace(bounds[0], bounds[1], steps)
5 y = func(x)
6 return np.max(y)
7 
8# Find supremum of -x^2 + 4 on [0, 5]
9# (Should be 4 at x=0)
10f = lambda x: -x**2 + 4
11print(f"Approximated Supremum: {find_supremum_approximation(f, [0, 5])}")

Archimedean Property

The Archimedean Property states that for any xRx \in \mathbb{R}, there exists an nNn \in \mathbb{N} such that n>xn > x. This implies that there are no “infinitely large” real numbers.

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.”

What is the cardinality of the set of real numbers R?

Previous Module Proof Techniques
Next Module RSA Encryption