Set (mathematics)
In mathematics, a set is a collection of different[1] things;[2][3][4] these things are called elements or members of the set and are typically mathematical objects of any kind: numbers, symbols, points in space, lines, other geometrical shapes, variables, or even other sets.[5] A set may have a finite number of elements or be an infinite set. There is a unique set with no elements, called the empty set; a set with a single element is a singleton.
This article is about what mathematicians call "intuitive" or "naive" set theory. For a more detailed account, see Naive set theory. For a rigorous modern axiomatic treatment of sets, see Set theory.
Sets are uniquely characterized by their elements; this means that two sets that have precisely the same elements are equal (they are the same set).[6] This property is called extensionality. In particular, this implies that there is only one empty set.
Sets are ubiquitous in modern mathematics. Indeed, set theory, more specifically Zermelo–Fraenkel set theory, has been the standard way to provide rigorous foundations for all branches of mathematics since the first half of the 20th century.[5]
If every element of set A is also in B, then A is described as being a subset of B, or contained in B, written A ⊆ B,[31] or B ⊇ A.[32] The latter notation may be read B contains A, B includes A, or B is a superset of A. The relationship between sets established by ⊆ is called inclusion or containment. Two sets are equal if they contain each other: A ⊆ B and B ⊆ A is equivalent to A = B.[20]
If A is a subset of B, but A is not equal to B, then A is called a proper subset of B. This can be written A ⊊ B. Likewise, B ⊋ A means B is a proper superset of A, i.e. B contains A, and is not equal to A.
A third pair of operators ⊂ and ⊃ are used differently by different authors: some authors use A ⊂ B and B ⊃ A to mean A is any subset of B (and not necessarily a proper subset),[33][24] while others reserve A ⊂ B and B ⊃ A for cases where A is a proper subset of B.[31]
Examples:
The empty set is a subset of every set,[26] and every set is a subset of itself:[33]
There are sets of such mathematical importance, to which mathematicians refer so frequently, that they have acquired special names and notational conventions to identify them.
Many of these important sets are represented in mathematical texts using bold (e.g. ) or blackboard bold (e.g. ) typeface.[34] These include
Each of the above sets of numbers has an infinite number of elements. Each is a subset of the sets listed below it.
Sets of positive or negative numbers are sometimes denoted by superscript plus and minus signs, respectively. For example, represents the set of positive rational numbers.
A function (or mapping) from a set A to a set B is a rule that assigns to each "input" element of A an "output" that is an element of B; more formally, a function is a special kind of relation, one that relates each element of A to exactly one element of B. A function is called
An injective function is called an injection, a surjective function is called a surjection, and a bijective function is called a bijection or one-to-one correspondence.
Suppose that a universal set U (a set containing all elements being discussed) has been fixed, and that A is a subset of U.
Given any two sets A and B,
Examples:
The operations above satisfy many identities. For example, one of De Morgan's laws states that (A ∪ B)′ = A′ ∩ B′ (that is, the elements outside the union of A and B are the elements that are outside A and outside B).
The cardinality of A × B is the product of the cardinalities of A and B.
(This is an elementary fact when A and B are finite. When one or both are infinite, multiplication of cardinal numbers is defined to make this true.)
The power set of any set becomes a Boolean ring with symmetric difference as the addition of the ring and intersection as the multiplication of the ring.
Applications[edit]
Sets are ubiquitous in modern mathematics. For example, structures in abstract algebra, such as groups, fields and rings, are sets closed under one or more operations.
One of the main applications of naive set theory is in the construction of relations. A relation from a domain A to a codomain B is a subset of the Cartesian product A × B. For example, considering the set S = {rock, paper, scissors} of shapes in the game of the same name, the relation "beats" from S to S is the set B = {(scissors,paper), (paper,rock), (rock,scissors)}; thus x beats y in the game if the pair (x,y) is a member of B. Another example is the set F of all pairs (x, x2), where x is real. This relation is a subset of R × R, because the set of all squares is subset of the set of all real numbers. Since for every x in R, one and only one pair (x,...) is found in F, it is called a function. In functional notation, this relation can be written as F(x) = x2.