Alphabeta Math
LemmaStatement: Literature-sourcedProof: 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.

Pseudo-residuals are the negative gradient in sample-score space

Statement

Let N≥1, let (xi,yi)i=1N be a finite sample, let f:X→R, and let U⊆R be open with zi=f(xi)∈U for every i. Suppose each scalar loss t↦ℓ(yi,t) is defined on U and differentiable at zi. Write ∂2ℓ(yi,zi)=ddtℓ(yi,t)∣t=zi and define Φ:UN→R by Φ(w)=∑i=1Nℓ(yi,wi). Then Φ is totally differentiable at z, its derivative in a score increment v=(v1,…,vN) is

DΦ(z)v=∑i=1N∂2ℓ(yi,zi)vi,

and its Euclidean gradient is ∇Φ(z)=(∂2ℓ(yi,zi))i=1N. For these possibly local losses, define the pseudo-residual by ri(f)=−∂2ℓ(yi,zi); this agrees with the usual definition when the loss is finite-valued on all of Y×R. Then the pseudo-residual vector associated with f on this sample is exactly −∇Φ(z) in sample-score space.

Facts & Assumptions

Given: Sample scores zi=f(xi) in an open scalar domain U and scalar losses differentiable at those scores.

[F1]

Negative-gradient pseudo-residuals for a finite empirical loss: For a finite-valued loss on Y×R whose sampled sections are differentiable at the scores, the empirical score loss is Φ(z)=∑iℓ(yi,zi), and the pseudo-residual is ri=−∂2ℓ(yi,zi).

[F2]

The total (Fréchet) derivative Df(a) as the linear first-order approximation with o(∥h∥2) remainder: Total differentiability at a point means a linear first-order approximation whose remainder divided by the increment norm tends to zero.

[F3]

The chain rule for total derivatives: D(g∘f)(a)=Dg(f(a))∘Df(a): If f is totally differentiable at a and g at f(a), then g∘f is totally differentiable and D(g∘f)(a)=Dg(f(a))∘Df(a).

[F4]

Sums and scalar multiples of totally differentiable maps are totally differentiable with the expected derivatives: Finite sums of totally differentiable maps are totally differentiable and their derivatives add.

[F5]

Directional derivatives and partial derivatives of a map U⊆Rm→Rn: A coordinate partial derivative is the directional derivative along the corresponding standard basis direction.

[F6]

A total derivative computes every directional derivative, and its matrix is the Jacobian: When a total derivative exists, its value on each coordinate direction is the corresponding partial derivative.

[F7]

The Jacobian matrix of partial derivatives and the gradient in the scalar-valued case: For a scalar-valued function, the Euclidean gradient is the vector of coordinate partial derivatives in standard coordinate order.

Proof

1.1givenF2construct

For each i, let πi(z)=zi and gi(t)=ℓ(yi,t). The coordinate projection has derivative Dπi(z)v=vi because its linear approximation has zero remainder. Differentiability of gi at zi gives gi(zi+u)=gi(zi)+∂2ℓ(yi,zi)u+o(∣u∣), so Dgi(zi)u=∂2ℓ(yi,zi)u.

2.1F3step 1.1

By the chain rule, ψi=gi∘πi is totally differentiable and Dψi(z)v=∂2ℓ(yi,zi)vi.

3.1F4step 2.1induction

Since Φ=∑i=1Nψi, the finite-sum rule gives DΦ(z)v=∑i=1N∂2ℓ(yi,zi)vi.

4.1givenF1F5F6F7step 3.1construct∎

Evaluating step 3.1 on the coordinate direction that changes only zi gives ∂ziΦ(z)=∂2ℓ(yi,zi) by [F5] and [F6], so [F7] gives the asserted gradient. Extend the sampled loss sections by zero outside U to obtain a finite-valued loss on {y1,…,yN}×R. Since U is open, this extension agrees with each original section near zi and has the same derivative there. Thus [F1] applied to the extension yields exactly the locally defined ri(f), independently of the values outside U. Consequently (ri(f))i=1N=−∇Φ(z), also agreeing with [F1] whenever the original loss is globally defined.

Depends on

Used by

Dependency tree · two levels

16 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