Skip to content

Commit c956925

Browse files
committed
Merge branch 'finite-fields' of https://github.com/ufmg-smite/lean-smt into finite-fields
2 parents 8fe4a1e + 4f632a7 commit c956925

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

Smt/Tactic/Smt.lean

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,11 @@ def smt (cfg : Config) (mv : MVarId) (hs : Array Expr) : MetaM Result := mv.with
7676
let goalType : Q(Prop) ← mv.getType
7777
let mv₀ := (← Meta.mkFreshExprMVar (← mv.getType)).mvarId!
7878
-- 1. Cleanup goal.
79-
let mv₀ ← mv₀.cleanup (← hs.foldlM (fun s h => return (← (Expr.collectFVars h).run s).snd) {}).fvarIds
79+
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)
8084
trace[smt.preprocess] "after cleanup: {mv₀}"
8185
mv₀.withContext do
8286
-- 2. Preprocess the hints and goal.

0 commit comments

Comments
 (0)