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.
12 lines
510 B
Text
12 lines
510 B
Text
inductive time (D : Type) : Type
|
||
| start : time D
|
||
| after : (D → time D) → time D
|
||
|
||
def foo (C D : Type) : time D → (γ : Type) × (γ → C)
|
||
| time.start => ⟨C, id⟩
|
||
| time.after ts => ⟨(∀ (i : D), (foo C D $ ts i).1) × D, λ p => (foo C D $ ts p.2).2 $ p.1 p.2⟩
|
||
|
||
theorem fooEq1 (C D) : foo C D time.start = ⟨C, id⟩ :=
|
||
rfl
|
||
theorem fooEq2 (C D) (ts : D → time D): foo C D (time.after ts) = ⟨(∀ (i : D), (foo C D $ ts i).1) × D, λ p => (foo C D $ ts p.2).2 $ p.1 p.2⟩ :=
|
||
rfl
|