TorchLean API

NN.Verification.Util.Array

Array predicates for verification artifacts #

Small checkers often receive vector data as JSON float arrays before converting anything into shape-indexed tensors. This module keeps the common pointwise predicates in one place.

Boolean $\leq$ on floats, for executable artifact checks.

Instances For

    Boolean < on floats, for executable artifact checks.

    Instances For

      Check pointwise containment $[\mathrm{lo},\mathrm{hi}]\subseteq[\mathrm{rootLo},\mathrm{rootHi}]$ for JSON-style float arrays.

      The helper is strict about lengths through allPairwise: mismatched arrays are rejected.

      Instances For

        Check whether a lower-bound vector refutes a threshold vector at some coordinate.

        This is the executable form of $\exists i,\ \mathrm{threshold}[i]<\mathrm{lowerBound}[i]$.

        Instances For
          def NN.Verification.Util.Array.refutesThresholdAt (lowerBound threshold : Array Float) (witnessIdx : Nat) :

          Check a supplied witness coordinate for threshold refutation.

          Out-of-range witnesses are rejected instead of silently falling back to another coordinate.

          Instances For