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.
2 parents 8fe4a1e + 4f632a7 commit c956925Copy full SHA for c956925
1 file changed
Smt/Tactic/Smt.lean
@@ -76,7 +76,11 @@ def smt (cfg : Config) (mv : MVarId) (hs : Array Expr) : MetaM Result := mv.with
76
let goalType : Q(Prop) ← mv.getType
77
let mv₀ := (← Meta.mkFreshExprMVar (← mv.getType)).mvarId!
78
-- 1. Cleanup goal.
79
- let mv₀ ← mv₀.cleanup (← hs.foldlM (fun s h => return (← (Expr.collectFVars h).run s).snd) {}).fvarIds
+ let lis ← Meta.getLocalInstances
80
+ let lis := lis.filterMap (Expr.fvarId? ∘ LocalInstance.fvar)
81
+ let lhs ← hs.foldlM (fun s h => return (← (Expr.collectFVars h).run s).snd) {}
82
+ let lhs := lhs.fvarIds
83
+ let mv₀ ← mv₀.cleanup (lis ++ lhs)
84
trace[smt.preprocess] "after cleanup: {mv₀}"
85
mv₀.withContext do
86
-- 2. Preprocess the hints and goal.
0 commit comments