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.
Finite straight-line computational programs and real-arithmetic tapes
Definition
Fix an input dimension , finitely many operation nodes , and a designated output node , either an input coordinate or an operation, whose value space is . Give input coordinate a label distinct from all operation indices, and set and with its standard Euclidean inner product. Operation node has an ordered list of parent slots ; each slot is either an input label or an operation index . Repeated parent slots are allowed and count separately. The graph is a finite straight-line program because every operation reads only earlier values and there are no data-dependent loops.
For each operation , choose a dimension , set with its standard Euclidean inner product, take an open set with the product inner product, and choose a primitive map . A smooth primitive is : it is totally differentiable and its derivative matrix is continuous. For Hessian-vector products require the primitive to be , meaning with a continuously differentiable derivative map. Derivatives are represented in these coordinates, and every transpose is the Euclidean transpose for the stated inner products; the gradient of a scalar output is the Euclidean gradient. The real-arithmetic primal recursion is whenever the parent tuple lies in . Its admissible input domain is the set of for which every operation in this recursion is defined. The graph's scalar output function is the value at : it is when is input coordinate , and when is operation node .
The primal tape is the finite ordered record of input and node values, parent-slot indices, primitive identities, and (when applicable) selected branch labels. A deterministic replay starts from the identical checkpoint state and applies the identical primitive maps in the identical order, so it reproduces the same real-arithmetic values and local derivative inputs. Opaque solver calls are not primitive operations unless their complete deterministic map and derivative rule are explicitly supplied.
A piecewise- primitive is specified by finitely many open branch regions and a formula on each region; its primal boundary value, if any, is specified separately. If the current parent tuple lies strictly inside exactly one declared branch, the program uses that branch and its derivative. At a branch boundary or ambiguous branch selection, forward or reverse AD returns NONDIFFERENTIABLE; it does not silently choose a subgradient or generalized derivative. If no primal value is specified at a boundary, that input is outside the program's domain. All correctness theorems below apply on a fixed strict branch. The same convention applies to piecewise- primitives for Hessian-vector products.
Depends on
Used by
- Differentiate a finite fixed-point iteration as a finite composed map Algorithm
- Forward-mode automatic differentiation on a finite computational graph Algorithm
- Forward-over-reverse Hessian-vector products Algorithm
- Reverse-mode automatic differentiation for a scalar graph output Algorithm
- Uniform-block and binomial checkpoint schedules for reverse sweeps Algorithm
- Branchwise AD for absolute value and the nondifferentiable switch Example
- Forward and reverse derivatives on a shared-expression graph Example
- A finite straight-line C1 program defines a C1 map on each fixed strict branch Lemma
- A finite straight-line C2 program defines a C2 map on each fixed branch Lemma
- Real-arithmetic graph derivatives and rounded execution are different objects Remark
- Forward mode computes the exact directional derivative of the real-arithmetic graph Theorem
- Forward-over-reverse mode computes the Hessian-vector product Theorem
- Local Jacobian perturbations give a pathwise bound for graph-gradient error Theorem
- Reverse mode computes the exact gradient of the real-arithmetic graph Theorem
- Reverse-mode work is a fixed multiple of primal work under explicit primitive-cost bounds Theorem
- Uniform-block and binomial checkpoint schedules preserve reverse adjoints with stated costs Theorem
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
- MIT OpenCourseWare 18.S096, Matrix Calculus for Machine Learning and Beyond, complete lecture notes, Chapter 8 §§8.3–8.4.1 (standard reference, not scraped)
- A. Griewank, Achieving Logarithmic Growth of Temporal and Spatial Complexity in Reverse Automatic Differentiation, §§1, 3–6 (standard reference, not scraped)