Defino así
Variable A:Set.
Inductive eq_list: list A -> list A -> Prop :=
eq_list0 : eq_list nil nil
| eq_listS : forall x y xl yl, eq x y -> eq_list xl yl -> eq_list (cons y yl)(cons x xl).
pero no me funciona con la definición de listas del teórico...me dice
Error:
In environment
A : Set
eq_list : list A -> list A -> Prop
The term "nil" has type "forall A : Set, list A"
while it is expected to have type "list A".