lean4-htt/tests/lean/run/6263.lean
Leonardo de Moura a8a160b091
fix: revertAll must clear auxiliary declarations (#6386)
This PR ensures that `revertAll` clears auxiliary declarations when
invoked directly by users.

closes #6263
2024-12-15 00:56:57 +00:00

14 lines
329 B
Text

import Lean
open Lean.Elab.Tactic
variable (p q : Prop)
theorem foo (h : p ∧ q) : q ∧ p := by
run_tac liftMetaTactic1 (·.revertAll)
guard_target =ₛ ∀ (p q : Prop), p ∧ q → q ∧ p
sorry
theorem bla (h : p ∧ q) : q ∧ p := by
revert p q
guard_target =ₛ ∀ (p q : Prop), p ∧ q → q ∧ p
sorry