TorchLean API

NN.Verification.Cert.AbCrownLeafCert

AbCrown Leaf Certificate #

Alpha-beta-CROWN (AbCrown) leaf-certificate checker.

This module checks a small JSON certificate format (abcrown_leaf_cert_v0_1) exported by a Python verification pipeline. It does not run bound propagation itself; instead it sanity-checks that:

This is useful for:

References:

Run: lake exe verify -- abcrown-leaf [path/to/cert.json]

Boolean on Float (used for array-wise box comparisons).

Instances For

    Boolean < on Float (used for strict refutation checks).

    Instances For

      Check that a leaf box [lo, hi] is nested within a declared root box [rootLo, rootHi].

      All arrays are interpreted pointwise.

      Instances For

        Check that a leaf is verified by a lower-bound vector lb against an unsafe threshold thr.

        Interpretation: lb is a certified lower bound on some "violation score". If lb[i] > thr[i] for some index i, then that unsafe constraint is refuted.

        Instances For

          Like leafVerified, but first try a supplied witness index.

          If the witness index is out of range, this returns false (callers usually fall back to leafVerified).

          Instances For

            Parse and validate a abcrown_leaf_cert_v0_1 JSON certificate.

            On failure this throws IO.userError with a brief message.

            Instances For

              CLI entry point: lake exe verify -- abcrown-leaf [cert.json].

              If no path is provided, checks a small bundled sample certificate under NN/Examples/Verification/AbCrown/.

              Instances For