Skip to content

Commit 247ad57

Browse files
authored
fix: lia should not generate instances from hypotheses (#14159)
This PR fixes an oversight in the introduction of `@[lia]` that allowed `lia` to create instances based on quantified hypotheses. This in turn can cause explosive performance regressions if bad hypotheses are in scope.
1 parent 2197581 commit 247ad57

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/Init/Grind/Config.lean

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,9 @@ structure CutsatConfig extends NoopConfig where
286286
-- Re-enable E-matching, so the `@[lia]` lemma set is instantiated.
287287
-- The active theorem set is restricted to lemmas tagged `@[lia]`, not the full `@[grind]` set.
288288
ematch := ({} : Config).ematch
289+
-- despite having e-matching for @[lia] we do not want (potentially runaway) local theorem
290+
-- instantiation
291+
genLocal := 0
289292

290293
/--
291294
A `grind` configuration that only uses `linarith`.

0 commit comments

Comments
 (0)