Difference between revisions of "Sets:Cardinality"
(Replaced content with "== Licensing == Content obtained and/or adapted from: * [https://en.wikipedia.org/wiki/Cardinality Cardinality, Wikipedia] under a CC BY-SA license") Tag: Replaced |
|||
Line 1: | Line 1: | ||
+ | [[File:Platonic Solids Transparent.svg|thumb|250px|The set <math>S</math> of all Platonic solids has 5 elements. Thus <math>|S|=5</math>.]] | ||
+ | In mathematics, the '''cardinality''' of a set is a measure of the "number of elements" of the set. For example, the set <math>A = \{2, 4, 6\}</math> contains 3 elements, and therefore <math>A</math> has a cardinality of 3. Beginning in the late 19th century, this concept was generalized to infinite sets, which allows one to distinguish between the 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 numbers. 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 <math>A</math> is usually denoted <math>|A|</math>, 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 <math>A</math> may alternatively be denoted by <math>n(A)</math>, <span style="border-top: 3px double black;"><math>A</math></span>, <math>\operatorname{card}(A)</math>, or <math>\#A</math>. | ||
+ | |||
+ | ==History== | ||
+ | In the 1890s, Georg Cantor generalized the concept of cardinality to infinite sets, which allowed one to distinguish between the different types of infinity and to perform arithmetic on them. | ||
+ | |||
+ | ==Comparing sets== | ||
+ | [[File:Aplicación 2 inyectiva sobreyectiva04.svg|thumb|250px|Bijective function from '''N''' to the set ''E'' of even numbers. Although ''E'' is a proper subset of '''N''', both sets have the same cardinality.]] | ||
+ | [[File:Diagonal argument powerset svg.svg|thumb|250px|'''N''' does not have the same cardinality as its power set ''P''('''N'''): For every function ''f'' from '''N''' to ''P''('''N'''), the set ''T'' = {''n''∈'''N''': ''n''∉''f''(''n'')} disagrees with every set in the range of ''f'', hence ''f'' cannot be surjective. The picture shows an example ''f'' and the corresponding ''T''; {{color|#800000|'''red'''}}: ''n''∈''f''(''n'')\''T'', {{color|#000080|'''blue'''}}:''n''∈''T''\''f''(''n'').]] | ||
+ | |||
+ | 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: |''A''| = |''B''|=== | ||
+ | :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'' = {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'') = 2''n'' is a bijection from '''N''' to ''E'' (see picture). | ||
+ | |||
+ | ===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 its power set ''P''('''N'''), because ''g''(''n'') = { ''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 numbers. For proofs, see Cantor's diagonal argument or Cantor's first uncountability proof. | ||
+ | |||
+ | If |''A''| ≤ |''B''| and |''B''| ≤ |''A''|, then |''A''| = |''B''| (a fact known as Schröder–Bernstein theorem). The axiom of choice is equivalent to the statement that |''A''| ≤ |''B''| or |''B''| ≤ |''A''| 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 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 the axiom of choice, the cardinalities of the infinite sets are denoted | ||
+ | :<math>\aleph_0 < \aleph_1 < \aleph_2 < \ldots . </math> | ||
+ | For each ordinal <math>\alpha</math>, <math>\aleph_{\alpha + 1}</math> is the least cardinal number greater than <math>\aleph_\alpha</math>. | ||
+ | |||
+ | The cardinality of the natural numbers is denoted aleph-null (<math>\aleph_0</math>), while the cardinality of the real numbers is denoted by "<math>\mathfrak c</math>" (a lowercase fraktur script "c"), and is also referred to as the cardinality of the continuum. Cantor showed, using the diagonal argument, that <math>{\mathfrak c} >\aleph_0</math>. We can show that <math>\mathfrak c = 2^{\aleph_0}</math>, this also being the cardinality of the set of all subsets of the natural numbers. | ||
+ | |||
+ | The continuum hypothesis says that <math>\aleph_1 = 2^{\aleph_0}</math>, i.e. <math>2^{\aleph_0}</math> is the smallest cardinal number bigger than <math>\aleph_0</math>, 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 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''' | = <math>\aleph_0</math>, 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''' | = <math>\mathfrak c </math> > | '''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—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 (<math>\aleph_0</math>). | ||
+ | |||
+ | ===Cardinality of the continuum=== | ||
+ | |||
+ | One of Cantor's most important results was that the cardinality of the continuum (<math>\mathfrak{c}</math>) is greater than that of the natural numbers (<math>\aleph_0</math>); that is, there are more real numbers '''R''' than natural numbers '''N'''. Namely, Cantor showed that <math>\mathfrak{c} = 2^{\aleph_0} = \beth_1</math> (see Beth one) satisfies: | ||
+ | :<math>2^{\aleph_0} > \aleph_0</math> | ||
+ | :(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, | ||
+ | :<math>2^{\aleph_0} = \aleph_1</math> | ||
+ | |||
+ | 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 <math>\mathfrak c</math> 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<sup>'''R'''</sup> | ||
+ | :* the set '''R'''<sup>'''R'''</sup> of all functions from '''R''' to '''R''' | ||
+ | |||
+ | Both have cardinality | ||
+ | :<math>2^\mathfrak {c} = \beth_2 > \mathfrak c </math> | ||
+ | :(see Beth two). | ||
+ | |||
+ | The cardinal equalities <math>\mathfrak{c}^2 = \mathfrak{c},</math> <math>\mathfrak c^{\aleph_0} = \mathfrak c,</math> and <math>\mathfrak c ^{\mathfrak c} = 2^{\mathfrak c}</math> can be demonstrated using cardinal arithmetic: | ||
+ | :<math>\mathfrak{c}^2 = \left(2^{\aleph_0}\right)^2 = 2^{2\times{\aleph_0}} = 2^{\aleph_0} = \mathfrak{c},</math> | ||
+ | :<math>\mathfrak c^{\aleph_0} = \left(2^{\aleph_0}\right)^{\aleph_0} = 2^{{\aleph_0}\times{\aleph_0}} = 2^{\aleph_0} = \mathfrak{c},</math> | ||
+ | :<math> \mathfrak c ^{\mathfrak c} = \left(2^{\aleph_0}\right)^{\mathfrak c} = 2^{\mathfrak c\times\aleph_0} = 2^{\mathfrak c}.</math> | ||
+ | |||
+ | ==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 include the set of all real numbers, the set of all irrational numbers and the interval <math>[0, 1]</math>. | ||
+ | |||
+ | ==Union and intersection== | ||
+ | |||
+ | If ''A'' and ''B'' are disjoint sets, then | ||
+ | :<math>\left\vert A \cup B \right\vert = \left\vert A \right\vert + \left\vert B \right\vert.</math> | ||
+ | |||
+ | From this, one can show that in general, the cardinalities of unions and intersections are related by the following equation: | ||
+ | :<math> \left\vert C \cup D \right\vert + \left\vert C \cap D \right\vert = \left\vert C \right\vert + \left\vert D \right\vert.</math> | ||
+ | |||
== Licensing == | == Licensing == | ||
Content obtained and/or adapted from: | Content obtained and/or adapted from: | ||
* [https://en.wikipedia.org/wiki/Cardinality Cardinality, Wikipedia] under a CC BY-SA license | * [https://en.wikipedia.org/wiki/Cardinality Cardinality, Wikipedia] under a CC BY-SA license |
Latest revision as of 20:46, 30 January 2022
In mathematics, the cardinality of a set is a measure of the "number of elements" 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 the 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 numbers. 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 .
Contents
History
In the 1890s, Georg Cantor generalized the concept of cardinality to infinite sets, which allowed one to distinguish between the different types of infinity and to perform arithmetic on them.
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: |A| = |B|
- 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 = {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 (see picture).
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 its power set P(N), because g(n) = { 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 numbers. For proofs, see Cantor's diagonal argument or Cantor's first uncountability proof.
If |A| ≤ |B| and |B| ≤ |A|, then |A| = |B| (a fact known as Schröder–Bernstein theorem). The axiom of choice is equivalent to the statement that |A| ≤ |B| or |B| ≤ |A| 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 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 the axiom of choice, the cardinalities of the infinite sets are denoted
For each ordinal , is the least cardinal number greater than .
The cardinality of the natural numbers is denoted aleph-null (), while the cardinality of the real numbers is denoted by "" (a lowercase fraktur script "c"), and is also referred to as the cardinality of the continuum. 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 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 | = , 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 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—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 () 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 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 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 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
Both have cardinality
- (see Beth two).
The cardinal equalities and can be demonstrated using cardinal arithmetic:
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 include the set of all real numbers, the set of all irrational numbers and the interval .
Union and intersection
If A and B are disjoint sets, then
From this, one can show that in general, the cardinalities of unions and intersections are related by the following equation:
Licensing
Content obtained and/or adapted from:
- Cardinality, Wikipedia under a CC BY-SA license