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:
- The certificate is untrusted; we accept it only if Lean recomputation matches.
- A certificate interval must contain the Lean-recomputed interval componentwise. Decimal serialization may widen an endpoint, but it may not move an endpoint inward.
Read an IBP node certificate from JSON on disk.
Instances For
Check one artifact entry against the authoritative Lean IBP trace.
Instances For
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.