Alphabeta Math
ExampleConstruction: AI-generatedVerification: 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.

Forward and reverse derivatives on a shared-expression graph

Example

Consider the real-arithmetic graph z1=x+y,z2=z1z1,z3=xy,f=z2+z3. At (x,y)=(1,2) it has output f=11. Both forward and reverse mode should give gradient (8,7); the repeated parent slot in z2 tests that its two edge contributions are both accumulated.

Facts & Assumptions

Given: The graph and input (x,y)=(1,2).

[F1]

Finite straight-line computational programs and real-arithmetic tapes: repeated parent slots count as separate edges in the finite real-arithmetic graph.

[F2]

Forward mode computes the exact directional derivative of the real-arithmetic graph: forward mode returns Df(x,y)(u,v) for any direction (u,v).

[F3]

Reverse mode computes the exact gradient of the real-arithmetic graph: reverse mode returns the exact input gradient of the scalar graph output.

Proof

technique · direct tape evaluation
1.1F1givenalgebra

The primal values are z1=1+2=3, z2=3⋅3=9, z3=1⋅2=2, and f=z2+z3=11.

2.1F1F2step 1.1algebra

For direction (u,v), forward mode gives z˙1=u+v, z˙2=z1z˙1+z˙1z1=6(u+v), z˙3=yu+xv=2u+v, hence f˙=8u+7v. By [F2], the gradient is (8,7).

2.2F1F3step 1.1algebra

In reverse mode, seed fˉ=1, so zˉ2=zˉ3=1. The product z3=xy adds 2 to xˉ and 1 to yˉ. The repeated slots in z2=z1z1 add z1+z1=6 to zˉ1; then z1=x+y adds 6 to each input. The total input cotangents are (8,7), consistent with [F3].

3.1step 1.1step 2.1step 2.2∎

The forward value 11 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