This PR allows `grind` to use `List.eq_nil_of_length_eq_zero` (and `Array.eq_empty_of_size_eq_zero`), but only when it has already proved the length is zero.
17 lines
406 B
Text
17 lines
406 B
Text
import Std
|
|
import Lean.Elab.Tactic.Grind.LintExceptions
|
|
|
|
/-! `BitVec` exceptions -/
|
|
|
|
-- `BitVec.msb_replicate` is reasonable at 25.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 30) BitVec.msb_replicate
|
|
|
|
-- `BitVec.msb_signExtend` is reasonable at 26.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 26) BitVec.msb_signExtend
|
|
|
|
/-! Check BitVec namespace: -/
|
|
|
|
#guard_msgs in
|
|
#grind_lint check (min := 23) in BitVec
|