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 on floats, for executable artifact checks.

Instances For

    Boolean < on floats, for executable artifact checks.

    Instances For

      Check pointwise containment [lo, hi] ⊆ [rootLo, rootHi] for JSON-style float arrays.

      The helper is strict about lengths through all2: 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 ∃ i, threshold[i] < 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