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 for reverse sweeps
Definition
The input is a finite sequence of deterministic transitions , , between compatible finite-dimensional Euclidean spaces with open domains, a starting state , and a terminal cotangent . Every transition is evaluated on one fixed strict branch and has its exact local reverse rule. For , require the last transition's output space to be ; when that scalar output is the objective, take . For , the terminal value is and its matching cotangent is supplied. A transition tape stores the local values needed by its exact reverse rule. A deterministic replay applies the same transition maps, in the same order, to the identical checkpoint state and therefore reproduces the same values and local derivative inputs. The procedure returns the terminal value and cotangent at ; an invalid domain evaluation returns DOMAIN_ERROR, and a branch boundary returns NONDIFFERENTIABLE. A checkpoint schedule is permitted only when its saved states and all deterministic replays lie in these declared domains.
Uniform-block mode. For , return and the supplied cotangent without work. For , require an integer slot budget , set , and during one forward pass save for (all indices are below ). This uses at most saved states. Partition the steps into blocks with and . Process the blocks from last to first. Within one block, for , restore , replay without recording, evaluate once while recording its local tape, apply its reverse rule to the current cotangent, and discard the one-step tape and replay workspace. Retain only the checkpoint states, the live state/cotangent, and the ordinary one-step reverse tape. Do not infer any optimality property of this schedule.
Binomial mode. Define , and for integers . The top-level call takes nonnegative integer budgets satisfying . For , return . For , allocate one scalar output register . The recursive procedure REVERSE consumes its starting state as the live primal state and its terminal cotangent as the mutable cotangent buffer; it returns only the cotangent at , retaining no terminal primal state. It requires integer indices , nonnegative integer budgets , and . If , return the unchanged cotangent. If , evaluate and record the unique transition, copy its scalar output to if , apply its local reverse rule, discard the tape and primal state, and return the input cotangent. If , then . Put , . Save in one checkpoint slot and replay the first transitions into the live state without recording. Call REVERSE on the right block, keeping the saved but no other primal state in the caller. Move the saved back into the live state, release its checkpoint slot, and tail-call REVERSE, using the cotangent returned by the right child. Return this left child's cotangent. No call frame retains a primal vector outside the explicit checkpoint slots. Invoke this procedure at and return with its returned initial cotangent. A recursive call with and or is a schedule failure; the capacity condition makes that branch unreachable.
The parameter bounds the number of simultaneously saved state snapshots. The parameter bounds, for each transition, the number of additional unrecorded forward evaluations beyond its one recorded evaluation. Both are finite integer inputs. This mode provides no numerical error estimate or optimality guarantee for arbitrary nonuniform primitive costs. For the storage count in the paired theorem, bounds scalar storage for one full primal state. The binomial recursion may reuse one mutable cotangent workspace: each call consumes its terminal cotangent and returns the cotangent at its start, reusing the same buffer through both children. Let bound the largest one-step tape and local reverse scratch, the constant number of live cotangent/work vectors, the scalar output register, and the scalar call-frame records; it excludes the saved primal states and one live primal state.
Depends on
Used by
Dependency tree · two levels
4 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
- A. Griewank, Achieving Logarithmic Growth of Temporal and Spatial Complexity in Reverse Automatic Differentiation, §§3–6 and Theorem 6.1 (standard reference, not scraped)