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)
10 lines
164 B
Text
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
|