Alphabeta Math
ExampleConstruction: AI-adaptedVerification: AI-generatedPipeline-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.

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.

Depends on

Used by

Dependency tree · two levels

70 results within two dependency steps of this one, each drawn at its shortest distance from it. An arrow runs from a result to what uses it, so the chart reads left to right and ends at this result, which carries a heavier outline. Every node is a link to that result. Click elsewhere on the chart to enlarge it.

Sources