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.
19 lines
383 B
Text
19 lines
383 B
Text
inductive Foo : Nat → Type _
|
|
| nil : Foo 0
|
|
| cons (t: Foo l) : Foo l
|
|
|
|
def Foo.bar (t₁: Foo l₁) (t₂ : Foo l₂) : Bool :=
|
|
match t₂ with
|
|
| cons s₁ => t₁.bar s₁
|
|
| _ => false
|
|
|
|
attribute [simp] Foo.bar
|
|
|
|
example (h : t₂ = .nil) : Foo.bar t₁ t₂ = false := by
|
|
unfold Foo.bar
|
|
split
|
|
· contradiction
|
|
· rfl
|
|
|
|
set_option pp.proofs true
|
|
#print Foo.bar.match_1
|