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.
21 lines
612 B
Text
21 lines
612 B
Text
private axiom test_sorry : ∀ {α}, α
|
||
|
||
inductive Tyₛ (l : List Unit): Type
|
||
| U : Tyₛ l
|
||
open Tyₛ
|
||
|
||
inductive Varₚ (d : Unit): List Unit → Type
|
||
| vz : Varₚ d [d']
|
||
| vs : Varₚ d l → Varₚ d (Bₛ :: l)
|
||
|
||
inductive Tmₛ {l : List Unit}: Tyₛ l → Unit → Type 1
|
||
| arr : (T : Type) → Tmₛ A d → Tmₛ A d
|
||
| param : Varₚ d l → Tmₛ A d → Tmₛ (@U l) d
|
||
|
||
def TmₛA {l : List Unit} {d : Unit} (nonIndex : Bool) {Aₛ : Tyₛ l} (t : Tmₛ Aₛ d): Type :=
|
||
match t with
|
||
| .arr dom cd =>
|
||
let cd := TmₛA nonIndex cd
|
||
dom → cd
|
||
| _ => test_sorry
|
||
termination_by structural t
|