We will say that two sets and are equal, written as if they have the same elements. That is, if, and only if, every element of is contained also in and every element of is contained in . In symbols:
We say that a set is a subset of another set ,if every element of is also an element of , that is, when the following is verified: whatever the element is. In this case, it is written
Note that by definition, the possibility that if , then is not excluded. If has at least one element not belonging to , but if every element of d is an element of , then we say that is a proper subset of , which is represented as .
Thus, the empty set is a proper subset of every set (except of itself), and any set is an improper subset of itself.
If is a subset of , we can also say that is a superset of , written and say that is a proper superset of if .
By principle of identity, it is always true that for every element , so, every set is a subset and a superset of itself.