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. Each non-null entry must have lo and hi arrays of length equal to that node's flattened output dimension g.nodes[i]!.outShape.size.

Trust boundary note: