TorchLean API

NN.Proofs.IR.ShapeContracts

IR Shape Contract Facts #

Closed facts for the graph-level shape contracts used by NN.IR.Infer.

These used to live as an IO regression test. They are pure Lean computations, so the useful artifact is a theorem: the same shape checker that protects runtime IR paths rejects malformed nodes and accepts the intended scalar-broadcast case.

Instances For