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.
14 lines
623 B
Text
14 lines
623 B
Text
class Fintype (α : Type) where
|
||
axiom Finset (α : Type) : Type
|
||
axiom Finset.univ {α : Type} [Fintype α] : Finset α
|
||
axiom Finset.filter {α : Type} (s : Finset α) (ϕ : α → Bool) : Finset α
|
||
|
||
-- The following should not elaborate, since there are no `Fintype` instances
|
||
-- Instead it yields: "error: (kernel) declaration has metavariables 'kernelErrorMetavar'"
|
||
def kernelErrorMetavar1 (n : Nat) : Finset (Fin n) :=
|
||
Finset.univ.filter (fun (i : Fin n) => true)
|
||
|
||
instance : Fintype (Fin n) := ⟨⟩
|
||
|
||
noncomputable def kernelErrorMetavar2 (n : Nat) : Finset (Fin n) :=
|
||
Finset.univ.filter (fun (i : Fin n) => true)
|