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.
20 lines
488 B
Text
20 lines
488 B
Text
theorem some_induction
|
|
{motive : Nat → Prop}
|
|
(zero : motive 0)
|
|
(succ : forall n, 0 < n → let m := n - 1; motive m → motive n) :
|
|
∀ n, motive n
|
|
| 0 => zero
|
|
| n+1 => succ (n+1) (Nat.zero_lt_succ n) (some_induction zero succ n)
|
|
|
|
|
|
example (n : Nat) : n = n := by
|
|
induction n using some_induction
|
|
case zero => rfl
|
|
case succ n _h _m _IH =>
|
|
rfl
|
|
|
|
example (n : Nat) : n = n := by
|
|
induction n using some_induction with
|
|
| zero => rfl
|
|
| succ n _h _m _IH =>
|
|
rfl
|