Lably
Skip to content

Cardinality

Size of a set in mathematics

  • 43 min read
  • 8 chapters
  • 1 lab on Lably
A bijection, comparing a set of apples to a set of oranges.
Farkle Griffen · CC0

Learn it on Lably

Two sets are said to be equinumerous or have the same cardinality if there exists a one-to-one correspondence between them. Otherwise, under the axiom of choice, one of the two sets must be equinumerous with a strict subset of the other and is said to be strictly smaller than it; the other set is strictly larger. Using this concept, it is possible to show there are different sizes of infinity.

A set is countably infinite if it can be placed in one-to-one correspondence with the set of natural numbers ⁠{1,2,3,4,⋯}⁠. For example, the set of even numbers ⁠{2,4,6,⋯}⁠ and the set of rational numbers are countable. Uncountable sets are those strictly larger than the set of natural numbers. The set of all real numbers and the powerset of the set of natural numbers are proven to be uncountable by so-called diagonal arguments. Cantor's theorem generalizes these arguments to show there is an infinite hierarchy of infinities.

For finite sets, cardinality recovers the usual concept of size as "number of elements." However, it is more often difficult to ascribe "sizes" to infinite sets. A system of cardinal numbers can be developed to extend the role of natural numbers in answering "how many". Most commonly, the Aleph numbers ⁠ℵ0,ℵ1,ℵ2,...ℵω,ℵω+1...⁠ are used, since their definition naturally extends the process of counting, and it can be shown that every infinite set has cardinality equivalent to some Aleph.

The set of natural numbers has cardinality ⁠ℵ0⁠. The question of whether the real numbers have cardinality ⁠ℵ1⁠ is known as the continuum hypothesis, which has been shown to be both unprovable and undisprovable in standard set theories such as Zermelo–Fraenkel set theory. Alternative set theories and additional axioms give rise to different properties and have often strange or unintuitive consequences. However, every theory of cardinality using standard logical foundations of mathematics admits Skolem's paradox.

The basic concepts of cardinality go back as early as the 6th century BCE, and there are several close encounters with it throughout history, however, the results were generally dismissed as paradoxical. It is considered to have been first introduced formally to mathematics by Georg Cantor at the turn of the 20th century. Cantor's theory of cardinality was then formalized, popularized, and explored by many influential mathematicians of the time, and has since become a fundamental concept of mathematics.

Basics

Definition

Cardinality is an inherent property of sets which defines their size, roughly meaning the number of individual objects they contain. Fundamentally however, it is different from the concepts of number or counting as the cardinalities of two sets can be compared without referring to their number of elements, or defining number at all. For example, in the image above, a set of apples is compared to a set of oranges such that every fruit is used exactly once which shows these two sets have the same cardinality, even if one does not know how many of each there are. Thus, cardinality is measured by putting sets in so-called one-to-one correspondence: each object in one set can be assigned a dedicated "pair" in the other, and no object from either set left unpaired. If it is possible, the sets are said to have the same cardinality, and if not, one set is said to be strictly larger or strictly smaller than the other.

Sets and functions

The basic concepts of cardinality are developed in terms of sets and functions, which are more abstract than their counterparts outside of mathematics. Informally, a set can be understood as any collection of objects, usually represented with curly braces. For example, ⁠S={1,2,3}⁠ specifies a set, called ⁠S⁠, which contains the numbers 1, 2, and 3. The symbol ⁠∈⁠ represents set membership, for example ⁠1∈S⁠ says "1 is a member of the set ⁠S⁠" which is true by the definition of ⁠S⁠ above. Here ⁠S⁠ is finite, but that is not a requirement in general. The only requirement for a set is that it is well-defined. That is, for any object, ⁠x⁠, one can determine whether ⁠x⁠ belongs to that set ⁠(x∈S)⁠, or ⁠x⁠ does not belong to that set ⁠(x∉S)⁠. One example of an infinite set is the set of all natural numbers ⁠{1,2,3,⋯}⁠.

A function, or correspondence, maps each member of one set to a unique member of another, often represented with an arrow diagram. For example, the adjacent table depicts several functions which map sets of natural numbers to sets of letters. If a function does not map two members to the same place, it is called injective. If a function covers every member in the output set, it is called surjective. If a function is both injective and surjective, it is called bijective or a one-to-one correspondence. Functions are not limited to those one can draw an arrow diagram for, so long as the function is well-defined. That is, for each possible input, the output is defined. For example, one may define a function ⁠f⁠ on the natural numbers by multiplying by two: ⁠f(1)=2,⁠⁠f(2)=4,⁠⁠f(3)=6,…⁠ ⁠f(n)=2n…⁠

The term cardinality originates from the post-classical Latin cardo ("to hinge"), which referred to something central or pivotal, both literally and metaphorically. This passed into medieval Latin and then into English, where cardinal came to describe things considered to be, in some sense, fundamental, such as, cardinal sins, cardinal directions, and (in linguistics) cardinal numbers. The last of which referred to numbers used for counting (e.g., one, two, three), as opposed to ordinal numbers, which express order (e.g., first, second, third), and nominal numbers used for labeling without meaning (e.g., jersey numbers and serial numbers).

In mathematics, the notion of cardinality was first introduced by German mathematician Georg Cantor in the late 19th century, who used the term Mächtigkeit, which may be translated as "magnitude" or "power", though Cantor credited the term to a work by Jakob Steiner on projective geometry. Around 1930, the terms cardinality and cardinal number were adopted from the grammatical sense, and later translations would use these terms.

Sign in to keep reading

7 more chapters are free with a Lably account.

More in Discrete mathematics