lean4-htt/tests/lean/run/grind_lint_std_hashmap.lean
Kim Morrison e1b19198a9
feat: another grind_pattern for getElem?_pos (#11963)
This PR activates `getElem?_pos` more aggressively, triggered by `c[i]`.

- [x] depends on: #12176

🤖 Prepared with Claude Code

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-01-28 03:45:54 +00:00

15 lines
509 B
Text

import Std
import Lean.Elab.Tactic.Grind.LintExceptions
/-! Check Std hash map/set namespaces: -/
-- `Std.ExtHashMap.getElem_filterMap'` is reasonable at 30.
#guard_msgs in
#grind_lint inspect (min := 35) Std.ExtHashMap.getElem_filterMap'
-- `Std.HashMap.getElem_filterMap'` is reasonable at 28.
#guard_msgs in
#grind_lint inspect (min := 30) Std.HashMap.getElem_filterMap'
#guard_msgs in
#grind_lint check (min := 20) in Std.DHashMap Std.HashMap Std.HashSet Std.ExtDHashMap Std.ExtHashMap Std.ExtHashSet