Verified Forward Fragment: Lowering #
Lowering from the first-order forward fragment into the verifier IR graph and parameter store.
Lowering to verifier IR #
Flatten a well-formed tensor into the FlatTensor payload format used by CROWN/LiRPA IR
nodes.
Instances For
The IR convolution configuration emitted by lowering a conv node.
Instances For
The convolution payload written to the parameter store by lowering a conv node.
Instances For
Lower a single forward-fragment node into the verifier IR.
Returns the corresponding NN.IR.Node together with an updated CROWN ParamStore that contains any
payload required by .const, .linear, and convolution nodes. LayerNorm erases the entry at this
id so that the IR uses unit affine parameters, as the source node does.
Instances For
Append a forward let-chain to the graph and payload store in c. Node ids follow the graph's
current size; the return node sets the output id, which may name an earlier value.
Instances For
Lower a proved forward-fragment program into the verifier IR.
The resulting LoweredIR can be executed by the IR evaluator. The modules under
NN.Verification.Builtin.Proved.Correctness prove that its denotation agrees with evalForward.