Alphabeta Math
Pipeline-generated
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

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.

3 · Logical flowchart

4 · Definitions, theorems and proofs

None yet.

5 · Examples, counterexamples and false statements

ExampleConstruction: Literature-sourcedVerification: AI-generatedjudge pass (gpt-6.1-sol)Open item page →

The integers are countably infinite: Z≈N

Example

Z≈N (Equinumerous sets, A≈B and A⪯B): 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 n↦[(n,0)] is injective (The naturals embed in the integers), and the quotient map π(a,b)=[(a,b)] is a surjective function N×N→Z (Let ∼ be an equivalence relation on A with quotient map π:A→A/∼, and let f:A→B. There is a function g:A/∼→B with g∘π=f if and only if a∼a′ implies f(a)=f(a′); and such a g is then unique, The integers as equivalence classes of pairs of naturals); composing π with the bijection β of N×N≈N exhibits Z as a surjective image of N, and A nonempty set is at most countable iff it is a surjective image of N then supplies an injection Z→N explicitly as j(x)=min⁡{ k∈N:π(β(k))=x }. 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 Z×Z is at most countable as well.

Facts & Assumptions

Given: The naturals N (The natural numbers N (von Neumann)), the integers Z=(N×N)/∼ with classes [(a,b)] for the equivalence relation (a,b)∼(c,d)  ⟺  a+d=b+c (The integers as equivalence classes of pairs of naturals, The integer-defining relation is an equivalence relation), the embedding n↦[(n,0)] of N in Z (The naturals embed in the integers), and the quotient map π={ ((a,b),C):C=[(a,b)] } (Let ∼ be an equivalence relation on A with quotient map π:A→A/∼, and let f:A→B. There is a function g:A/∼→B with g∘π=f if and only if a∼a′ implies f(a)=f(a′); and such a g is then unique).

[F1]

The map n↦[(n,0)] is injective (The naturals embed in the integers).

[F3]

N×N≈N: there is a bijection β:N→N×N, the inverse of the exhibited bijection N×N→N (N×N≈N, Equinumerous sets, A≈B and A⪯B, Injection, surjection, bijection).

[F4]

For a nonempty set A: A is at most countable if and only if there is a surjection s:N→A, and from such an s the rule j(a)=min⁡{ k∈N:s(k)=a } defines an injection A→N (A nonempty set is at most countable iff it is a surjective image of N).

[F5]

If A⪯B and B⪯A then A≈B (The Schröder-Bernstein theorem); if A and B are at most countable then so is A×B (A product of two at most countable sets is at most countable).

[F6]

A is countably infinite when A≈N and at most countable when it is finite or countably infinite (Finite, countably infinite, countable, uncountable); A⪯B means an injection A→B exists (Equinumerous sets, A≈B and A⪯B); a composite of surjections is a surjection (Injection, surjection, bijection, A function is a relation f with (a,b)∈f and (a,c)∈f implying b=c; f:A→B, the value f(a), domain and codomain).

Verification

technique · direct
1.1F2

π is a surjective function N×N→Z: 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.

1.2F3

β:N→N×N is a bijection, and in particular a surjection.

1.3F1F6

The map n↦[(n,0)] is an injection N→Z, so N⪯Z.

2.1step 1.1step 1.2F6

The composite π∘β:N→Z is a surjection, as a composite of the surjections β and π; hence Z is a surjective image of N, and Z≠∅ because [(0,0)]∈Z.

3.1step 2.1F4

Applying [F4] to the nonempty set Z and the surjection π∘β of step 2.1 gives an injection j:Z→N, explicitly j(x)=min⁡{ k∈N:π(β(k))=x }; hence Z⪯N.

4.1step 1.3step 3.1F5F6

Since N⪯Z by step 1.3 and Z⪯N by step 3.1, Schröder-Bernstein gives Z≈N, so the integers are countably infinite.

5.1step 4.1F4F5∎

With step 4.1, both Z and Z are at most countable, so their product Z×Z is at most countable by [F5]. The injection j 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 N×N is the same device that will enumerate Q: Z is a quotient of N×N, 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 Z→N.

  • For each fixed positive integer k, the product of k copies of Z is at most countable, by k−1 applications of A product of two at most countable sets is at most countable.

ExampleConstruction: Literature-sourcedVerification: AI-generatedjudge pass (gpt-6.1-sol)Open item page →

Deleting one point of a countably infinite set leaves a set equinumerous with it

Example

Let X be countably infinite (Finite, countably infinite, countable, uncountable) and let x∈X. Then X≈X∖{x} (Equinumerous sets, A≈B and A⪯B): deleting one point leaves a set of the same size, and X∖{x} is a proper subset of X (Subset x⊆y, proper subset x⊊y, and the separation notation { z∈x:φ(z) }, The difference a∖b, the symmetric difference a△b, and the complement X∖a relative to a set X). The basic instance is X=N, x=0, where the successor map σ is a bijection N→N∖{0} (The von Neumann naturals form a Peano system, Every nonzero natural number is a successor); a general X transports a shift of N along a bijection N→X. No finite set shares the behaviour: by claim 5 of The pigeonhole principle on N no finite set is equinumerous with a proper subset of itself. No choice principle is used.

Facts & Assumptions

Given: A countably infinite set X and a point x∈X; the von Neumann naturals N=ω with 0=∅ and successor σ (The natural numbers N (von Neumann)); and the additive order m≤n  ⟺  ∃k∈N (m+k=n), m<n  ⟺  (m≤n and m≠n) (Order on the natural numbers). Write A≈B when a bijection A→B exists (Equinumerous sets, A≈B and A⪯B).

[F1]

X is countably infinite exactly when X≈N (Finite, countably infinite, countable, uncountable).

[F2]

σ is injective, σ(n)≠0 for every n∈N, and every n≠0 equals σ(m) for some m∈N (The von Neumann naturals form a Peano system, Every nonzero natural number is a successor).

[F3]

Discreteness and linearity of the order: m<n  ⟺  σ(m)≤n for all m,n∈N (Discreteness: σ(n) is the immediate successor); ≤ is reflexive, antisymmetric, transitive and total (≤ is a linear order on N); and m+0=m, m+σ(k)=σ(m+k) for all m,k (Addition of natural numbers).

[F4]

Exactly one of m<n, m=n, n<m holds (Trichotomy of the order on N).

[F6]

Claim 5 of The pigeonhole principle on N: if A⊆n and n≈A for a natural number n, then A=n; transporting along a bijection, no finite set is equinumerous with a proper subset of itself.

[F8]

The image and preimage of a set under a function (The image R[A] and the preimage R−1[B] of a set under a relation): f[S]={ f(s):s∈S }, and if f is injective then t∈f[S] has exactly one preimage in S.

Verification

technique · direct
1.1F3F4construct

For n∈N put φn:={ (k,v)∈N×N:(k<n∧v=k)∨(n≤k∧v=σ(k)) }, a set by Separation, and read it as a map. It is a function N→N∖{n}. Indeed, for each k∈N the two clauses are exhaustive and mutually exclusive: if k<n then n≤k fails, since k<n gives k≤n and k≠n while n≤k would let antisymmetry give k=n; and if k<n fails then k=n or n<k by trichotomy, so n≤k holds by reflexivity or by n<k implying n≤k. Hence exactly one value v is paired with k, and v is k∈N or σ(k)∈N, so dom⁡φn=N. The values avoid n: in the first clause v=k≠n; in the second clause v=σ(k)≠n, because σ(k)=n≤k would give σ(k)≤k and hence k<k by discreteness, which is impossible since k<k would require k≠k.

1.2F7

X∖{x} is a proper subset of X. By [F7] it is a subset of X; it differs from X because x∈X while x∉X∖{x}, as x=x.

1.3F5F6

No finite set is equinumerous with a proper subset of itself. Let F be finite, let A⊆F with A≠F, and suppose towards a contradiction that h:F→A is a bijection. Fix k∈N and a bijection ψ:F→k, possible since F is finite. Then A≈ψ[A] via the restriction of ψ to A by [F5], and ψ[A]≈A≈F≈k by symmetry and transitivity of ≈, so ψ[A]⊆k satisfies k≈ψ[A]; claim 5 of [F6] gives ψ[A]=k. Then F⊆A: for f∈F the value ψ(f)∈k=ψ[A] equals ψ(a) for some a∈A, so f=a by injectivity of ψ. With A⊆F this gives A=F, contradicting A≠F.

1.4F2

For X=N and x=0 the witness is the successor map: σ is injective and never zero by [F2], so it is a function N→N∖{0}, and it is onto N∖{0} because every n≠0 is a successor by [F2]. Hence σ is a bijection N→N∖{0}.

1.5F1F5F8

Since X is countably infinite, [F1] supplies a bijection e:N→X; let n∈N with e(n)=x, which exists because e is onto. Then e[N∖{n}]=X∖{x}: if t=e(k) with k≠n then t≠x, since t=x=e(n) would force k=n by injectivity of e; conversely, if t∈X and t≠x, then t=e(k) for some k by surjectivity and k≠n since e(n)=x≠t.

2.1step 1.1F2F3F4

φn is injective. Let φn(k)=φn(l) and split each of k,l by trichotomy; the alternatives k=n and n<k both assign the value σ(k), and n≤k in both. If k<n and l<n the values are k and l, so k=l. If n≤k and n≤l the values are σ(k) and σ(l), so k=l by injectivity of σ. In a mixed case, say k<n and n≤l, the values are k and σ(l) with l=n or n<l: if l=n then k=σ(n)≤n because k<n gives k≤n, so σ(n)≤n and discreteness gives n<n, impossible; if n<l then k=σ(l)≤n, so discreteness gives l<n, contradicting n<l by trichotomy. The case n≤k with l<n is symmetric. Hence k=l in every case.

2.2step 1.5F5

The restriction e0 of e to N∖{n}, read as a map into X∖{x}, is a bijection N∖{n}→X∖{x}: it is injective, being a restriction of the injection e, and it is onto, since its image is e[N∖{n}]=X∖{x} by step 1.5.

3.1step 1.1step 2.1F2F3F4

φn is surjective onto N∖{n}. Let m∈N with m≠n. If m<n then φn(m)=m; if n<m then n≤m with n≠m, so m=n+j for some j≠0, j=σ(i) by [F2], and m=n+σ(i)=σ(n+i) by [F3]. Then k:=n+i satisfies n≤k (witnessed by i) and φn(k)=σ(k)=m. So φn is onto N∖{n}, and with step 2.1 it is a bijection N→N∖{n}.

4.1step 3.1step 2.2F5

The composite e0∘φn∘e−1:X→X∖{x} is a bijection: e−1 is a bijection X→N by [F5], φn is a bijection N→N∖{n} by step 3.1, and e0 is a bijection N∖{n}→X∖{x} by step 2.2, so by [F5] the composite is a bijection. Hence X≈X∖{x}.

5.1step 1.2step 1.3step 1.4step 4.1∎

Therefore X≈X∖{x} by step 4.1, the set X∖{x} is a proper subset of X by step 1.2, the case X=N, x=0 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 φn is the identity below n and the successor above it; the point n itself is absorbed into the second clause, and the value n is skipped. Deleting x from X is exactly conjugating this one missing value through the bijection e.

  • The contrast with finite sets is the reason the example is worth stating: The pigeonhole principle on N 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.

ExampleConstruction: Literature-sourcedVerification: AI-generatedjudge pass (gpt-6.1-sol)Open item page →

P(N) is uncountable

Example

The power set P(N) is uncountable (Finite, countably infinite, countable, uncountable): there is no surjection N→P(N) (Cantor's theorem: A≺P(A)), so N≺P(N) (Equinumerous sets, A≈B and A⪯B). The proof combines Cantor's theorem with The Schröder-Bernstein theorem: the map n↦{n} is injective (The unordered pair {x,y} and the singleton {x}={x,x}, {a,b}={c,d} if and only if (a=c and b=d) or (a=d and b=c); in particular {a}={c,d} if and only if a=c=d), so N⪯P(N); and if P(N) were at most countable then P(N)⪯N, so Schröder-Bernstein would give a bijection P(N)→N, hence a surjection N→P(N), contradicting Cantor's theorem. No choice principle is used.

Facts & Assumptions

Given: The von Neumann naturals N with 0=∅ and successor σ (The natural numbers N (von Neumann)), the order m<n  ⟺  m∈n with n={ m∈N:m<n } (Order on the natural numbers, On N the order is membership: m<n  ⟺  m∈n), and the power set P(N)={ z:z⊆N } (The power set P(x)={ z:z⊆x }).

[F1]

A is finite when A≈n for some n∈N, countably infinite when A≈N, at most countable when it is finite or countably infinite, and uncountable when it is not at most countable (Finite, countably infinite, countable, uncountable).

[F2]

A≈B means a bijection A→B exists, A⪯B means an injection A→B exists, and A≺B means A⪯B and not A≈B (Equinumerous sets, A≈B and A⪯B).

[F3]

Every element of a natural number is a natural number, and m⊆N for every m∈N (On N the order is membership: m<n  ⟺  m∈n).

[F5]

Cantor's theorem: there is no surjection A→P(A) for any set A (Cantor's theorem: A≺P(A)).

[F6]

Schröder-Bernstein: if A⪯B and B⪯A then A≈B (The Schröder-Bernstein theorem).

Verification

technique · direct
1.1F3F4F7

The map s:N→P(N), s(n)={n}, is well defined because {n}⊆N by [F3], and it is injective: if {n}={m} then [F4] gives n=m directly. Hence N⪯P(N).

1.2F1F3F7

If P(N) is at most countable then P(N)⪯N. If P(N)≈N, any bijection P(N)→N is an injection. If instead P(N)≈m for some m∈N, fix a bijection ψ:P(N)→m; the inclusion map m→N is available by [F3] and is injective, and the composite of the two injections is an injection P(N)→N. These are the two alternatives in [F1].

2.1step 1.1step 1.2F5F6F7

Therefore P(N) is not at most countable. Suppose it were. Then P(N)⪯N by step 1.2 and N⪯P(N) by step 1.1, so [F6] supplies a bijection P(N)→N; its inverse is a bijection N→P(N) by [F7], hence a surjection N→P(N), contradicting Cantor's theorem [F5].

3.1step 1.1F1F2F5F7∎

Hence P(N) is uncountable, and N≺P(N): the injection of step 1.1 gives N⪯P(N), while N≈P(N) would give a bijection N→P(N) and hence a surjection, contradicting [F5]; so not N≈P(N) and the strict relation holds by [F2]. No step selects an element from a nonempty family: the only objects named are {n}, a fixed bijection, and its inverse.

Remarks

  • The argument is the statement of Cantor's theorem: A≺P(A) in the "strictly larger" form N≺P(N) instantiated at N; 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 P(N) is impossible for the same reason: a bijection P(N)→m would compose with the inclusion m⊆N to dominate P(N) by N, which step 2.1 rules out. No separate finite argument is needed.

ExampleConstruction: Literature-sourcedVerification: AI-generatedjudge pass (gpt-6.1-sol)Open item page →

The set of binary sequences is equinumerous with P(N), hence uncountable

Example

Let {0,1}N be the set of all functions N→{0,1}, where 0=∅ and 1=σ(0) (The set BA of all functions A→B, The unordered pair {x,y} and the singleton {x}={x,x}). The map S↦χS sending S⊆N to its characteristic function, χS(n)=1 for n∈S and χS(n)=0 for n∉S, is a bijection P(N)→{0,1}N (The power set P(x)={ z:z⊆x }, Injection, surjection, bijection). Hence {0,1}N≈P(N) (Equinumerous sets, A≈B and A⪯B) and the set of binary sequences is uncountable (Finite, countably infinite, countable, uncountable, P(N) 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 N with 0=∅ and 1=σ(0) (The natural numbers N (von Neumann)), the unordered pair {0,1} (The unordered pair {x,y} and the singleton {x}={x,x}), and the set {0,1}N of functions N→{0,1} (The set BA of all functions A→B, For sets A and B the collection of all functions A→B is a set, being a subset of P(A×B)). Membership in {0,1} is membership in N: t∈{0,1} exactly when t=0 or t=1.

[F1]

1≠0, since 1=σ(0) and σ(n)≠0 for every n∈N (The von Neumann naturals form a Peano system).

[F2]

Separation and set notation: for a set X and a property, { z∈X:φ(z) } is the set of elements of X with that property (The Axiom Schema of Separation: for each formula φ, ∀pˉ ∀x ∃y ∀z (z∈y↔(z∈x∧φ(z,pˉ)))); S⊆N means every element of S is an element of N, and P(N)={ z:z⊆N } (Subset x⊆y, proper subset x⊊y, and the separation notation { z∈x:φ(z) }, The power set P(x)={ z:z⊆x }).

[F3]

A function is a relation with a unique value at each point of its domain; f:A→B means dom⁡f=A and ran⁡f⊆B; and two functions with the same domain and the same values are equal (A function is a relation f with (a,b)∈f and (a,c)∈f implying b=c; f:A→B, the value f(a), domain and codomain, The Axiom of Extensionality: ∀x ∀y (∀z (z∈x↔z∈y)→x=y)). Ordered pairs are those of the Cartesian product A×B (The Cartesian product A×B:={ z∈P(P(A∪B)):∃a∈A ∃b∈B z=(a,b) }).

[F5]

A≈B means a bijection A→B exists; ≈ is symmetric and transitive (Equinumerous sets, A≈B and A⪯B); A is finite when A≈n for some n∈N, countably infinite when A≈N, at most countable when it is one of the two, and uncountable when it is not at most countable (Finite, countably infinite, countable, uncountable).

[F6]

P(N) is uncountable (P(N) is uncountable).

Verification

technique · direct
1.1F2F3givenconstruct

For S⊆N the set χS:={ (n,v)∈N×{0,1}:(n∈S∧v=1)∨(n∉S∧v=0) } exists by Separation, and it is a function N→{0,1} with χS(n)=1 for n∈S and χS(n)=0 for n∉S. Indeed, for each n∈N exactly one of n∈S, n∉S holds, so exactly one value v∈{0,1} is related to n, namely 1 in the first case and 0 in the second; and 0,1∈{0,1} by the definition of the unordered pair.

2.1step 1.1F1F3

The assignment S↦χS is injective. If χS=χT as sets of ordered pairs, then for every n∈N one has n∈S iff χS(n)=1 iff χT(n)=1 iff n∈T: the outer equivalences are step 1.1, and in the middle, a function value that is not 1 is 0, which differs from 1 by [F1], so χT(n)=1 holds exactly when χT(n)≠0, that is exactly when n∈T. Hence S=T by Extensionality of sets.

2.2step 1.1F2F3

The assignment S↦χS is surjective. Let f:N→{0,1} and put Sf:={ n∈N:f(n)=1 }, a subset of N by Separation. For each n, either f(n)=1 or f(n)=0 because f(n)∈{0,1}; in the first case n∈Sf and step 1.1 gives χSf(n)=1=f(n), and in the second case n∉Sf and χSf(n)=0=f(n). Thus χSf and f have the same domain N and the same values, so they are equal by [F3], and f is in the image of the assignment.

3.1step 2.1step 2.2F4F5

By steps 2.1 and 2.2 the characteristic-function map is a bijection P(N)→{0,1}N, so {0,1}N≈P(N) by [F5].

4.1step 3.1F5F6

The set {0,1}N is uncountable. If it were at most countable, then {0,1}N≈m for some m∈N or {0,1}N≈N by [F5]; symmetry and transitivity of ≈ with step 3.1 would give P(N)≈m or P(N)≈N, so P(N) would be at most countable, contradicting [F6].

5.1step 3.1step 4.1∎

Therefore the binary sequences form a set equinumerous with P(N) and are uncountable, as claimed. The only objects constructed are the characteristic functions, defined by an explicit formula from S, and the set Sf, separated from N by the condition f(n)=1; 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 S as a subset of N and s(n)=χS(n) as a binary sequence, the passage S↦χS identifies P(N) with {0,1}N, and the diagonal set of Cantor's theorem: A≺P(A) reappears here as the sequence that flips every diagonal bit.

  • This example is the case A=N of the fact that infinite products of at-most-countable sets need not be at most countable, in agreement with P(N) is uncountable: the product is the power set in characteristic-function guise.

ExampleConstruction: Literature-sourcedVerification: AI-generatedjudge pass (gpt-6.1-sol)Open item page →

The rationals in an interval are countably infinite while the interval is uncountable

Example

Let R be a complete ordered field (Complete ordered field (least-upper-bound property)), let ε:Q→R be the canonical embedding and write QR=ε[Q] (The unique embedding of ℚ into an ordered field). For a<b in R put Sa,b={ x∈QR:a<x<b } and Ia,b={ x∈R:a<x<b }. Then

Cardinality and order-density are independent properties of a subset of R. 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

[F2]

Density: for any x<y in R there is q∈Q with x<ε(q)<y (ℚ is dense in every Archimedean ordered field). Applied with x:=a, y:=b this gives Sa,b≠∅, and applied to x<y with a≤x<y≤b it gives an element of Sa,b between them, so Sa,b is dense in Ia,b.

[F3]

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 N, and conversely a surjective image of N is at most countable (A nonempty set is at most countable iff it is a surjective image of N).

[F4]

Well-ordering: every nonempty subset of N has a least element (The well-ordering principle). Recursion: for a set X, x0∈X and F:X→X there is r:N→X with r(0)=x0 and r(σ(n))=F(r(n)) (The recursion theorem). Induction holds on N (The principle of mathematical induction), and m<σ(n) exactly when m≤n (On N the order is membership: m<n  ⟺  m∈n). The inverse of a bijection is a bijection (f:A→B is a bijection if and only if there is a function g:B→A with g∘f=ΔA and f∘g=ΔB; such a g is unique, equals the inverse relation f−1, and is itself a bijection).

[F5]

Schröder-Bernstein: injections both ways give a bijection (The Schröder-Bernstein theorem); A⪯B means an injection A→B exists (Equinumerous sets, A≈B and A⪯B, Injection, surjection, bijection).

[F6]

The open interval is uncountable: Ia,b is not at most countable (Every nondegenerate interval of R is uncountable, Finite, countably infinite, countable, uncountable).

[F7]

Set algebra: x∈Ia,b∖QR exactly when x∈Ia,b and x∉QR (The difference a∖b, the symmetric difference a△b, and the complement X∖a relative to a set X); N×N≈N through the pairing of N×N≈N, whose inverse is a bijection N→N×N.

Verification

technique · direct
1.1F1F4

QR is countably infinite. Since ε is injective, it is a bijection of Q onto its image QR; by [F1] there is a bijection Q→N, and composing its inverse with ε exhibits a bijection e:N→QR. In particular QR is at most countable.

2.1step 1.1F2F3

Sa,b is at most countable, nonempty, and dense in Ia,b. It is a subset of QR, so [F3] applies; it is nonempty and dense by [F2].

2.2step 1.1F2F4

The step function F is well defined on Ia,b. Fix the bijection e:N→QR of step 1.1. For x∈Ia,b the set { k∈N:x<e(k)<b } is nonempty by [F2] applied to x<b, and it is a subset of N, so it has a least element k(x) by [F4]; put F(x):=e(k(x)), a rational with x<F(x)<b. Likewise { k:a<e(k)<b } is nonempty by [F2] applied to a<b, and its least element k0 gives the seed r0:=e(k0)∈Sa,b.

3.1step 2.2F4

The recursion r(0):=r0, r(σ(n)):=F(r(n)) produces a strictly increasing injection r:N→Sa,b. Since F maps Ia,b into itself — x<F(x)<b and a<x give a<F(x) — the recursion theorem applies with X=Ia,b by [F4], and r(n)∈Ia,b for all n. Moreover r(n)<r(σ(n)) for every n by the defining property of F, Inductively, m<n implies r(m)<r(n): the case n=0 is vacuous, and m<σ(n) gives m≤n, so either m=n and the adjacent inequality applies, or m<n and transitivity combines the induction hypothesis with r(n)<r(σ(n)). Distinct indices are comparable, hence r is injective. Finally every value r(n) lies in QR∩Ia,b=Sa,b.

3.2step 2.1F3F6F7

Part (ii): C:=Ia,b∖QR is uncountable. Suppose C were at most countable. If C=∅ then Ia,b=Sa,b is at most countable by step 2.1, contradicting [F6]. Otherwise C≠∅, and then [F3] applies to Sa,b and to C, which are both nonempty at most countable — Sa,b by step 2.1 — giving surjections f,g:N→Sa,b,C. Define t:N×N→Ia,b by t(0,k):=f(k) and t(σ(i),k):=g(k); every element of Ia,b lies in Sa,b or in C by [F7], so t is onto. Composing t with the bijection N→N×N of [F7] gives a surjection N→Ia,b, so Ia,b is at most countable by [F3], contradicting [F6]. Hence C is uncountable.

4.1step 2.1step 3.1F3F4F5

Therefore N⪯Sa,b via the injection r, and [F3] supplies a surjection h:N→Sa,b since Sa,b is nonempty and at most countable by step 2.1. The rule x↦min⁡{k:h(k)=x} is an injection Sa,b→N by [F4]: equal least indices have the same h-value. Schröder-Bernstein therefore gives Sa,b≈N; this is (i).

5.1step 2.1step 4.1step 3.2F6∎

Collecting: Sa,b≈N by step 4.1, so the rationals of the interval are countably infinite; Sa,b is dense in Ia,b by step 2.1; and Ia,b∖QR is uncountable by step 3.2 while Ia,b is uncountable by [F6]. The increasing injection r 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 (a,b) 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 b, so the increasing sequence r is canonical once e is fixed; the seed is the least-indexed rational of the interval. This sequence witnesses infinitude; it does not enumerate Sa,b, since every term is at least r0 while density supplies rationals in (a,r0). Replacing "least" by "some" would silently use dependent choice, since the next rational depends on the current one.

ExampleConstruction: AI-adaptedVerification: AI-generatedOpen item page →

The complement of an at most countable set of reals is uncountable

Example

Let C⊆R be at most countable (Finite, countably infinite, countable, uncountable). Then R∖C 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

[F1]

A is at most countable when A 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 N, and a surjective image of N is at most countable (A nonempty set is at most countable iff it is a surjective image of N, Injection, surjection, bijection).

[F2]

R admits no surjection from N; equivalently R is uncountable (R is uncountable (Cantor's nested intervals, 1874), Finite, countably infinite, countable, uncountable).

[F3]
[F5]

The rationals embedded in R are at most countable: ε is injective and Q≈N (The unique embedding of ℚ into an ordered field, Q is countably infinite). Since R is complete, it is Archimedean (Every complete ordered field is Archimedean), so the embedded rationals are dense in R (ℚ is dense in every Archimedean ordered field).

Verification

technique · direct
1.1F1F2F3

R∖C is nonempty. If it were empty then R⊆C by [F3], so C=R and R would be at most countable, contradicting [F2].

2.1step 1.1F1F2F3F4

Suppose, for contradiction, that R∖C were at most countable. If C=∅ then R=R∖C is at most countable, contradicting [F2]; so C≠∅. By step 1.1 the complement is nonempty too, so [F1] gives surjections f:N→C and g:N→R∖C. Define t:N×N→R by t(0,k):=f(k) and t(σ(i),k):=g(k). Every real lies in C or in R∖C by [F3], and such a real is f(k) or g(k), hence a value of t; so t is onto. Composing with the bijection N→N×N of [F4] gives a surjection N→R, contradicting [F2]. Hence R∖C is not at most countable, that is, it is uncountable.

3.1F5step 2.1

The special cases follow: if C is finite then it is at most countable and R∖C is uncountable; if C is the set of embedded rationals then R∖C 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.

4.1step 2.1step 3.1F1∎

Therefore the complement of an at most countable subset of R 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 N, 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 C 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 ACω 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.

CounterexampleConstruction: AI-adaptedVerification: AI-generatedjudge pass (gpt-6.1-sol)Open item page →

A nonempty surjective image of N need not be equinumerous with N

Statement refuted

Refuted claim: if A≠∅ and there is a surjection N→A, then A≈N (A nonempty set is at most countable iff it is a surjective image of N, Equinumerous sets, A≈B and A⪯B).

The witness is A=σ(0)={0}=1, the one-element set of the von Neumann naturals, with the constant map c:N→A, c(n)=0 (The natural numbers N (von Neumann), The unordered pair {x,y} and the singleton {x}={x,x}, A function is a relation f with (a,b)∈f and (a,c)∈f implying b=c; f:A→B, the value f(a), domain and codomain). The map c is surjective because 0∈A, and A is at most countable because it is finite: the identity is a bijection A→σ(0); but A≉N, since N is equinumerous with no natural number (The pigeonhole principle on N, 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 0=∅, σ(n)=n∪{n} (The natural numbers N (von Neumann)), the set A=σ(0)={0} (The unordered pair {x,y} and the singleton {x}={x,x}), and the set c=N×{0} of ordered pairs (The Cartesian product A×B:={ z∈P(P(A∪B)):∃a∈A ∃b∈B z=(a,b) }).

[F3]

σ(0)≠0, so 1:=σ(0) differs from 0 (The von Neumann naturals form a Peano system).

[F4]

N≉n for every n∈N, in particular N≉1: claim 4 of The pigeonhole principle on N.

[F5]

A is finite when A≈n for some n∈N, 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, A≈B and A⪯B, Injection, surjection, bijection).

Counterexample

technique · direct
1.1F1F5

A≈σ(0)=1 via the identity map of A, so A is finite and hence at most countable; also A≠∅ because 0∈A by [F1].

1.2F1F2F5

The set c=N×{0} is a function N→A: every n∈N is paired with the single value 0, so c has domain N, and its only value 0 lies in A by [F1]. It is surjective, since every element of A is 0=c(n) for every n, for instance n=0.

2.1step 1.1F4F5

A≉N: if there were a bijection A→N then transitivity of ≈ with step 1.1 would give N≈1 with 1∈N, contradicting [F4].

3.1step 1.1step 1.2step 2.1F3∎

The refuted claim therefore fails: A is nonempty and there is a surjection N→A by step 1.2, yet A≉N by step 2.1; and A is at most countable by step 1.1. Moreover the repeated value is forced: c(0)=0=c(σ(0)) while 0≠σ(0) by [F3], so c 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 N: a surjection from N 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 A→N by least preimages) is what actually recovers a bijection with N 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 N" does not by itself upgrade to equinumerosity with N.

CounterexampleConstruction: AI-adaptedVerification: AI-generatedjudge pass (gpt-6.1-sol)Open item page →

The empty set is at most countable but no function from N is onto it

Statement refuted

Refuted claim: every at most countable set is a surjective image of N.

The witness is ∅, which is finite, hence at most countable (Finite, countably infinite, countable, uncountable); but there is no function N→∅ at all (A function is a relation f with (a,b)∈f and (a,c)∈f implying b=c; f:A→B, the value f(a), domain and codomain). So the hypothesis A≠∅ cannot be dropped from the forward direction of A nonempty set is at most countable iff it is a surjective image of N: ∅ is at most countable, yet it has no surjection from N (Equinumerous sets, A≈B and A⪯B, Injection, surjection, bijection).

Facts & Assumptions

Given: The empty set ∅ (There is exactly one set with no elements, written ∅) and the naturals N with 0=∅ (The natural numbers N (von Neumann)).

[F1]

A is finite when A≈n for some n∈N; 0=∅, so A≈0 holds exactly when A=∅; and finite sets are at most countable (Finite, countably infinite, countable, uncountable, The natural numbers N (von Neumann), Equinumerous sets, A≈B and A⪯B).

[F4]

A bijection is in particular a surjection, and an at most countable nonempty set has a surjection from N by the onto criterion; the criterion as stated assumes A≠∅ (Injection, surjection, bijection, A nonempty set is at most countable iff it is a surjective image of N).

Counterexample

technique · direct
1.1F1F3

∅≈0 via the empty function, so ∅ is finite and hence at most countable.

1.2F2given

No function f:N→∅ exists. If f were one, then f⊆N×∅; the product N×∅ is empty, so f=∅ and dom⁡f=∅, which is not N since 0∈N while ∅ has no elements. Equivalently, a value f(0) would have to be an element of ∅.

2.1step 1.1step 1.2F4∎

Hence ∅ is at most countable by step 1.1 but no function, and in particular no surjection, maps N 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 N cannot be dropped.

Remarks

ExampleConstruction: AI-adaptedVerification: AI-generatedOpen item page →

An explicit enumeration of the rationals, with repetitions and then without them

Example

Writing N from 0 and J0(m,n)=2m(2n+1) for the bijection N×N→N∖{0} of N×N≈N, the map J(m,n)=2m(2n+1)−1, the composition of J0 with the inverse of the successor bijection σ:N→N∖{0}, is a bijection N×N→N (The von Neumann naturals form a Peano system, f:A→B is a bijection if and only if there is a function g:B→A with g∘f=ΔA and f∘g=ΔB; such a g is unique, equals the inverse relation f−1, and is itself a bijection). For n∈N decode n twice, writing J−1(n)=(u,c) and J−1(u)=(a,b), let z(u)=[(a,b)] be the integer of the difference-pair construction of The integers as equivalence classes of pairs of naturals, write k‾:=[(k,0)]∈Z for the image of k∈N under the canonical embedding of The naturals embed in the integers, and put q(n)=[ (z(u), c+1‾) ]∈Q. This is a completely specified surjection N→Q with q(0)=0, q(1)=1, q(2)=0, q(3)=−1 (The rationals as equivalence classes of pairs of integers). Its least-first-occurrence subsequence j↦q(e(j)) is a bijection N→Q. No lowest-terms convention, no gcd, no choice from an infinite family and no unspecified enumeration is used.

Facts & Assumptions

Given: The naturals with 0=∅ and successor σ (The natural numbers N (von Neumann)), the integers Z=(N×N)/∼ with classes [(a,b)] (The integers as equivalence classes of pairs of naturals), the map k↦k‾=[(k,0)] of N into Z (The naturals embed in the integers), the rationals Q as classes [(p,v)] of pairs of integers with v≠0 (The rationals as equivalence classes of pairs of integers), and the pairing J0(m,n)=2m(2n+1) (N×N≈N).

[F1]

J0 is a bijection N×N→N∖{0} and σ is a bijection N→N∖{0}; hence σ−1 exists, is a bijection, and J(m,n)=2m(2n+1)−1=σ−1(J0(m,n)) is a bijection N×N→N (N×N≈N, The von Neumann naturals form a Peano system, f:A→B is a bijection if and only if there is a function g:B→A with g∘f=ΔA and f∘g=ΔB; such a g is unique, equals the inverse relation f−1, and is itself a bijection, Injection, surjection, bijection). In particular J−1(n) is the unique pair with J(J−1(n))=n.

[F2]

Every integer is a class [(a,b)] with a,b∈N, since Z is the quotient of N×N; the class [(0,0)] is the zero of Z (The integers as equivalence classes of pairs of naturals, Arithmetic on the integers).

[F3]

The map k↦k‾:=[(k,0)] is injective and preserves addition, multiplication and order; its image is exactly the set of nonnegative integers, so the integers v>0 are exactly the k‾ with k≠0 (The naturals embed in the integers).

[F4]

Every rational has a representative (p,v) with v>0: if the second component is positive one takes it as it is, and otherwise (p,v)∼(−p,−v) has positive second component (Every rational has a positive-denominator representative). A class [(p,v)] with v≠0 is a rational (The rationals as equivalence classes of pairs of integers).

[F5]

[−] 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 Q contains an injective copy of N: the composite n↦[(n‾,1)] of the embeddings k↦k‾ and j(k)=[(k,1)] is injective (The naturals embed in the integers, The integers embed in the rationals).

[F6]

Well-ordering: every nonempty subset of N has a least element (The well-ordering principle); no injection σ(t)→t exists, so N is not equinumerous with any natural number (The pigeonhole principle on N).

[F7]

A subset of N that is bounded above by some b∈N is finite, and an unbounded one is countably infinite, enumerated increasingly: there is a bijection e:N→S with e(i)<e(j) whenever i<j (Every subset of an at most countable set is at most countable). Here m≤b means m⊆b, so a subset bounded above by b is a subset of σ(b) (On N the order is membership: m<n  ⟺  m∈n).

[F8]

Q is countably infinite when Q≈N, and A≈B means a bijection exists (Finite, countably infinite, countable, uncountable, Equinumerous sets, A≈B and A⪯B); a composite of bijections is a bijection, and a function with domain N and a rule is defined by the rule (A function is a relation f with (a,b)∈f and (a,c)∈f implying b=c; f:A→B, the value f(a), domain and codomain, Injection, surjection, bijection).

Verification

technique · direct
1.1F1

J is a bijection N×N→N: by [F1], J=σ−1∘J0 is a composite of the bijection J0 with the bijection σ−1, and 2m(2n+1)−1 is exactly its value, −1 being the value of σ−1 on N∖{0}. Hence for every n∈N the pair J−1(n) is defined and unique, and same for iterated decoding.

2.1step 1.1F2F3F4

The map q is a well-defined function N→Q with the displayed rule. For n∈N, step 1.1 gives unique u,c∈N with J(u,c)=n, then unique a,b with J(a,b)=u, so z(u):=[(a,b)] is a well-defined integer by [F2]. Since c+1=σ(c)≠0 by [F1] and the embedding k↦k‾ is injective, c+1‾ is a nonzero integer, so (z(u),c+1‾) is a legitimate pair of integers with nonzero second component and q(n):=[(z(u),c+1‾)] is a rational, the class being formed by The rationals as equivalence classes of pairs of integers; all clauses are given by formulas, so q is a function.

2.2step 1.1F2F3

The first values: J−1(0)=(0,0) because J(0,0)=20⋅1−1=0, so q(0)=[(z(0),1‾)] where z(0)=[(0,0)]=0 and 1‾=1, giving q(0)=0. Next J(1,0)=2−1=1, so J−1(1)=(1,0) and z(1)=[(1,0)]=1, giving q(1)=[(1,1)]=1. Next J(0,1)=3−1=2, so J−1(2)=(0,1), z(0)=0 and q(2)=[(0,2‾)]=0. Next J(2,0)=4−1=3, so J−1(3)=(2,0), and J−1(2)=(0,1) gives z(2)=[(0,1)]=−1, so q(3)=[(−1,1‾)]=−1.

3.1step 1.1step 2.1F2F3F4

q is surjective. Let x∈Q. By [F4] fix a representative (p,v) of x with v>0; by [F2] write p=[(a,b)] with a,b∈N; by [F3] write v=k‾ with k∈N, and k≠0 because v>0=0‾ and k↦k‾ preserves order. Then k=σ(c) for some c∈N (Every nonzero natural number is a successor), so c+1=k. Put u:=J(a,b) and n:=J(u,c); then J−1(n)=(u,c) and J−1(u)=(a,b), so z(u)=[(a,b)]=p and q(n)=[(p,c+1‾)]=[(p,v)]=x. Hence every rational is a value of q.

4.1step 3.1F5F6

Let M:={ n∈N:for all k<n, q(k)≠q(n) }, the set of first occurrences of values of q, a subset of N by Separation. Then M is infinite. Indeed, by [F5] the map f(i):=[(i‾,1)] is an injection N→Q; for each i the set Ai:={ n∈N:q(n)=f(i) } is nonempty by step 3.1 and has a least element mi by [F6]. Each mi lies in M, since for k<mi minimality gives q(k)≠f(i)=q(mi); and i↦mi is injective because f is. An injection N→M rules out M≈t for any t∈N: composing it with a bijection M→t would be an injection N→t, whose restriction to σ(t) would be an injection σ(t)→t, which [F6] forbids.

5.1step 4.1F7

M is unbounded in N. If M were bounded above by some b∈N, then M⊆σ(b) by [F7] and M would be finite by [F7], contradicting step 4.1.

6.1step 5.1F7

By step 5.1 and [F7] there is an increasing bijection e:N→M: it is the increasing enumeration of the unbounded set M, with e(i)<e(j) whenever i<j.

7.1step 6.1

The composite j↦q(e(j)) is injective. If i<j then e(i)<e(j) by step 6.1, and e(j)∈M means q(k)≠q(e(j)) for every k<e(j); taking k=e(i) gives q(e(i))≠q(e(j)).

7.2step 3.1step 6.1F6

The composite j↦q(e(j)) is surjective. Let x∈Q; by step 3.1 there is n with q(n)=x, and k:=min⁡{ n:q(n)=x } exists by [F6]. Then k∈M, because any k′<k has q(k′)≠x=q(k) by minimality, and e is onto M by step 6.1, so k=e(j) for some j and x=q(k)=q(e(j)).

8.1step 7.1step 7.2F8∎

Therefore j↦q(e(j)) is a bijection N→Q by steps 7.1 and 7.2, so Q≈N and Q is countably infinite by [F8]. Every object was built by an explicit formula — the pairing J, the decoded pairs, the classes, the least elements and the increasing enumeration of M — so no choice principle is used.

Remarks

  • The two stages are visible in the two constructions: q is an explicit enumeration with repetitions, and M records the positions at which a value genuinely appears for the first time, so that q∘e 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 z(u) 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 Z and the positive-denominator form of Q. This is all the enumeration needs.

LemmaStatement: Literature-sourcedProof: AI-generatedOpen item page →

A real coefficient list of degree d has at most d real roots

Statement

Let d∈N and let a0,a1,…,ad be real numbers with ad≠0 (Complete ordered field (least-upper-bound property)). Using the finite sums of Finite sums and finite products, by recursion and the natural powers xk of Integer powers am, put

P(x)=∑k=0dakxk(x∈R),

the list always being read as the sequence that is ak for k≤d and 0 for k>d. Let Z=Z(P)={ x∈R:P(x)=0 }. Then Z is finite of cardinality at most d: there is m∈N with m≤d and Z≈m (Finite, countably infinite, countable, uncountable, Equinumerous sets, A≈B and A⪯B). For d=0 this says Z=∅.

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 Z≠∅ 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 d, reals a0,…,ad with ad≠0, and the sequence c with ck=ak for k<σ(d) and ck=0 otherwise; R is the complete ordered field (Complete ordered field (least-upper-bound property), Ordered field, Field), with finite sums ∑k<n as in Finite sums and finite products, by recursion and powers as in Integer powers am. We prove, by strong induction on d, the claim

C(d):for every list a0,…,ad with ad≠0, there is m∈N, m≤d, with Z≈m.

[F1]

Field arithmetic: ab=0 implies a=0 or b=0 (A field has no zero divisors: ab=0⇒a=0 or b=0); 0⋅a=0 (Multiplication by zero: 0⋅a=0); addition, subtraction and multiplication obey the usual distributivity and associativity laws, and a−b=0 implies a=b.

[F2]

Finite sums (Finite sums and finite products, by recursion): ∑k<0uk=0, ∑k<σ(n)uk=∑k<nuk+un, and a general block is ∑k=mnuk=∑j<d′um+j for d′=n+1−m, the empty block being 0. Powers: x0=1 and xn+1=xn⋅x.

[F3]

Finite sum laws (Laws of finite sums and finite products): additivity ∑k<n(uk+vk)=∑k<nuk+∑k<nvk, scaling ∑k<nλuk=λ∑k<nuk, splitting ∑k<nuk=∑k<muk+∑k=mn−1uk for m≤n, and products of sums in x distribute over addition in the standard way used below.

[F4]

Strong induction (Strong (complete) induction).

[F5]

Naturals (The natural numbers N (von Neumann), Addition of natural numbers, Order on the natural numbers, On N the order is membership: m<n  ⟺  m∈n, Discreteness: σ(n) is the immediate successor, Every natural number is a transitive set and is not a member of itself, ≤ is a linear order on N): σ(j)=j∪{j}; m<n  ⟺  m∈n and n={ m∈N:m<n }; m≤n  ⟺  m⊆n; m<n  ⟺  σ(m)≤n; j<σ(j); m∉m; ≤ is reflexive, antisymmetric and transitive, so ≤ composes and m′′≤m′≤e gives m′′≤e; and m≤e gives σ(m)≤σ(e), because m+k=e implies σ(m)+k=σ(m+k)=σ(e).

[F6]

Finite sets and cardinality (Finite, countably infinite, countable, uncountable, Equinumerous sets, A≈B and A⪯B, Injection, surjection, bijection): A is finite when A≈n for some n∈N; ≈ is symmetric and transitive; the restriction of a bijection to a subset is a bijection onto the image of that subset; and ∅≈0.

Proof

technique · induction
1.1F4F5F6F7

Subsets of a natural number, with a cardinal bound. For every m∈N and every S⊆m there is m′′∈N with m′′≤m and S≈m′′. By strong induction on m: for m=0 we have S⊆∅, so S=∅≈0 and 0≤0. For m=σ(j), assume the claim for every j′<m and let S⊆σ(j)=j∪{j}. If j∉S then S⊆j, so the hypothesis at j gives m′′≤j with S≈m′′, and m′′≤j<σ(j)=m composes to m′′≤m. If j∈S, then T:=S∖{j}⊆j, so the hypothesis at j gives m′′≤j and a bijection u:T→m′′. Extend u to u′:S→σ(m′′) by u′(j)=m′′ and u′(s)=u(s) for s≠j: the values of u all lie in m′′ while m′′∉m′′, so m′′ is a new value and the extension is injective, and it is onto m′′∪{m′′}=σ(m′′), so S≈σ(m′′); moreover m′′≤j gives σ(m′′)≤σ(j)=m. In both cases S has the required cardinal bound, so the claim holds by strong induction.

1.2F1F2F6base

Base case C(0). Let a0≠0. Since x0=1, the recursion for finite sums gives ∑k<1ckxk=∑k<0ckxk+c0x0=0+a0=a0 for every x, and a0≠0. Hence Z=∅≈0 with 0≤0, which is C(0).

1.3F1F2F3

The divided coefficients. Assume now d=σ(e), so d≥1, and fix r∈Z, so that P(r)=0; write bm:=∑j=0e−mam+1+jrj for m<d, a finite sum of reals, and Q(x):=∑m<dbmxm. Then (i) bd−1=be=∑j=00ae+1+jrj=adr0=ad≠0; and (ii) for 1≤k≤e, splitting the sum bk−1=∑j=0e−k+1ak+jrj=ak+∑j=1e−k+1ak+jrj=ak+r∑i=0e−kak+1+iri=ak+r bk, using scaling and the definition of the block sums. So Q is again of the displayed form, with an explicit coefficient list of degree e whose top coefficient be=ad is nonzero.

2.1step 1.3F1F2F3

The constant term. Scaling (ii) of step 1.3 by r or, directly from the definition, r b0=∑j=0er a1+jrj=∑j=0ea1+jrj+1=∑k=1dakrk. Adding a0 and using the splitting of ∑k<d+1 at k=1 gives a0+r b0=∑k=0dakrk=P(r)=0, that is r b0=−a0.

2.2step 1.3F4ih

Induction hypothesis for Q. The coefficient list b0,…,be has be=ad≠0 by step 1.3, so the strong induction hypothesis C(e) at e<d applies to it: the zero set W:={ x∈R:Q(x)=0 } satisfies W≈m′ for some m′∈N with m′≤e=d−1.

3.1step 1.3step 2.1F1F2F3

The factorisation P(x)=(x−r)Q(x). Because d=σ(e)=e+1, splitting each sum at its last index gives ∑m<dbmxm+1=∑m<ebmxm+1+bexe+1 and ∑m<drbmxm=rb0+∑m=1erbmxm. Therefore, by scaling, additivity and subtraction, (x−r)Q(x)=bexd+∑m<ebmxm+1−rb0−∑m=1erbmxm. Replacing m by m−1 in the first trailing block, ∑m<ebmxm+1=∑m=1ebm−1xm, so the two trailing blocks combine into ∑m=1e(bm−1−rbm)xm=∑m=1eamxm by step 1.3(ii); and be=ad by step 1.3(i) while rb0=−a0 by step 2.1. Hence (x−r)Q(x)=adxd+∑m=1eamxm+a0=∑k=0dakxk=P(x), again by splitting.

4.1step 3.1F1F7

Every root of P other than r is a root of Q. If x∈Z and x≠r, then (x−r)Q(x)=P(x)=0 by step 3.1, and x−r≠0, so Q(x)=0 by [F1]. Hence x∈W, i.e. Z∖{r}⊆W.

5.1step 4.1F7

Z sits in W together with possibly r. By step 4.1, every x∈Z either equals r or lies in W; that is, Z⊆{r}∪W.

6.1step 1.1step 2.2step 5.1F5F6

Case r∈W. Then {r}∪W=W, so Z⊆W by step 5.1. Transport along a bijection u:W→m′ from step 2.2: the image u[Z]⊆m′ satisfies u[Z]≈Z by restriction of u, and step 1.1 applied to u[Z]⊆m′ gives m′′≤m′ with u[Z]≈m′′; then Z≈m′′ by transitivity, and m′′≤m′≤e=d−1<d, so m′′≤d.

6.2step 1.1step 2.2step 5.1F5F6F7

Case r∉W. Extend a bijection u:W→m′ from step 2.2 to u′:W∪{r}→σ(m′) by u′(r)=m′ and u′(w)=u(w) for w∈W: the values of u all lie in m′ while m′∉m′, so u′ is injective, and it is onto m′∪{m′}=σ(m′). Hence W∪{r}≈σ(m′), and Z⊆{r}∪W=W∪{r} by step 5.1; restriction of u′ to Z gives Z≈u′[Z] with u′[Z]⊆σ(m′), and step 1.1 applied at σ(m′) gives m′′≤σ(m′) with u′[Z]≈m′′, so Z≈m′′; finally m′≤e gives σ(m′)≤σ(e)=d by [F5], so m′′≤d.

7.1step 6.1step 6.2

Since r∈W or r∉W, steps 6.1 and 6.2 give: for the fixed r∈Z there is m∈N with m≤d and Z≈m.

8.1step 7.1F6

The induction step C(e)⇒C(d). Let d=σ(e) and let a0,…,ad with ad≠0 be a list, with zero set Z. If Z=∅ then Z≈0 and 0≤d, so C(d) holds for this list. Otherwise Z≠∅; instantiating one r∈Z existentially, the construction of steps 1.3 through 7.1 produces m≤d with Z≈m. In both cases C(d) holds.

9.1step 1.2step 8.1F4discharge-induction: base step 1.2 and induction step 8.1∎

Conclusion. C(0) is step 1.2, and C(e)⇒C(σ(e)) for every e is step 8.1, so by strong induction C(d) holds for every d; applied to the given list, the zero set Z of P is finite of cardinality at most d, as claimed. If d=0 the hypothesis ad≠0 reads a0≠0 and step 1.2 gives Z=∅. No step selects from a family: at most one root is instantiated, and all coefficients bm are given by explicit finite sums.

Remarks

  • The division is honest synthetic division. Writing the coefficients from the top down, be=ad and bk−1=ak+rbk, the identity (x−r)Q(x)=P(x) with Q(x)=∑m<dbmxm holds for every x, not only at x=r, and the case r=0 needs no division: step 2.1 uses only multiplication by r.

  • The final count is explicit rather than decreed. Step 1.1 shows by induction that a subset of a natural number m is equinumerous with some m′′≤m, 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.

ExampleConstruction: Literature-sourcedVerification: AI-generatedjudge pass (gpt-6.1-sol)Open item page →

Real algebraic numbers are countably infinite, without choice

Example

Call x∈R real algebraic when

P(x)=∑k=0dakxk=0

for some d∈N and some finite list of integers a0,…,ad with ad≠0, the integers being embedded in R along Z→Q→R (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 am). Let A be the set of real algebraic numbers. Then:

  • (i) A is countably infinite; an injection A→N is specified below by the least integer-code of a coefficient list having x as a root, paired with the position of x in the increasing listing of that list's finite real root set;
  • (ii) every rational number, embedded in R, lies in A;
  • (iii) R∖A 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 R.

Facts & Assumptions

Given: R a complete ordered field (Complete ordered field (least-upper-bound property), Ordered field, Field); the integers Z=(N×N)/∼ and the rationals Q (The integers as equivalence classes of pairs of naturals, The rationals as equivalence classes of pairs of integers); the embedding k‾:=[(k,0)] of N in Z (The naturals embed in the integers), the embedding j:Z→Q (The integers embed in the rationals) and the unique injective order-preserving field homomorphism ε:Q→R (The unique embedding of ℚ into an ordered field). Write a∗:=ε(j(a))∈R for the image of a∈Z.

[F1]

The coding: J(m,n)=2m(2n+1)−1 is a bijection N×N→N, and z:N→Z, z(u)=[(a,b)] where (a,b)=J−1(u), is a surjection onto Z; both are given by explicit formulas (An explicit enumeration of the rationals, with repetitions and then without them, N×N≈N, The integers as equivalence classes of pairs of naturals, Injection, surjection, bijection).

[F2]

Decoding: for n∈N write J−1(n)=(d,s); the recursion theorem gives the unique T:N→N with T(0)=s and T(σ(k))=π2(J−1(T(k))), and with U(k):=π1(J−1(T(k))) the decoded coefficients are ak:=z(U(k)) for k≤d (The recursion theorem, A function is a relation f with (a,b)∈f and (a,c)∈f implying b=c; f:A→B, the value f(a), domain and codomain). The fallback is used when ad=0: the code then denotes the constant list (1), whose polynomial has no zeros. This decoding is total: every n produces a list a0,…,ad (The Axiom Schema of Separation: for each formula φ, ∀pˉ ∀x ∃y ∀z (z∈y↔(z∈x∧φ(z,pˉ))), The Axiom Schema of Replacement: for each formula φ, if φ defines a class function on A then its image on A is a set for the sets of decoded values).

[F3]

The local root bound: for d∈N and reals b0,…,bd with bd≠0, the zero set { x∈R:∑k=0dbkxk=0 } is finite of cardinality at most d (A real coefficient list of degree d has at most d real roots).

[F4]

Finite subsets and listings: every nonempty finite subset of R has a maximum and a minimum (The nonempty finite subsets of R 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 R is a linear order, so it is total, antisymmetric and transitive (Ordered field, Complete ordered field (least-upper-bound property)).

[F5]

Cardinality language: S≈t means a bijection S→t 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 N, and at most countable when it is one of the two (Equinumerous sets, A≈B and A⪯B, Finite, countably infinite, countable, uncountable); a finite set is equinumerous with exactly one natural number (The pigeonhole principle on N, claim 3); σ is injective (The von Neumann naturals form a Peano system); and n∉n for every n∈N (Every natural number is a transitive set and is not a member of itself).

[F6]

For a nonempty set S: S is at most countable if and only if there is a surjection N→S (A nonempty set is at most countable iff it is a surjective image of N); and if S1⪯S2 and S2⪯S1 then S1≈S2 (The Schröder-Bernstein theorem, Equinumerous sets, A≈B and A⪯B). R admits no surjection from N (R is uncountable (Cantor's nested intervals, 1874)).

[F7]

Field arithmetic of the embeddings: ε is a field homomorphism, so ε(u+v)=ε(u)+ε(v), ε(uv)=ε(u)ε(v), ε(0)=0, ε(1)=1, and it is injective; the operations on Q are well defined on classes, and for a representative (p,v) of a rational q one has v⋅q=p in Q (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).

[F8]

Well-ordering: every nonempty subset of N has a least element (The well-ordering principle); and every n≠0 is σ(m) for some m (Every nonzero natural number is a successor). Induction is The principle of mathematical induction; the successor map is an order-preserving bijection from m onto σ(m)∖{0} by On N the order is membership: m<n  ⟺  m∈n and the Peano properties in [F5].

Verification

technique · direct
1.1F1F2

The decoding is total and assigns to every n a finite list of integers. For n, [F2] gives d,s∈N with J−1(n)=(d,s) and the sequences T,U; then ak=z(U(k)) is an integer for each k≤d, so (a0,…,ad) is a finite integer list. Define Pn(x):=∑k=0dak∗xk when ad≠0, and Pn(x):=1 when ad=0; in both cases Pn:R→R is given by a finite sum of real powers, and Rn:={ x∈R:Pn(x)=0 } is a set by Separation. Finally A:={ x∈R:Pn(x)=0 for some n∈N } 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.

1.2F4F5F8

Unique increasing listings. For every finite S⊆R and its unique m∈N with S≈m, there is exactly one increasing bijection ℓ:m→S. Prove this by induction on m. At m=0, S=∅ and the empty function is the unique listing. At m=σ(m′), let s=min⁡S, which exists by [F4]. Transport T=S∖{s} into a subset of m using a bijection S→m; [F4] makes T finite, say T≈m′′. Extending a bijection T→m′′ by s↦m′′ gives S≈σ(m′′), because m′′∉m′′. Uniqueness of finite cardinality and successor injectivity give m′′=m′ by [F5]. The induction hypothesis, including the empty case, gives an increasing bijection ℓ′:m′→T. Define ℓ(0)=s and ℓ(σ(i))=ℓ′(i) for i∈m′. By [F8] these clauses cover σ(m′); they give a bijection and preserve order because s is strictly below every member of T and successor preserves the index order. For uniqueness, any increasing bijection sends 0 to min⁡S; deleting this value gives an increasing bijection m′→T, unique by the induction hypothesis.

2.1step 1.1F1F2F8

Every valid list is coded. Given integers a0,…,ad with ad≠0, define uk:=min⁡{u∈N:z(u)=ak} for each k≤d. These sets are nonempty by [F1], and [F8] supplies unique least values, so the finite function k↦uk is defined without choice. Form td+1=0 and tk=J(uk,tk+1) backwards for k=d,…,0. To justify this finite recursion with a total self-map, carry a counter j and an accumulator v, start at (0,0), and send (j,v) to (σ(j),J(ud−j,v)) when j≤d, leaving the state fixed when j>d. Recursion on N×N yields (d+1,t0) after d+1 steps. Put n=J(d,t0). Induction on k≤d gives T(k)=tk and U(k)=uk, so code n has exactly the coefficients ak=z(uk) and does not use the fallback. Thus every valid integer list occurs. Together with step 1.1 this identifies A 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.

2.2step 1.1F3F7

For every n∈N the root set Rn is finite, and if the decoded list has ad≠0 then Rn is equinumerous with some m≤d. In the fallback case ad=0 we have Pn=1 and Rn=∅. Otherwise ad∗≠0, since the composite embedding Z→Q→R is injective and ad≠0; the polynomial Pn is exactly the evaluation of the real coefficient list a0∗,…,ad∗ with nonzero top coefficient, so [F3] applies and Rn is finite of cardinality at most d.

3.1step 1.2step 2.2F1F4F5F8

A is at most countable. Every x∈A lies in Rn for some n, so the least such n exists by [F8]; write n(x):=min⁡{ n:Pn(x)=0 }. Then Rn(x) is finite by step 2.2 and nonempty, say Rn(x)≈m with m∈N, and by step 1.2 it has a unique increasing listing ℓn(x):m→Rn(x); define j(x):=ℓn(x)−1(x)∈m⊆N, the position of x in that listing. Define φ(x):=J(n(x),j(x))∈N. Then φ is injective: if φ(x)=φ(x′), injectivity of J gives n(x)=n(x′)=:n and j(x)=j(x′)=:i, and both x and x′ are the value ℓn(i) of the same unique listing. Hence φ is a bijection of A onto the subset φ[A]⊆N, and every subset of N is at most countable by [F4], so A is at most countable.

3.2step 2.1F7

Every embedded rational lies in A. Let q∈Q and fix a representative (p,v) with v≠0. Applying the construction of step 2.1 to the integer list (a0,a1):=(−p,v), of degree d=1 with a1=v≠0, produces a code n whose decoded polynomial is P(x)=(−p)∗+v∗x. By [F7], P(ε(q))=ε(j(−p))+ε(j(v))ε(q)=ε(j(−p)+j(v)q)=ε(0)=0, because j(−p)+j(v)q=0 in Q, that is v⋅q=p. Hence ε(q)∈A.

4.1step 3.2F5F7

N⪯A. The composite embedding g:N→R, g(m):=ε(j(m‾)), is injective, as a composite of injective maps; and g(m)∈A for every m, since g(m)=ε(q) for the rational q=j(m‾) by step 3.2. So g is an injection N→A.

5.1step 3.1step 4.1F5F6

By step 3.1 there is an injection A→N, and by step 4.1 there is an injection N→A; Schröder-Bernstein gives A≈N, so A is countably infinite.

6.1step 5.1F1F6

R∖A is uncountable. Suppose it were at most countable. If R∖A=∅ then R=A≈N by step 5.1, contradicting [F6]. Otherwise R∖A is nonempty, so by [F6] fix a surjection s:N→R∖A; by step 5.1 fix a bijection f:N→A. Define t:N×N→R by t(0,k):=f(k) and t(σ(i),k):=s(k); every real is in A or in R∖A, elements of A are values f(k), and elements of R∖A are values s(k)=t(σ(0),k), so t is onto. Composing t with the bijection β:N→N×N inverse to J gives a surjection N→R, contradicting [F6]. Hence R∖A is uncountable.

7.1step 3.2step 5.1step 6.1∎

Collecting the results: A is countably infinite by step 5.1, every embedded rational lies in A by step 3.2, and R∖A is uncountable by step 6.1. The injection of step 3.1 is the least-code-and-root-rank map x↦J(n(x),j(x)), 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 j(x) 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 ad=0 keeps the decoding total: every natural number is a code, possibly of the constant polynomial 1, which has no roots. Invalid codes therefore contribute nothing to A, 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 R and the roots counted are real roots only. This is the convention of the source exercise, which concerns real coefficient lists.

ExampleConstruction: Literature-sourcedVerification: AI-generatedjudge pass (gpt-6.1-sol)Open item page →

Cantor diagonal construction misses every prescribed list of binary sequences

Example

Given any function s:N→{0,1}N, write sn=s(n) and define d:N→{0,1} by d(n)=1 if sn(n)=0 and d(n)=0 if sn(n)=1. Then d differs from sn at coordinate n for every n, so d is outside the range of s. In particular no prescribed list of binary sequences is onto, and since {0,1}N 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 N). 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 N with 0=∅ and 1=σ(0) (The natural numbers N (von Neumann)), the unordered pair {0,1} (The unordered pair {x,y} and the singleton {x}={x,x}), the set of binary sequences {0,1}N (The set BA of all functions A→B, For sets A and B the collection of all functions A→B is a set, being a subset of P(A×B)), and an arbitrary function s:N→{0,1}N.

[F1]

s(n) is a function N→{0,1}, so s(n)(n)∈{0,1} and the expression sn(n) is meaningful; t∈{0,1} exactly when t=0 or t=1 (A function is a relation f with (a,b)∈f and (a,c)∈f implying b=c; f:A→B, the value f(a), domain and codomain, The unordered pair {x,y} and the singleton {x}={x,x}).

[F3]

Separation: for a set X and a property of its elements, { z∈X:φ(z) } is a set whose elements are exactly those z∈X with the property (The Axiom Schema of Separation: for each formula φ, ∀pˉ ∀x ∃y ∀z (z∈y↔(z∈x∧φ(z,pˉ)))); ordered pairs lie in X×Y (The Cartesian product A×B:={ z∈P(P(A∪B)):∃a∈A ∃b∈B z=(a,b) }).

[F4]

Two functions with the same domain are equal exactly when they take the same value at every point of that domain; and a function s is onto its codomain when every element of the codomain is a value of s (A function is a relation f with (a,b)∈f and (a,c)∈f implying b=c; f:A→B, the value f(a), domain and codomain, Injection, surjection, bijection).

[F5]

A nonempty at most countable set has a surjection from N (A nonempty set is at most countable iff it is a surjective image of N, Finite, countably infinite, countable, uncountable); {0,1}N is nonempty, for instance the constant function n↦0 is an element of it.

Verification

technique · direct
1.1F1F2F3givenconstruct

The set D:={ (n,v)∈N×{0,1}:(s(n)(n)=0∧v=1)∨(s(n)(n)=1∧v=0) } exists by Separation and is a function d:N→{0,1} with d(n)=1 when s(n)(n)=0 and d(n)=0 when s(n)(n)=1. Indeed, for each n the value s(n)(n) is 0 or 1 by [F1], the alternatives s(n)(n)=0 and s(n)(n)=1 are mutually exclusive by [F2], and each branch assigns exactly one value; both values lie in {0,1}.

2.1step 1.1F1F2

For every n∈N one has d(n)≠s(n)(n). If s(n)(n)=0 then d(n)=1≠0 by [F2]; if s(n)(n)=1 then d(n)=0≠1 by [F2]. These are the only two cases by [F1].

3.1step 2.1F4

For every n the functions d and s(n) differ, because at the point n their values differ by step 2.1; hence d is not a value of s, that is, d is outside the range of s. So s is not onto {0,1}N, and no prescribed list of binary sequences is onto.

4.1step 3.1F5

Consequently {0,1}N is uncountable: it is nonempty by [F5], so if it were at most countable, [F5] would produce a surjection N→{0,1}N, which step 3.1 forbids.

5.1step 3.1step 4.1∎

Therefore every list of binary sequences omits at least the complementary diagonal sequence d constructed above, and the set of binary sequences is uncountable. The only set introduced is D, separated from N×{0,1} 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 n it looks at the n-th value of the n-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 P(N), hence uncountable; there the uncountability was transferred from P(N), here it is produced directly from the diagonal sequence, with no appeal to decimal expansions.

Sources