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.
44 lines
931 B
Text
44 lines
931 B
Text
set_option warn.sorry false
|
|
|
|
axiom P : Nat → Prop
|
|
axiom aP n : P n
|
|
|
|
/-- trace: ⊢ P 0 -/
|
|
#guard_msgs in
|
|
example : P (Nat.ctorIdx Nat.zero) := by
|
|
fail_if_success simp only []
|
|
simp only [reduceCtorIdx]
|
|
trace_state
|
|
exact aP 0
|
|
|
|
/-- trace: ⊢ P 0 -/
|
|
#guard_msgs in
|
|
example : P (List.ctorIdx (List.nil : List Int)) := by
|
|
fail_if_success simp only []
|
|
simp only [reduceCtorIdx]
|
|
trace_state
|
|
exact aP 0
|
|
|
|
/-- trace: ⊢ P 1 -/
|
|
#guard_msgs in
|
|
example : P (List.ctorIdx [1,2,3]) := by
|
|
fail_if_success simp only []
|
|
simp only [reduceCtorIdx]
|
|
trace_state
|
|
exact aP 1
|
|
|
|
/-- trace: ⊢ P 1 -/
|
|
#guard_msgs in
|
|
example : P (Option.ctorIdx (.some true)) := by
|
|
fail_if_success simp only []
|
|
simp only [reduceCtorIdx]
|
|
trace_state
|
|
exact aP 1
|
|
|
|
/-- trace: ⊢ P 0 -/
|
|
#guard_msgs in
|
|
example : P (Option.ctorIdx (.none : Option Bool)) := by
|
|
fail_if_success simp only []
|
|
simp only [reduceCtorIdx]
|
|
trace_state
|
|
exact aP 0
|