This PR sets up the new integrated test/bench suite. It then migrates all benchmarks and some related tests to the new suite. There's also some documentation and some linting. For now, a lot of the old tests are left alone so this PR doesn't become even larger than it already is. Eventually, all tests should be migrated to the new suite though so there isn't a confusing mix of two systems.
52 lines
1.6 KiB
Text
52 lines
1.6 KiB
Text
import Std
|
|
import Lean.Elab.Tactic.Grind.LintExceptions
|
|
|
|
/-! `List` exceptions -/
|
|
|
|
-- TODO: Not sure what to do here, see https://lean-fro.zulipchat.com/#narrow/channel/503415-grind/topic/.60.23grind_lint.60.20command/near/556730710
|
|
-- #grind_lint inspect List.getLast?_concat
|
|
#grind_lint skip List.getLast?_concat
|
|
|
|
-- `List.getLast?_pmap` is reasonable at 31.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 31) List.getLast?_pmap
|
|
|
|
-- `List.replicate_sublist_iff` is reasonable at 30.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 30) List.replicate_sublist_iff
|
|
|
|
-- `List.Sublist.append` is reasonable at 25.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 25) List.Sublist.append
|
|
|
|
-- `List.Sublist.middle` is reasonable at 25.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 25) List.Sublist.middle
|
|
|
|
-- `List.getLast_attach` is reasonable at 21.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 25) List.getLast_attach
|
|
|
|
-- `List.getLast_attachWith` is reasonable at 22.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 25) List.getLast_attachWith
|
|
|
|
-- `List.head_attachWith` is reasonable at 21.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 25) List.head_attachWith
|
|
|
|
-- `List.drop_append_length` is reasonable at 25.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 25) List.drop_append_length
|
|
|
|
-- `List.getLast_scanr` is a very reasonable lemma.
|
|
-- However, given the signature of it, `foldl_append` gets
|
|
-- triggered very frequently. This seems to be an independent
|
|
-- problem, having nothing to do with `getLast_scanr`.
|
|
#guard_msgs in
|
|
#grind_lint inspect (min := 100) (detailed := 100) List.getLast_scanr
|
|
|
|
/-! Check List namespace: -/
|
|
|
|
#guard_msgs in
|
|
#grind_lint check (min := 20) in List
|