Evaluation lemmas for proved TorchLean correctness.
This import point collects denotation-side facts used when moving from lowered and evaluated TorchLean graphs back to their specification semantics.
Current bridge coverage includes:
- common elementwise arithmetic and activations emitted by PyTorch/ONNX import paths;
- shape-changing operations such as reshape, flatten, broadcast, scalar sum, leading-axis concat, axis permutation, supported transpose forms, and axis reductions;
- matrix and batched-matrix
matmulthrough one typed operation; - softmax along any valid tensor axis;
- payload-backed
linearand arbitrary-rank no-dilation convolution; - payload-backed constants;
layernorm axisthrough a rank-independent matrix evaluation view;- graph-structural nodes such as
inputanddetach, plus scalar MSE loss; - eval-mode BatchNorm over an arbitrary channel axis with payload-backed running statistics.
- exact
ParamStoreto IRPayloadforwarding facts for every payload-backed op. - lowering pass insertion facts for the payload-backed nodes in the proved forward fragment.