| /- | |
| Copyright (c) 2021 Microsoft Corporation. All rights reserved. | |
| Released under Apache 2.0 license as described in the file LICENSE. | |
| Authors: Leonardo de Moura | |
| -/ | |
| module | |
| prelude | |
| public import Lean.Elab.Tactic.Delta | |
| public import Lean.Elab.Tactic.Conv.Basic | |
| public section | |
| namespace Lean.Elab.Tactic.Conv | |
| open Meta | |
| @[builtin_tactic Lean.Parser.Tactic.Conv.delta] def evalDelta : Tactic := fun stx => withMainContext do | |
| let declNames ← stx[1].getArgs.mapM fun stx => realizeGlobalConstNoOverloadWithInfo stx | |
| let lhsNew ← deltaExpand (← instantiateMVars (← getLhs)) declNames.contains | |
| changeLhs lhsNew | |
| end Lean.Elab.Tactic.Conv |