lean4-htt/tests/lean/run/1237.lean
2022-06-23 10:21:32 -07:00

21 lines
633 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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