A set is a thing that contains things. They're a pretty fundamental thing in mathematics.
A singleton is a set with exactly one element.
A finite set can be written by listing its elements, e.g. is the set containing the numbers .
If is an element of a set , we write .
If are sets, we say is a subset of , and write if all elements of are in ; in symbols, .
Two sets are equal if they are each a subset of the other one; in symbols, and
If but , we say is a proper subset of and write .
CAVE! Some people use the notation to say is a subset of . Some people use the same notation to say that is strictly a proper subset of . In these notes, when clarity is needed, I use the unambiguous notation shown above; I sometimes use the notation in cases where it's unambiguous (TODO tidy this up and put an example in an HTML comment) (such as where something's so obviously a proper subset that it feels silly to specify).
These subset and membership symbols can also be written in reverse: , e.g. is equivalent to .
Since I haven't studied set theory in much depth, I can't give a formal construction. You have to be very careful when formalising the notion of a set to avoid problems like
Russell's paradox
.
Given sets , if
all these pages adapted with probably insufficient credit from my university's lecture notes