TorchLean API

NN.MLTheory.CROWN.Proofs.GraphCertSoundness.Main

Graph IBP Certificate Soundness #

The induction theorem: local IBP certificate consistency plus local semantic consistency implies that every certified node box encloses the corresponding semantic value.

Main theorem: local IBP certificate implies semantic enclosure (supported subset) #

We use strong induction on node id, assuming a topological order: every parent id is strictly smaller than the node id.

Topological order assumption: all parent ids are strictly smaller than the node id.

Instances For

    A graph is supported by this soundness theorem if every node kind is in our supported subset.

    Instances For

      Inputs are well-formed if every .input node has a value, and that value is enclosed by its input box from ParamStore.inputBoxes.

      Instances For

        The enclosure theorem #

        Assumptions:

        Conclusion:

        theorem NN.MLTheory.CROWN.Graph.CertSoundness.cert_encloses_semantics (g : Graph) (ps : ParamStore ) (cert : Array (Option (FlatBox ))) (inputs : Std.HashMap Val) (vals : Array (Option Val)) (htopo : TopoSorted g) (hsupp : Supported g) (hcert : CertLocalOK g ps cert) (hsem : SemLocalOK g ps inputs vals) (hinputs : InputsEnclosed g ps inputs) (id : ) :
        id < g.nodes.sizematch cert[id]!, vals[id]! with | some B, some v => EnclosesBox B v | x, x_1 => True