Documentation

LeanCert.Tactic.IntervalAuto.Bound

Main Interval Bound Tactics #

Core interval bound proving: intervalBoundCore, certify_bound, certify_bound. Also includes shadow diagnostics for error reporting.

Diagnostic Helpers for Shadow Computation #

Run shadow computation to diagnose why a proof failed

Equations
Instances For

    Dyadic Backend Helper #

    Runtime facts from a retained checked-Dyadic bound proof.

    Instances For

      Runtime facts from the retained direct-bound proof. Both Dyadic success and the checked Rational fallback retain their checker, Golden Theorem, and verification event.

      Instances For

        Expected non-successes from the direct interval-bound portfolio.

        Instances For
          Equations
          • One or more equations did not get rendered due to their size.
          Instances For
            def LeanCert.Tactic.Auto.tryDyadicBoundImpl (goal : Lean.MVarId) (reified : Meta.ReifyReport) (boundRat : Lean.Expr) (intervalInfo : IntervalInfo) (taylorDepth : ℕ) (isStrict isLower : Bool) (precision : ℤ := -80) :

            Try to prove a forall-bound goal using the Dyadic backend. Returns metadata if the entire goal was closed, none otherwise. Uses the checked Dyadic evaluator for arbitrary expressions.

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

              Main Tactic Implementation #

              The main certify_bound tactic implementation

              Equations
              • One or more equations did not get rendered due to their size.
              Instances For
                def LeanCert.Tactic.Auto.intervalBoundCore.proveForallLe (useDyadic : Bool) (goal : Lean.MVarId) (intervalInfo : IntervalInfo) (func bound : Lean.Expr) (taylorDepth : ℕ) :

                Prove ∀ x ∈ I, f x ≤ c

                Equations
                • One or more equations did not get rendered due to their size.
                Instances For
                  def LeanCert.Tactic.Auto.intervalBoundCore.proveForallGe (useDyadic : Bool) (goal : Lean.MVarId) (intervalInfo : IntervalInfo) (func bound : Lean.Expr) (taylorDepth : ℕ) :

                  Prove ∀ x ∈ I, c ≤ f x

                  Equations
                  • One or more equations did not get rendered due to their size.
                  Instances For
                    def LeanCert.Tactic.Auto.intervalBoundCore.proveForallLt (useDyadic : Bool) (goal : Lean.MVarId) (intervalInfo : IntervalInfo) (func bound : Lean.Expr) (taylorDepth : ℕ) :

                    Prove ∀ x ∈ I, f x < c

                    Equations
                    • One or more equations did not get rendered due to their size.
                    Instances For
                      def LeanCert.Tactic.Auto.intervalBoundCore.proveForallGt (useDyadic : Bool) (goal : Lean.MVarId) (intervalInfo : IntervalInfo) (func bound : Lean.Expr) (taylorDepth : ℕ) :

                      Prove ∀ x ∈ I, c < f x

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

                        Direct typed Rational implementation. It performs one checker closure and returns the observation from that closure; failure classification never reruns the numerical checker.

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

                          Direct typed bound attempt at an explicit Dyadic precision and Taylor depth. The Rational fallback runs only after that Dyadic attempt is inconclusive. Rational proof construction runs once on success.

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

                            Compatibility entry point retaining the historical fixed -80 Dyadic attempt before Rational fallback. New adaptive callers should use intervalBoundAdaptiveCoreTyped.

                            Equations
                            Instances For

                              Try coordinated Dyadic stages in increasing refinement order, then run the Rational fallback once at the final Taylor depth. Each attempt is isolated in the original tactic state.

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

                                Tactic Syntax #

                                Core of certify_bound. Without an explicit Taylor depth, Dyadic precision and Taylor depth increase together. With an explicit depth, only Dyadic precision is refined. Rational fallback runs once after the final Dyadic stage.

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

                                  The certify_bound tactic.

                                  Automatically proves bounds on expressions using interval arithmetic.

                                  Usage:

                                  • certify_bound - coordinates increasing Dyadic precision and Taylor depth
                                  • certify_bound 20 - fixes Taylor depth at 20 while refining Dyadic precision
                                  • certify_bound (trust := kernel) - kernel-only certificate verification (likewise native, auto; defaults to the leancert.trust option)

                                  Supports goals of the form:

                                  • ∀ x ∈ I, f x ≤ c
                                  • ∀ x ∈ I, c ≤ f x
                                  • ∀ x ∈ I, f x < c
                                  • ∀ x ∈ I, c < f x
                                  Equations
                                  • One or more equations did not get rendered due to their size.
                                  Instances For