Per-pair LipSDP certificates (Fazlyab–Robey–Hassani–Morari–Pappas 2019) #
The tighter-Lipschitz lever for the scorecard: replace the global product
bound √2·‖W₂‖·‖W₁‖ on a pairwise logit gap by the per-pair LipSDP
constant — for the gap g(x) = ⟨v, relu(W₁x)⟩ with v = W₂ᵢ − W₂ⱼ,
(g x − g x')² ≤ ρ·‖x − x'‖²
holds whenever S = 2·diag(T) − vvᵀ − (1/ρ)·T G₁ T is PSD for some
diagonal T ⪰ 0 (G₁ = W₁W₁ᵀ, so S is h×h — hidden-width-sized, not
input-sized, by Schur complement). The PSD witness entering Lean is an
exact rational LDLᵀ factorization (S = L·diag(d)·Lᵀ, d ≥ 0) —
kernel-checkable, no √, no eigenvalues, no native_decide.
The mathematical content: ReLU is slope-restricted in [0,1]
(relu_slope_restricted), so for any T ⪰ 0 the incremental quadratic
constraint Σₖ Tₖ·Δyₖ(Δuₖ − Δyₖ) ≥ 0 holds between any two activation
patterns; adding it to the target and completing the square in Δx
reduces (vᵀΔy)² ≤ ρ‖Δx‖² to ΔyᵀSΔy ≥ 0 (pair_sq_bound). Everything
stays in squares — the final per-image check is Lp·ε ≤ margin with a
rational Lp, ρ ≤ Lp² (certified_at_eps_pair); √ρ never appears.
This is the one-hidden-layer instance of LipSDP-Neuron; the SDP is solved
numerically OFF-line (scripts/lipschitz_cert_pair_sdp.py) and only the
rationalized certificate (ρ, T, L, d) enters Lean as DATA, verified
exactly.
Per-pair LipSDP squared bound. If the slack inequality holds for all
z (discharged from a rational LDLᵀ witness: one linarith over its column squares),
then the ReLU-network gap g(x) = Σₖ vₖ·relu((W x)ₖ) satisfies
(g x − g x')² ≤ ρ·‖x − x'‖². No √ρ: everything in squares.
A pairwise logit gap of dense ∘ relu ∘ dense is the ⟨rowᵢ−rowⱼ, relu·⟩
form pair_sq_bound speaks about.
pair_sq_bound on the net's own logits. The gap f · i − f · j of
f = denseE W2 ∘ reluE ∘ denseE W1, with v the row difference W2 i − W2 j, satisfies the
squared LipSDP bound whenever the slack certificate hS does; every emitted pairSq* theorem
is this at one class pair.
The squared pair bound is symmetric in the class pair: the gap for (j, i) is the negated gap
for (i, j). The emitted reverse-order pairSq* theorems are this.
Fixed-ε certificate from a per-pair squared bound. If the gap
f · i − f · j satisfies the squared LipSDP bound with constant ρ,
Lp is a rational majorant (ρ ≤ Lp²), and the margin at x clears
Lp·ε, then every ‖δ‖ < ε keeps class j strictly below class i.
The per-pair peer of certified_at_eps — no √2, no global L.