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.
21 lines
445 B
Text
21 lines
445 B
Text
namespace Ex1
|
|
opaque f : Nat → Nat → Nat
|
|
|
|
@[simp] theorem foo : f x (x, y).2 = y := by sorry
|
|
|
|
example : f a b ≤ b := by
|
|
fail_if_success simp -- should fail
|
|
set_option diagnostics true in
|
|
simp (config := { index := false })
|
|
|
|
end Ex1
|
|
|
|
namespace Ex2
|
|
opaque f : Nat → Nat → Nat
|
|
|
|
@[simp] theorem foo : f x (no_index (x, y).2) = y := by sorry
|
|
|
|
example : f a b ≤ b := by
|
|
simp -- should work since `foo` is using `no_index`
|
|
|
|
end Ex2
|