Alphabeta Math
TheoremStatement: AI-adaptedProof: AI-generatedPipeline-generatedprecheck pass
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.

Uniform-block and binomial checkpoint schedules preserve reverse adjoints with stated costs

Statement

For the finite-dimensional C1 transition sequences on a fixed strict branch defined in Uniform-block and binomial checkpoint schedules for reverse sweeps, provided every schedule replay remains in the declared domains, both schedules return the same terminal value and initial-state cotangent as an uncheckpointed reverse sweep. In uniform-block mode, if T,m≥1, q=⌈T/m⌉, and the block lengths are r1,…,rs, excluding the initial forward pass used to save checkpoints, the number of additional unrecorded forward evaluations is exactly ∑ℓ=1srℓ(rℓ−1)/2, at most mq(q−1)/2. At most m checkpoint states are saved, with one live replay state and one local step tape. In binomial mode, C(d,t)=(d+td); any T≤C(d,t) steps can be reversed with at most d saved snapshots, one recorded forward evaluation and one reverse evaluation per step, at most t additional unrecorded forward evaluations per step, total work at most W^+W‾+tW, and storage G+(d+1)Rs. Here W is the total cost of one unrecorded full forward pass, W^ the sum of recorded one-step forward costs, W‾ the sum of local reverse costs, Rs bounds scalar storage for one primal state, and G bounds the largest one-step tape and local reverse scratch, the constant number of live cotangent/work vectors, the scalar output register, and scalar recursion-frame records, excluding saved states and one live primal state.

Facts & Assumptions

Given: The deterministic transitions, exact local reverse rules, and either schedule mode with its stated finite integer parameters.

[F1]

Uniform-block and binomial checkpoint schedules for reverse sweeps: uniform mode restores a saved block start and replays to each step; binomial mode splits a block into a left and right interval and reverses the right interval before the left.

[F2]

Reverse mode computes the exact gradient of the real-arithmetic graph: applying each exact local reverse rule once in reverse transition order gives the derivative of the composed real-arithmetic map.

[F3]

Finite straight-line computational programs and real-arithmetic tapes: replay is deterministic and a graph node's local reverse rule uses the primitive inputs on its tape.

Proof

technique · induction on replayed transitions and schedule capacity
1.1F1F2F3givenconstruct

If T=0, both schedules return the supplied pair (x0,xˉ0) unchanged. For T≥1 in uniform mode, deterministic replay from any block start xa reproduces the original xa+1,…,xb: the first replayed transition starts from the identical xa, and induction applies each same map Fj to the same preceding state. Thus the recorded local tape at step ℓ has the same primitive inputs as the original forward trajectory, so its reverse rule is the same one used by the full tape. Processing blocks and then their steps in decreasing order is exactly reverse transition order; [F2] gives the same terminal and initial cotangents.

1.2F1givenalgebra

A block of length r has replay prefix lengths r−1,r−2,…,0 before its r recorded local evaluations. Therefore its additional unrecorded evaluations total ∑j=0r−1j=r(r−1)/2. The number of blocks is s=⌈T/q⌉≤m, each rℓ≤q, so the sum is at most mq(q−1)/2. The checkpoint indices are 0,q,…,(s−1)q<T; T/q≤m, so s=⌈T/q⌉≤m. The initial forward pass uses T unrecorded evaluations; the displayed additional count concerns the subsequent block replays. Only those states, one live state, and one local tape are retained.

1.3F1givenalgebra

In binomial mode the recurrence and boundary values give C(d,t)=(d+td): the binomial coefficients have the same boundary values and Pascal recurrence, so induction on d+t identifies them. For d,t≥1, write A=C(d,t−1), B=C(d−1,t), so C(d,t)=A+B. If N≥2, L=min⁡(N−1,A) satisfies 1≤L<N; if L=N−1, then R=1≤B, and otherwise L=A and R=N−A≤B. Thus both recursive capacities hold and both child lengths are strictly less than N; the recursion terminates at N=1 or N=0.

2.1F1F2F3step 1.3construct

Induct on N. For N=0, the recursive procedure returns the unchanged cotangent. For N=1, deterministic evaluation records the exact transition inputs and its reverse rule returns the exact input cotangent. For N≥2, midpoint replay produces the exact xa+L by [F3]. By induction the right child returns the exact cotangent at that midpoint, and the left child returns the exact cotangent at xa. Every split partitions its steps into disjoint left and right intervals, processed in reverse order, so every step is recorded and reversed once. In particular the unique recorded evaluation of FT writes its exact scalar output into y; no other leaf changes y. Thus the top-level return has the same terminal value and initial cotangent as the ordinary reverse sweep.

3.1F1step 1.3step 2.1algebra∎

At a split, the saved starting state occupies one slot while the right child uses at most d−1 further slots and one live primal state. Once that child returns only its cotangent, the saved start is restored into the live state and its slot released; the left tail call has all d slots available. The leaves use no snapshots, so induction bounds the peak snapshot count by d. No recursive terminal vectors are retained; only the scalar output register survives the leaf for FT. A step in a right child has at most t replays by induction. A step in the left child is replayed once at the current split and then at most t−1 times in that child, hence at most t times total. Each step also has one recorded forward and one reverse call, giving work at most W^+W‾+tW. Each child decreases d+t by one, so even without eliminating tail frames there are at most d+t+1 active frames, each holding only a fixed number of scalar indices and flags. The cotangent buffer is reused, and the one-step tape, local scratch, scalar output and frame records are included in G. The saved states and one live primal state use at most (d+1)Rs entries, giving storage at most G+(d+1)Rs.

Depends on

Used by

Nothing in the library uses this result yet.

Dependency tree · two levels

8 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