How can I describe in Coq that one set Y
is a subset of another set X
?
I tested the following:
Definition subset (Y X:Set) : Prop :=
forall y:Y, y:X.
, trying to express that if an element y
is in Y
, then y
is in X
. But this generates type errors about y
, not surprisingly.
Is there an easy way to define subset
in Coq?