Alphabeta Math
LemmaStatement: AI-adaptedProof: AI-adaptedPipeline-generatedjudge pass (gpt-5.6-terra)
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 pair(a,b)=2a(2b+1),nil=0,cons(a,z)=pair(a,z). For positive z, 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 z=0. 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.

[F1]

PR functions are generated by initial functions, composition and primitive recursion, including empty parameter tuples (Primitive recursive functions by initial functions and schemes).

[F2]

A property holding at zero and preserved by successor holds for every natural (The principle of mathematical induction).

Proof

1.1

The recursions a+0=a, a+(b+1)=S(a+b), a0=0, a(b+1)=ab+a, a0=1, ab+1=aba give addition, multiplication and powers. Predecessor is P(0)=0, P(b+1)=b, so truncated subtraction is a˙0=a, a˙(b+1)=P(a˙b). The zero test Z(0)=1, Z(b+1)=0 yields [ab]=Z(a˙b) and [a=b]=Z((a˙b)+(b˙a)). All are applications of the schemes, with total values even at zero.

F1
2.1

For PR u(a,j), accumulate sums from initial value zero and products from one for j=0,,B1 by primitive recursion on B. Products of Boolean values give bounded universal quantification and 1 minus a product of complements gives bounded existential quantification. For a PR predicate R, its least witness at most B with failure value B+1 is j=0Bi=0j(1[R(a,i)]). If the least witness is r, precisely the terms j<r equal one; if none exists, all B+1 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.

step 1.1F1
3.1

For d>0, divisibility dz is qz (dq=z). A quotient, if present, is found by bounded least search. On z>0, let a be the largest az such that 2az. Such an a exists since 20=1. A maximal one has odd quotient: an even quotient would make 2a+1 divide z. Repeated division by two strictly decreases a positive even number, so this process terminates at an odd positive integer. It also proves uniqueness: if 2au=2bv with odd positive u,v and a<b, cancellation would make u even. Thus the bounded definition is exactly the two-adic valuation. The odd quotient has the unique form 2b+1; find bz by bounded search. These are the claimed head and tail functions with explicit zero branches.

step 1.1step 2.1F2
4.1

For z>0, tail(z)=(z/2a1)/2<z. Let t(z,0)=z and t(z,j+1)=tail(t(z,j)). Primitive recursion makes t PR. A strictly decreasing sequence of positive naturals starting at z has at most z terms: after j decreases its value is at most zj. Therefore (z)=j<z(1Z(t(z,j))) 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 head(t(z,i)), zero when i(z).

step 3.1step 2.1F1F2
5.1

Define r(z,0)=0 and r(z,j+1)=cons(head(t(z,j)),r(z,j)). Then rev(z)=r(z,(z)) reverses the list: after j steps it contains the first j entries in reverse order, by checking the initial value and the cons step. Appending a is rev(cons(a,rev(z))). To concatenate z with w, start the accumulator at w and cons the entries of rev(z) in order, stopping after (z) steps. Its result is the entries of z followed by those of w. These bounded folds are PR even though their accumulator values need not be bounded by the input code.

step 4.1step 1.1F1F2
6.1

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 v2v+bit; the reverse conversion finds the largest jv+1 with 2jv when v>0, 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 cons(a,0) has length one and coordinate zero equal to a. Empty sums/products are zero/one. No unbounded minimization or inference from computability to PR has been used.

step 1.1step 2.1step 4.1step 5.1F1

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