Every pair of natural numbers has a maximum, itself a natural number. Given arbitrary , choose . Then , and any satisfying also satisfies . All three clauses of hold. Thus
This explicitly supplies the witness required by the existential quantifier for every pair chosen by the two universal quantifiers.
Here the direction of the divisibility relation matters: means . The first two clauses say that is a common divisor of . The last clause says that every common divisor divides . These are precisely the defining properties of the greatest common divisor. Choose ; then
Hence
This also holds if the natural numbers include zero: use and . Every natural number divides zero, so for the last clause remains true. In the order obtained by reversing divisibility, the greatest common divisor is the least upper bound.
The first two clauses now require and . Thus they already imply . Choose, for example, ; no natural number can satisfy both equations. Consequently the existential quantifier fails for this pair, irrespective of the universally quantified final clause, and
In fact even fails, since has no solution among the natural numbers.
Mathematical induction has two obligations. Establish the base case if the natural numbers start at zero, or if they start at one. Then prove the induction step: for an arbitrary natural in the relevant range, assume and deduce .
The base case starts the chain, and the step propagates truth to every subsequent natural number:
The two constructors encode a natural number by its number of successors. Structural recursion replaces the zero constructor by zero and every successor by one addition:
convert :: Natural -> Integer
convert Zero     = 0
convert (Succ n) = 1 + convert n
Structural induction gives . The output uses unbounded integers, so there is no machine-word overflow.
Enumerate finite shells of constant coordinate sum:
triples :: [(Integer, Integer, Integer)]
triples =
  [(a, b, k-a-b) |
     k <- [0..],
     a <- [0..k],
     b <- [0..k-a]]
Here natural numbers include zero. Every generated coordinate is nonnegative. Conversely, a given triple occurs in exactly the shell and at exactly those loop indices . Each shell contains only finitely many triples, so every triple is reached after finitely many earlier outputs. This is fair enumeration, unlike nesting three unrestricted infinite lists. For the positive-integer convention, add one to each generated coordinate.
Put , avoiding any dependence on whether the convention includes among the natural numbers. Under set inclusion, the results are
FamilyMaximumLeast upper bound in
NoneNone
None
The set union of all three-element subsets of is . An upper bound for under set inclusion would have to contain this entire infinite set, whereas members of are finite. Thus has no upper bound and hence no maximum or least upper bound.
For , every member is a subset of the finite set , and itself belongs to , making it both maximum and least upper bound. The union of the three-element subsets of is again , so is the least upper bound of . It is not a member of that family, and no three-element member contains all the others, so there is no maximum.
Not injective; its image of a function is exactly . For example, both and give the ceiling function value . Since , , so the value is never attained. For every positive integer ,
Each such interval is nonempty and contained in , with the upper endpoint excluded when . Thus the answer concerning surjectivity depends on the convention for the natural numbers: onto if , and not onto if . The source does not settle that convention.
Peano arithmetic Created 2026-09-24 Updated 2026-11-05
Peano arithmetic is the first-order theory obtained by adding the full first-order induction schema to Robinson arithmetic. For each arithmetic first-order formula , include the universal closure in its parameter variables of
The schema supplies one axiom for every formula; it does not quantify over arbitrary subsets of the universe. The order relation can be added by a defining axiom such as .
For example, induction on proves , complementing the axiom . Despite its intended interpretation in the natural numbers, Peano arithmetic also has non-standard models of arithmetic by the compactness theorem. First-order induction reaches every definable subset satisfying its hypotheses, without making the theory categorical.[ref]
Pi-1 soundness 2026-10-31
Pi-1 soundness means that every closed Pi-1 theorem is true in the standard natural numbers. Consistency plus bounded completeness implies it, since a false universal bounded statement has a standard counterexample whose arithmetic verification is provable. It is weaker than full soundness and does not prevent a consistent arithmetic theory from proving a false Sigma-1 sentence.
Prime-tuple upper bound from the Selberg sieve Created 2026-10-03 Updated 2026-11-05
For distinct natural numbers ,
Exclude the fixed primes dividing some so that the polynomial has exactly roots modulo every remaining prime, then apply the Selberg upper-bound sieve with level .
Primitive recursive pairing function Created 2026-10-06 Updated 2026-10-14
A primitive recursive pairing function is a pairing function whose encoding function and both coordinate functions of its inverse function are primitive recursive functions. Thus the bijection can be used in either direction inside a construction by primitive recursion and function composition in recursion theory. A decoder that is merely a computable function would not establish this stronger closure property. Sutner's definition of a primitive recursive pairing system explicitly includes the decoding functions; his more general systems need only be injective, whereas a pairing function here is a bijection.[ref]
The Cantor pairing function is a primitive recursive pairing function. For its encoding, construct the triangular numbers directly by primitive recursion:
Since addition is primitive recursive, so are and by primitive recursion and function composition in recursion theory. This establishes the claim without treating division by two as an unexplained primitive operation.
For decoding, use bounded minimization to define
The bound is valid for every natural number : , so the candidate always succeeds. The search includes zero; when , it immediately returns . If , the preceding candidate failed, which gives ; when , that lower inequality follows from . Thus this search finds exactly the diagonal in the Cantor pairing function inverse, with
The comparison is primitive recursive, and bounded minimization of a primitive recursive predicate is primitive recursive. Therefore is a primitive recursive function. Recover the coordinates by
In constructions on the natural numbers, implement these subtractions using the primitive recursive operation : apply the predecessor function times to by primitive recursion. On these inputs it agrees with ordinary subtraction, since the diagonal inequalities imply . Consequently and are primitive recursive functions, and . Zimmermann proves the relevant closure under bounded minimization and the primitive recursive character of the Cantor encoding and coordinate decoding; his convention adds the first coordinate, so its coordinates are exchanged relative to here.[ref]
For a worked bounded minimization, take . Candidates give , none exceeding . Candidate gives , so , , and . The search bound was ; it terminates much earlier in this example. The bound proves membership in the primitive recursive functions; it is not a claim that scanning all candidates is the fastest implementation.
For each fixed , define a tuple encoder by
Each and each coordinate decoder is primitive recursive, by finitely many applications of function composition in recursion theory to . For the three-entry tuple encoded as , applying returns , applying returns , and then , . The tuple length remains part of the agreed convention, as explained for a general pairing function.
This makes primitive recursive pairing functions useful for encoding several evolving values as one state in primitive recursion. For example, store consecutive Fibonacci numbers as and update by
The codes start , decoding to . Every step uses primitive recursive encoding, decoding and addition; a single numerical state therefore carries the two values needed for the next step. This is also the reason a suitable Gödel numbering should permit sufficiently simple decoding: representation should preserve the class of functions being studied.
Program index 2026-11-05
A program index is a natural number encoding a program in a fixed effective enumeration of programs, often written for the corresponding partial computable functions. The meaning of an index depends on the chosen programming model and enumeration; may be undefined because program does not halt on input .
The universal partial computable function simulates the indexed program: whenever that computation halts. Two different indices can compute the same partial function, because different program texts can implement identical behavior. Equality of indices is therefore a syntactic test, whereas equality of computed functions is a semantic property.
The halting problem becomes the question whether is defined. Encoding programs as numbers also permits diagonal arguments, such as constructing a computation that uses its own index as input. These arguments concern a specified effective enumeration, rather than assuming every sequence of functions can be uniformly simulated.
Assume that a proposed statement fails for some natural number, and choose the least failing index using the well-ordering principle. Prove the necessary base cases and reduce the least failure to a smaller index that must satisfy the statement. If that smaller case implies the alleged failure also satisfies it, there is a contradiction. Reductions by a step larger than one require enough consecutive base cases to cover every possible residue class.
Rado graph 2026-10-14
The Rado graph is the unique countably infinite graph with the two-uniform hypergraph extension property. Equivalently, for any disjoint finite vertex sets , some new vertex is adjacent to every member of and no member of . The back-and-forth method proves uniqueness. Independent edge sampling on the natural numbers with any fixed produces this graph almost surely. It contains both edges and nonedges and therefore is not a complete graph. Its first-order axioms constitute the theory of the random graph.
Given an initial value and a specified successor rule on a set, there is a unique function on the natural numbers with that initial value and successor rule. Finite compatible approximations give existence; induction gives agreement of any two approximations and uniqueness. Recursive definitions of addition and multiplication apply this theorem with the other argument fixed.
Work inside a transitive model of ZFC with . Choose a bijection and encode its membership relation by a set of ordinals . Use a canonical ordinal pairing that is definable in the constructible universe, rather than an arbitrary pairing available only in : put the code of into exactly when .
The relative constructible universe can decode every section , and hence contains every real number of . Conversely , so the two models have the same sets of natural numbers. In particular they have the same , because a countable ordinal is witnessed by a real coding a well-order. A bijection in between its reals and would then also be such a bijection in , contradicting the assumed cardinality of the real numbers. Thus need not satisfy the Continuum hypothesis. The essential point is that a freely chosen parameter can carry an entire enumeration of the ground-model reals.
Second-order arithmetic 2026-10-06
Second-order arithmetic has variables for natural numbers and for sets of natural numbers. Subsystems restrict comprehension and induction; arithmetical transfinite recursion theory is one important subsystem stronger than the first-order system Peano arithmetic.
Self-delimiting binary code Created 2026-10-06 Updated 2026-10-13
A self-delimiting code permits a decoder to identify the end of a code without an external length marker. Encoding a binary word of length by ones, a zero and the word uses bits. This yields an description of a natural number in an incompressibility proof.
Semiring Created 2026-10-05 Updated 2026-10-06
A semiring has a commutative monoid operation and a monoid operation , with multiplication distributing over addition on both sides and absorbing multiplication. Additive inverses are not required. The natural numbers with their usual addition and multiplication are a basic example. Regarding multiplication as composition yields a one-object category with commutative-monoid enrichment.