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.
26 lines
576 B
Text
26 lines
576 B
Text
inductive Impl where
|
|
| inner (l r : Impl)
|
|
| leaf
|
|
|
|
namespace Impl
|
|
|
|
inductive Balanced : Impl → Prop where
|
|
| leaf : Balanced leaf
|
|
|
|
@[inline]
|
|
def balanceLErase (r : Impl) (hrb : Balanced r) : Impl :=
|
|
match r with
|
|
| leaf => .leaf
|
|
| l@(inner _ _) =>
|
|
match l with
|
|
| leaf => .leaf
|
|
| r@(inner ll lr) =>
|
|
if true then
|
|
match ll, lr with
|
|
| inner _ _, inner _ _ => .leaf
|
|
| _, _ => .leaf
|
|
else .leaf
|
|
|
|
theorem size_balanceLErase {r : Impl} {hrb} : (balanceLErase r hrb) = .leaf := by
|
|
simp only [balanceLErase]
|
|
sorry
|