Nodes #
Convenience constructors for algebraic tape nodes/graphs.
This is the "approach (a)" authoring layer: you build an SSA/DAG graph out of local nodes,
then compile it to a runtime tape via NN/Proofs/Autograd/Runtime/Link.lean.
This file focuses on unary nodes that depend on a single context entry (an Idx).
That is enough to build many fixed-parameter inference graphs (e.g. MLP forward + input gradients).
Extending to multi-parent nodes (e.g. weight gradients) is intended, but left incremental.
Build an executable unary node from a spec OpSpec, storing the VJP in a sparse TList.
Instances For
Executable binary add node (two parents of the same shape).
Instances For
Build a proof-carrying unary node from an OpSpecCorrect.
Instances For
Proof-carrying binary add node (two parents of the same shape).
Instances For
Append a unary node built from an OpSpec (executable-only).
Instances For
Append a unary node built from an OpSpecCorrect (proof-carrying).