How statement and proof provenance work
The first chip identifies the source of the statement or construction; the second identifies the source of its local proof or verification.
- Literature-sourced: the exact statement appears in a cited source; only wording and notation differ.
- AI-adapted: a semantically identical restatement of literature-sourced material, modulo indexing, notation, and boundary cases adopted by the library.
- AI-generated: a genuinely novel statement formulated by AI, with no source for the claim itself.
These labels describe origin, not correctness: citations and verification chips remain separate evidence.
Countability and the Uncountability of R: Examples and Counterexamples
1 · Prerequisites
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Countability and Uncountability
- Foundations of the Real Numbers for Analysis
- Relations, Functions, and Quotients
- Roots, Rational Powers, and Classical Inequalities
- Suprema and Infima
- The ZFC Axioms and the Basic Set Constructions
2 · Summary
Objective. This companion page works the machinery of countability-and-uncountability on concrete sets and boundary cases. Every item uses the parent page, its established prerequisite closure, or earlier items on this companion page; nothing outside this page depends on anything homed here. The rational enumeration and the algebraic-number item also use the finite-sum and natural-power interfaces of roots-and-rational-powers. Each item states its hypotheses and checks its arguments locally, and the page makes no claim beyond the statements of its items; in particular no decimal expansion, series or complex algebraic-closure machinery is used anywhere.
Examples and counterexamples
The items are listed in the order in which they appear in the page inventory; same-page dependencies always point backwards.
- The integers are countably infinite: transports the product bijection to the integers by two injections and Schröder-Bernstein.
- Deleting one point of a countably infinite set leaves a set equinumerous with it deletes one point of a countably infinite set by an explicit shift, and contrasts this with the finite case.
- is uncountable instantiates Cantor's theorem at and draws the strict-domination conclusion.
- The set of binary sequences is equinumerous with , hence uncountable identifies binary sequences with subsets of by characteristic functions.
- The rationals in an interval are countably infinite while the interval is uncountable separates density from cardinality inside an interval.
- The complement of an at most countable set of reals is uncountable deletes an at most countable set of reals by a two-set interleaving with no choice.
- A nonempty surjective image of need not be equinumerous with and The empty set is at most countable but no function from is onto it record the two boundary defects of the onto criterion: repetitions, and the empty set.
- An explicit enumeration of the rationals, with repetitions and then without them writes a completely specified surjection and then deletes repetitions by least new index.
- A real coefficient list of degree d has at most d real roots bounds the real root set of a finite real coefficient list, by finite synthetic division.
- Real algebraic numbers are countably infinite, without choice codes integer coefficient lists, uses that bound, and injects the real algebraic numbers into ; their complement is uncountable.
- Cantor diagonal construction misses every prescribed list of binary sequences performs the literal diagonal construction.
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
The integers are countably infinite:
Example
(Equinumerous sets, and ): the integers are countably infinite (Finite, countably infinite, countable, uncountable). The argument is the two-injection route of The Schröder-Bernstein theorem rather than a closed formula. The map is injective (The naturals embed in the integers), and the quotient map is a surjective function (Let be an equivalence relation on with quotient map , and let . There is a function with if and only if implies ; and such a is then unique, The integers as equivalence classes of pairs of naturals); composing with the bijection of exhibits as a surjective image of , and A nonempty set is at most countable iff it is a surjective image of then supplies an injection explicitly as . Every ingredient is a definition or a canonical least element, so no choice principle is used; A product of two at most countable sets is at most countable then gives that is at most countable as well.
Facts & Assumptions
Given: The naturals (The natural numbers (von Neumann)), the integers with classes for the equivalence relation (The integers as equivalence classes of pairs of naturals, The integer-defining relation is an equivalence relation), the embedding of in (The naturals embed in the integers), and the quotient map (Let be an equivalence relation on with quotient map , and let . There is a function with if and only if implies ; and such a is then unique).
The map is injective (The naturals embed in the integers).
: there is a bijection , the inverse of the exhibited bijection (, Equinumerous sets, and , Injection, surjection, bijection).
For a nonempty set : is at most countable if and only if there is a surjection , and from such an the rule defines an injection (A nonempty set is at most countable iff it is a surjective image of ).
If and then (The Schröder-Bernstein theorem); if and are at most countable then so is (A product of two at most countable sets is at most countable).
is countably infinite when and at most countable when it is finite or countably infinite (Finite, countably infinite, countable, uncountable); means an injection exists (Equinumerous sets, and ); a composite of surjections is a surjection (Injection, surjection, bijection, A function is a relation with and implying ; , the value , domain and codomain).
Verification
is a surjective function : this is the general quotient map statement applied to the equivalence relation of The integers as equivalence classes of pairs of naturals, whose equivalence-class property is The integer-defining relation is an equivalence relation.
is a bijection, and in particular a surjection.
The map is an injection , so .
The composite is a surjection, as a composite of the surjections and ; hence is a surjective image of , and because .
Applying [F4] to the nonempty set and the surjection of step 2.1 gives an injection , explicitly ; hence .
Since by step 1.3 and by step 3.1, Schröder-Bernstein gives , so the integers are countably infinite.
With step 4.1, both and are at most countable, so their product is at most countable by [F5]. The injection is defined by the least element of a nonempty set of naturals and is the inverse of an exhibited bijection, so no choice principle is used.
Remarks
-
The route through is the same device that will enumerate : is a quotient of , the pairing lists pairs, and the least-index rule turns a list with repetitions into an injection. Nothing here needs a closed formula for a bijection .
-
For each fixed positive integer , the product of copies of is at most countable, by applications of A product of two at most countable sets is at most countable.
Deleting one point of a countably infinite set leaves a set equinumerous with it
Example
Let be countably infinite (Finite, countably infinite, countable, uncountable) and let . Then (Equinumerous sets, and ): deleting one point leaves a set of the same size, and is a proper subset of (Subset , proper subset , and the separation notation , The difference , the symmetric difference , and the complement relative to a set ). The basic instance is , , where the successor map is a bijection (The von Neumann naturals form a Peano system, Every nonzero natural number is a successor); a general transports a shift of along a bijection . No finite set shares the behaviour: by claim 5 of The pigeonhole principle on no finite set is equinumerous with a proper subset of itself. No choice principle is used.
Facts & Assumptions
Given: A countably infinite set and a point ; the von Neumann naturals with and successor (The natural numbers (von Neumann)); and the additive order , (Order on the natural numbers). Write when a bijection exists (Equinumerous sets, and ).
is countably infinite exactly when (Finite, countably infinite, countable, uncountable).
is injective, for every , and every equals for some (The von Neumann naturals form a Peano system, Every nonzero natural number is a successor).
Discreteness and linearity of the order: for all (Discreteness: is the immediate successor); is reflexive, antisymmetric, transitive and total ( is a linear order on ); and , for all (Addition of natural numbers).
Exactly one of , , holds (Trichotomy of the order on ).
A composite of bijections is a bijection; the inverse of a bijection is a bijection; and the restriction of a bijection to a subset is a bijection onto the image of that subset ( is a bijection if and only if there is a function with and ; such a is unique, equals the inverse relation , and is itself a bijection, For and : if both are injective so is ; if both are surjective so is ; if is injective so is ; and if is surjective so is , Injection, surjection, bijection).
Claim 5 of The pigeonhole principle on : if and for a natural number , then ; transporting along a bijection, no finite set is equinumerous with a proper subset of itself.
holds exactly when and , since exactly when (The difference , the symmetric difference , and the complement relative to a set , The unordered pair and the singleton ); in particular (Subset , proper subset , and the separation notation ).
The image and preimage of a set under a function (The image and the preimage of a set under a relation): , and if is injective then has exactly one preimage in .
Verification
For put , a set by Separation, and read it as a map. It is a function . Indeed, for each the two clauses are exhaustive and mutually exclusive: if then fails, since gives and while would let antisymmetry give ; and if fails then or by trichotomy, so holds by reflexivity or by implying . Hence exactly one value is paired with , and is or , so . The values avoid : in the first clause ; in the second clause , because would give and hence by discreteness, which is impossible since would require .
is a proper subset of . By [F7] it is a subset of ; it differs from because while , as .
No finite set is equinumerous with a proper subset of itself. Let be finite, let with , and suppose towards a contradiction that is a bijection. Fix and a bijection , possible since is finite. Then via the restriction of to by [F5], and by symmetry and transitivity of , so satisfies ; claim 5 of [F6] gives . Then : for the value equals for some , so by injectivity of . With this gives , contradicting .
For and the witness is the successor map: is injective and never zero by [F2], so it is a function , and it is onto because every is a successor by [F2]. Hence is a bijection .
Since is countably infinite, [F1] supplies a bijection ; let with , which exists because is onto. Then : if with then , since would force by injectivity of ; conversely, if and , then for some by surjectivity and since .
is injective. Let and split each of by trichotomy; the alternatives and both assign the value , and in both. If and the values are and , so . If and the values are and , so by injectivity of . In a mixed case, say and , the values are and with or : if then because gives , so and discreteness gives , impossible; if then , so discreteness gives , contradicting by trichotomy. The case with is symmetric. Hence in every case.
The restriction of to , read as a map into , is a bijection : it is injective, being a restriction of the injection , and it is onto, since its image is by step 1.5.
is surjective onto . Let with . If then ; if then with , so for some , by [F2], and by [F3]. Then satisfies (witnessed by ) and . So is onto , and with step 2.1 it is a bijection .
The composite is a bijection: is a bijection by [F5], is a bijection by step 3.1, and is a bijection by step 2.2, so by [F5] the composite is a bijection. Hence .
Therefore by step 4.1, the set is a proper subset of by step 1.2, the case , is the successor bijection of step 1.4, and no finite set is equinumerous with a proper subset of itself by step 1.3. Every map used is defined by an explicit rule or is the unique inverse of a bijection, so no choice principle is used.
Remarks
-
The shift is the identity below and the successor above it; the point itself is absorbed into the second clause, and the value is skipped. Deleting from is exactly conjugating this one missing value through the bijection .
-
The contrast with finite sets is the reason the example is worth stating: The pigeonhole principle on claim 5 shows that deleting a point from a finite set always changes its size, so "same size after deleting a point" is a genuine feature of the infinite case rather than an accident of the notation.
is uncountable
Example
The power set is uncountable (Finite, countably infinite, countable, uncountable): there is no surjection (Cantor's theorem: ), so (Equinumerous sets, and ). The proof combines Cantor's theorem with The Schröder-Bernstein theorem: the map is injective (The unordered pair and the singleton , if and only if ( and ) or ( and ); in particular if and only if ), so ; and if were at most countable then , so Schröder-Bernstein would give a bijection , hence a surjection , contradicting Cantor's theorem. No choice principle is used.
Facts & Assumptions
Given: The von Neumann naturals with and successor (The natural numbers (von Neumann)), the order with (Order on the natural numbers, On the order is membership: ), and the power set (The power set ).
is finite when for some , countably infinite when , at most countable when it is finite or countably infinite, and uncountable when it is not at most countable (Finite, countably infinite, countable, uncountable).
means a bijection exists, means an injection exists, and means and not (Equinumerous sets, and ).
Every element of a natural number is a natural number, and for every (On the order is membership: ).
if and only if and ( if and only if ( and ) or ( and ); in particular if and only if ); and exactly when (The unordered pair and the singleton ).
Cantor's theorem: there is no surjection for any set (Cantor's theorem: ).
Schröder-Bernstein: if and then (The Schröder-Bernstein theorem).
A bijection is a surjection, a composite of injections is an injection, and the inverse of a bijection is a bijection (Injection, surjection, bijection, is a bijection if and only if there is a function with and ; such a is unique, equals the inverse relation , and is itself a bijection).
Verification
The map , , is well defined because by [F3], and it is injective: if then [F4] gives directly. Hence .
If is at most countable then . If , any bijection is an injection. If instead for some , fix a bijection ; the inclusion map is available by [F3] and is injective, and the composite of the two injections is an injection . These are the two alternatives in [F1].
Therefore is not at most countable. Suppose it were. Then by step 1.2 and by step 1.1, so [F6] supplies a bijection ; its inverse is a bijection by [F7], hence a surjection , contradicting Cantor's theorem [F5].
Hence is uncountable, and : the injection of step 1.1 gives , while would give a bijection and hence a surjection, contradicting [F5]; so not and the strict relation holds by [F2]. No step selects an element from a nonempty family: the only objects named are , a fixed bijection, and its inverse.
Remarks
-
The argument is the statement of Cantor's theorem: in the "strictly larger" form instantiated at ; what is added here is the passage from "not at most countable" to the strict domination, which uses Schröder-Bernstein in the contrapositive direction as above.
-
Finiteness of is impossible for the same reason: a bijection would compose with the inclusion to dominate by , which step 2.1 rules out. No separate finite argument is needed.
The set of binary sequences is equinumerous with , hence uncountable
Example
Let be the set of all functions , where and (The set of all functions , The unordered pair and the singleton ). The map sending to its characteristic function, for and for , is a bijection (The power set , Injection, surjection, bijection). Hence (Equinumerous sets, and ) and the set of binary sequences is uncountable (Finite, countably infinite, countable, uncountable, is uncountable). This is the function-space form of Cantor's diagonal argument, and it is the form in which the library records that infinite products of at-most-countable sets need not be at most countable. No choice principle is used.
Facts & Assumptions
Given: The von Neumann naturals with and (The natural numbers (von Neumann)), the unordered pair (The unordered pair and the singleton ), and the set of functions (The set of all functions , For sets and the collection of all functions is a set, being a subset of ). Membership in is membership in : exactly when or .
, since and for every (The von Neumann naturals form a Peano system).
Separation and set notation: for a set and a property, is the set of elements of with that property (The Axiom Schema of Separation: for each formula , ); means every element of is an element of , and (Subset , proper subset , and the separation notation , The power set ).
A function is a relation with a unique value at each point of its domain; means and ; and two functions with the same domain and the same values are equal (A function is a relation with and implying ; , the value , domain and codomain, The Axiom of Extensionality: ). Ordered pairs are those of the Cartesian product (The Cartesian product ).
Injection, surjection, bijection; images and preimages (Injection, surjection, bijection, The image and the preimage of a set under a relation).
means a bijection exists; is symmetric and transitive (Equinumerous sets, and ); is finite when for some , countably infinite when , at most countable when it is one of the two, and uncountable when it is not at most countable (Finite, countably infinite, countable, uncountable).
is uncountable ( is uncountable).
Verification
For the set exists by Separation, and it is a function with for and for . Indeed, for each exactly one of , holds, so exactly one value is related to , namely in the first case and in the second; and by the definition of the unordered pair.
The assignment is injective. If as sets of ordered pairs, then for every one has iff iff iff : the outer equivalences are step 1.1, and in the middle, a function value that is not is , which differs from by [F1], so holds exactly when , that is exactly when . Hence by Extensionality of sets.
The assignment is surjective. Let and put , a subset of by Separation. For each , either or because ; in the first case and step 1.1 gives , and in the second case and . Thus and have the same domain and the same values, so they are equal by [F3], and is in the image of the assignment.
By steps 2.1 and 2.2 the characteristic-function map is a bijection , so by [F5].
The set is uncountable. If it were at most countable, then for some or by [F5]; symmetry and transitivity of with step 3.1 would give or , so would be at most countable, contradicting [F6].
Therefore the binary sequences form a set equinumerous with and are uncountable, as claimed. The only objects constructed are the characteristic functions, defined by an explicit formula from , and the set , separated from by the condition ; at no point is an element selected from a nonempty family of sets, so no choice principle is used.
Remarks
-
The construction is the function-space form of Cantor's diagonal argument: reading as a subset of and as a binary sequence, the passage identifies with , and the diagonal set of Cantor's theorem: reappears here as the sequence that flips every diagonal bit.
-
This example is the case of the fact that infinite products of at-most-countable sets need not be at most countable, in agreement with is uncountable: the product is the power set in characteristic-function guise.
The rationals in an interval are countably infinite while the interval is uncountable
Example
Let be a complete ordered field (Complete ordered field (least-upper-bound property)), let be the canonical embedding and write (The unique embedding of ℚ into an ordered field). For in put and . Then
- (i) : the rationals of any nondegenerate interval are countably infinite (Finite, countably infinite, countable, uncountable, Equinumerous sets, and );
- (ii) is uncountable, although is an at most countable subset of that is dense in it (ℚ is dense in every Archimedean ordered field) and itself is uncountable (Every nondegenerate interval of is uncountable).
Cardinality and order-density are independent properties of a subset of . Both parts are theorems of ZF: the enumeration in (i) is built by a canonical least-index recursion, and (ii) interleaves two given enumerations.
Facts & Assumptions
Given: A complete ordered field (Complete ordered field (least-upper-bound property), Ordered field), reals , the canonical embedding with (The unique embedding of ℚ into an ordered field), and the sets (The image and the preimage of a set under a relation, Subset , proper subset , and the separation notation ).
is Archimedean (Every complete ordered field is Archimedean, Archimedean ordered field), and is injective, so and (The unique embedding of ℚ into an ordered field, is countably infinite, Equinumerous sets, and ).
Density: for any in there is with (ℚ is dense in every Archimedean ordered field). Applied with , this gives , and applied to with it gives an element of between them, so is dense in .
A subset of an at most countable set is at most countable (Every subset of an at most countable set is at most countable); a nonempty at most countable set is a surjective image of , and conversely a surjective image of is at most countable (A nonempty set is at most countable iff it is a surjective image of ).
Well-ordering: every nonempty subset of has a least element (The well-ordering principle). Recursion: for a set , and there is with and (The recursion theorem). Induction holds on (The principle of mathematical induction), and exactly when (On the order is membership: ). The inverse of a bijection is a bijection ( is a bijection if and only if there is a function with and ; such a is unique, equals the inverse relation , and is itself a bijection).
Schröder-Bernstein: injections both ways give a bijection (The Schröder-Bernstein theorem); means an injection exists (Equinumerous sets, and , Injection, surjection, bijection).
The open interval is uncountable: is not at most countable (Every nondegenerate interval of is uncountable, Finite, countably infinite, countable, uncountable).
Set algebra: exactly when and (The difference , the symmetric difference , and the complement relative to a set ); through the pairing of , whose inverse is a bijection .
Verification
is countably infinite. Since is injective, it is a bijection of onto its image ; by [F1] there is a bijection , and composing its inverse with exhibits a bijection . In particular is at most countable.
is at most countable, nonempty, and dense in . It is a subset of , so [F3] applies; it is nonempty and dense by [F2].
The step function is well defined on . Fix the bijection of step 1.1. For the set is nonempty by [F2] applied to , and it is a subset of , so it has a least element by [F4]; put , a rational with . Likewise is nonempty by [F2] applied to , and its least element gives the seed .
The recursion , produces a strictly increasing injection . Since maps into itself — and give — the recursion theorem applies with by [F4], and for all . Moreover for every by the defining property of , Inductively, implies : the case is vacuous, and gives , so either and the adjacent inequality applies, or and transitivity combines the induction hypothesis with . Distinct indices are comparable, hence is injective. Finally every value lies in .
Part (ii): is uncountable. Suppose were at most countable. If then is at most countable by step 2.1, contradicting [F6]. Otherwise , and then [F3] applies to and to , which are both nonempty at most countable — by step 2.1 — giving surjections . Define by and ; every element of lies in or in by [F7], so is onto. Composing with the bijection of [F7] gives a surjection , so is at most countable by [F3], contradicting [F6]. Hence is uncountable.
Therefore via the injection , and [F3] supplies a surjection since is nonempty and at most countable by step 2.1. The rule is an injection by [F4]: equal least indices have the same -value. Schröder-Bernstein therefore gives ; this is (i).
Collecting: by step 4.1, so the rationals of the interval are countably infinite; is dense in by step 2.1; and is uncountable by step 3.2 while is uncountable by [F6]. The increasing injection is defined by least elements of nonempty sets of naturals and a single recursion, and the two surjections in the interleaving are given by the criterion, so no choice principle is used.
Remarks
-
The two halves separate the two notions the interval carries: order-density (every subinterval meets the set) and cardinality (the set may be far smaller than the interval). The rationals of provide the first with the smallest possible infinite cardinality the second admits, while their complement is uncountable.
-
The recursion chooses the least index of a rational strictly between the current point and , so the increasing sequence is canonical once is fixed; the seed is the least-indexed rational of the interval. This sequence witnesses infinitude; it does not enumerate , since every term is at least while density supplies rationals in . Replacing "least" by "some" would silently use dependent choice, since the next rational depends on the current one.
The complement of an at most countable set of reals is uncountable
Example
Let be at most countable (Finite, countably infinite, countable, uncountable). Then is uncountable (Finite, countably infinite, countable, uncountable). In particular deleting finitely many reals, or all rationals, leaves an uncountable set (The irrationals are uncountable), even though the deleted set may be dense (ℚ is dense in every Archimedean ordered field). The proof is the two-set union argument and spends no choice principle — in contrast to the countable-union theorem on its parent page, which assumes the Axiom of Countable Choice for countable families.
Facts & Assumptions
Given: A complete ordered field (Complete ordered field (least-upper-bound property), Ordered field), the canonical embedding (The unique embedding of ℚ into an ordered field), and an at most countable set (Subset , proper subset , and the separation notation ).
is at most countable when is finite or countably infinite, and uncountable when it is not at most countable (Finite, countably infinite, countable, uncountable); a nonempty at most countable set is a surjective image of , and a surjective image of is at most countable (A nonempty set is at most countable iff it is a surjective image of , Injection, surjection, bijection).
admits no surjection from ; equivalently is uncountable ( is uncountable (Cantor's nested intervals, 1874), Finite, countably infinite, countable, uncountable).
exactly when and ; hence , because every either lies in or does not (The difference , the symmetric difference , and the complement relative to a set , The Axiom of Extensionality: ).
The pairing of gives a bijection (Equinumerous sets, and , Injection, surjection, bijection).
The rationals embedded in are at most countable: is injective and (The unique embedding of ℚ into an ordered field, is countably infinite). Since is complete, it is Archimedean (Every complete ordered field is Archimedean), so the embedded rationals are dense in (ℚ is dense in every Archimedean ordered field).
Verification
is nonempty. If it were empty then by [F3], so and would be at most countable, contradicting [F2].
Suppose, for contradiction, that were at most countable. If then is at most countable, contradicting [F2]; so . By step 1.1 the complement is nonempty too, so [F1] gives surjections and . Define by and . Every real lies in or in by [F3], and such a real is or , hence a value of ; so is onto. Composing with the bijection of [F4] gives a surjection , contradicting [F2]. Hence is not at most countable, that is, it is uncountable.
The special cases follow: if is finite then it is at most countable and is uncountable; if is the set of embedded rationals then is the set of irrationals, uncountable, and this agrees with The irrationals are uncountable; the deleted set may be dense, since the embedded rationals are dense by [F5], yet its complement is uncountable.
Therefore the complement of an at most countable subset of is uncountable. The argument instantiates at most two surjections existentially and uses the criterion A nonempty set is at most countable iff it is a surjective image of , whose own proof is choice-free, so no choice principle is used; this is why the result does not need the Axiom of Countable Choice that the countable-union theorem of this page assumes for general countable families.
Remarks
-
The two-set interleaving is the same device as in The rationals in an interval are countably infinite while the interval is uncountable: two given enumerations, one for each part, are combined into one surjection onto the union. Nothing about the structure of is used beyond its cardinality, so the statement applies verbatim to finite sets, to the rationals, and to any at most countable set of reals.
-
The contrast with Countable unions of at most countable sets, assuming is genuine and worth stating: that theorem assumes the Axiom of Countable Choice because it selects one surjection for each member of a countable family, whereas here the two surjections are finitely many and given, so the union of the two sets is handled by a single explicit pairing.
A nonempty surjective image of need not be equinumerous with
Statement refuted
Refuted claim: if and there is a surjection , then (A nonempty set is at most countable iff it is a surjective image of , Equinumerous sets, and ).
The witness is , the one-element set of the von Neumann naturals, with the constant map , (The natural numbers (von Neumann), The unordered pair and the singleton , A function is a relation with and implying ; , the value , domain and codomain). The map is surjective because , and is at most countable because it is finite: the identity is a bijection ; but , since is equinumerous with no natural number (The pigeonhole principle on , claim 4). So a nonempty at most countable set need not be countably infinite: the enumeration a surjection provides may repeat values, and here it must (Finite, countably infinite, countable, uncountable, Injection, surjection, bijection).
Facts & Assumptions
Given: The von Neumann naturals with , (The natural numbers (von Neumann)), the set (The unordered pair and the singleton ), and the set of ordered pairs (The Cartesian product ).
is a function with and values in : a function from to is a set of ordered pairs with domain whose range is contained in (A function is a relation with and implying ; , the value , domain and codomain, The Cartesian product ).
, so differs from (The von Neumann naturals form a Peano system).
for every , in particular : claim 4 of The pigeonhole principle on .
is finite when for some , and at most countable when it is finite or countably infinite (Finite, countably infinite, countable, uncountable); is reflexive and transitive, and a surjection is a function whose image is the whole codomain (Equinumerous sets, and , Injection, surjection, bijection).
Counterexample
via the identity map of , so is finite and hence at most countable; also because by [F1].
The set is a function : every is paired with the single value , so has domain , and its only value lies in by [F1]. It is surjective, since every element of is for every , for instance .
: if there were a bijection then transitivity of with step 1.1 would give with , contradicting [F4].
The refuted claim therefore fails: is nonempty and there is a surjection by step 1.2, yet by step 2.1; and is at most countable by step 1.1. Moreover the repeated value is forced: while by [F3], so is not injective and no choice of enumeration can make this function one-to-one.
Remarks
-
The point of the counterexample is the exact failure mode of the onto criterion A nonempty set is at most countable iff it is a surjective image of : a surjection from need not be injective, so the at-most-countable set it presents can be finite, and the criterion's converse direction (which produces an injection by least preimages) is what actually recovers a bijection with when the set is infinite.
-
The same witness shows that "at most countable" is strictly weaker than "countably infinite" and that "there is a surjection from " does not by itself upgrade to equinumerosity with .
The empty set is at most countable but no function from is onto it
Statement refuted
Refuted claim: every at most countable set is a surjective image of .
The witness is , which is finite, hence at most countable (Finite, countably infinite, countable, uncountable); but there is no function at all (A function is a relation with and implying ; , the value , domain and codomain). So the hypothesis cannot be dropped from the forward direction of A nonempty set is at most countable iff it is a surjective image of : is at most countable, yet it has no surjection from (Equinumerous sets, and , Injection, surjection, bijection).
Facts & Assumptions
Given: The empty set (There is exactly one set with no elements, written ) and the naturals with (The natural numbers (von Neumann)).
is finite when for some ; , so holds exactly when ; and finite sets are at most countable (Finite, countably infinite, countable, uncountable, The natural numbers (von Neumann), Equinumerous sets, and ).
A function from to is a set of ordered pairs with and ; equivalently with (A function is a relation with and implying ; , the value , domain and codomain, The Cartesian product , Relation, , , , and the specialisations "relation from to " and "relation on ").
The empty function is the empty set, and is a function with empty domain and empty range; it is a bijection (A function is a relation with and implying ; , the value , domain and codomain, Relation, , , , and the specialisations "relation from to " and "relation on ").
A bijection is in particular a surjection, and an at most countable nonempty set has a surjection from by the onto criterion; the criterion as stated assumes (Injection, surjection, bijection, A nonempty set is at most countable iff it is a surjective image of ).
Counterexample
via the empty function, so is finite and hence at most countable.
No function exists. If were one, then ; the product is empty, so and , which is not since while has no elements. Equivalently, a value would have to be an element of .
Hence is at most countable by step 1.1 but no function, and in particular no surjection, maps onto it by step 1.2, so the refuted claim fails and the nonemptiness hypothesis in the forward direction of A nonempty set is at most countable iff it is a surjective image of cannot be dropped.
Remarks
- The failure is not about repetition of values, as in A nonempty surjective image of need not be equinumerous with , but about totality: a function out of must assign a value to , and there is no value to assign. This is exactly the empty case that the onto criterion A nonempty set is at most countable iff it is a surjective image of separates out.
An explicit enumeration of the rationals, with repetitions and then without them
Example
Writing from and for the bijection of , the map the composition of with the inverse of the successor bijection , is a bijection (The von Neumann naturals form a Peano system, is a bijection if and only if there is a function with and ; such a is unique, equals the inverse relation , and is itself a bijection). For decode twice, writing and , let be the integer of the difference-pair construction of The integers as equivalence classes of pairs of naturals, write for the image of under the canonical embedding of The naturals embed in the integers, and put This is a completely specified surjection with , , , (The rationals as equivalence classes of pairs of integers). Its least-first-occurrence subsequence is a bijection . No lowest-terms convention, no gcd, no choice from an infinite family and no unspecified enumeration is used.
Facts & Assumptions
Given: The naturals with and successor (The natural numbers (von Neumann)), the integers with classes (The integers as equivalence classes of pairs of naturals), the map of into (The naturals embed in the integers), the rationals as classes of pairs of integers with (The rationals as equivalence classes of pairs of integers), and the pairing ().
is a bijection and is a bijection ; hence exists, is a bijection, and is a bijection (, The von Neumann naturals form a Peano system, is a bijection if and only if there is a function with and ; such a is unique, equals the inverse relation , and is itself a bijection, Injection, surjection, bijection). In particular is the unique pair with .
Every integer is a class with , since is the quotient of ; the class is the zero of (The integers as equivalence classes of pairs of naturals, Arithmetic on the integers).
The map is injective and preserves addition, multiplication and order; its image is exactly the set of nonnegative integers, so the integers are exactly the with (The naturals embed in the integers).
Every rational has a representative with : if the second component is positive one takes it as it is, and otherwise has positive second component (Every rational has a positive-denominator representative). A class with is a rational (The rationals as equivalence classes of pairs of integers).
is a class: equal rationals have equal representatives up to the relation, so writing "the" class of a computed pair is legitimate (The rationals as equivalence classes of pairs of integers); and contains an injective copy of : the composite of the embeddings and is injective (The naturals embed in the integers, The integers embed in the rationals).
Well-ordering: every nonempty subset of has a least element (The well-ordering principle); no injection exists, so is not equinumerous with any natural number (The pigeonhole principle on ).
A subset of that is bounded above by some is finite, and an unbounded one is countably infinite, enumerated increasingly: there is a bijection with whenever (Every subset of an at most countable set is at most countable). Here means , so a subset bounded above by is a subset of (On the order is membership: ).
is countably infinite when , and means a bijection exists (Finite, countably infinite, countable, uncountable, Equinumerous sets, and ); a composite of bijections is a bijection, and a function with domain and a rule is defined by the rule (A function is a relation with and implying ; , the value , domain and codomain, Injection, surjection, bijection).
Verification
is a bijection : by [F1], is a composite of the bijection with the bijection , and is exactly its value, being the value of on . Hence for every the pair is defined and unique, and same for iterated decoding.
The map is a well-defined function with the displayed rule. For , step 1.1 gives unique with , then unique with , so is a well-defined integer by [F2]. Since by [F1] and the embedding is injective, is a nonzero integer, so is a legitimate pair of integers with nonzero second component and is a rational, the class being formed by The rationals as equivalence classes of pairs of integers; all clauses are given by formulas, so is a function.
The first values: because , so where and , giving . Next , so and , giving . Next , so , and . Next , so , and gives , so .
is surjective. Let . By [F4] fix a representative of with ; by [F2] write with ; by [F3] write with , and because and preserves order. Then for some (Every nonzero natural number is a successor), so . Put and ; then and , so and . Hence every rational is a value of .
Let , the set of first occurrences of values of , a subset of by Separation. Then is infinite. Indeed, by [F5] the map is an injection ; for each the set is nonempty by step 3.1 and has a least element by [F6]. Each lies in , since for minimality gives ; and is injective because is. An injection rules out for any : composing it with a bijection would be an injection , whose restriction to would be an injection , which [F6] forbids.
is unbounded in . If were bounded above by some , then by [F7] and would be finite by [F7], contradicting step 4.1.
By step 5.1 and [F7] there is an increasing bijection : it is the increasing enumeration of the unbounded set , with whenever .
The composite is injective. If then by step 6.1, and means for every ; taking gives .
The composite is surjective. Let ; by step 3.1 there is with , and exists by [F6]. Then , because any has by minimality, and is onto by step 6.1, so for some and .
Therefore is a bijection by steps 7.1 and 7.2, so and is countably infinite by [F8]. Every object was built by an explicit formula — the pairing , the decoded pairs, the classes, the least elements and the increasing enumeration of — so no choice principle is used.
Remarks
-
The two stages are visible in the two constructions: is an explicit enumeration with repetitions, and records the positions at which a value genuinely appears for the first time, so that is the same enumeration with repetitions deleted. The deletion uses the least element of a nonempty set of naturals at each stage, never an arbitrary choice.
-
The numerator is not reduced with respect to the denominator, and no gcd is introduced anywhere: representatives are used as they come out of the difference-pair construction of and the positive-denominator form of . This is all the enumeration needs.
A real coefficient list of degree d has at most d real roots
Statement
Let and let be real numbers with (Complete ordered field (least-upper-bound property)). Using the finite sums of Finite sums and finite products, by recursion and the natural powers of Integer powers , put
the list always being read as the sequence that is for and for . Let . Then is finite of cardinality at most : there is with and (Finite, countably infinite, countable, uncountable, Equinumerous sets, and ). For this says .
This is a statement about finite coefficient lists and their evaluations: it requires neither a polynomial-ring construction nor any choice axiom. Only field arithmetic, finite sums and induction are used, and if one single root is instantiated existentially, never a family of choices. It is the local prerequisite for the algebraic-number example on this page.
Facts & Assumptions
Given: A natural number , reals with , and the sequence with for and otherwise; is the complete ordered field (Complete ordered field (least-upper-bound property), Ordered field, Field), with finite sums as in Finite sums and finite products, by recursion and powers as in Integer powers . We prove, by strong induction on , the claim
Field arithmetic: implies or (A field has no zero divisors: or ); (Multiplication by zero: ); addition, subtraction and multiplication obey the usual distributivity and associativity laws, and implies .
Finite sums (Finite sums and finite products, by recursion): , , and a general block is for , the empty block being . Powers: and .
Finite sum laws (Laws of finite sums and finite products): additivity , scaling , splitting for , and products of sums in distribute over addition in the standard way used below.
Strong induction (Strong (complete) induction).
Naturals (The natural numbers (von Neumann), Addition of natural numbers, Order on the natural numbers, On the order is membership: , Discreteness: is the immediate successor, Every natural number is a transitive set and is not a member of itself, is a linear order on ): ; and ; ; ; ; ; is reflexive, antisymmetric and transitive, so composes and gives ; and gives , because implies .
Finite sets and cardinality (Finite, countably infinite, countable, uncountable, Equinumerous sets, and , Injection, surjection, bijection): is finite when for some ; is symmetric and transitive; the restriction of a bijection to a subset is a bijection onto the image of that subset; and .
Set notation (Subset , proper subset , and the separation notation , The difference , the symmetric difference , and the complement relative to a set ): exactly when and , and means every element of lies in .
Proof
Subsets of a natural number, with a cardinal bound. For every and every there is with and . By strong induction on : for we have , so and . For , assume the claim for every and let . If then , so the hypothesis at gives with , and composes to . If , then , so the hypothesis at gives and a bijection . Extend to by and for : the values of all lie in while , so is a new value and the extension is injective, and it is onto , so ; moreover gives . In both cases has the required cardinal bound, so the claim holds by strong induction.
Base case . Let . Since , the recursion for finite sums gives for every , and . Hence with , which is .
The divided coefficients. Assume now , so , and fix , so that ; write for , a finite sum of reals, and . Then (i) ; and (ii) for , splitting the sum , using scaling and the definition of the block sums. So is again of the displayed form, with an explicit coefficient list of degree whose top coefficient is nonzero.
The constant term. Scaling (ii) of step 1.3 by or, directly from the definition, . Adding and using the splitting of at gives , that is .
Induction hypothesis for . The coefficient list has by step 1.3, so the strong induction hypothesis at applies to it: the zero set satisfies for some with .
The factorisation . Because , splitting each sum at its last index gives and . Therefore, by scaling, additivity and subtraction, . Replacing by in the first trailing block, , so the two trailing blocks combine into by step 1.3(ii); and by step 1.3(i) while by step 2.1. Hence , again by splitting.
Every root of other than is a root of . If and , then by step 3.1, and , so by [F1]. Hence , i.e. .
sits in together with possibly . By step 4.1, every either equals or lies in ; that is, .
Case . Then , so by step 5.1. Transport along a bijection from step 2.2: the image satisfies by restriction of , and step 1.1 applied to gives with ; then by transitivity, and , so .
Case . Extend a bijection from step 2.2 to by and for : the values of all lie in while , so is injective, and it is onto . Hence , and by step 5.1; restriction of to gives with , and step 1.1 applied at gives with , so ; finally gives by [F5], so .
Since or , steps 6.1 and 6.2 give: for the fixed there is with and .
The induction step . Let and let with be a list, with zero set . If then and , so holds for this list. Otherwise ; instantiating one existentially, the construction of steps 1.3 through 7.1 produces with . In both cases holds.
Conclusion. is step 1.2, and for every is step 8.1, so by strong induction holds for every ; applied to the given list, the zero set of is finite of cardinality at most , as claimed. If the hypothesis reads and step 1.2 gives . No step selects from a family: at most one root is instantiated, and all coefficients are given by explicit finite sums.
Remarks
-
The division is honest synthetic division. Writing the coefficients from the top down, and , the identity with holds for every , not only at , and the case needs no division: step 2.1 uses only multiplication by .
-
The final count is explicit rather than decreed. Step 1.1 shows by induction that a subset of a natural number is equinumerous with some , which is exactly what the two case counts in steps 6.1 and 6.2 consume; no separate appeal to a counting principle is needed.
Real algebraic numbers are countably infinite, without choice
Example
Call real algebraic when
for some and some finite list of integers with , the integers being embedded in along (The integers as equivalence classes of pairs of naturals, The rationals as equivalence classes of pairs of integers, The integers embed in the rationals, The unique embedding of ℚ into an ordered field, Finite sums and finite products, by recursion, Integer powers ). Let be the set of real algebraic numbers. Then:
- (i) is countably infinite; an injection is specified below by the least integer-code of a coefficient list having as a root, paired with the position of in the increasing listing of that list's finite real root set;
- (ii) every rational number, embedded in , lies in ;
- (iii) is uncountable.
All of this is a theorem of ZF: the coding of valid coefficient lists is an explicit surjection, the least code and the increasing root listing are canonical, and the only enumerations used in (iii) are two existentially given surjections. No claim about algebraic closures or complex algebraic numbers is made; the ambient field here is .
Facts & Assumptions
Given: a complete ordered field (Complete ordered field (least-upper-bound property), Ordered field, Field); the integers and the rationals (The integers as equivalence classes of pairs of naturals, The rationals as equivalence classes of pairs of integers); the embedding of in (The naturals embed in the integers), the embedding (The integers embed in the rationals) and the unique injective order-preserving field homomorphism (The unique embedding of ℚ into an ordered field). Write for the image of .
The coding: is a bijection , and , where , is a surjection onto ; both are given by explicit formulas (An explicit enumeration of the rationals, with repetitions and then without them, , The integers as equivalence classes of pairs of naturals, Injection, surjection, bijection).
Decoding: for write ; the recursion theorem gives the unique with and , and with the decoded coefficients are for (The recursion theorem, A function is a relation with and implying ; , the value , domain and codomain). The fallback is used when : the code then denotes the constant list , whose polynomial has no zeros. This decoding is total: every produces a list (The Axiom Schema of Separation: for each formula , , The Axiom Schema of Replacement: for each formula , if defines a class function on then its image on is a set for the sets of decoded values).
The local root bound: for and reals with , the zero set is finite of cardinality at most (A real coefficient list of degree d has at most d real roots).
Finite subsets and listings: every nonempty finite subset of has a maximum and a minimum (The nonempty finite subsets of are exactly the listable ones); a subset of an at most countable set is at most countable (Every subset of an at most countable set is at most countable); the order of is a linear order, so it is total, antisymmetric and transitive (Ordered field, Complete ordered field (least-upper-bound property)).
Cardinality language: means a bijection exists, and is symmetric and transitive; a set is finite when it is equinumerous with some natural number, countably infinite when it is equinumerous with , and at most countable when it is one of the two (Equinumerous sets, and , Finite, countably infinite, countable, uncountable); a finite set is equinumerous with exactly one natural number (The pigeonhole principle on , claim 3); is injective (The von Neumann naturals form a Peano system); and for every (Every natural number is a transitive set and is not a member of itself).
For a nonempty set : is at most countable if and only if there is a surjection (A nonempty set is at most countable iff it is a surjective image of ); and if and then (The Schröder-Bernstein theorem, Equinumerous sets, and ). admits no surjection from ( is uncountable (Cantor's nested intervals, 1874)).
Field arithmetic of the embeddings: is a field homomorphism, so , , , , and it is injective; the operations on are well defined on classes, and for a representative of a rational one has in (The unique embedding of ℚ into an ordered field, Arithmetic on the rationals, Rational arithmetic is well defined, The rationals as equivalence classes of pairs of integers, Field).
Well-ordering: every nonempty subset of has a least element (The well-ordering principle); and every is for some (Every nonzero natural number is a successor). Induction is The principle of mathematical induction; the successor map is an order-preserving bijection from onto by On the order is membership: and the Peano properties in [F5].
Verification
The decoding is total and assigns to every a finite list of integers. For , [F2] gives with and the sequences ; then is an integer for each , so is a finite integer list. Define when , and when ; in both cases is given by a finite sum of real powers, and is a set by Separation. Finally is a set by Separation; every element of this set is real algebraic, since a fallback code has no roots. The converse follows from the coefficient coding below.
Unique increasing listings. For every finite and its unique with , there is exactly one increasing bijection . Prove this by induction on . At , and the empty function is the unique listing. At , let , which exists by [F4]. Transport into a subset of using a bijection ; [F4] makes finite, say . Extending a bijection by gives , because . Uniqueness of finite cardinality and successor injectivity give by [F5]. The induction hypothesis, including the empty case, gives an increasing bijection . Define and for . By [F8] these clauses cover ; they give a bijection and preserve order because is strictly below every member of and successor preserves the index order. For uniqueness, any increasing bijection sends to ; deleting this value gives an increasing bijection , unique by the induction hypothesis.
Every valid list is coded. Given integers with , define for each . These sets are nonempty by [F1], and [F8] supplies unique least values, so the finite function is defined without choice. Form and backwards for . To justify this finite recursion with a total self-map, carry a counter and an accumulator , start at , and send to when , leaving the state fixed when . Recursion on yields after steps. Put . Induction on gives and , so code has exactly the coefficients and does not use the fallback. Thus every valid integer list occurs. Together with step 1.1 this identifies with the set of real algebraic numbers. The encoding is generally many-to-one, since different tails or integer representatives can decode to the same list.
For every the root set is finite, and if the decoded list has then is equinumerous with some . In the fallback case we have and . Otherwise , since the composite embedding is injective and ; the polynomial is exactly the evaluation of the real coefficient list with nonzero top coefficient, so [F3] applies and is finite of cardinality at most .
is at most countable. Every lies in for some , so the least such exists by [F8]; write . Then is finite by step 2.2 and nonempty, say with , and by step 1.2 it has a unique increasing listing ; define , the position of in that listing. Define . Then is injective: if , injectivity of gives and , and both and are the value of the same unique listing. Hence is a bijection of onto the subset , and every subset of is at most countable by [F4], so is at most countable.
Every embedded rational lies in . Let and fix a representative with . Applying the construction of step 2.1 to the integer list , of degree with , produces a code whose decoded polynomial is . By [F7], , because in , that is . Hence .
. The composite embedding , , is injective, as a composite of injective maps; and for every , since for the rational by step 3.2. So is an injection .
By step 3.1 there is an injection , and by step 4.1 there is an injection ; Schröder-Bernstein gives , so is countably infinite.
is uncountable. Suppose it were at most countable. If then by step 5.1, contradicting [F6]. Otherwise is nonempty, so by [F6] fix a surjection ; by step 5.1 fix a bijection . Define by and ; every real is in or in , elements of are values , and elements of are values , so is onto. Composing with the bijection inverse to gives a surjection , contradicting [F6]. Hence is uncountable.
Collecting the results: is countably infinite by step 5.1, every embedded rational lies in by step 3.2, and is uncountable by step 6.1. The injection of step 3.1 is the least-code-and-root-rank map , and the only selections made anywhere are least elements of nonempty sets of naturals and the unique increasing listings of finite root sets, so the argument is a theorem of ZF.
Remarks
-
The role of the local root bound A real coefficient list of degree d has at most d real roots is exactly to make each coded list have a finite root set, so that the increasing listing and the position exist. Without it the least-code map would still be defined but its injectivity argument would have no canonical second coordinate.
-
The fallback clause at a top coefficient keeps the decoding total: every natural number is a code, possibly of the constant polynomial , which has no roots. Invalid codes therefore contribute nothing to , while every genuine list appears by step 2.1.
-
No completion or algebraic-closure operation is used, and no claim is made about complex roots: the field in play is and the roots counted are real roots only. This is the convention of the source exercise, which concerns real coefficient lists.
Cantor diagonal construction misses every prescribed list of binary sequences
Example
Given any function , write and define by if and if . Then differs from at coordinate for every , so is outside the range of . In particular no prescribed list of binary sequences is onto, and since is nonempty this gives once more that it is uncountable (Finite, countably infinite, countable, uncountable, A nonempty set is at most countable iff it is a surjective image of ). This is a direct choice-free diagonal construction, not a decimal expansion argument; no sum, limit or real digit convention is required.
Facts & Assumptions
Given: The naturals with and (The natural numbers (von Neumann)), the unordered pair (The unordered pair and the singleton ), the set of binary sequences (The set of all functions , For sets and the collection of all functions is a set, being a subset of ), and an arbitrary function .
is a function , so and the expression is meaningful; exactly when or (A function is a relation with and implying ; , the value , domain and codomain, The unordered pair and the singleton ).
Separation: for a set and a property of its elements, is a set whose elements are exactly those with the property (The Axiom Schema of Separation: for each formula , ); ordered pairs lie in (The Cartesian product ).
Two functions with the same domain are equal exactly when they take the same value at every point of that domain; and a function is onto its codomain when every element of the codomain is a value of (A function is a relation with and implying ; , the value , domain and codomain, Injection, surjection, bijection).
A nonempty at most countable set has a surjection from (A nonempty set is at most countable iff it is a surjective image of , Finite, countably infinite, countable, uncountable); is nonempty, for instance the constant function is an element of it.
Verification
The set exists by Separation and is a function with when and when . Indeed, for each the value is or by [F1], the alternatives and are mutually exclusive by [F2], and each branch assigns exactly one value; both values lie in .
For every one has . If then by [F2]; if then by [F2]. These are the only two cases by [F1].
For every the functions and differ, because at the point their values differ by step 2.1; hence is not a value of , that is, is outside the range of . So is not onto , and no prescribed list of binary sequences is onto.
Consequently is uncountable: it is nonempty by [F5], so if it were at most countable, [F5] would produce a surjection , which step 3.1 forbids.
Therefore every list of binary sequences omits at least the complementary diagonal sequence constructed above, and the set of binary sequences is uncountable. The only set introduced is , separated from by a condition that determines each value uniquely; no element is selected from a nonempty family, so no choice principle is used.
Remarks
-
The construction complements the diagonal entry: at coordinate it looks at the -th value of the -th listed sequence and writes the other symbol. Every listed sequence is contradicted at its own index, so the resulting sequence cannot be on the list.
-
This is the literal diagonal argument that accompanies the characteristic-function bijection of The set of binary sequences is equinumerous with , hence uncountable; there the uncountability was transferred from , here it is produced directly from the diagonal sequence, with no appeal to decimal expansions.
Sources
- John K. Hunter, An Introduction to Real Analysis (complete author-hosted lecture notes, 307 pp.)
- Jiri Lebl, Basic Analysis I: Introduction to Real Analysis, Volume I (author-hosted complete book PDF)
- John K. Hunter, An Introduction to Real Analysis (complete author-hosted lecture notes)
- Jiri Lebl, Basic Analysis I, Volume I (complete author-hosted textbook)