lean4-htt/tests/lean/run/revertMetavarKind.lean
JovanGerb b7248d5295
fix: revert creates natural metavariable goal (#6145)
This PR fixes the `revert` tactic so that it creates a `syntheticOpaque`
metavariable as the new goal, instead of a `natural` metavariable

I reported it on
[Zulip](https://leanprover.zulipchat.com/#narrow/channel/270676-lean4/topic/.60revert.60.20gives.20natural.20metavariable.20goal/near/483388096)
2024-11-21 23:00:57 +00:00

10 lines
164 B
Text

import Lean.Meta
open Lean Elab Tactic
example (n : Nat) : n = n := by
revert n
run_tac do
guard (← getMainDecl).kind.isSyntheticOpaque
intro n
rfl