Set theory Examples
Basic operations
Let and . Then
The Cartesian product is where relations and functions live.
A relation that is not a function
Let . This is a relation, but not a function, because input has two outputs.
A function as a set of pairs
Let be given by , , . As a set of ordered pairs, It is a function but not injective, because two inputs map to , and not surjective onto , because is missed.
Physics-style set
A particle moving on a line can be modelled as a function , where is a time Interval. The possible positions form a set; the path chooses one position for each time.
Example: solution set
Solving an equation often means finding a set. For
the solution set over the real numbers is
Over the natural numbers, it would usually be only
So the ambient set matters. This is why Number sets and Domain are not pedantic extras; they change answers.