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.
21 lines
633 B
Text
21 lines
633 B
Text
inductive Tree (α : Type) : Type where
|
||
| leaf : Tree α
|
||
| node (t : Tree α) (f : Tree α) : Tree α
|
||
|
||
inductive Subtree : Tree α → Tree α → Prop where
|
||
| left_head (t f : Tree α) : Subtree t (Tree.node t f)
|
||
| right_head (t f : Tree α) : Subtree f (Tree.node t f)
|
||
|
||
def dec_subtree (n m : Tree α) : Decidable (Subtree n m) :=
|
||
match n, m with
|
||
| .leaf, .node t f =>
|
||
let ht := dec_subtree .leaf t
|
||
let hf := dec_subtree .leaf f
|
||
match ht, hf with
|
||
| .isFalse ht, .isFalse hf => .isFalse (fun h =>
|
||
match h with
|
||
| .left_head _ _ => sorry
|
||
| _ => sorry
|
||
)
|
||
| _, _ => sorry
|
||
| _, _ => sorry
|