A set is a collection of distinct objects, called elements or members. The elements can be numbers, symbols, points, lines, shapes, functions, physical states, or even other sets.

Sets are usually written with curly brackets, for example Membership is written ; non-membership is written .

Subsets

If every element of is also an element of , then is a subset of : For example, the natural numbers are contained in the integers: . This is different from membership: , but .

Operations

  • Union: contains elements in either set.
  • Intersection: contains elements in both sets.
  • Difference: contains elements of that are not in .
  • Cartesian product: contains ordered pairs .

Sets are the background language for Number sets, intervals, relations, and mappings. In physics, a state space is a set of possible states; a trajectory is often a function from time into that set.

Common notation

Membership:

means ” is an element of .” Non-membership is

Subset notation:

means every element of is also in . Sets are the background language for functions, probability spaces, geometry, and almost every serious maths definition.