The chapter 3–4 graphs denote the chapter nets #
StableHLO defines the MNIST-CNN and CIFAR forward graphs (cnnFwdGraph, cifarFwdGraph,
cifar8FwdGraph, cifar8BnFwdGraph) and the MNIST-CNN backward graph (cnnBackGraph) as SHlo
terms, and writes their artifacts. This file proves each denotes its net: the forwards are
mnistCnnNoBnForward / cifarCnnForward / cifarCnn8Forward / cifarCnnBn8Forward, and the
backward is the whole-network VJP mnistCnnNoBn_has_vjp_at.backward at a smooth point. Kept out of
StableHLO so the IR imports no net.
CNN forward faithfulness. The forward graph denotes the proven
mnistCnnNoBnForward.
CIFAR-CNN forward faithfulness. The forward graph denotes the proven
cifarCnnForward.
Deeper (8-conv) CIFAR-CNN forward faithfulness. The forward graph denotes the
proven cifarCnn8Forward.
Deeper (8-conv) BN-CIFAR forward faithfulness. The forward graph denotes the
proven cifarCnnBn8Forward.
Max-pool VJP at a raw flattened point (no flatten ∘ unflatten index), so
it composes without a transport cast; backward is maxPoolBackFlat. The
correct field reuses maxPoolFlat_has_vjp_at.correct, aligning the point
via Tensor3.flatten_unflatten.
Equations
- Proofs.StableHLO.maxPoolFlat_has_vjp_at' v hs = { backward := Proofs.StableHLO.maxPoolBackFlat c h w v, correct := ⋯ }