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.
61 lines
1.3 KiB
Text
61 lines
1.3 KiB
Text
/--
|
|
error: Failed: `fail` tactic was invoked
|
|
z : Nat
|
|
⊢ z - 1 < z
|
|
-/
|
|
#guard_msgs in
|
|
def g (z : Nat) (y : Nat) : Nat := g (z - 1) y
|
|
termination_by z
|
|
decreasing_by fail
|
|
|
|
/--
|
|
error: Failed: `fail` tactic was invoked
|
|
x : List Nat
|
|
⊢ sizeOf x.tail < sizeOf x
|
|
-/
|
|
#guard_msgs in
|
|
def h (x : List Nat) (y : Nat) : Nat := h x.tail y
|
|
termination_by x
|
|
decreasing_by fail
|
|
|
|
/--
|
|
error: Failed: `fail` tactic was invoked
|
|
x : List Nat
|
|
⊢ x.tail.length < x.length
|
|
-/
|
|
#guard_msgs in
|
|
def f (x : List Nat) (y : Nat) : Nat := f x.tail y
|
|
termination_by x.length
|
|
decreasing_by fail
|
|
|
|
/--
|
|
error: Failed: `fail` tactic was invoked
|
|
x : List Nat
|
|
⊢ x.tail.length < x.length
|
|
-/
|
|
#guard_msgs in
|
|
mutual
|
|
def f1 (x : List Nat) (y : Nat) : Nat := f2 x.tail y
|
|
termination_by x.length
|
|
decreasing_by fail
|
|
def f2 (x : List Nat) (y : Nat) : Nat := f1 x.tail y
|
|
termination_by x.length
|
|
decreasing_by fail
|
|
end
|
|
|
|
/--
|
|
error: Failed: `fail` tactic was invoked
|
|
x : List Nat
|
|
⊢ InvImage (fun x1 x2 => x1 < x2) (fun x => PSum.casesOn x (fun x => x.length) fun x => x.length) (PSum.inr x.tail)
|
|
(PSum.inl x)
|
|
-/
|
|
#guard_msgs in
|
|
set_option debug.rawDecreasingByGoal true in
|
|
mutual
|
|
def g1 (x : List Nat) (y : Nat) : Nat := g2 x.tail y
|
|
termination_by x.length
|
|
decreasing_by fail
|
|
def g2 (x : List Nat) (y : Nat) : Nat := g1 x.tail y
|
|
termination_by x.length
|
|
decreasing_by fail
|
|
end
|