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.
Fixed coding primitive recursive arithmetic and sequences
Statement
Addition, multiplication, truncated subtraction, comparisons, bounded sums and products, bounded search, and exponentiation are primitive recursive (PR). Use For positive , its head is its exponent of two and its tail is the remaining odd part minus one, divided by two; set both to zero at . List length, coordinate (zero beyond the length), reverse, append of one entry, concatenation and bounded list predicates are PR. Lists use this numeric code; a finite-alphabet word is a list of its letter numbers.
Facts & Assumptions
Given: The displayed coding, with all variables natural. Bounded search includes its bound and returns bound plus one if unsuccessful.
PR functions are generated by initial functions, composition and primitive recursion, including empty parameter tuples (Primitive recursive functions by initial functions and schemes).
A property holding at zero and preserved by successor holds for every natural (The principle of mathematical induction).
Proof
The recursions , , , , , give addition, multiplication and powers. Predecessor is , , so truncated subtraction is , . The zero test , yields and . All are applications of the schemes, with total values even at zero.
For PR , accumulate sums from initial value zero and products from one for by primitive recursion on . Products of Boolean values give bounded universal quantification and minus a product of complements gives bounded existential quantification. For a PR predicate , its least witness at most with failure value is If the least witness is , precisely the terms equal one; if none exists, all terms equal one. Bounded maximum can be obtained by searching in reverse or accumulating the latest successful index, initially zero. Conditional branches are arithmetic combinations with a Boolean selector.
For , divisibility is . A quotient, if present, is found by bounded least search. On , let be the largest such that . Such an exists since . A maximal one has odd quotient: an even quotient would make divide . Repeated division by two strictly decreases a positive even number, so this process terminates at an odd positive integer. It also proves uniqueness: if with odd positive and , cancellation would make even. Thus the bounded definition is exactly the two-adic valuation. The odd quotient has the unique form ; find by bounded search. These are the claimed head and tail functions with explicit zero branches.
For , . Let and . Primitive recursion makes PR. A strictly decreasing sequence of positive naturals starting at has at most terms: after decreases its value is at most . Therefore is precisely the list length. The list represented by any natural is well-founded; conversely successive cons operations encode each finite list, and the unique head/tail decomposition makes the encoding injective. Its coordinate function is , zero when .
Define and . Then reverses the list: after steps it contains the first entries in reverse order, by checking the initial value and the cons step. Appending is . To concatenate with , start the accumulator at and cons the entries of in order, stopping after steps. Its result is the entries of followed by those of . These bounded folds are PR even though their accumulator values need not be bounded by the input code.
Bounded list predicates are sums/products of tests on these coordinates. In particular a word parser can maintain a cursor and finite coded state for at most the word's length plus one iterations. Each iteration reads a coordinate, compares bounded lengths, updates arithmetic counters and appends decoded letters; on failure it records a fixed failure state and remains there. Every such update is one of the PR operations already proved, so primitive recursion implements the entire bounded scan. Binary numeral conversion uses the fold ; the reverse conversion finds the largest with when , then uses bounded division to obtain its bits, with the separate one-bit representation of zero. Empty lists have length zero and reverse zero; a singleton has length one and coordinate zero equal to . Empty sums/products are zero/one. No unbounded minimization or inference from computability to PR has been used.
Depends on
Used by
Dependency tree · two levels
6 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
- Gallier §§1.7–1.8, Proposition 1.5–1.8 and §2.1 coding; local cons coding replaces prime-sequence coding (standard reference, not scraped)