TorchLean API

NN.Verification.Builtin.Correctness

Correctness #

TorchLean→IR correctness helpers.

This file contains no correctness theorem itself. It provides the two executable bridges that the lowering theorems under NN.Verification.Builtin.Proved (in particular Proved.Correctness.runForwardIR_eq_evalForward) are stated about:

Convert a verifier ParamStore into an IR Payload for NN.IR.Graph.denote.

This is the bridge between the CROWN/LiRPA parameter representation used by the verification pipeline and the executable IR semantics.

Instances For
    def NN.Verification.Builtin.runForwardIR {α : Type} [TorchLean.Storage α] [Context α] {inShape outShape : Spec.Shape} (c : LoweredIR α) (x : TorchLean.Tensor α inShape) :

    Evaluate a LoweredIR forward graph on an input tensor, returning a shape-checked tensor.

    Instances For