Nonzero-Jacobian seal — the generic "the backward is non-trivial here" bridge #
The whole-network capstones prove HasVJP.backward = pdiv-Jacobian-transpose. A
degenerate witness (zero weights / constant output) satisfies that contract
vacuously: its Jacobian is identically zero, so the backward map is the zero map and
says nothing about a real gradient. A non-vacuity fact of the weaker kind
(Mnv2FullBSeal.sealX_nonconstant) only rules out a constant forward — strictly
weaker than a non-trivial backward at the witness.
This file supplies the level-3 seal: the reusable bridge from a single nonzero Jacobian entry to a provably non-trivial
backward, and the equivalence with fderiv ℝ f x ≠ 0. A witness then upgrades from
"forward ≠ const" to "the proven backward at this point is not the zero map" by exhibiting
one pdiv f x i j ≠ 0 — which is what a genuine (non-degenerate) gradient requires.
The bridge is stated for the pointwise HasVJPAt the kinked witnesses are built as. The
per-net seals discharge its pdiv ≠ 0 premise on the full-width batched nets themselves
(ResNet34FullBSeal, ResNet50FullBSeal, MobileNetV2FullBSeal, MobileNetV4FullBSeal).
All Jacobian entries zero ⇒ the Fréchet derivative is the zero map. fderiv ℝ f x
is ℝ-linear, so it is determined by its values on the standard basis; if those all
vanish it vanishes everywhere (v = ∑ᵢ vᵢ·eᵢ). No differentiability hypothesis —
at a non-smooth point fderiv is its junk-0 default and the entries are 0 too.
Nonzero fderiv ⇒ a nonzero Jacobian entry. A nonzero Fréchet derivative at the
witness yields a nonzero Jacobian entry — the clean analytic hypothesis behind
HasVJPAt.backward_ne_zero_of_pdiv_ne. (Contrapositive of the all-zero lemma.)
The nonzero-Jacobian seal. If the Jacobian of f at the witness x has a nonzero
entry pdiv f x i₀ j₀ ≠ 0, then the proven backward there is not the zero map: probing
it with the basis cotangent e_{j₀} returns the nonzero pdiv f x i₀ j₀ at row i₀.
The cotangent collapses HasVJPAt.correct's sum to its single diagonal term.
The seal in fderiv form. A nonzero Fréchet derivative at the witness x ⇒ the
proven backward there is non-trivial (some basis-cotangent probe returns a nonzero row).
The form a whole-net witness uses: establish fderiv ℝ forward x ≠ 0 once, get a
non-trivial backward for free.
A nonzero directional derivative seals fderiv ≠ 0. If a readout ℓ of f
(differentiable at f x) has derivative c ≠ 0 along the ray t ↦ x + t • v at
t = 0, the Fréchet derivative of f at x is not the zero map (a zero one would
give the readout derivative 0).
A readout that moves along the ray makes the forward non-constant. g is what the
difference of two output coordinates is along X; if it differs at 1 and 0, so does f.
fderiv_ne_zero_of_ray at a two-coordinate readout. The per-net seals all read the
difference y i₀ − y i₁ of two outputs along the affine ray X t = X 0 + t • v; given its
closed form g and a nonzero slope of g at 0, the Jacobian at X 0 is not zero.
t · Q t has derivative Q 0 at 0 for any Q continuous there — the
product-rule cross-term carries the factor t, so no derivative of Q is needed
(its slope at 0 is Q itself).