Documentation

LeanCert.Engine.AD.Basic

Automatic Differentiation - Basic Definitions #

This file provides the core types and algebraic operations for forward-mode automatic differentiation using interval arithmetic.

Main definitions #

Dual number with interval components: represents (value, derivative)

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Default DualInterval for unsupported expression branches

      Equations

      Dual interval for a constant (derivative is zero)

      Equations
      Instances For

        Dual interval for the constant π (derivative is zero)

        Equations
        Instances For

          Dual interval for the variable we're differentiating with respect to

          Equations
          Instances For

            Add two dual intervals

            Equations
            Instances For

              Multiply two dual intervals (product rule)

              Equations
              Instances For

                Negate a dual interval

                Equations
                Instances For

                  Inverse of a dual interval (quotient rule: d(1/f) = -f'/f²) Uses invInterval for the value component. For intervals containing zero, returns wide bounds.

                  Equations
                  Instances For