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.
25 lines
524 B
Text
25 lines
524 B
Text
def works (l : List α) : List α :=
|
||
match l with
|
||
| [] => []
|
||
| _::tail =>
|
||
works tail
|
||
decreasing_by decreasing_tactic -- to force well-founded recursion
|
||
|
||
-- Both of these appear in mathlib
|
||
|
||
@[simp]
|
||
theorem add_zero (n : Nat) : n + 0 = n := by sorry
|
||
|
||
@[simp]
|
||
theorem lt_add_iff_pos_left (a : Nat) {b : Nat} :
|
||
a < b + a ↔ 0 < b
|
||
:= by sorry
|
||
|
||
-- Breaking this:
|
||
|
||
def should_still_work (l : List α) : List α :=
|
||
match l with
|
||
| [] => []
|
||
| _::tail =>
|
||
should_still_work tail
|
||
decreasing_by decreasing_tactic
|