NF End-To-End GraphData Bridge #
End-to-end runtime→spec bridge for NF graphs executed as GraphData.
NN.Proofs.RuntimeApprox.NF provides per-op NF approximation lemmas and composes them over
RevGraph via RevGraph.eval_approx and NFBackend.backprop_approx.
This file links those results to the executable SSA/DAG form used by the proof-compiled runtime:
Proofs.Autograd.Algebra.GraphData.
In other words, this is where the abstract approximation graph model meets the executable graph interpreter used elsewhere in TorchLean.
Executable forward-pass soundness for an NF RevGraph erased to GraphData.
The theorem says that evaluating the executable GraphData forward interpreter gives the same
runtime context covered by RevGraph.eval_approx, so the abstract graph approximation theorem
applies to the executable representation.
Executable backward-pass soundness for an NF RevGraph erased to GraphData.
Given approximate inputs and approximate seed cotangents, executable GraphData.backpropCtx
approximates the real-spec reverse-mode result with the bound computed by the NF backend.