TorchLean-to-verifier compiled IR bundle.
Instances For
Verifier-side parameter store used by IBP/CROWN workflows.
Instances For
Flat input box used to seed verifier input bounds.
Instances For
Input-node metadata required by affine/CROWN verifier passes.
Instances For
Output of the forward affine pass for one verifier node.
Instances For
Output of the CROWN forward pass for one verifier node.
Instances For
Compile a sequential TorchLean model into verifier IR with one distinguished input.
This is the public bridge for the common “train a model, then run IBP/CROWN on its forward pass” workflow.
Instances For
Compile a custom TorchLean forward program into verifier IR with one distinguished input.
Use this when the checked verification target is not a plain nn.Sequential, for example a
hand-written TorchLean loss program or an attention fragment built directly from TorchLean.Ops.
Instances For
Seed the distinguished verifier input with an explicit input box.
This is the standard follow-up after compileForward1: insert the box at compiled.inputId and
hand the returned store to IBP/CROWN passes.
Instances For
Flatten a center tensor and radius tensor into the verifier-side FlatBox expected by IBP/CROWN.
This is the standard public API for turning a shaped TorchLean input plus a shaped perturbation radius into a verifier input box.
Instances For
Build a uniform ℓ∞ box around a shaped TorchLean input tensor.
This fills the input shape with the scalar radius eps and then flattens the result into the
verifier-side FlatBox.
Instances For
Seed the compiled verifier input with a uniform ℓ∞ box around a shaped TorchLean input tensor.
Instances For
Shape of the distinguished verifier input node.
Instances For
Flattened dimension of the distinguished verifier input node.
Instances For
Checked affine context for the distinguished verifier input.
Instances For
Compatibility affine context for the distinguished verifier input.
Instances For
Run IBP on a compiled verifier graph.
Instances For
Read the verifier output box, throwing an IO.userError if it is missing.
Instances For
Run the forward affine pass on a compiled verifier graph.
Instances For
Checked variant of runAffine that validates the compiled input node first.
Instances For
Read the verifier output affine form from a forward affine result array.
Instances For
Run CROWN on a compiled verifier graph.
Instances For
Checked variant of runCROWN that validates the compiled input node first.
Instances For
Read the verifier output CROWN bounds from a CROWN result array.
Instances For
Run forward CROWN and evaluate the verifier output bounds on the compiled input box.
Instances For
Run forward CROWN and return the evaluated verifier output box, throwing on failure.
Instances For
Run backward CROWN for a scalar objective and evaluate it on the compiled input box.
Instances For
IO version of backwardObjectiveBox?.
Instances For
Compute the conservative two-class margin lower bound lo[class0] - hi[class1].
This is the usual public robustness check for binary logits: if the result is positive, class
class0 is certified against class1 over the input box.
Instances For
Decide whether the two-class margin lower bound is strictly positive.