In mathematics, a set is a collection of different things; the things are called elements or members of the set and are typically mathematical objects: numbers, symbols, points in space, lines, other geometric shapes, variables, functions, or even other sets. The branch of mathematics studying sets is called set theory (including naive set theory). Sets cannot be mathematically defined, since they form a primitive notion. Instead, they are characterized by basic properties (axioms) that sets must have to correspond to intuition about collections. In modern mathematics, since the first half of the 20th century, all mathematical objects are ultimately defined in terms of sets. That is, set theory serves as foundation of mathematics.
Context Before the end of the 19th century, sets were not studied specifically, and they were not clearly distinguished from sequences. Most mathematicians considered infinity as potential—meaning that it is the result of an endless process—and were reluctant to consider infinite sets. For example, a line was considered not as a set of points, but as a locus where a point may be located. The mathematical study of infinite sets began with Georg Cantor (1845–1918). This provided some counterintuitive statements and paradoxes. For example, the number line has an infinite number of elements that is strictly larger than the infinite number of natural numbers, and any line segment has the same number of elements as the whole line. Assuming the existence of a set of all sets led to a contradiction, Russell's paradox. This led to the foundational crisis of mathematics, and to proposed resolutions. One of these, Zermelo–Fraenkel set theory, has been generally adopted as a foundation of set theory and all mathematics, though much of mathematics does not require its full power. Meanwhile, sets started to be widely used in all mathematics. In particular, algebraic structures and mathematical spaces are typically defined in terms of sets. Also, many older mathematical results are restated in terms of sets. For example, Euclid's theorem is often stated as "the set of the prime numbers is infinite". This wide use of sets in mathematics was prophesied by David Hilbert when saying: "No one will drive us from the paradise that Cantor created for us." The object of this article is to summarize the manipulation rules and properties of sets that are commonly used in mathematics, without reference to a specific logical framework. For the branch of mathematics that studies sets, see Set theory; for an informal presentation of the corresponding logical framework, see Naive set theory; for a more formal presentation, see Axiomatic set theory and Zermelo–Fraenkel set theory.
Basic notions In mathematics, a set is a collection of different things, called elements or members of the set. A set may also be called a collection or family, especially when its elements are themselves sets; this may avoid confusion between the set and its members. A set may be specified either by listing its elements or by giving a property that characterizes its elements, such as for the set of the prime numbers or the set of all students in a given class. If x is an element of a set S, one says that x belongs to S or is in S, and one writes x∈S. The statement "y is not in S" is written as y∉S. For example, if ℤ is the set of all integers, then −3∈ℤ and 1.5∉ℤ. The axiom of extensionality states that two sets are equal if and only if they have the same elements. There exists a set with no elements, and extensionality implies that there is only one such set. It is called the empty set (or null set) and is denoted ∅, ∅︀, or {}. A singleton is a set with exactly one element. If x is this element, the singleton is denoted {x}. The sets {∅︀} and ∅︀ are different, because the former has one element (namely, ∅︀) and the latter has no elements at all. A set is finite if there exists a natural number n such that the first n natural numbers can be put in bijection (one-to-one correspondence) with the elements of the set. In this case, one says that n is the number of elements of the set. A set is infinite if such an n does not exist. The empty set is a finite set with 0 elements.
The natural numbers form an infinite set, commonly denoted ℕ. Other examples of infinite sets include the integers (ℤ), the rational numbers (ℚ), the real numbers (ℝ), nonzero real vector spaces, curves, and most other mathematical spaces.
Specifying a set Extensionality implies that to specify a set, it suffices either to list its elements or to provide a property that characterize the set's elements among the elements of a possibly larger set.
Roster notation Roster or enumeration notation is a notation introduced by Ernst Zermelo in 1908 that specifies a set by listing its elements between braces, separated by commas. For example, one sees that {4,2,1,3} and {blue, white, red} denote sets and not tuples because of the enclosing braces. The notations {} for the empty set and {x} for a singleton are examples of roster notation. When specifying a set, all that matters is whether each potential element is in the set or not, so a set does not change if elements are repeated or arranged in a different order. For example, {1,2,3,4}={4,2,1,3}={4,2,4,3,1,3}. When there is a clear pattern for generating all set elements, one can use an ellipsis to abbreviate the notation; for example, {1,2,3,…,10} is a shorthand for {1,2,3,4,5,6,7,8,9,10}. Ellipses in roster notation can also be used to describe some infinite sets; for example, the set of all integers can be denoted as {…,−3,−2,−1,0,1,2,3,…} or {0,1,−1,2,−2,3,−3,…}.
Set-builder notation
… excerpt ends here. Continue reading the full article.





