TorchLean API

NN.Proofs.RuntimeApprox.NF.ShapeOps

NF Shape Operators #

NF (rounded) backend: approximation lemmas for shape-only tensor operators.

These operators do not perform arithmetic on scalars (they only permute/replicate entries), so they preserve existing approxT error bounds.

That distinction matters: shape-only ops should not introduce extra rounding error. Their proofs are mostly transport/indexing arguments rather than numerical analysis.

PyTorch correspondence / citations #

These are the proof analogues of “view-like”/index-rearrangement ops in PyTorch which do not change floating-point values, only their arrangement: https://pytorch.org/docs/stable/generated/torch.reshape.html https://pytorch.org/docs/stable/generated/torch.Tensor.view.html https://pytorch.org/docs/stable/generated/torch.permute.html