Explicit Verification Lowering #
Low-level access to TorchLean's verifier graph. Most applications should import
NN.API.Verification, train with trainer.train, then call
trained.verify center (radius := r) (norm := linf); import this module only when constructing or
inspecting graph-level IBP/CROWN workflows directly.
These entry points check the generated graph's structure and shapes, not its numerical equality with the source model. Slicing and leading-axis selection currently become one-hot matrix products; they can change signed zeros or propagate an unselected NaN or infinity. Multi-sample attention uses those slices. Bounds on the resulting graph need a separate source correspondence argument before being used as guarantees about the original finite-precision execution.
Lower a sequential model into structurally checked verifier IR with one distinguished input. This does not establish finite-precision source equivalence; see the slicing restriction above.
Instances For
Lower a custom forward program into structurally checked verifier IR with one distinguished input. Source equivalence remains separate from graph validation.
Instances For
Compute upper affine bounds after validating the lowered verifier input.
The engine retains both sides internally so negative coefficients use the correct parent bound.
Instances For
Compute nodewise CROWN bounds after validating the lowered verifier input.