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.
39 lines
1.1 KiB
Text
39 lines
1.1 KiB
Text
opaque q : Nat → Nat
|
|
def f (x : Nat) : Nat :=
|
|
match x with
|
|
| 0 => 1
|
|
| x+1 => q (f x)
|
|
|
|
theorem f_eq : f (x + 1) = q (f x) := rfl
|
|
|
|
/--
|
|
trace: [diag] Diagnostics
|
|
[reduction] unfolded declarations (max: 15, num: 3):
|
|
[reduction] Nat.rec ↦ 15
|
|
[reduction] Add.add ↦ 10
|
|
[reduction] HAdd.hAdd ↦ 10
|
|
[reduction] unfolded reducible declarations (max: 15, num: 1):
|
|
[reduction] Nat.casesOn ↦ 15
|
|
use `set_option diagnostics.threshold <num>` to control threshold for reporting counters
|
|
-/
|
|
#guard_msgs in
|
|
example : f (x + 5) = q (q (q (q (q (f x))))) :=
|
|
set_option diagnostics.threshold 5 in
|
|
set_option diagnostics true in
|
|
rfl
|
|
|
|
/--
|
|
trace: [diag] Diagnostics
|
|
[reduction] unfolded declarations (max: 15, num: 3):
|
|
[reduction] Nat.rec ↦ 15
|
|
[reduction] Add.add ↦ 10
|
|
[reduction] HAdd.hAdd ↦ 10
|
|
[reduction] unfolded reducible declarations (max: 15, num: 1):
|
|
[reduction] Nat.casesOn ↦ 15
|
|
use `set_option diagnostics.threshold <num>` to control threshold for reporting counters
|
|
-/
|
|
#guard_msgs in
|
|
example : f (x + 5) = q (q (q (q (q (f x))))) := by
|
|
set_option diagnostics.threshold 5 in
|
|
set_option diagnostics true in
|
|
rfl
|