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.
19 lines
481 B
Text
19 lines
481 B
Text
macro "ext_tactic" t:tactic "=>" newT:tactic : command => `(macro_rules | `(tactic| $t) => `(tactic| $newT))
|
|
|
|
syntax "trivial'" : tactic
|
|
|
|
ext_tactic trivial' => apply Eq.refl
|
|
|
|
theorem tst1 (x : Nat) : x = x :=
|
|
by trivial'
|
|
|
|
-- theorem tst2 (x y : Nat) (h : x = y) : x = y :=
|
|
-- by trivial' -- fail as expected
|
|
|
|
ext_tactic trivial' => assumption
|
|
|
|
theorem tst1b (x : Nat) : x = x :=
|
|
by trivial' -- still works
|
|
|
|
theorem tst2 (x y : Nat) (h : x = y) : x = y :=
|
|
by trivial' -- works too
|