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.
Forward and reverse derivatives on a shared-expression graph
Example
Consider the real-arithmetic graph At it has output . Both forward and reverse mode should give gradient ; the repeated parent slot in tests that its two edge contributions are both accumulated.
Facts & Assumptions
Given: The graph and input .
Finite straight-line computational programs and real-arithmetic tapes: repeated parent slots count as separate edges in the finite real-arithmetic graph.
Forward mode computes the exact directional derivative of the real-arithmetic graph: forward mode returns for any direction .
Reverse mode computes the exact gradient of the real-arithmetic graph: reverse mode returns the exact input gradient of the scalar graph output.
Proof
The primal values are , , , and .
For direction , forward mode gives , , , hence . By [F2], the gradient is .
In reverse mode, seed , so . The product adds to and to . The repeated slots in add to ; then adds to each input. The total input cotangents are , consistent with [F3].
The forward value and both derivative calculations agree with the stated output and gradient.
Depends on
Used by
Nothing in the library uses this result yet.
Dependency tree · two levels
9 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 (standard reference, not scraped)