TorchLean API

NN.Proofs.RuntimeApprox.NF

NF Runtime Approximation Backend #

Proof-relevant rounded tensor/operator approximation for NF.

The noncomputable FloatLib.Floats.Formats.Flocq.NF wraps real values and inserts an explicit Flocq.round step after primitive arithmetic. The modules collected here prove local bounds for elementwise ops, reductions, shape-only ops, linear algebra, attention, normalization, optimizers, 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.