Cardinality
In mathematics, the cardinality of a set is a measure of the "number of elements of the set". For example, the set A={2,4,6}{displaystyle A={2,4,6}} contains 3 elements, and therefore A{displaystyle A} has a cardinality of 3. There are two approaches to cardinality – one which compares sets directly using bijections and injections, and another which uses cardinal numbers.[1]
The cardinality of a set is also called its size, when no confusion with other notions of size[2] is possible.
The cardinality of a set A{displaystyle A} is usually denoted |A|{displaystyle |A|}, with a vertical bar on each side; this is the same notation as absolute value and the meaning depends on context. Alternatively, the cardinality of a set A{displaystyle A} may be denoted by n(A){displaystyle n(A)}, A{displaystyle A}, card(A){displaystyle card(A)}, or #A{displaystyle #A}.
Contents
1 Comparing sets
1.1 Definition 1: |A| = |B|
1.2 Definition 2: |A| ≤ |B|
1.3 Definition 3: |A| < |B|
2 Cardinal numbers
3 Finite, countable and uncountable sets
4 Infinite sets
4.1 Cardinality of the continuum
5 Examples and properties
6 Union and intersection
7 See also
8 References
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 (possibly infinite) sets.
Definition 1: |A| = |B|
- Two sets A and B have the same cardinality if there exists a bijection 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 = {0, 2, 4, 6, ...} of non-negative even numbers has the same cardinality as the set N = {0, 1, 2, 3, ...} of natural numbers, since the function f(n) = 2n is a bijection from N to E.
Definition 2: |A| ≤ |B|
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| < |B|
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 the cardinality of the set R of all real numbers , because the inclusion map i : N → R is injective, but it can be shown that there does not exist a bijective function from N to R (see Cantor's diagonal argument or Cantor's first uncountability proof).
If |A| ≤ |B| and |B| ≤ |A| then |A| = |B| (Schröder–Bernstein theorem). The axiom of choice is equivalent to the statement that |A| ≤ |B| or |B| ≤ |A| for every A, B.[3][4]
Cardinal numbers
Above, "cardinality" was defined functionally. That is, the "cardinality" of a set 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 on the class of all sets. The equivalence class 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 axiomatic set theory.
Assuming AC, the cardinalities of the infinite sets are denoted
- ℵ0<ℵ1<ℵ2<….{displaystyle aleph _{0}<aleph _{1}<aleph _{2}<ldots .}
For each ordinal α{displaystyle alpha }, ℵα+1{displaystyle aleph _{alpha +1}} is the least cardinal number greater than ℵα{displaystyle aleph _{alpha }}.
The cardinality of the natural numbers is denoted aleph-null (ℵ0{displaystyle aleph _{0}}), while the cardinality of the real numbers is denoted by "c{displaystyle {mathfrak {c}}}" (a lowercase fraktur script "c"), and is also referred to as the cardinality of the continuum. Cantor showed, using the diagonal argument, that c>ℵ0{displaystyle {mathfrak {c}}>aleph _{0}}. We can show that c=2ℵ0{displaystyle {mathfrak {c}}=2^{aleph _{0}}}, this also being the cardinality of the set of all subsets of the natural numbers. The continuum hypothesis says that ℵ1=2ℵ0{displaystyle aleph _{1}=2^{aleph _{0}}}, i.e. 2ℵ0{displaystyle 2^{aleph _{0}}} is the smallest cardinal number bigger than ℵ0{displaystyle aleph _{0}}, 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 ZFC is consistent). See below for more details on the cardinality of the continuum.[5][6][7]
Finite, countable and uncountable sets
If the axiom of choice 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 numbers, or | X | < | N |, is said to be a finite set.
- Any set X that has the same cardinality as the set of the natural numbers, or | X | = | N | = ℵ0{displaystyle aleph _{0}}, 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 | = c{displaystyle {mathfrak {c}}} > | N |, is said to be uncountable.
Infinite sets
Our intuition gained from finite sets breaks down when dealing with infinite sets. In the late nineteenth century Georg Cantor, Gottlob Frege, Richard Dedekind and others rejected the view that the whole cannot be the same size as the part. 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 that (according to his bijection-based definition of size) some infinite sets are greater than others. The smallest infinite cardinality is that of the natural numbers (ℵ0{displaystyle aleph _{0}}).
Cardinality of the continuum
One of Cantor's most important results was that the cardinality of the continuum (c{displaystyle {mathfrak {c}}}) is greater than that of the natural numbers (ℵ0{displaystyle aleph _{0}}); that is, there are more real numbers R than whole numbers N. Namely, Cantor showed that c=2ℵ0=ℶ1{displaystyle {mathfrak {c}}=2^{aleph _{0}}=beth _{1}} (see Beth one) satisfies:
- 2ℵ0>ℵ0{displaystyle 2^{aleph _{0}}>aleph _{0}}
- (see Cantor's diagonal argument or Cantor's first uncountability proof).
The continuum hypothesis states that there is no cardinal number between the cardinality of the reals and the cardinality of the natural numbers, that is,
- 2ℵ0=ℵ1{displaystyle 2^{aleph _{0}}=aleph _{1}}
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 subsets 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 c{displaystyle {mathfrak {c}}} 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 2R
- the set RR of all functions from R to R
- the set of all subsets of R, i.e., the power set of R, written P(R) or 2R
Both have cardinality
- 2c=ℶ2>c{displaystyle 2^{mathfrak {c}}=beth _{2}>{mathfrak {c}}}
- (see Beth two).
The cardinal equalities c2=c,{displaystyle {mathfrak {c}}^{2}={mathfrak {c}},} cℵ0=c,{displaystyle {mathfrak {c}}^{aleph _{0}}={mathfrak {c}},} and cc=2c{displaystyle {mathfrak {c}}^{mathfrak {c}}=2^{mathfrak {c}}} can be demonstrated using cardinal arithmetic:
- c2=(2ℵ0)2=22×ℵ0=2ℵ0=c,{displaystyle {mathfrak {c}}^{2}=left(2^{aleph _{0}}right)^{2}=2^{2times {aleph _{0}}}=2^{aleph _{0}}={mathfrak {c}},}
- cℵ0=(2ℵ0)ℵ0=2ℵ0×ℵ0=2ℵ0=c,{displaystyle {mathfrak {c}}^{aleph _{0}}=left(2^{aleph _{0}}right)^{aleph _{0}}=2^{{aleph _{0}}times {aleph _{0}}}=2^{aleph _{0}}={mathfrak {c}},}
- cc=(2ℵ0)c=2c×ℵ0=2c.{displaystyle {mathfrak {c}}^{mathfrak {c}}=left(2^{aleph _{0}}right)^{mathfrak {c}}=2^{{mathfrak {c}}times aleph _{0}}=2^{mathfrak {c}}.}
Examples and properties
- If X = {a, b, c} and Y = {apples, oranges, peaches}, then | X | = | Y | because { (a, apples), (b, oranges), (c, peaches)} 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
Union and intersection
If A and B are disjoint sets, then
- |A∪B|=|A|+|B|.{displaystyle leftvert Acup Brightvert =leftvert Arightvert +leftvert Brightvert .}
From this, one can show that in general the cardinalities of unions and intersections are related by[8]
- |C∪D|+|C∩D|=|C|+|D|.{displaystyle leftvert Ccup Drightvert +leftvert Ccap Drightvert =leftvert Crightvert +leftvert Drightvert ,.}
See also
Wikimedia Commons has media related to Cardinality. |
Wikidata has the properties:
|
- Aleph number
- Beth number
- Countable set
- Counting
- Ordinality
References
^ Weisstein, Eric W. "Cardinal Number". MathWorld..mw-parser-output cite.citation{font-style:inherit}.mw-parser-output .citation q{quotes:"""""""'""'"}.mw-parser-output .citation .cs1-lock-free a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/6/65/Lock-green.svg/9px-Lock-green.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-limited a,.mw-parser-output .citation .cs1-lock-registration a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/d/d6/Lock-gray-alt-2.svg/9px-Lock-gray-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .citation .cs1-lock-subscription a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/Lock-red-alt-2.svg/9px-Lock-red-alt-2.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration{color:#555}.mw-parser-output .cs1-subscription span,.mw-parser-output .cs1-registration span{border-bottom:1px dotted;cursor:help}.mw-parser-output .cs1-ws-icon a{background:url("//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Wikisource-logo.svg/12px-Wikisource-logo.svg.png")no-repeat;background-position:right .1em center}.mw-parser-output code.cs1-code{color:inherit;background:inherit;border:inherit;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;font-size:100%}.mw-parser-output .cs1-visible-error{font-size:100%}.mw-parser-output .cs1-maint{display:none;color:#33aa33;margin-left:0.3em}.mw-parser-output .cs1-subscription,.mw-parser-output .cs1-registration,.mw-parser-output .cs1-format{font-size:95%}.mw-parser-output .cs1-kern-left,.mw-parser-output .cs1-kern-wl-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right,.mw-parser-output .cs1-kern-wl-right{padding-right:0.2em}
^ Such as length and area in geometry. – A line of finite length is a set of points that has infinite cardinality.
^ Friedrich M. Hartogs (1915), Felix Klein; Walther von Dyck; David Hilbert; Otto Blumenthal, eds., "Über das Problem der Wohlordnung", Mathematische Annalen, Leipzig: B. G. Teubner, 76 (4): 438–443, doi:10.1007/bf01458215, ISSN 0025-5831
^ Felix Hausdorff (2002), Egbert Brieskorn; Srishti D. Chatterji; et al., eds., Grundzüge der Mengenlehre (1. ed.), Berlin/Heidelberg: Springer, p. 587, ISBN 3-540-42224-2 - Original edition (1914)
^ Cohen, Paul J. (December 15, 1963). "The Independence of the Continuum Hypothesis". Proceedings of the National Academy of Sciences of the United States of America. 50 (6): 1143–1148. doi:10.1073/pnas.50.6.1143. JSTOR 71858. PMC 221287. PMID 16578557.
^ Cohen, Paul J. (January 15, 1964). "The Independence of the Continuum Hypothesis, II". Proceedings of the National Academy of Sciences of the United States of America. 51 (1): 105–110. doi:10.1073/pnas.51.1.105. JSTOR 72252. PMC 300611. PMID 16591132.
^ Penrose, R (2005), The Road to Reality: A Complete guide to the Laws of the Universe, Vintage Books, ISBN 0-09-944068-7
^ Applied Abstract Algebra, K.H. Kim, F.W. Roush, Ellis Horwood Series, 1983,
ISBN 0-85312-612-7 (student edition),
ISBN 0-85312-563-5 (library edition)