VerifyMarginCert #
Lean checker for per-example logit-margin certificates (robust_margin_cert_v0_1).
This checker is intentionally lightweight: it does not re-run bound propagation. Instead, it verifies that the exported logit bounds imply the certified margin predicate:
logits_lo[label] > max_{j≠label} logits_hi[j]
Run:
python3 scripts/verification/robustness/export_margin_cert.py
lake exe verify -- margin-cert
Boolean < on Float.
Instances For
Boolean ≤ on Float.
Instances For
@[implicit_reducible]
Internal helpers.
Check a margin cert file with timing disabled (thin wrapper around checkWithTiming).