Documentation

LeanCert.ML.IntervalVector

ML-Specific Interval Operations #

This file provides activation functions for neural network interval propagation, building on the general interval vector operations from Engine.IntervalVector.

Main definitions #

Main theorems #

ReLU Activation #

ReLU applied to an interval: max(0, x) for all x in the interval. Returns [max(0, lo), max(0, hi)]

Equations
Instances For

    Soundness of ReLU: if x ∈ I, then max(0, x) ∈ relu I

    Soundness of vector ReLU

    Sigmoid Activation #

    Sigmoid interval: conservative bound [0, 1]. Since sigmoid(x) = 1/(1 + exp(-x)) ∈ (0, 1) for all x, [0, 1] is a sound overapproximation for any input interval.

    Equations
    Instances For

      Real sigmoid function

      Equations
      Instances For

        Sigmoid is bounded in (0, 1)

        Soundness of sigmoid: sigmoid(x) ∈ [0, 1] for all x