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.
The Arithmetical Hierarchy and Post's Theorem
1 · Prerequisites
- Acceptable Numberings, the s-m-n Theorem, and Recursion
- Construction of the Natural Numbers
- Countability and Uncountability
- Decidable, Recognizable, and Enumerable Languages
- Diagonalization and the Halting Problem
- Finite Counting, Factorials and Binomial Coefficients
- Formal Languages, Encodings, and Decision Problems
- Linear Recurrences and Rational Generating Functions
- Primitive Recursive and Partial Computable Functions
- Relations, Functions, and Quotients
- Robust Machine Models and Universal Computation
- The ZFC Axioms and the Basic Set Constructions
- Turing Machines, Configurations, and Computation
2 · Summary
This page relates finite alternations of arithmetic quantifiers to finite iterations of oracle computation. The finite-query lemma is the bridge that keeps the oracle side genuinely finitary, and the final warning distinguishes pointwise convergence from an effective stabilization bound.
3 · Logical flowchart
4 · Definitions, theorems and proofs
Bounded arithmetic formulas
Definition
Work in the first-order language over the natural numbers of The natural numbers (von Neumann). A quantifier is bounded when it has the form or , where is an arithmetic term. A formula is bounded when every one of its quantifiers is bounded.
For the normal-form presentation of the arithmetical hierarchy on this page, we also permit an arbitrary primitive-recursive predicate as the quantifier-free matrix. Here the primitive-recursive functions are exactly those obtained by finitely many applications of composition and primitive recursion from zero functions, successor, and coordinate projections. Zero functions of every arity, including the nullary constant , are allowed; the projections are for . Composition substitutes functions of one common arity into the arguments of another. Primitive recursion takes functions of arity and of arity to of arity with These clauses define a unique total function: for each fixed , apply The recursion theorem on with initial value and transition , then take the second coordinate. Uniqueness for each parameter tuple makes this one well-defined function of all its arguments. A predicate is primitive recursive when its characteristic function, taking value exactly where it holds and elsewhere, is such a function.
This is an additional presentation convention: it does not assert that every primitive-recursive predicate is definable by a bounded formula in the bare first-order language chosen above.
Remarks
Unbounded quantifiers are the displayed leading quantifiers used to measure an arithmetical level; bounded quantifiers do not contribute an alternation.
The classes Sigma_n^0, Pi_n^0, and Delta_n^0
Definition
For , a set is when, for a primitive-recursive predicate , membership has a formula where the quantifiers alternate and is existential for odd . It is when its complement is , equivalently when the display begins universally. Put
Bounded quantifiers in are allowed under the convention of Bounded arithmetic formulas.
Bounded quantifiers preserve primitive recursiveness
Statement
If is primitive recursive and is primitive recursive, then each relation is primitive recursive.
Facts & Assumptions
Given: primitive-recursive and .
Primitive recursion, composition, initial functions, and the characteristic-function convention are supplied by Bounded arithmetic formulas.
Proof
Addition and multiplication are primitive recursive: use , , , and . Argument permutations are compositions with projections. Constants zero and one are initial functions or their compositions with successor. The function defined by , is primitive recursive.
Let be the - characteristic function of . Define , and , . These are primitive-recursion instances with parameters. Consequently and are primitive recursive by composition.
The first expression is one exactly when at least one of the first characteristic values is one; the second is one exactly when all are one. At bound zero their values are respectively zero and one. Thus they are the characteristic functions of the existential and universal relations asserted.
Sigma_1^0 sets are exactly the computably enumerable sets
Statement
For , is if and only if is computably enumerable (recognizable).
Facts & Assumptions
Given: a subset of .
Proof
If with primitive recursive, evaluate for and accept on the first true value. Every primitive-recursive predicate is computable: its initial functions are computed directly and its finite composition and primitive-recursion derivation become composition and finite loops of machines, as in A partial function is partial recursive if and only if it is Turing computable. The search therefore recognizes exactly .
Conversely, let recognize . A recognizer may halt rejecting on negative inputs, so replace each rejecting halt of by a fixed loop, obtaining a machine that halts exactly when accepts. Fix its code . By Kleene's T-predicate and output function, is a primitive-recursive predicate saying exactly that codes a complete halting history of on . Thus , a definition.
Delta_1^0 sets are exactly the decidable sets
Statement
A set of natural numbers is if and only if it is decidable.
Facts & Assumptions
Given: a set .
Proof
If is , both and its complement are and hence recognizable. Dovetail their recognizers; exactly one accepts, yielding a decider for .
If is decidable, both and its complement are recognizable, hence both are . Therefore .
Prenex normalization preserves the arithmetical level
Statement
Negating a formula produces a formula, and finite conjunctions and disjunctions of formulas in one of these classes can be put in prenex form in that same class (after harmless repeated-quantifier padding). Thus negation interchanges the two classes, while positive Boolean combinations preserve either class.
Facts & Assumptions
Given: finitely many formulas, or finitely many formulas.
Proof
Push negations through the displayed prefix. Each changes to and conversely; the negated primitive-recursive matrix is again primitive recursive.
Rename bound variables and merge equal-polarity blocks. Conjunction and disjunction distribute through adjacent like quantifiers, and shorter prefixes are padded by vacuous like-polarity quantifiers. Thus the leading polarity and at most alternations are retained.
Completeness at an arithmetical level
Definition
For , write when there is a total computable function such that Here total computability means Computable and partial computable functions, using canonical binary numerals to represent natural numbers. In particular, the machine must halt with a valid numeral output on every numeral input. This condition concerns functions on natural numbers; an invalid numeral is not an extra possible output value.
For , is -complete when and every with satisfies . Define -completeness identically with in place of .
The halting set is Sigma_1^0-complete
Statement
For a fixed acceptable numbering, is -complete.
Facts & Assumptions
Given: an acceptable numbering and a set .
Computably enumerable sets are exactly the sets (Sigma_1^0 sets are exactly the computably enumerable sets).
Acceptability supplies a total computable hard-wiring function (Universal and acceptable numberings).
Proof
The universal partial function is partial computable. Its halting domain is computably enumerable, and hence is by Sigma_1^0 sets are exactly the computably enumerable sets.
Write with primitive recursive. There is a partial computable two-argument procedure which, on parameters , searches for and halts exactly when ; it ignores . The hard-wiring function supplied by acceptability gives, uniformly and totally computably in , an index for the corresponding one-argument procedure.
Therefore exactly when . After the fixed binary encodings from Completeness at an arithmetical level, the total computable map reduces to .
The totality set is Pi_2^0-complete
Statement
is -complete.
Facts & Assumptions
Given: An acceptable numbering and an arbitrary set .
membership has a formula with primitive-recursive matrix (The classes Sigma_n^0, Pi_n^0, and Delta_n^0).
Completeness means membership in and a total computable many-one reduction from every set (Completeness at an arithmetical level).
is a primitive-recursive test for a complete halting computation (Kleene's T-predicate and output function).
The parameter theorem makes the index of a program with one parameter fixed a total computable function of that parameter (The s-m-n theorem).
Proof
By [F3], is equivalent to with a primitive-recursive matrix. Thus is , a predicate.
By [F1], write with primitive recursive. Fix one program which, on coded inputs , tests in order and halts with output at the first successful test. Each test terminates, so halts exactly when .
Let be a fixed index of . The specialization map in [F4] gives a total computable whose program on input agrees with . Hence exactly when , equivalently . Since was arbitrary, [F2] and step 1.1 prove -completeness.
Relative computability and relative enumerability
Definition
Fix the canonical binary numeral for each natural number (with zero encoded as ). For an oracle , an oracle program is a finite deterministic machine program with ordinary transitions as in The one-step configuration relation, together with query instructions. A query instruction reads a finite binary numeral delimited on the tape and selects one of two specified successor states according as or ; it leaves the tape and head unchanged. Malformed queries select the negative successor. On input , start in the initial state with its numeral at the left end of an otherwise blank tape and the head at position zero. Iterate these transitions until an accepting or rejecting state is entered, if that ever happens.
A set is -computable when some such program halts on every numeral input and accepts exactly the members of . It is -c.e. when some such program accepts exactly the members of ; on nonmembers it may reject or run forever. Write for -computability. A function is total -computable when some such oracle program halts on every numeral input with the numeral of as its delimited output.
An oracle program still makes finitely many transitions on any halting run; it does not read an infinite oracle at once.
An oracle computation has a finite query witness
Statement
If an oracle machine halts, there is a finite set of queries such that every oracle agreeing with on gives the same halting run and output on .
Facts & Assumptions
Given: a halting run of on .
Proof
The run has finitely many steps, hence performs only finitely many query instructions. Let be the set of numbers queried in that run.
If agrees with on , induction over those finitely many transitions gives the same state, tapes, query answers, and next transition at every step. Thus the run halts with the same output.
Post's theorem
Statement
Put and let be the halting set for machines with oracle . For every and , Consequently iff its complement is -c.e.
Facts & Assumptions
Given: and a set .
Proof
For , the first equivalence is the /c.e. theorem; deciding a set is equivalent to recognizing it and its complement.
Assume the characterizations at . In a presentation, the predicate following the first existential block is . It is co-c.e. in , and is therefore decidable by the halting oracle ; the first block is consequently a c.e. search in . Conversely, record a halting -oracle computation together with its finite query transcript. Replace each yes-query by its halting witness and each no-query by the dual condition. Since the transcript is finite, its conditions merge with the outer existential witness into a formula.
A -decider recognizes both a set and its complement, and two relative recognizers can be dovetailed into a decider. Applying the first equivalence to both sides therefore gives the equivalence; negation gives the clause. This closes the induction.
A diagonal set at each arithmetical level
Statement
For every , there is a set which is not ; its complement is and not .
Facts & Assumptions
Given: a finite level .
Proof
Enumerate the -c.e. sets as and set . If were itself -c.e., say , substituting gives .
Hence is not -c.e., while its complement is. Post's theorem identifies the complement as and as ; exchanging them gives the claimed pair.
The arithmetical hierarchy is strict
Statement
For every , and .
Facts & Assumptions
Given: .
Proof
Padding a prefix by a vacuous final quantifier shows and similarly for .
The level- diagonal construction supplies a set outside . If it lay in , then it would also lie in by padding and complement normalization, a contradiction; the complementary witness gives the separation.
Limit-computable functions
Definition
A total function is limit computable when there is a total computable such that for every the sequence is eventually constant with eventual value . No computable function selecting a stabilization stage is included in this definition.
Shoenfield's limit lemma
Statement
A set, equivalently its characteristic function, is computable in if and only if it is limit computable.
Facts & Assumptions
Given: a set .
A halting oracle computation has a finite query witness (An oracle computation has a finite query witness).
Proof
Use the halting-set meaning of fixed in Post's theorem. A query code specifies an ordinary computation whose halting is in question. Put . Bounded simulation makes membership in uniformly decidable in . These sets are finite and increasing, and their union is : a genuinely halting computation enters once exceeds both its code and its halting time; a nonhalting computation never enters.
If , fix computing . Define by simulating at most oracle-machine transitions of , answering each query by the decidable set . Return the output if it halts with output in within the cutoff, and return otherwise. Each stage halts, so is total computable and bit-valued even when an incorrect oracle sends into a loop or an unintended output. No time-efficiency bound on this finite simulation is asserted.
For fixed , the true run has a finite transition length and a finite query set by L1. All negative answers on are correct at every stage. Each positive answer becomes permanently correct by step 1.1; take beyond the finitely many corresponding entry stages. For every , L1 gives exactly the true run with oracle , and the cutoff does not interrupt it. Thus eventually. An empty requires only the time cutoff, and is an existence bound, not a claimed computable modulus.
Conversely, let total computable converge eventually to . For each , effectively form the ordinary program that computes , searches , and halts upon finding . Its halting is a question. Ask these questions for until receiving a negative answer. Eventual constancy ensures termination; a negative answer means that all later values equal the current value, which must therefore be . Output it. This computes in and proves the reverse implication.
False: Sigma_n^0 and Pi_n^0 are disjoint
Statement
For every positive , the classes and are disjoint.
Facts & Assumptions
Given: a positive finite .
Refutation
The decidable set is , hence is both and .
Prefix padding puts both descriptions of at every positive level . Thus , refuting disjointness.
False: a limit-computable function has a known stabilization stage
Statement
Every limit-computable function has a computable modulus of stabilization.
Facts & Assumptions
Given: the standard stage approximation to the halting set.
Refutation
Let if program has halted by stage , and otherwise. Bounded simulation makes total computable, and it converges pointwise to the characteristic function of the halting set. Thus is limit computable.
Suppose had a total computable approximation with a computable stabilization modulus . Computing would then decide , contradicting undecidability of the halting problem. This argument covers every possible approximation, including from step 1.1, so no such modulus exists.
5 · Examples, counterexamples and false statements
None yet.
Sources
- Ludovic Patey, Computability Theory, §5.1
- Douglas Cenzer and Jeffrey Remmel, Effectively Closed Sets, Definition II.6.5
- Douglas Cenzer and Jeffrey Remmel, Effectively Closed Sets, Theorem II.6.6
- Ludovic Patey, Computability Theory, Proposition 2.1
- Ludovic Patey, Computability Theory, Proposition 2.2
- Ludovic Patey, Computability Theory, Definition 5.2
- Ludovic Patey, Computability Theory, §5.4
- Ludovic Patey, Computability Theory, Example 1.5
- Ludovic Patey, Computability Theory, §4.2
- Ludovic Patey, Computability Theory, §4.4
- Ludovic Patey, Computability Theory, Theorem 5.5
- Douglas Cenzer and Jeffrey Remmel, Effectively Closed Sets, Theorem II.6.7
- Ludovic Patey, Computability Theory, §§4.5–4.6
- Ludovic Patey, Computability Theory, Corollary 5.4
- Ludovic Patey, Computability Theory, §4.7
- Ludovic Patey, Computability Theory, Lemma 7.2
- Ludovic Patey, Computability Theory, §5.2