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 sequence-length and coordinate-reading functions are primitive recursive
Statement
For the coding from A natural-number coding of finite sequences, the following total functions are primitive recursive:
- the decoded length function defined by and otherwise, and
- the coordinate-reading function defined by and otherwise.
Facts & Assumptions
Given: The sequence coding from A natural-number coding of finite sequences.
Primitive recursive functions are closed under the basic arithmetic, characteristic, and bounded-quantification constructions from Basic arithmetic operations and bounded quantification are primitive recursive.
A coded finite sequence has binary numeral , with each block , by A natural-number coding of finite sequences.
Proof
By bounded search on quotients and remainders, one can primitive-recursively recover the binary length of a positive integer and each individual bit of its canonical binary numeral. Using [L2], a bounded scan first reads the sentinel and unary header, obtaining a candidate . It then parses exactly self-delimiting blocks, checks that each payload is a canonical binary numeral, and verifies that the final block ends at the end of the numeral. Only if all these checks succeed does it return ; otherwise it returns . All scan bounds are at most the binary length of , so this full validity test and the total function are primitive recursive by [L1].
Once is known, the start and end of the th block are found by another bounded scan through the same binary numeral: each block begins with a run of 's whose length is the bit-length of , followed by one delimiter , followed by exactly that many payload bits. The integer represented by that payload is then recovered by a bounded primitive-recursive evaluation of binary place values.
If the bounded scan shows that or that the numeral of is not of the required form, define the output to be . Otherwise return the value decoded in step 2.1. Because every search range is bounded by the bit-length of , the total function is primitive recursive by [L1].
Steps 1.1 and 3.1 prove that both the length function and the total coordinate-reading function are primitive recursive.
Depends on
Used by
Dependency tree · two levels
7 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
- Jeremy Avigad and Richard Zach, Recursive Functions (standard reference, not scraped)
- Klaus Sutner, Coding Functions (standard reference, not scraped)