Cantor's diagonal argument Created 2026-09-24 Updated 2026-10-14
Cantor's diagonal argument shows that the set of all infinite binary sequences is an uncountable set. Suppose a proposed enumeration is , where is coordinate of row . Construct a new binary sequence by
It differs from row at coordinate , for every . It is consequently absent from the entire proposed list, regardless of how that list was chosen. The failure of an enumeration of all binary sequences follows from this precise point of disagreement, rather than from a claim that the list looks too small.
Figure 1.
Flipping the nth coordinate of the nth row constructs a binary sequence missing from every proposed row
. Details.
For the displayed window, the first six diagonal bits are , so the new sequence starts . The drawing shows only finitely many rows, but the rule defines every coordinate and excludes every row of an infinite list. This distinguishes the argument from the Cantor pairing function: that construction lists all pairs of finite indices, whereas this one concerns an entire infinite sequence as each object to be listed. Finite binary strings form a countable set; all infinite binary sequences do not.
The connection with power sets is exact: a subset corresponds to its indicator function, with a one in position exactly when . Changing the diagonal membership bit is the same mechanism as the Cantor's theorem construction . This reusable method turns a purported complete list into an explicit omitted object.
In his paper [ref], presented in 1891 and printed in the 1890–91 volume in 1892, Cantor uses infinite sequences of two symbols for the diagonal construction and then gives the broader comparison of cardinalities. The binary notation here is a modern presentation of that construction.
A finite subset of the natural numbers, numbered from one, has the binary code . Distinct finite subsets give distinct codes, because the largest differing exponent exceeds the sum of all smaller powers of two. Thus the finite subsets form a countable set, although the entire power set is an uncountable set by the Cantor diagonal argument. An enumeration transfers this coding to any countable set.
Countable additivity Created 2026-09-24 Updated 2026-10-14
For pairwise disjoint measurable sets , countable additivity means
The infinite series is the limit of its nonnegative partial sums. This controls an entire countable union, not merely each finite stage. If enumerate the rational numbers in , their finite collections have Lebesgue measure zero, and countable additivity gives their whole union Lebesgue measure zero. Their being a dense set does not change this calculation.
The axiom makes no assertion about an arbitrary uncountable set of disjoint pieces. In particular, is the union of its singletons, each of Lebesgue measure zero, yet its Lebesgue measure is one. Extending additivity to all such unions would contradict interval length.
Counting measure Created 2026-09-29 Updated 2026-10-14
Counting measure makes integration into summation by giving every measurable singleton unit weight. On any measurable space , it is the measure defined by
Thus , a finite set has its usual cardinality, and every infinite set has the same value in the extended real number line. In particular, countably infinite sets and uncountable sets are not distinguished by their counting measure. Taking to be the power set makes every subset measurable; restricting the same rule to a smaller sigma-algebra is also allowed. [ref]
Why is this a countably additive measure? For pairwise disjoint measurable sets ,
If the union is finite, only finitely many are nonempty, and finite cardinality adds. If the union is infinite, either one is infinite or infinitely many are nonempty; in both cases the nonnegative series on the right is infinite. For example, and have counting measures and , and their union has counting measure . The singletons for positive natural numbers give the infinite case: .
With the power set as sigma-algebra, counting measure is a finite measure exactly when is finite, and a sigma-finite measure exactly when is at most countable. For the latter assertion, enumerate by measurable singletons; conversely, every finite-measure set is finite, and a countable union of finite sets is countable. Specifying the sigma-algebra matters: if and , counting measure is not a sigma-finite measure, since the only measurable finite-measure set is the empty set.
For a finite or countably infinite set equipped with its power set, every nonnegative function is a measurable function, and
The supremum allows an infinite result and avoids choosing an order for the terms. On a finite set, expand as a simple function using singleton indicator functions. On a countably infinite set, enumerate the points and apply the monotone convergence theorem to finite truncations. Real or complex functions are integrable functions for counting measure exactly when ; then their integral equals the absolutely convergent sum. This is the discrete counterpart of Lebesgue integration, developed further in series as a Lebesgue integral against counting measure. [ref]
For example, on the positive natural numbers has counting measure integral one, by the geometric series. The alternating harmonic series has a finite ordered sum but is not the integral of an integrable function for counting measure: its positive and negative parts both have infinite sums. Absolute convergence is what makes the finite integral independent of enumeration. In particular, the Lp spaces for counting measure on are the l-p sequence spaces, with their sums replacing continuous integrals.
Compare three measures on the same Borel sigma-algebra of the real numbers: counting measure , Dirac measure , and Lebesgue measure .
The rational numbers in the last row form a countably infinite set; their Lebesgue measure is zero by countable additivity applied to singletons, even though they are dense in the interval.
Figure 1.
The same Borel sets have different sizes under counting measure, Dirac measure, and Lebesgue measure
. Original analytical comparison on the real numbers, with the selected point marked in orange. Drawings show the finite sets and the interval; the rational numbers are named symbolically because finitely many plotted points cannot depict that infinite dense set. Green zero entries mark the null sets for each column's measure. Details.
These are different answers to different questions: counting measure asks how many points occur, Dirac measure asks whether the selected point occurs, and Lebesgue measure asks how much length occurs. A null set therefore depends on its measure. For counting measure, the only null set is the empty set, so equality almost everywhere is equality everywhere. For , a measurable set is a null set exactly when it misses ; for Lebesgue measure, even the infinite set is a null set. Integrating an indicator function recovers each table entry through . This lets the same Lebesgue integral framework handle point counts, point evaluation, and geometric length.
A finitely supported permutation fixes every element outside some finite subset. The finitely supported permutations of are the union of the finite symmetric groups acting on , and hence form a countable set. All permutations of form an uncountable set: independently swapping or fixing each pair injects the power set of into this larger set.
Foundations of mathematics Created 2026-09-24 Updated 2026-10-13
Foundations of mathematics asks what our objects mean, what we assume about them, and why an argument establishes its conclusion. Set theory gives a common language for collections and functions; mathematical logic makes the structure of statements and deductions precise. A mathematical definition fixes a meaning, an axiom supplies an assumption, and a mathematical proof explains what follows. Separating these roles makes results reusable: once the group axioms are enough for a conclusion, that conclusion applies to every group, regardless of how its members are represented.
The assumptions can change the answer to a familiar calculation. Over the real numbers, factors as , so is zero or one. The same reasoning holds in any integral domain, because a product can be zero only when a factor is zero. In the ring of integers modulo six, however, and : there are four solutions, represented by . The extra solutions are idempotents, and the failed step involves zero divisors. Writing the domain is part of explaining the answer.
This precision also reveals surprising possibilities. A two-dimensional grid of natural numbers is a countable set, while all infinite binary sequences form an uncountable set. The Cantor pairing function supplies a complete enumeration of the first; Cantor's diagonal argument defeats every proposed enumeration of the second. Both arguments are short, yet distinguish two sizes of infinity. The subject's appeal is this ability to turn a vague question into one whose assumptions, construction, and limits can all be inspected.
Lebesgue measure Created 2026-09-24 Updated 2026-10-14
Lebesgue measure on the real numbers extends interval length: for . Its restriction to the Borel sigma-algebra is the unique translation-invariant sigma-finite measure on that sigma-algebra normalized by . The full Lebesgue measure is the completion of a measure of this restriction; its domain is the Lebesgue measurable sets. Translation invariance follows by comparing a translated Borel measure on half-open intervals and applying the uniqueness theorem for measures. For the construction and interval properties, see MIT lecture 8.
Every singleton has Lebesgue measure zero: gives for every . Enumerating the countable set and applying countable additivity yields
Thus a dense set can be a null set, and a union of null sets indexed by an uncountable set can have positive Lebesgue measure. The distinction explains both the Dirichlet function example and why almost everywhere is weaker than everywhere.
A parabola parametrized by is in bijection with and is an uncountable set. Every affine line meets it in at most two points. A countable family of affine lines could therefore cover only countably many points of this parabola, and cannot cover the plane. More generally, an uncountable curve with finite intersection with every permitted member obstructs a countable covering by those members.
Number the natural numbers from one. If the power set could be enumerated as , form . For each , membership of in is opposite to its membership in , so . This contradicts completeness of the enumeration. Thus the Cantor diagonal argument proves that the power set is an uncountable set.
For a finite subset , define . This is a nonnegative integer and the map is injective: if two finite subsets differ, let be their largest differing element. Its contribution exceeds the sum of all smaller possible contributions, so their codes differ. There are infinitely many singleton subsets. Hence the countability of finite subsets of a countable set here is countable infinitude.
To treat all bijections, associate to every subset the permutation that swaps and when , and fixes both when . These disjoint pair swaps define a bijection of . Different subsets give different permutations, so the map from the power set into is injective. Therefore is an uncountable set.
Every finitely supported permutation fixes all elements above some . A bijection fixing that tail must permute : it cannot send a smaller element into the fixed tail without violating injectivity. There are exactly such permutations. Thus
is a countable union of finite sets. Enumerate first by , then by one of the finitely many permutations at that ; duplicates can be omitted. Infinitely many distinct pair swaps belong to , so is countably infinite. The full family is uncountable, while the finitely supported family is countably infinite.
A countable set is one admitting an injection into ; this includes finite sets and the empty set. An infinite countable set can equivalently be listed in a sequence indexed by .
For a countable union of countable sets , choose an injection for each nonempty . Assign the pair , where is the least index with . This is an injection into . The pairs are countable by diagonal enumeration; explicitly, with natural numbers starting at one, the Cantor pairing function
maps them bijectively to . Composing the two maps proves that the union is countable. Empty members contribute no elements.
To prove uncountability of the power set , suppose all subsets could be listed as . Define
For every , differs from on whether it contains . Thus is missing from the supposedly exhaustive list. This Cantor diagonal argument proves is uncountable.
For increasing functions in the question's non-strict sense, encode every subset by
where the value at zero is only a convenient auxiliary convention. Then
Each is even strictly increasing, hence is a nondecreasing function as required, and its successive differences recover uniquely. This is an injection from the uncountable power set into the requested collection. Therefore the increasing functions form an uncountable set.
For a decreasing function in the question's sense, is a nonincreasing function with positive integer values. Each strict decrease lowers its value by at least one, so there can be at most strict decreases. There is consequently a final drop, after which the function is constant. Every such function is determined by a finite initial list whose final value repeats forever. The set of all these lists is contained in
a countable union of countable sets, hence countable by the result just proved. Thus the decreasing functions form a countable set. These contrasting cardinalities of monotone natural-number functions come from the absence of an upper bound for increasing values and the finite number of drops available to decreasing natural-number values. If the natural numbers include zero, the same proof uses the bound instead.
Suppose all infinite binary sequences could be listed as , where . Define another binary sequence by . It differs from the th listed sequence at its th entry, so it is absent from the list. This contradiction is Cantor's diagonal argument, proving that
To transfer this result to , map a binary sequence to
This lies in because . If two sequences first differ at index , with and , then
Thus is an injection, avoiding the ambiguous expansions that would arise from unrestricted binary digits in base two. An injection from an uncountable set into proves that .
For , a nondecreasing sequence bounded above can take only finitely many integer values, all lying between its first term and an integer upper bound. Every strict increase raises its value by at least one, so only finitely many strict increases occur. It is therefore eventually constant. Every such sequence has the form
for some finite list of integers. The set of finite integer lists is a countable set: at stage , list the tuples of length at most whose entries have absolute value at most , omitting earlier duplicates. Each stage is finite and every finite tuple occurs at some stage. Constant sequences give an injection of into the collection, so
This is the discrete-order phenomenon that bounded nondecreasing integer sequences are eventually constant.
For , use a different encoding, into rational partial sums:
Each is a rational number, the sequence is nondecreasing, and . If two binary inputs first differ at , their th partial sums differ by , so their output sequences differ. This defines an injection of the uncountable binary-sequence set into . Thus bounded nondecreasing rational sequences are uncountable. Finally, every such rational sequence is also an admissible real sequence, so inclusion into is injective. Consequently
Boundedness and monotonicity force eventual constancy for integer values, but not for rational or real values; countability of the set of possible individual terms does not imply countability of all infinite sequences of those terms.
Use the parabola obstruction to countable line coverings. The curve
is in bijection with the real line and hence is an uncountable set. A vertical line meets in one point. A nonvertical line meets it only where , so it meets in at most two points.
If countably many lines covered the plane, their intersections with would cover . That would express as a countable union of countable sets, indeed of sets with at most two elements, contradicting its uncountability. Therefore no countable collection of lines covers the plane.
For the cardinality of integer-periodic function spaces, fix a positive period first. A periodic function with that period is completely and uniquely determined by its values at , so this class is in bijection with . The integers are a countable set, and repeated pairing shows that a finite Cartesian product of countable sets is countable. Taking the union over positive and using the countable union of countable sets proves that the integer-domain periodic functions form a countable set.
For the rational domain, even period one leaves infinitely many independent choices. Let for ; these are distinct members of . For every subset , define
The fractional part is unchanged by adding one, so is an integer-valued periodic function on . Distinct subsets give distinct functions because records whether . Thus the uncountable power set of injects into these functions. The rational-domain periodic functions form an uncountable set. The difference is that has only finitely many residue classes modulo a fixed integer period, whereas has infinitely many.
Use uncountability by interleaving prescribed binary coordinates. For each arbitrary binary sequence , define another binary sequence by
There are infinitely many zero coordinates, namely , so . There are also infinitely many coordinates agreeing with the prescribed binary expansion, namely , so . The coordinates recover , making this map an injection of the uncountable set of all binary sequences into . If were a countable set, composing with an injection into would make all binary sequences countable, contrary to part (i). Therefore The construction works for every prescribed binary sequence ; no special distribution property of the digits of is needed.
Suppose were a surjective function. Form the subset
Since belongs to the power set, surjectivity would give for some . But then holds if and only if , a contradiction. Thus no such function is surjective, and in particular there is no bijection from to its power set. This is Cantor theorem; the argument also applies when is empty.
For infinite binary sequences, use the bijection
with , taking . Conversely, a subset determines its sequence of membership indicators. The power set is infinite, since it contains all singletons, and Cantor theorem rules out a bijection with . Hence it is an uncountable set, as is the set of infinite binary sequences. Equivalently, a proposed enumeration is defeated by the sequence , which differs from its th listed sequence at position . This is the Cantor diagonal argument.
Partition the enumeration of into the pairs , for . An infinite binary sequence determines a bijection : leave the th pair fixed when , and interchange its two elements when . Each element stays in its own pair, so this function is a bijection, indeed its own inverse.
Different binary sequences give different bijections, since a changed bit changes the action on the corresponding pair. We have therefore embedded an uncountable set into . Hence is uncountable, proving uncountability of permutations of a countably infinite set.
Again let with , and enumerate . For each infinite binary sequence , define a function by
The first values make every a surjective function, while the remaining values recover uniquely. Hence is an injective function from the uncountable set of binary sequences into . This proves is an uncountable set, an instance of uncountability of surjections onto a nontrivial finite set.
False. Take , the power set of the first infinite ordinal . Every subset of has rank at most , and an infinite cofinal subset has rank exactly , so
which is a countable ordinal. But Cantor theorem shows that is an uncountable set.
Suppose all functions could be listed as . Define
Then differs from at for every , so it is absent from the list. This Cantor's diagonal argument proves that is an uncountable set.
There are uncountably many physically distinct one-qubit unitaries. Part (ii) would require an orthogonal program state for every one, whereas a -qubit register has dimension only . This contradiction is the no-programming theorem, so no deterministic gate satisfying (PROG) exists.