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.
54 lines
1.2 KiB
Text
54 lines
1.2 KiB
Text
inductive Bla : Type u where
|
||
| nil : Bla
|
||
| cons : (α : Type u) → (a : α) → Bla → Bla -- Error
|
||
|
||
inductive Foo : Type where
|
||
| leaf
|
||
| mk (α : Type) (a : α) -- Error
|
||
| mk₂
|
||
|
||
inductive Foo' : Type u where
|
||
| leaf
|
||
| mk {a : Sort u} : Sort (max u v) → a → Foo' -- Error
|
||
| mk₂
|
||
|
||
inductive Foo'' : Type u where
|
||
| leaf
|
||
| mk : Sort (max u v) → a → Foo'' -- Error
|
||
| mk₂
|
||
|
||
inductive Boo : Type u where
|
||
| nil : Boo
|
||
| cons : (α : Sort u) → (a : α) → Boo → Boo
|
||
|
||
namespace Ex1
|
||
inductive Member : α → List α → Type u
|
||
| head : Member a (a::as)
|
||
| tail : Member a bs → Member a (b::bs)
|
||
|
||
#check Member.head
|
||
end Ex1
|
||
|
||
namespace Ex2
|
||
inductive Member : α → List α → Type
|
||
| head : Member a (a::as)
|
||
| tail : Member a bs → Member a (b::bs)
|
||
end Ex2
|
||
|
||
namespace Ex3
|
||
inductive Member : α → List α → Type (max u v)
|
||
| head : Member a (a::as) -- Error
|
||
| tail : Member a bs → Member a (b::bs)
|
||
end Ex3
|
||
|
||
namespace Ex4
|
||
inductive Member : α → List α → Type (u+1)
|
||
| head : Member a (a::as) -- Error
|
||
| tail : Member a bs → Member a (b::bs)
|
||
end Ex4
|
||
|
||
namespace Ex5
|
||
inductive Member : α → List α → Type 1
|
||
| head : Member a (a::as) -- Error
|
||
| tail : Member a bs → Member a (b::bs)
|
||
end Ex5
|