Basic set notation
Curly braces, elements, membership.
A set is a collection of distinct objects (called elements or members) listed in any order.
The notation says:
- — '2 is an element of ', read as '2 belongs to '.
- — '5 is NOT an element of '.
- — the cardinality (size) of is 4.
Order doesn't matter and duplicates don't count:
Set-builder notation describes a set by a rule rather than listing all elements:
Read: 'the set of all such that is an integer, and .'
The colon () or vertical bar () reads as 'such that'.
- Curly braces, comma-separated.
- means 'belongs to'; means 'doesn't'.
- Order and repetition don't matter.
- Set-builder: .