Debian Codegraph @

test-suite/bugs/bug_3416.v

raw
1 Inductive list A := Node : node A -> list A
2 with node A := Nil | Cons : A -> list A -> node A.
3
4 Fixpoint app {A} (l1 l2 : list A) {struct l1} : list A
5 with app_node {A} (n1 : node A) (l2 : list A) {struct n1} : node A.
6 Proof.
7 + destruct l1 as [n]; constructor.
8 exact (app_node _ n l2).
9 + destruct n1 as [|x l1].
10 - destruct l2 as [n2]; exact n2.
11 - exact (Cons _ x (app _ l1 l2)).
12 Qed.