Main Interval Bound Tactics #
Core interval bound proving: intervalBoundCore, certify_bound, interval_bound.
Also includes shadow diagnostics for error reporting.
Diagnostic Helpers for Shadow Computation #
def
LeanCert.Tactic.Auto.runShadowDiagnostic
(boundGoal : Option BoundGoal)
(_goalType : Lean.Expr)
:
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
Main Tactic Implementation #
The main interval_bound tactic implementation
Equations
- One or more equations did not get rendered due to their size.
Instances For
def
LeanCert.Tactic.Auto.intervalBoundCore.proveForallLe
(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
(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
(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
(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
Tactic Syntax #
The certify_bound tactic.
Automatically proves bounds on expressions using interval arithmetic.
Usage:
certify_bound- uses adaptive precision (tries depths 10, 15, 20, 25, 30)certify_bound 20- uses fixed Taylor depth of 20
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
Note: interval_bound is an alias for backward compatibility.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Backward-compatible alias for certify_bound
Equations
- One or more equations did not get rendered due to their size.