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 missing level-3 seal (see planning/archive/whole_network_backward.md,
Item B): 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 rendered 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.
The seal in fderiv form. 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).
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).
⭐ S · Q at a zero of S — hasDerivAt_mul_self_zero where the carrier reaches the
readout through a smooth but NON-AFFINE stage, so it is not t itself that factors out.
MobileNetV4's fused stage is swish: its two examples' outputs differ by swishGap β u, which
vanishes at u = 0 and is differentiable there but is not a multiple of u. S is that gap
along the ray and Q the BatchNorm factors below it; as before no derivative of Q is
needed, only its continuity at 0.