TorchLean API

NN.Verification.Cert.IBPNodeCert

IBPNodeCert #

Per-node IBP certificate checking.

Lean first computes the complete interval trace from the trusted input boxes and parameters. The untrusted artifact is then checked against that trace. In particular, no node is ever recomputed from certificate-supplied parent boxes.

Intended certificate JSON format:

{
  "ibp": [
    null,
    { "lo": [...], "hi": [...] },
    ...
  ]
}

The array length must equal g.nodes.size. Every entry must be an object whose lo and hi arrays have length equal to that node's flattened output dimension g.nodes[i]!.outShape.size. The parser reads null as a missing entry, and checkNode rejects it.

Trust boundary note:

Check a per-node IBP certificate against Lean's graph IBP propagation rules.

Returns true iff every node's certificate interval contains the interval recomputed from trusted inputs and parameters.

Instances For