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.
29 lines
503 B
Text
29 lines
503 B
Text
opaque f : Nat → Nat
|
|
|
|
/--
|
|
info: Try this:
|
|
[apply] simp only [h1, x]
|
|
---
|
|
warning: declaration uses `sorry`
|
|
-/
|
|
#guard_msgs in
|
|
example (a : Nat) : True := by
|
|
let x := a
|
|
have h1 : f x = 2 := sorry
|
|
suffices f a = 2 by sorry
|
|
let w := a + a
|
|
simp? only [h1, w, x]
|
|
|
|
/--
|
|
info: Try this:
|
|
[apply] simp only [this, x]
|
|
---
|
|
warning: declaration uses `sorry`
|
|
-/
|
|
#guard_msgs in
|
|
example : True := by
|
|
let x := 37
|
|
let y := 34
|
|
have : x = 2 := sorry
|
|
suffices 37 = 2 by sorry
|
|
simp? only [this, x, y]
|