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.
26 lines
936 B
Text
26 lines
936 B
Text
inductive SF : Type u → Type u → Type (u+1) where
|
||
| seq {as bs cs: Type u}: SF as bs → SF bs cs → SF as cs
|
||
| fan {as bs cs: Type u}: SF as (bs × cs)
|
||
|
||
inductive SF' (m: Type (u+1) → Type u)[Monad m]: Type u → Type u → Type (u+1) where
|
||
| seq {as bs cs: Type u}: SF' m as bs → SF' m bs cs → SF' m as cs
|
||
| fan {as bs cs: Type u}: SF' m as (bs × cs)
|
||
| rswitcher {as bs cs: Type u}: SF' m as (bs × cs) → SF' m as bs
|
||
|
||
def SF.step [Monad m] (sa: as): SF as bs → SF' m as bs × bs
|
||
| seq sf₁ sf₂ =>
|
||
let (sf₁', sb) := sf₁.step sa
|
||
let (sf₂', sc) := sf₂.step sb
|
||
(sf₁'.seq sf₂', sc)
|
||
| fan => sorry
|
||
|
||
def SF'.step [Monad m] (sa: as): SF' m as bs → SF'.{u} m as bs × bs
|
||
| seq sf₁ sf₂ =>
|
||
let (sf₁', sb) := sf₁.step sa
|
||
let (sf₂', sc) := sf₂.step sb
|
||
(sf₁'.seq sf₂', sc)
|
||
| fan => sorry
|
||
| rswitcher f =>
|
||
let x := f.step sa
|
||
let (_, (sb, _)) := x
|
||
(rswitcher f, sb)
|