TorchLean API

NN.Verification.Monotonicity.Json

JSON acceptance implies real monotonicity #

The monotonicity_v1 format records an input_dim and a nonempty layers array. Linear layers have kind = "linear", a row-major weights array and a bias array; ReLU layers have kind = "relu". Parameters are exact integer or fraction strings, never rounded JSON numbers.

The decoder constructs shape-checked certificates using TorchLean tensors. Acceptance implies global real monotonicity of the decoded model, with no external transfer-soundness premise. This format does not import ONNX or certify the CROWN JSON formats. It says nothing about a different model that an external producer may claim the document represents.

Read one vector layer, checking its input dimension.

Instances For

    Read a nonempty chain; each output dimension determines the next input dimension.

    Instances For

      Decode exact parameters, rejecting malformed dimensions and unsupported operations.

      Instances For

        The executable JSON checker: malformed documents and failed weight checks reject.

        Instances For

          Every accepted JSON document denotes a globally monotone real TorchLean model.

          Parse and check a complete JSON document, rejecting syntax errors.

          Instances For

            Text acceptance establishes monotonicity of the model decoded from that text.