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.
31 lines
1.3 KiB
Text
31 lines
1.3 KiB
Text
def Ex1.isEven._mutual : (x : Nat ⊕' Nat) → PSum.casesOn x (fun _x => Bool) fun _x => Bool :=
|
|
WellFounded.Nat.fix (fun x => PSum.casesOn x (fun a => a) fun a => a) fun x a =>
|
|
PSum.casesOn (motive := fun x =>
|
|
((y : Nat ⊕' Nat) →
|
|
InvImage (fun x1 x2 => x1 < x2) (fun x => PSum.casesOn x (fun a => a) fun a => a) y x →
|
|
PSum.casesOn y (fun _x => Bool) fun _x => Bool) →
|
|
PSum.casesOn x (fun _x => Bool) fun _x => Bool)
|
|
x
|
|
(fun a a_1 =>
|
|
(match (motive :=
|
|
(x : Nat) →
|
|
((y : Nat ⊕' Nat) →
|
|
InvImage (fun x1 x2 => x1 < x2) (fun x => PSum.casesOn x (fun a => a) fun a => a) y (PSum.inl x) →
|
|
PSum.casesOn y (fun _x => Bool) fun _x => Bool) →
|
|
Bool)
|
|
a with
|
|
| 0 => fun x => true
|
|
| n.succ => fun x => x (PSum.inr n) ⋯)
|
|
a_1)
|
|
(fun a a_1 =>
|
|
(match (motive :=
|
|
(x : Nat) →
|
|
((y : Nat ⊕' Nat) →
|
|
InvImage (fun x1 x2 => x1 < x2) (fun x => PSum.casesOn x (fun a => a) fun a => a) y (PSum.inr x) →
|
|
PSum.casesOn y (fun _x => Bool) fun _x => Bool) →
|
|
Bool)
|
|
a with
|
|
| 0 => fun x => false
|
|
| n.succ => fun x => x (PSum.inl n) ⋯)
|
|
a_1)
|
|
a
|