TorchLean API

NN.Proofs.RuntimeApprox.NF

NF Runtime Approximation Backend #

Proof-relevant rounded tensor/operator approximation for NF.

NF wraps real values and inserts an explicit neural_round step after primitive arithmetic. The modules collected here prove local bounds for elementwise ops, reductions, shape-only ops, linear algebra, Conv2D forward/backward, and graph-level end-to-end execution.

File roles:

This is the backend we can reason about inside Lean. Hardware CUDA/IEEE execution remains an implementation trust boundary unless it is connected to this model by a separately proved or certified semantics.