Heartbeat-bounded omega proof attempts #
Provides the shared bounded-omega helper Cslib.Tactic.WramOmega.proveOmega? used by wram_omega
(for pairwise power-of-two exponent comparisons) and fits (reduceFits and side-queries) to
attempt closing an auxiliary proposition from explicit proof terms under a local heartbeat cap
without leaking metavariable or kernel state on failure.
Main definitions #
Cslib.Tactic.WramOmega.proveOmega?: attempt to prove a proposition byomegafrom explicit hypotheses within a givenmaxHeartbeatsbudget (in thousands), restoringMetaMstate on failure or timeout.
def Cslib.Tactic.WramOmega.proveOmega? (maxHeartbeats : ℕ) (hyps : List Lean.Expr) (goalType : Lean.Expr) :
Attempt to prove goalType by omega from hyps within maxHeartbeats (in thousands, as for
the maxHeartbeats option), returning none and restoring the MetaM state if omega fails or
exhausts the budget.