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.
28 lines
653 B
Text
28 lines
653 B
Text
/-!
|
|
The (attribute-extensible) `rfl` tactic only unfolds the goal with reducible transparency to look
|
|
for a relation which may have a `refl` lemma associated with it. But historically, `rfl` also
|
|
invoked `eq_refl`, which more aggressively unfolds. This checks that this still works.
|
|
-/
|
|
|
|
def Foo (a b : Nat) : Prop := a = b
|
|
|
|
/--
|
|
error: Tactic `rfl` failed: No `[refl]` lemma registered for relation
|
|
Foo
|
|
|
|
Hint: Add the `[refl]` attribute to reflexivity lemmas for `Foo` to use this tactic
|
|
|
|
⊢ Foo 1 1
|
|
-/
|
|
#guard_msgs in
|
|
example : Foo 1 1 := by
|
|
apply_rfl
|
|
|
|
|
|
#guard_msgs in
|
|
example : Foo 1 1 := by
|
|
eq_refl
|
|
|
|
#guard_msgs in
|
|
example : Foo 1 1 := by
|
|
rfl
|