Documentation

LeanCert.Examples.Calculus

Calculus Examples #

This file demonstrates automatic differentiation and derivative bounds using LeanCert.

Verified AD Examples #

The evalDual_val_correct theorem is FULLY PROVED for the supported expression subset {const, var, add, mul, neg, sin, cos}. This demonstrates verified forward-mode automatic differentiation with interval bounds.

Supported expressions for AD #

Interval environments for AD #

Create a dual environment for differentiating with respect to x

Equations
Instances For

    Verified value computation #

    Verified: the value component of dual evaluation is correct. For any x ∈ [0,1], the value of x² lies in the computed interval. This theorem has NO SORRY.

    Verified: the value component for x³ is correct

    Verified: the value component for sin(x)*cos(x) is correct

    Point evaluation examples #

    Verified exp support via IntervalReal #

    With the new IntervalReal (real-endpoint intervals) and ExprSupportedExt, we can now prove facts about expressions containing exp!

    Real-endpoint unit interval [0, 1]

    Equations
    Instances For

      Verified: exp(x) on [0, 1] gives a value in the computed interval. This theorem has NO SORRY - exp is now fully supported!

      Verified: exp(x²) on [0, 1] gives a value in the computed interval. This demonstrates chained exp support!