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.
23 lines
668 B
Text
23 lines
668 B
Text
variable {α : Type _} [Mul α] [Inhabited α]
|
||
|
||
abbrev Left (a : α) : α := a * default
|
||
abbrev Right (a : α): α := default * a
|
||
|
||
theorem mul_comm (a b : α) : a * b = b * a := sorry
|
||
|
||
set_option trace.Meta.Tactic.simp.rewrite true
|
||
/--
|
||
trace: [Meta.Tactic.simp.rewrite] mul_comm:1000:perm, perm rejected Left a ==> default * a
|
||
[Meta.Tactic.simp.rewrite] mul_comm:1000:perm:
|
||
Right a
|
||
==>
|
||
a * default
|
||
[Meta.Tactic.simp.rewrite] mul_comm:1000:perm, perm rejected a * default ==> default * a
|
||
[Meta.Tactic.simp.rewrite] eq_self:1000:
|
||
Left a = a * default
|
||
==>
|
||
True
|
||
-/
|
||
#guard_msgs in
|
||
example (a : α) : Left a = Right a := by
|
||
simp [mul_comm]
|