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.
16 lines
645 B
Text
16 lines
645 B
Text
-- As reported at https://leanprover.zulipchat.com/#narrow/stream/287929-mathlib4/topic/simp.3F.20giving.20nonsense.20lemmas/near/403082483
|
||
|
||
universe u
|
||
|
||
-- {α : Type} works as expected, as does specializing this lemma for `Nat`.
|
||
@[simp]
|
||
theorem tsub_eq_zero_of_le {α : Type u} [LE α] [Sub α] [OfNat α 0] {a b : α} :
|
||
a ≤ b → a - b = 0 := by sorry
|
||
|
||
set_option tactic.simp.trace true
|
||
|
||
-- This used to report: `Try this: simp only [ge_iff_le, Nat.succ_sub_succ_eq_sub]`
|
||
-- because we were not backtracking the "used simps" when the discharger failed.
|
||
example {n : Nat} : n = 2 - (n + 1) := by
|
||
simp [Nat.succ_sub_succ_eq_sub]
|
||
sorry
|