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
523 B
Text
20 lines
523 B
Text
universe u
|
||
|
||
class MyClass (α : Type u) extends LE α where
|
||
sup : α → α → α
|
||
le_refl : ∀ a : α, a ≤ a
|
||
sup_of_le_left : ∀ a b : α, b ≤ a → sup a b = a
|
||
|
||
instance : MyClass Prop where
|
||
le p q := p → q
|
||
sup p q := p ∨ q
|
||
le_refl _ := id
|
||
sup_of_le_left _ _ h := propext ⟨Or.rec id h, Or.inl⟩
|
||
|
||
/--
|
||
info: Try this:
|
||
[apply] simp only [MyClass.le_refl, MyClass.sup_of_le_left]
|
||
-/
|
||
#guard_msgs in
|
||
example : MyClass.sup False False = False := by
|
||
simp? [MyClass.sup_of_le_left, MyClass.le_refl]
|