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
- One or more equations did not get rendered due to their size.
- LeanCert.Tactic.Auto.runShadowDiagnostic boundGoal _goalType = pure (Lean.toMessageData "(Could not parse goal for diagnostics)")
Instances For
Dyadic Backend Helper #
Runtime facts from a retained checked-Dyadic bound proof.
- checker : Lean.Name
- verifier : Lean.Name
- verification : VerificationUsage
- precision : ℤ
- taylorDepth : ℕ
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.
- dyadic : Bool
- verification : VerificationUsage
- taylorDepth : ℕ
Instances For
Expected non-successes from the direct interval-bound portfolio.
- unsupported (expression detail : String) : IntervalBoundFailure
- inconclusive (detail : String) : IntervalBoundFailure
- transportFailure (detail : String) : IntervalBoundFailure
- internalFailure (detail : String) : IntervalBoundFailure
Instances For
Equations
- One or more equations did not get rendered due to their size.
Instances For
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
Prove ∀ x ∈ I, f x ≤ c
Equations
- One or more equations did not get rendered due to their size.
Instances For
Prove ∀ x ∈ I, c ≤ f x
Equations
- One or more equations did not get rendered due to their size.
Instances For
Prove ∀ x ∈ I, f x < c
Equations
- One or more equations did not get rendered due to their size.
Instances For
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
- LeanCert.Tactic.Auto.intervalBoundCoreTyped taylorDepth = LeanCert.Tactic.Auto.intervalBoundCoreTypedAt (-80) taylorDepth
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 depthcertify_bound 20- fixes Taylor depth at 20 while refining Dyadic precisioncertify_bound (trust := kernel)- kernel-only certificate verification (likewisenative,auto; defaults to theleancert.trustoption)
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.