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
846 B
Text
19 lines
846 B
Text
-- Issue #12245: grind works on Fin n but fails on Fin (n + 1)
|
|
-- The fix is in `getPatternArgKinds`: `outParam` arguments are now treated as support
|
|
-- in e-matching patterns. After the next toolchain update, the `attribute` line below
|
|
-- can be removed.
|
|
|
|
example {n : Nat} {a : Fin n} {b : Nat} (hb : b < n)
|
|
(h : (a : Nat) < b) : a < ⟨b, hb⟩ := by grind
|
|
|
|
example {n : Nat} {a : Fin (n + 1)} {b : Nat} (hb : b < n + 1)
|
|
(h : (a : Nat) < b) : a < ⟨b, hb⟩ := by grind
|
|
|
|
example {n : Nat} {a : Fin (n + 2)} {b : Nat} (hb : b < n + 2)
|
|
(h : (a : Nat) < b) : a < ⟨b, hb⟩ := by grind
|
|
|
|
example {n m : Nat} {a : Fin (n + m)} {b : Nat} (hb : b < n + m)
|
|
(h : (a : Nat) < b) : a < ⟨b, hb⟩ := by grind
|
|
|
|
example {n : Nat} {a : Fin (n * 2 + 1)} {b : Nat} (hb : b < n * 2 + 1)
|
|
(h : (a : Nat) < b) : a < ⟨b, hb⟩ := by grind
|