Search Knowledge

© 2026 LIBREUNI PROJECT

Mathematics / Set Theory & Structures

Cardinality and the Infinite

Cardinality and the Infinite

The study of cardinality is the study of the “size” of sets. While counting finite sets is intuitive, the transition to infinite sets reveals a landscape of varying magnitudes that defies simple intuition. Through the work of Georg Cantor in the late 19th century, we learned that infinity is not a single value, but a hierarchy of transfinite numbers.

Defining Cardinality via Bijections

In the absence of a counting process (), we compare sets using mappings. Two sets and have the same Cardinality, denoted , if and only if there exists a Bijection .

This definition leads to surprising conclusions for infinite sets ( can hold even if ):

  • The set of natural numbers has the same cardinality as the set of even numbers (via the mapping ).
  • has the same cardinality as the set of integers .
  • has the same cardinality as the set of rational numbers .

Countable Infinity ()

A set is Countably Infinite if it has the same cardinality as . We use the Hebrew letter Aleph to denote these sizes, with (Aleph-null).

The fact that is countable is proven using Cantor’s Pairing Function or a zigzag traversal of a 2D grid of fractions. It shows that even though is dense (between any two rationals, there is another rational), it is no “larger” than the discrete natural numbers.

Uncountability and Cantor’s Diagonal Argument

Cantor’s most famous result was proving that the set of real numbers is Uncountable ().

The Diagonal Argument:

  1. Assume the interval is countable. List the numbers in decimal form:
  2. Construct a new number where (specifically, let if , else ).
  3. The number differs from every in the -th decimal place.
  4. Therefore, is not in the list, contradicting the assumption that the list was complete.

The cardinality of is often called the Continuum, denoted or .

Cantor’s Theorem and the Hierarchy of Infinites

Cantor’s Theorem states that for any set , the cardinality of its Power Set is strictly greater than the cardinality of : This allows us to construct an endless sequence of increasing infinities: There is no “largest” infinity.

Cardinal Arithmetic

Arithmetic with cardinals follows different rules than finite arithmetic:

  • Addition: and .
  • Multiplication: .
  • Exponentiation: is the size of the set of all subsets of , which is equal to .

The Continuum Hypothesis (CH)

Cantor conjectured that there is no cardinality between the size of the integers and the size of the reals. That is, is ?

In 1963, Paul Cohen proved that the Continuum Hypothesis is Independent of ZFC set theory. You can neither prove it nor disprove it using the standard axioms. This realization changed the face of mathematical logic, suggesting that there are different “universes” of set theory where CH is true and others where it is false.

Conceptual Note: Hilbert’s Grand Hotel

The paradoxes of infinite cardinality are often illustrated by Hilbert’s Hotel, where a full hotel can accommodate new guests, or even an infinite number of new guests, by simply shifting the current guests from room to room or room . While physically impossible, this is a mathematically rigorous characteristic of any set with cardinality .

Computational Representation of Infinity

In symbolic logic and computer science, we distinguish between sets that are Recursively Enumerable (where we can write a program to list all elements) and those that are not. The natural numbers are enumerable, but the set of all possible computer programs (a subset of ) is countable, while the set of all possible real-number functions is uncountable. This fundamental limit means that there are vastly more “problems” than there are “solutions” (algorithms).

/**
 * While we cannot represent an infinite set physically, 
 * we can represent a "Generator" for a countably infinite set.
 */
function* naturalNumbers() {
    let n = 0;
    while (true) {
        yield n++;
    }
}

// In contrast, there is no 'generator' that can yield all 
// Real numbers in a sequence, even with infinite time.

By understanding cardinality, we see that mathematics is not just a tool for finite counting, but a way to categorize the infinite itself. We move from the discrete world of integers to the dense world of rationals, and finally to the continuous world of reals and beyond.

Conceptual Check

What is the cardinality of the set of all real numbers (the continuum) denoted as?