Cardinality

Logic
definition

Also known as: |A|, size of set

Grade 9-12

View on concept map

The cardinality of a set is the number of distinct elements it contains, written |A| or n(A). Cardinality is the foundation of counting, combinatorics, and the surprising mathematics of infinity.

Definition

The cardinality of a set is the number of distinct elements it contains, written |A| or n(A).

๐Ÿ’ก Intuition

Cardinality answers "how many?" โ€” count each distinct element once and you have the cardinality.

๐ŸŽฏ Core Idea

Cardinality measures the size of a set; infinite sets can have different cardinalities (e.g., |\mathbb{N}| < |\mathbb{R}|).

Example

|\{a, b, c\}| = 3. |\emptyset| = 0. |\{\{1, 2\}, 3\}| = 2 โ€” there are two distinct elements.

Formula

|A \cup B| = |A| + |B| - |A \cap B| (inclusion-exclusion principle)

Notation

|A| or n(A)

๐ŸŒŸ Why It Matters

Cardinality is the foundation of counting, combinatorics, and the surprising mathematics of infinity.

๐Ÿ’ญ Hint When Stuck

Write out the distinct elements, then count them. For union problems, use |A| + |B| - |A intersect B| to avoid double-counting.

Formal View

|A \cup B| = |A| + |B| - |A \cap B| (inclusion-exclusion); |A| = n \Leftrightarrow \exists a bijection f : A \to \{1, 2, \ldots, n\}

Related Concepts

๐Ÿšง Common Stuck Point

Some infinities are bigger than others: |\text{integers}| < |\text{reals}|.

โš ๏ธ Common Mistakes

  • Counting duplicate listings โ€” |\{1, 1, 2\}| = 2, not 3, because duplicates are collapsed in a set
  • Confusing cardinality with the set itself โ€” |\{a, b, c\}| = 3 is a number, not a set
  • Assuming all infinite sets have the same cardinality โ€” |\mathbb{N}| < |\mathbb{R}| (Cantor's theorem)

Frequently Asked Questions

What is Cardinality in Math?

The cardinality of a set is the number of distinct elements it contains, written |A| or n(A).

Why is Cardinality important?

Cardinality is the foundation of counting, combinatorics, and the surprising mathematics of infinity.

What do students usually get wrong about Cardinality?

Some infinities are bigger than others: |\text{integers}| < |\text{reals}|.

What should I learn before Cardinality?

Before studying Cardinality, you should understand: set, element.

Prerequisites

How Cardinality Connects to Other Ideas

To understand cardinality, you should first be comfortable with set and element.