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.
10 lines
484 B
Text
10 lines
484 B
Text
def map2 : (Bool → Bool → Bool) → {n : Nat} → BV n → BV n → BV n :=
|
|
fun f x x_1 x_2 =>
|
|
BV.brecOn (motive := fun x x_3 => BV x → BV x) x_1
|
|
(fun x x_3 f_1 x_4 =>
|
|
(match (motive := (x : Nat) → (x_5 : BV x) → BV x → BV.below (motive := fun x x_7 => BV x → BV x) x_5 → BV x) x,
|
|
x_3, x_4 with
|
|
| .(0), nil, nil => fun x => nil
|
|
| .(n + 1), cons n b1 v1, cons .(n) b2 v2 => fun x => cons n (f b1 b2) (x.1 v2))
|
|
f_1)
|
|
x_2
|