TorchLean API

NN.Verification.Cert.CROWNQuery

Exact CROWN output-query checks #

Recompute affine bounds for dense/ReLU networks and prove strict or non-strict output inequalities over an input box. The arithmetic is rational; the conclusion uses TorchLean's existing real module semantics. Every transfer and final query check is proved here, with no external soundness premise.

Check all upper endpoints against zero, using strict inequalities when requested.

Instances For

    Affine bounds with their input and output dimensions checked by Lean.

    Instances For

      The bounds enclose a value at a particular real input.

      Instances For
        Instances For

          Bound each affine form over the original input box.

          Instances For
            Instances For

              Dense/ReLU networks with a proposed lower-relaxation slope at each ReLU.

              Instances For

                Use the same linear and activation modules as ordinary TorchLean models.

                Instances For

                  Recompute affine bounds with existing CROWN transfers and exact rational arithmetic.

                  Instances For

                    Replayed bounds enclose the whole network, not just individual certificate entries.

                    A conjunction of affine output inequalities, interpreted as weights * output + bias.

                    Instances For

                      Reject reversed boxes and empty input, output, or query dimensions.

                      Instances For

                        An executable safety check; no externally supplied affine bounds are trusted.

                        Instances For

                          Every real input in the decoded box satisfies every decoded output inequality.

                          Instances For

                            Acceptance implies query-level soundness with no unproved transfer or coverage premise.