TorchLean API

NN.Verification.Builtin.Correctness

Correctness #

TorchLean→IR correctness helpers.

This file does not (yet) contain a full lowering-correctness theorem for arbitrary TorchLean.Programs (the current embedding is higher-order). It provides the small, reusable bridges needed by concrete model-correctness theorems:

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

    Cast a tensor across a proved shape equality.

    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