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
507 B
Text
23 lines
507 B
Text
namespace Ex1
|
|
class FunLike (F : Sort _) (β : outParam <| Nat → Sort _) where
|
|
coe : F → ∀ a, β a
|
|
|
|
inductive Secret
|
|
def Wrapper := Secret
|
|
inductive Bla | z
|
|
instance : FunLike Bla (fun _ => Wrapper) := sorry
|
|
|
|
instance (priority := 100) {F β} [FunLike F β] :
|
|
CoeFun F fun _ => ∀ a : Nat, β a where coe := FunLike.coe
|
|
|
|
#check Bla.z ∘ id
|
|
end Ex1
|
|
|
|
|
|
namespace Ex2
|
|
structure Secret
|
|
def Wrapper := Secret
|
|
def f (a : Nat) : (fun _ => Wrapper) a := ⟨⟩
|
|
|
|
#check f ∘ id
|
|
end Ex2
|