We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
realizeGlobalConstNoOverloadWithInfo
1 parent cdaa827 commit 879c93fCopy full SHA for 879c93f
src/Lean/Elab/Tactic/Grind/Main.lean
@@ -35,8 +35,7 @@ def elabGrindPattern : CommandElab := fun stx => do
35
| _ => throwUnsupportedSyntax
36
where
37
go (thmName : TSyntax `ident) (terms : Syntax.TSepArray `term ",") (kind : AttributeKind) : CommandElabM Unit := liftTermElabM do
38
- let declName ← resolveGlobalConstNoOverload thmName
39
- discard <| addTermInfo thmName (← mkConstWithLevelParams declName)
+ let declName ← realizeGlobalConstNoOverloadWithInfo thmName
40
let info ← getConstVal declName
41
forallTelescope info.type fun xs _ => do
42
let patterns ← terms.getElems.mapM fun term => do
0 commit comments