Alphabeta Math
TheoremStatement: AI-adaptedProof: AI-generatedPipeline-generatedprecheck passjudge pass (gpt-6-luna)
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.

Reverse accumulation sums gradients over shared parameter uses

Statement

Let p,q≥1, let Θ⊆Rp and H⊆Rq be open, and let T be a nonnegative integer. Suppose h0:Θ→H, Φt:Θ×H→H for 1≤t≤T, and ℓ:Θ×H→R are continuously differentiable on open domains containing the trajectory at θ∈Θ. A continuously differentiable map is totally differentiable at each point and has a derivative matrix continuous on its domain. Define h0=h0(θ), ht=Φt(θ,ht−1), and J(θ)=ℓ(θ,hT). Write At=DθΦt(θ,ht−1) and Bt=DhΦt(θ,ht−1), with each partial derivative holding the other argument fixed. Set λT=(Dhℓ(θ,hT))T and, in descending order, λt−1=BtTλt. Then the backpropagation algorithm returns J(θ) and

∇θJ(θ)=(Dθℓ(θ,hT))T+∑t=1TAtTλt+(Dh0(θ))Tλ0,

where the sum is empty when T=0. The statement also applies when every primitive is evaluated on one fixed strict C1 branch; it makes no assertion at a branch boundary.

Facts & Assumptions

Given: The finite recurrence, its open domains, the parameter θ, the fixed strict branch when maps are piecewise-C1, and the scalar objective J.

[F1]

Finite straight-line computational programs and real-arithmetic tapes: a finite topologically ordered program has a scalar output, and repeated parent slots are separate uses in its dependency graph.

[F2]

Backpropagation through a finite shared-parameter recurrence: the forward pass computes h0,…,hT; the reverse pass initializes the loss cotangent, adds each transition's parameter pullback to the same parameter accumulator, propagates the state cotangent backward, and finally pulls back through h0.

[F3]

Reverse mode computes the exact gradient of the real-arithmetic graph: on a finite C1 program and fixed strict branch, reverse mode returns the exact derivative transpose of its scalar output.

[F4]

The chain rule for total derivatives: D(g∘f)(a)=Dg(f(a))∘Df(a): for totally differentiable finite-dimensional maps, the total derivative of a composition is the ordered composition of their total derivatives.

Proof

technique · identify the recurrence with its finite unrolling, then apply the chain rule backward
1.1F1F4givenconstruct

Since T is finite, the initial map, T transition evaluations, and scalar loss form a finite program whose one parameter input θ is used at each transition and at the loss. Each map is C1 on an open domain containing the trajectory, so repeated application of [F4] makes J differentiable there; on a fixed strict branch the same conclusion holds branchwise.

2.1F1F2F3step 1.1algebra

The algorithm's primal pass evaluates this unrolled program. Its reverse pass seeds the loss, visits transitions in descending order, and sends each transition's parameter pullback to the same θ input while sending its state pullback to ht−1; the initial-state pullback is then added at θ. This is the reverse sweep on the finite graph in [F1], so [F3] gives the exact gradient of J.

2.2F2F4step 1.1algebra

The terminal state's cotangent is λT=(Dhℓ)T. At transition t, the chain rule gives the cotangent at ht−1 as BtTλt and adds AtTλt to the derivative with respect to the shared parameter while ht−1 is held fixed. Descending induction therefore gives the stated λt−1 recurrence and sums one parameter contribution for each of the T transition uses.

3.1F2F4step 2.2algebra∎

The loss's direct dependence on θ contributes (Dθℓ)T, and the dependence of h0(θ) contributes (Dh0)Tλ0. Adding these to the T transition contributions from step 2.2 gives the displayed formula. If T=0, there are no transition terms and the same chain rule reduces J(θ)=ℓ(θ,h0(θ)) to the two remaining terms. This is exactly the algorithm's return value and gradient.

Depends on

Used by

Dependency tree · two levels

11 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