mirror of
https://github.com/leanprover/lean4.git
synced 2026-03-17 18:34:06 +00:00
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.
17 lines
668 B
Plaintext
17 lines
668 B
Plaintext
splitIssue3.lean:8:4-8:7: warning: declaration uses `sorry`
|
||
splitIssue3.lean:8:4-8:7: warning: declaration uses `sorry`
|
||
@len.eq_1 : ∀ {α : Type u_1}, len [] = 0
|
||
@len.eq_2 : ∀ {α : Type u_1} (a : α), len [a] = 1
|
||
@len.eq_3 : ∀ {α : Type u_1} (fst snd : List α),
|
||
(fst ++ snd = [] → False) →
|
||
(∀ (a : α), fst ++ snd = [a] → False) →
|
||
splitList (fst ++ snd) = ListSplit.split fst snd → len (fst ++ snd) = len fst + len snd
|
||
@len.eq_def : ∀ {α : Type u_1} (x : List α),
|
||
len x =
|
||
match x with
|
||
| [] => 0
|
||
| [a] => 1
|
||
| l =>
|
||
match l, splitList l with
|
||
| .(fst ++ snd), ListSplit.split fst snd => len fst + len snd
|