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.
35 lines
565 B
Text
35 lines
565 B
Text
def foo (n : Nat) : Nat :=
|
|
if n = 0 then 0 else
|
|
let x := n - 1
|
|
have := match () with | _ => trivial
|
|
foo x
|
|
termination_by n
|
|
decreasing_by sorry
|
|
|
|
theorem ex : foo 0 = 0 := by
|
|
unfold foo
|
|
sorry
|
|
|
|
/--
|
|
info: foo.eq_def (n : Nat) :
|
|
foo n =
|
|
if n = 0 then 0
|
|
else
|
|
have x := n - 1;
|
|
have this := foo._proof_3;
|
|
foo x
|
|
-/
|
|
#guard_msgs in
|
|
#check foo.eq_def
|
|
|
|
/--
|
|
info: foo.eq_unfold :
|
|
foo = fun n =>
|
|
if n = 0 then 0
|
|
else
|
|
have x := n - 1;
|
|
have this := foo._proof_3;
|
|
foo x
|
|
-/
|
|
#guard_msgs in
|
|
#check foo.eq_unfold
|