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.
Automatic differentiation and computational graphs — Examples
1 · Prerequisites
- Algebraic Closure, Embeddings, and Separability
- Algebraic Extensions, Extension Degree, and Finite Fields
- Automatic differentiation and computational graphs
- Binary Operations, Monoids, Groups and Subgroups
- Bounded Linear Operators and Quotient Spaces
- Compactness in Metric Spaces
- Completeness, Completion, and Uniform Continuity
- Complex Norms and Realification
- Composition Series, the Jordan–Hölder Theorem and Solvable Groups
- Congruences, the Integers Modulo n and the Chinese Remainder Theorem
- Construction of the Natural Numbers
- Construction of the Real Numbers via Cauchy Sequences
- Construction of the Real Numbers via Dedekind Cuts
- Continuity, IVT, EVT, and Uniform Continuity
- Cosets, Index and Lagrange's Theorem
- Countability and Uncountability
- Cyclic Groups and Direct Products
- Determinants of Matrices over a Commutative Ring
- Diagonalisation and the Minimal Polynomial
- Divisibility, Euclidean Domains, Principal Ideal Domains and Unique Factorisation
- Divisibility, Greatest Common Divisors and Bézout's Identity
- Dual Spaces, Bilinear and Quadratic Forms, and Sylvester's Law of Inertia
- Eigenvalues, Eigenvectors and the Characteristic Polynomial
- Filters and Ultrafilters
- Finite Counting, Factorials and Binomial Coefficients
- Finite-precision direct factorizations and least squares
- Foundations of the Real Numbers for Analysis
- Group Actions, Orbits, Stabilisers and Cayley's Theorem
- Group Homomorphisms and the Isomorphism Theorems
- Hilbert Space Geometry and Riesz Representation
- Ideals, Quotient Rings and the Isomorphism Theorems for Rings
- Inner Product Spaces, Gram-Schmidt, Projections and Adjoints
- Limits of Real Functions
- limsup, liminf, and Subsequential Limits
- Linear Independence, Bases and Dimension
- Linear Transformations, Rank-Nullity and Quotient Spaces
- Matrices, the Matrix of a Linear Map, and Change of Basis
- Matrix Norms, Condition Numbers and Numerical Stability
- Metric Spaces
- Monotone Functions, Discontinuities, and Continuity Sets
- Monotone Sequences, Bolzano-Weierstrass, and Cauchy Completeness
- Normal Subgroups and Quotient Groups
- Order, Zorn's Lemma, and the Axiom of Choice
- Polynomial Rings, the Division Algorithm and Roots
- Primes, Euclid's Lemma and the Fundamental Theorem of Arithmetic
- Properties of the Integral and the Working FTC
- Relations, Functions, and Quotients
- Rings, Subrings, Integral Domains and Fields
- Rⁿ as a Normed Space; Vector-Valued Functions
- Roots, Rational Powers, and Classical Inequalities
- Sequences and Limits
- Series: Convergence and the Nonnegative Tests
- Simple Field Extensions and the Construction of the Complex Numbers
- Splitting Fields
- Suprema and Infima
- Sylow's Theorems, p-Groups and Nilpotent Groups
- Symmetric Groups, Cycle Decomposition and the Sign Homomorphism
- The Derivative and the Mean Value Theorems
- The Determinant of a Linear Operator, Cofactors and Cramer's Rule
- The Fundamental Theorem of Algebra
- The Fundamental Theorem of Finite Abelian Groups
- The Galois Correspondence
- The Inverse and Implicit Function Theorems
- The Riemann Integral: Definition and Integrability
- The Spectral Theorem, Positive Operators and Singular Value Decomposition
- The Total Derivative in ℝᵐ → ℝⁿ
- The ZFC Axioms and the Basic Set Constructions
- Topology of ℝ
- Triangularisation, Generalised Eigenspaces and Jordan Canonical Form
- Vector Spaces, Linear Subspaces, Span and Direct Sums
2 · Summary
These examples trace the same real-arithmetic rules used on the main page. They show a shared intermediate used twice, reverse propagation through a two-step Euler trajectory, an adjoint formula for a parameter-dependent linear solve, and the status returned when an absolute-value branch is not strict.
3 · Logical flowchart
4 · Definitions, theorems and proofs
None yet.
5 · Examples, counterexamples and false statements
Branchwise AD for absolute value and the nondifferentiable switch
Example
The primitive has two strict branches: for and for . Branchwise AD returns derivative on the positive branch and on the negative branch. At the switch it returns NONDIFFERENTIABLE.
Facts & Assumptions
Given: The absolute-value primitive with the two strict branch formulas.
Finite straight-line computational programs and real-arithmetic tapes: a piecewise primitive uses the derivative of its unique strict active branch and returns NONDIFFERENTIABLE at a branch boundary.
Proof
For , the active formula is , whose derivative is ; for , the active formula is , whose derivative is . These are the two derivatives used by the strict-branch rule in [F1].
At zero, the right difference quotient is for , while the left quotient is for . Since the one-sided limits differ, the derivative does not exist at zero.
By [F1], the branch boundary therefore returns NONDIFFERENTIABLE and no derivative; selecting a generalized derivative would require a separately supplied rule.
An implicit linear solve and its adjoint gradient
Example
Let , , and define by . For the scalar objective , at the exact derivative and the adjoint formula both equal .
Facts & Assumptions
Given: A square linear residual with an invertible state Jacobian and a scalar objective.
Implicit differentiation and adjoint formulas under a nonsingular residual Jacobian: if is nonsingular, the branch derivative is and the objective gradient can be computed from as .
Certified inverse defects and primal residuals bound linear-solve Jacobian and pullback errors supplies the certified fixed-map derivative discrepancy from inverse defects and primal residuals.
Verification
The system gives and , hence and . Therefore .
Write . At , , , , and . The adjoint equation gives .
The objective has no explicit dependence, so ; the adjoint formula gives .
The adjoint result agrees with the direct derivative in step 1.1, verifying this nonsingular linear-solve instance.
In any arithmetic satisfying the operationwise model and representing , with these small operations in range, at the primal and basis solves give and exactly. Their inverse defect and primal residual are zero. The certified solve-Jacobian result Certified inverse defects and primal residuals bound linear-solve Jacobian and pullback errors therefore gives zero fixed-map discrepancy; the actual dot and product operations here are also exact, and return derivative .
Reverse-mode differentiation of an Euler trajectory tape
Example
Take two explicit Euler updates for with step , initial state , and scalar output : At , the tape has and ; reverse mode returns .
Facts & Assumptions
Given: The two-step Euler graph, , , , and output .
Reverse-mode automatic differentiation for a scalar graph output: for each transition, reverse mode applies its local transpose derivative to the incoming cotangent and adds parameter contributions.
Reverse mode computes the exact gradient of the real-arithmetic graph: the returned parameter cotangent equals the exact derivative of this scalar graph.
Verification
Substitution into the two Euler updates gives and . As a function of , , so .
Seed . At step , and , so and the accumulated .
At step , gives , while adds to . Thus the total parameter cotangent is .
The reverse result equals the direct derivative in step 1.1, and [F2] identifies it as the derivative of the finite trajectory map.