
In
mathematics, the cardinality of a
set is a measure of the number of
elements
Element or elements may refer to:
Science
* Chemical element, a pure substance of one type of atom
* Heating element, a device that generates heat by electrical resistance
* Orbital elements, parameters required to identify a specific orbit of ...
of the set. For example, the set
contains 3 elements, and therefore
has a cardinality of 3. Beginning in the late 19th century, this concept was generalized to
infinite sets, which allows one to distinguish between different types of infinity, and to perform
arithmetic on them. There are two approaches to cardinality: one which compares sets directly using
bijections and
injections, and another which uses
cardinal number
In mathematics, cardinal numbers, or cardinals for short, are a generalization of the natural numbers used to measure the cardinality (size) of sets. The cardinality of a finite set is a natural number: the number of elements in the set. T ...
s.
The cardinality of a set is also called its size, when no confusion with other notions of size is possible.
The cardinality of a set
is usually denoted
, with a
vertical bar on each side; this is the same notation as
absolute value, and the meaning depends on
context. The cardinality of a set
may alternatively be denoted by
,
,
, or
.
History
A crude sense of cardinality, an awareness that groups of things or events compare with other groups by containing more, fewer, or the same number of instances, is observed in a variety of present-day animal species, suggesting an origin millions of years ago. Human expression of cardinality is seen as early as years ago, with equating the size of a group with a group of recorded notches, or a representative collection of other things, such as sticks and shells. The abstraction of cardinality as a number is evident by 3000 BCE, in Sumerian
mathematics and the manipulation of numbers without reference to a specific group of things or events.
From the 6th century BCE, the writings of Greek philosophers show the first hints of the cardinality of infinite sets. While they considered the notion of infinity as an endless series of actions, such as adding 1 to a number repeatedly, they did not consider the size of an infinite set of numbers to be a thing.
The ancient Greek notion of infinity also considered the division of things into parts repeated without limit. In Euclid's ''
Elements
Element or elements may refer to:
Science
* Chemical element, a pure substance of one type of atom
* Heating element, a device that generates heat by electrical resistance
* Orbital elements, parameters required to identify a specific orbit of ...
'',
commensurability was described as the ability to compare the length of two line segments, ''a'' and ''b'', as a ratio, as long as there were a third segment, no matter how small, that could be laid end-to-end a whole number of times into both ''a'' and ''b''. But with the discovery of
irrational numbers, it was seen that even the infinite set of all rational numbers was not enough to describe the length of every possible line segment. Still, there was no concept of infinite sets as something that had cardinality.
To better understand infinite sets, a notion of cardinality was formulated circa 1880 by
Georg Cantor, the originator of
set theory. He examined the process of equating two sets with
bijection, a one-to-one correspondence between the elements of two sets based on a unique relationship. In 1891, with the publication of
Cantor's diagonal argument, he demonstrated that there are sets of numbers that cannot be placed in one-to-one correspondence with the set of natural numbers, i.e.
uncountable sets that contain more elements than there are in the infinite set of natural numbers.
Comparing sets

While the cardinality of a finite set is just the number of its elements, extending the notion to infinite sets usually starts with defining the notion of comparison of arbitrary sets (some of which are possibly infinite).
Definition 1: =
:Two sets ''A'' and ''B'' have the same cardinality if there exists a
bijection (a.k.a., one-to-one correspondence) from ''A'' to ''B'',
that is, a
function from ''A'' to ''B'' that is both
injective and
surjective. Such sets are said to be ''equipotent'', ''equipollent'', or ''
equinumerous''. This relationship can also be denoted ''A'' ≈ ''B'' or ''A'' ~ ''B''.
:For example, the set ''E'' = of non-negative
even numbers has the same cardinality as the set N = of
natural numbers, since the function ''f''(''n'') = 2''n'' is a bijection from N to ''E'' (see picture).
:For finite sets ''A'' and ''B'', if ''some'' bijection exists from ''A'' to ''B'', then ''each'' injective or surjective function from ''A'' to ''B'' is a bijection. This is no longer true for infinite ''A'' and ''B''. For example, the function ''g'' from N to ''E'', defined by ''g''(''n'') = 4''n'' is injective, but not surjective, and ''h'' from N to ''E'', defined by ''h''(''n'') = ''n'' - (''n''
mod 2) is surjective, but not injective. Neither ''g'' nor ''h'' can challenge = , which was established by the existence of ''f''.
Definition 2: ≤
:''A'' has cardinality less than or equal to the cardinality of ''B'', if there exists an injective function from ''A'' into ''B''.
Definition 3: <
:''A'' has cardinality strictly less than the cardinality of ''B'', if there is an injective function, but no bijective function, from ''A'' to ''B''.
:For example, the set N of all
natural numbers has cardinality strictly less than its
power set ''P''(N), because ''g''(''n'') = is an injective function from N to ''P''(N), and it can be shown that no function from N to ''P''(N) can be bijective (see picture). By a similar argument, N has cardinality strictly less than the cardinality of the set R of all
real number
In mathematics, a real number is a number that can be used to measurement, measure a ''continuous'' one-dimensional quantity such as a distance, time, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small var ...
s. For proofs, see
Cantor's diagonal argument or
Cantor's first uncountability proof.
If ≤ and ≤ , then = (a fact known as
Schröder–Bernstein theorem). The
axiom of choice
In mathematics, the axiom of choice, or AC, is an axiom of set theory equivalent to the statement that ''a Cartesian product of a collection of non-empty sets is non-empty''. Informally put, the axiom of choice says that given any collection ...
is equivalent to the statement that ≤ or ≤ for every ''A'', ''B''.
Cardinal numbers
In the above section, "cardinality" of a set was defined functionally. In other words, it was not defined as a specific object itself. However, such an object can be defined as follows.
The relation of having the same cardinality is called
equinumerosity, and this is an
equivalence relation
In mathematics, an equivalence relation is a binary relation that is reflexive, symmetric and transitive. The equipollence relation between line segments in geometry is a common example of an equivalence relation.
Each equivalence relatio ...
on the
class of all sets. The
equivalence class
In mathematics, when the elements of some set S have a notion of equivalence (formalized as an equivalence relation), then one may naturally split the set S into equivalence classes. These equivalence classes are constructed so that elements ...
of a set ''A'' under this relation, then, consists of all those sets which have the same cardinality as ''A''. There are two ways to define the "cardinality of a set":
#The cardinality of a set ''A'' is defined as its equivalence class under equinumerosity.
#A
representative set is designated for each equivalence class. The most common choice is the
initial ordinal in that class. This is usually taken as the definition of
cardinal number
In mathematics, cardinal numbers, or cardinals for short, are a generalization of the natural numbers used to measure the cardinality (size) of sets. The cardinality of a finite set is a natural number: the number of elements in the set. T ...
in
axiomatic set theory.
Assuming the
axiom of choice
In mathematics, the axiom of choice, or AC, is an axiom of set theory equivalent to the statement that ''a Cartesian product of a collection of non-empty sets is non-empty''. Informally put, the axiom of choice says that given any collection ...
, the cardinalities of the
infinite sets are denoted
:
For each
ordinal ,
is the least cardinal number greater than
.
The cardinality of the
natural number
In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country").
Numbers used for counting are called '' cardinal ...
s is denoted
aleph-null (
), while the cardinality of the
real number
In mathematics, a real number is a number that can be used to measurement, measure a ''continuous'' one-dimensional quantity such as a distance, time, duration or temperature. Here, ''continuous'' means that values can have arbitrarily small var ...
s is denoted by "
" (a lowercase
fraktur script "c"), and is also referred to as the
cardinality of the continuum
In set theory, the cardinality of the continuum is the cardinality or "size" of the set of real numbers \mathbb R, sometimes called the continuum. It is an infinite cardinal number and is denoted by \mathfrak c (lowercase fraktur "c") or , \ma ...
. Cantor showed, using the
diagonal argument, that
. We can show that
, this also being the cardinality of the set of all subsets of the natural numbers.
The
continuum hypothesis says that
, i.e.
is the smallest cardinal number bigger than
, i.e. there is no set whose cardinality is strictly between that of the integers and that of the real numbers. The continuum hypothesis is
independent of
ZFC, a standard axiomatization of set theory; that is, it is impossible to prove the continuum hypothesis or its negation from ZFC—provided that ZFC is consistent. For more detail, see
§ Cardinality of the continuum below.
Finite, countable and uncountable sets
If the
axiom of choice
In mathematics, the axiom of choice, or AC, is an axiom of set theory equivalent to the statement that ''a Cartesian product of a collection of non-empty sets is non-empty''. Informally put, the axiom of choice says that given any collection ...
holds, the
law of trichotomy holds for cardinality. Thus we can make the following definitions:
*Any set ''X'' with cardinality less than that of the
natural number
In mathematics, the natural numbers are those numbers used for counting (as in "there are ''six'' coins on the table") and ordering (as in "this is the ''third'' largest city in the country").
Numbers used for counting are called '' cardinal ...
s, or , ''X'' , < , N , , is said to be a
finite set
In mathematics, particularly set theory, a finite set is a set that has a finite number of elements. Informally, a finite set is a set which one could in principle count and finish counting. For example,
:\
is a finite set with five elements. ...
.
*Any set ''X'' that has the same cardinality as the set of the natural numbers, or , ''X'' , = , N , =
, is said to be a
countably infinite set.
*Any set ''X'' with cardinality greater than that of the natural numbers, or , ''X'' , > , N , , for example , R , =
> , N , , is said to be
uncountable.
Infinite sets
Our intuition gained from
finite set
In mathematics, particularly set theory, a finite set is a set that has a finite number of elements. Informally, a finite set is a set which one could in principle count and finish counting. For example,
:\
is a finite set with five elements. ...
s breaks down when dealing with
infinite sets. In the late nineteenth century
Georg Cantor,
Gottlob Frege
Friedrich Ludwig Gottlob Frege (; ; 8 November 1848 – 26 July 1925) was a German philosopher, logician, and mathematician. He was a mathematics professor at the University of Jena, and is understood by many to be the father of analytic ph ...
,
Richard Dedekind
Julius Wilhelm Richard Dedekind (6 October 1831 – 12 February 1916) was a German mathematician who made important contributions to number theory, abstract algebra (particularly ring theory), and
the axiomatic foundations of arithmetic. His ...
and others rejected the view that the whole cannot be the same size as the part.
Reprinted in: Here: p.413 bottom One example of this is
Hilbert's paradox of the Grand Hotel.
Indeed, Dedekind defined an infinite set as one that can be placed into a one-to-one correspondence with a strict subset (that is, having the same size in Cantor's sense); this notion of infinity is called
Dedekind infinite. Cantor introduced the cardinal numbers, and showed—according to his bijection-based definition of size—that some infinite sets are greater than others. The smallest infinite cardinality is that of the natural numbers (
).
Cardinality of the continuum
One of Cantor's most important results was that the
cardinality of the continuum
In set theory, the cardinality of the continuum is the cardinality or "size" of the set of real numbers \mathbb R, sometimes called the continuum. It is an infinite cardinal number and is denoted by \mathfrak c (lowercase fraktur "c") or , \ma ...
(
) is greater than that of the natural numbers (
); that is, there are more real numbers R than natural numbers N. Namely, Cantor showed that
(see
Beth one) satisfies:
:
:(see
Cantor's diagonal argument or
Cantor's first uncountability proof).
The
continuum hypothesis states that there is no
cardinal number
In mathematics, cardinal numbers, or cardinals for short, are a generalization of the natural numbers used to measure the cardinality (size) of sets. The cardinality of a finite set is a natural number: the number of elements in the set. T ...
between the cardinality of the reals and the cardinality of the natural numbers, that is,
:
However, this hypothesis can neither be proved nor disproved within the widely accepted
ZFC axiomatic set theory, if ZFC is consistent.
Cardinal arithmetic can be used to show not only that the number of points in a
real number line is equal to the number of points in any
segment of that line, but that this is equal to the number of points on a plane and, indeed, in any finite-dimensional space. These results are highly counterintuitive, because they imply that there exist
proper subset
In mathematics, set ''A'' is a subset of a set ''B'' if all elements of ''A'' are also elements of ''B''; ''B'' is then a superset of ''A''. It is possible for ''A'' and ''B'' to be equal; if they are unequal, then ''A'' is a proper subset o ...
s and
proper supersets of an infinite set ''S'' that have the same size as ''S'', although ''S'' contains elements that do not belong to its subsets, and the supersets of ''S'' contain elements that are not included in it.
The first of these results is apparent by considering, for instance, the
tangent function, which provides a
one-to-one correspondence between the
interval (−½π, ½π) and R (see also
Hilbert's paradox of the Grand Hotel).
The second result was first demonstrated by Cantor in 1878, but it became more apparent in 1890, when
Giuseppe Peano introduced the
space-filling curves, curved lines that twist and turn enough to fill the whole of any square, or cube, or
hypercube, or finite-dimensional space. These curves are not a direct proof that a line has the same number of points as a finite-dimensional space, but they can be used to obtain
such a proof.
Cantor also showed that sets with cardinality strictly greater than
exist (see his
generalized diagonal argument and
theorem). They include, for instance:
:* the set of all subsets of R, i.e., the
power set of R, written ''P''(R) or 2
R
:* the set R
R of all functions from R to R
Both have cardinality
:
:(see
Beth two).
The
cardinal equalities and
can be demonstrated using
cardinal arithmetic:
:
:
:
Examples and properties
* If ''X'' = and ''Y'' = , where ''a'', ''b'', and ''c'' are distinct, then , ''X'' , = , ''Y'' , because is a bijection between the sets ''X'' and ''Y''. The cardinality of each of ''X'' and ''Y'' is 3.
* If , ''X'' , ≤ , ''Y'' , , then there exists ''Z'' such that , ''X'' , = , ''Z'' , and ''Z'' ⊆ ''Y''.
*If , ''X'' , ≤ , ''Y'' , and , ''Y'' , ≤ , ''X'' , , then , ''X'' , = , ''Y'' , . This holds even for infinite cardinals, and is known as
Cantor–Bernstein–Schroeder theorem.
*
Sets with cardinality of the continuum include the set of all real numbers, the set of all
irrational numbers and the interval