TorchLean API

NN.Verification.Cert.IBPNodeCert

IBPNodeCert #

Per-node IBP certificate checking.

This is stronger than NN.Verification.IBPCert: instead of only comparing the final output bounds, we check that every node's bounds match what Lean's propagateIBPNode computes from the certificate bounds of its parents (plus the ParamStore parameters).

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:

Read an IBP node certificate from JSON on disk.

Instances For

    Check the local IBP enclosure condition for one node against a certificate entry.

    Instances For

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

      Returns true iff every node's certificate bounds agree (within tol) with what Lean computes from the certificate parents + ParamStore.

      Instances For