Documentation

LeanCert.Validity.Types

Discovery Mode: Proof-Carrying Result Types #

This module defines structures that bundle computed results with their semantic proofs. These are the foundation of "Discovery Mode" - finding and certifying answers automatically.

Main Definitions #

Design Philosophy #

Each structure contains:

  1. Data: The computed numerical result (bounds, intervals, etc.)
  2. Witness: Location information (which box/interval contains the extremum)
  3. Proof: A Lean proof term establishing the semantic correctness

The proofs use the "Golden Theorems" from Certificate.lean applied to computationally verified certificates.

Configuration #

Configuration for discovery operations

  • maxIterations :

    Maximum iterations for optimization

  • tolerance :

    Tolerance for convergence

  • taylorDepth :

    Taylor expansion depth

  • useMonotonicity : Bool

    Use monotonicity pruning

  • maxBisectionDepth :

    Maximum depth for root finding bisection

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

        Convert to GlobalOptConfig

        Equations
        Instances For

          Convert to EvalConfig

          Equations
          Instances For

            Global Minimum #

            A verified global minimum bound.

            This structure bundles:

            • The computed lower bound bound
            • The best box minimizerBox containing a near-minimizer
            • A proof that bound ≤ f(x) for all x in the domain

            The proof establishes: ∀ ρ, Box.envMem ρ domain → (∀ i ≥ domain.length, ρ i = 0) → bound ≤ Expr.eval ρ expr

            Instances For

              Width of the bound interval

              Equations
              Instances For

                Check if the bound is tight within tolerance

                Equations
                Instances For

                  Global Maximum #

                  A verified global maximum bound.

                  This structure bundles:

                  • The computed upper bound bound
                  • The best box maximizerBox containing a near-maximizer
                  • A proof that f(x) ≤ bound for all x in the domain
                  Instances For

                    Width of the bound interval

                    Equations
                    Instances For

                      Root Finding #

                      Status of a verified root

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

                          A verified root of an expression.

                          This structure bundles:

                          • An isolating interval interval containing a root
                          • The status (existence vs uniqueness)
                          • A proof that there exists x ∈ interval with f(x) = 0
                          Instances For

                            Approximate location of the root (midpoint)

                            Equations
                            Instances For

                              Width of the isolating interval

                              Equations
                              Instances For

                                A verified unique root with uniqueness proof

                                Instances For

                                  Integration #

                                  A verified integral bound.

                                  This structure bundles:

                                  • Lower and upper bounds on the integral
                                  • A proof that the true integral lies within these bounds
                                  Instances For

                                    Width of the integral bound

                                    Equations
                                    Instances For

                                      Bound Verification #

                                      A verified upper bound certificate.

                                      Proves: ∀ x ∈ domain, f(x) ≤ bound

                                      Instances For

                                        A verified lower bound certificate.

                                        Proves: ∀ x ∈ domain, bound ≤ f(x)

                                        Instances For

                                          Multi-dimensional variants #

                                          A verified bound over a box (multi-dimensional domain)

                                          Instances For