lean4-htt/tests/lean/run/replayConst.lean
Sebastian Ullrich eaf1c6b4e1
fix: replayConst with native_decide (#8157)
This PR fixes an incompatibility of `replayConst` as used by e.g.
`aesop` with `native_decide`-using tactics such as `bv_decide`
2025-04-28 20:35:15 +00:00

15 lines
448 B
Text

import Lean.Elab.Tactic.Basic
import Std.Tactic.BVDecide
/-! `replayConst` should be able to replay constants using `native_decide`. -/
open Lean Lean.Meta Lean.Elab.Tactic in
elab "replay" ts:tacticSeq : tactic => do
let initEnv ← getEnv
evalTactic ts
let finalState ← saveState
setEnv $ ← initEnv.replayConsts initEnv finalState.term.meta.core.env
theorem test
(x y : BitVec 128) (h : y = x) : x = y := by
replay bv_decide