Sets

⚡ Key Takeaways

A set is a well-defined collection of distinct objects, considered as a single whole. Sets are the foundational language of modern mathematics: nearly every mathematical object — numbers, functions, relations, spaces — is defined in terms of sets. Developed rigorously by Georg Cantor in the 1870s–1880s, set theory underlies all of contemporary mathematics, computer science, logic, and probability.

💡 The Core Insight

A set is determined entirely by what belongs to it — nothing else. There is no notion of "first element," no concept of an element appearing "twice," and no internal structure beyond membership. This radical simplicity is exactly what makes sets powerful: from the single relation "xx belongs to AA" we can build the entire edifice of mathematics.

Formal Statement

DefinitionSet and Membership

A set is a collection of distinct objects. If an object xx is a member of a set AA, we write

1
x∈A\quad x \in A

Derivation hint: This is the primitive (undefined) relation of set theory; "∈\in" is read "is an element of." If xx is not a member, we write x∉Ax \notin A. A set may be specified by listing (roster notation), as in A={1,2,3}A = \{1, 2, 3\}, or by a defining property (set-builder notation):

2
A={ x∣P(x) }\quad A = \{\, x \mid P(x) \,\}

Derivation hint: Read "the set of all xx such that P(x)P(x) is true"; the vertical bar means "such that."

DefinitionSet Equality — The Axiom of Extensionality

Two sets AA and BB are equal if and only if they have exactly the same elements:

3
A=B  ⟺  ∀x (x∈A  ⟺  x∈B)\quad A = B \iff \forall x \,(x \in A \iff x \in B)

Derivation hint: Equality depends only on membership — not on how the set is described, ordered, or written. A consequence: {1,2,2,3}={3,1,2}\{1, 2, 2, 3\} = \{3, 1, 2\}, since repetition and order do not affect membership.

DefinitionSubset and Power Set

AA is a subset of BB, written A⊆BA \subseteq B, if every element of AA is also an element of BB:

4
A⊆B  ⟺  ∀x (x∈A  ⟹  x∈B)\quad A \subseteq B \iff \forall x\,(x \in A \implies x \in B)

Derivation hint: Universally quantify the implication "member of AA ⟹ member of BB." The power set P(A)\mathcal{P}(A) is the set of all subsets of AA. For a finite set with nn elements,

5
∣P(A)∣=2n\quad |\mathcal{P}(A)| = 2^{n}

Derivation hint: Each element is either in or out of a subset — two choices per element, multiplied over nn elements.

DefinitionCore Operations

For sets AA and BB within a universe UU:

6
A∪B={ x∣x∈A or x∈B }\quad A \cup B = \{\, x \mid x \in A \ \text{or}\ x \in B \,\}

Derivation hint: The union collects everything in either set; "or" is inclusive.

7
A∩B={ x∣x∈A and x∈B }\quad A \cap B = \{\, x \mid x \in A \ \text{and}\ x \in B \,\}

Derivation hint: The intersection keeps only the common elements.

8
A∖B={ x∣x∈A and x∉B }\quad A \setminus B = \{\, x \mid x \in A \ \text{and}\ x \notin B \,\}

Derivation hint: Set difference removes from AA everything that lies in BB.

9
Ac=U∖A={ x∈U∣x∉A }\quad A^{c} = U \setminus A = \{\, x \in U \mid x \notin A \,\}

Derivation hint: The complement is everything in the universe not in AA.

TheoremDe Morgan's Laws for Sets

For any sets A,BA, B in a universe UU:

10
(A∪B)c=Ac∩Bc,(A∩B)c=Ac∩?\quad (A \cup B)^{c} = A^{c} \cap B^{c}, \qquad (A \cap B)^{c} = A^{c} \cap{?}
11
(A∩B)c=Ac∪Bc\quad (A \cap B)^{c} = A^{c} \cup B^{c}

Derivation hint: Negating "in AA or BB" gives "not in AA and not in BB"; negating "and" gives "or."

Why It Holds / Derivation

ProofDe Morgan's First Law, Equation 10

We show (A∪B)c=Ac∩Bc(A \cup B)^c = A^c \cap B^c using the Axiom of Extensionality — i.e. by proving both sets have the same elements.

Step 1. Take any x∈(A∪B)cx \in (A \cup B)^c. By definition of complement, x∉A∪Bx \notin A \cup B.

Step 2. By definition of union, x∉A∪Bx \notin A \cup B means it is not the case that (x∈Ax \in A or x∈Bx \in B).

Step 3. By the logical equivalence ¬(p∨q)≡(¬p∧¬q)\lnot(p \lor q) \equiv (\lnot p \land \lnot q), this means x∉Ax \notin A and x∉Bx \notin B.

Step 4. Therefore x∈Acx \in A^c and x∈Bcx \in B^c, so x∈Ac∩Bcx \in A^c \cap B^c. This shows (A∪B)c⊆Ac∩Bc(A \cup B)^c \subseteq A^c \cap B^c.

Step 5. Every step above is an if and only if, so reading them in reverse gives Ac∩Bc⊆(A∪B)cA^c \cap B^c \subseteq (A \cup B)^c.

Step 6. Mutual inclusion plus Extensionality (Equation 3) gives equality. ■\blacksquare

∎
ProofPower Set Size, Equation 5

Step 1. Let A={a1,a2,…,an}A = \{a_1, a_2, \dots, a_n\}. A subset S⊆AS \subseteq A is fully determined by deciding, for each element aia_i, whether ai∈Sa_i \in S.

Step 2. Each of these nn decisions has exactly 2 outcomes (in or out), and they are made independently.

Step 3. By the multiplication principle of counting, the total number of distinct subsets is

2×2×⋯×2⏟n factors=2n.\underbrace{2 \times 2 \times \cdots \times 2}_{n \text{ factors}} = 2^n.

Step 4. Hence ∣P(A)∣=2n|\mathcal{P}(A)| = 2^n. ■\blacksquare

∎
mathematician · Georg Cantor | 1845–1918

Georg Cantor, a German mathematician, single-handedly created set theory in a series of papers beginning in 1874. His most revolutionary contribution was the rigorous treatment of infinite sets and the discovery, via his famous diagonal argument, that infinities come in different sizes — the real numbers cannot be put in one-to-one correspondence with the natural numbers. His ideas were fiercely resisted by contemporaries such as Leopold Kronecker, who called them "humbug." Cantor suffered from depression, partly aggravated by this hostility, yet his work was ultimately embraced; David Hilbert declared, "No one shall expel us from the paradise that Cantor has created."

Building Intuition

🧠 Intuition

Think of a set as a bag with a strict doorman. The doorman only ever answers one question: "Is this thing inside?" — yes or no. He does not care which item arrived first (no order), and he never lets the same item enter twice (no duplicates). Two bags are "the same bag" precisely when the doorman would give identical answers for every possible item. Venn diagrams make operations concrete: overlapping circles represent two sets, the overlap is A∩BA \cap B, the whole shaded region is A∪BA \cup B, and the region outside both circles (inside the rectangle) is (A∪B)c(A \cup B)^c. The empty set ∅\emptyset is the bag the doorman always says "no" to — and there is only one such bag, which is why we say "the" empty set.

Figure
Venn diagram of two sets within a universe UU, showing union, intersection, and complement regions
U A B A∩B A∖B B∖A (A∪B)ᶜ

Worked Examples

ExamplePower Set and Operations

Given: A={1,2,3}A = \{1, 2, 3\} and B={2,3,4}B = \{2, 3, 4\}, with universe U={1,2,3,4,5}U = \{1, 2, 3, 4, 5\}.

Step 1 — Union (Eq. 6): combine all members:

A∪B={1,2,3,4}.A \cup B = \{1, 2, 3, 4\}.

Step 2 — Intersection (Eq. 7): keep common members:

A∩B={2,3}.A \cap B = \{2, 3\}.

Step 3 — Difference (Eq. 8): members of AA not in BB:

A∖B={1}.A \setminus B = \{1\}.

Step 4 — Complement (Eq. 9): members of UU not in AA:

Ac={4,5}.A^c = \{4, 5\}.

Step 5 — Power set size (Eq. 5): since ∣A∣=3|A| = 3,

∣P(A)∣=23=8.|\mathcal{P}(A)| = 2^3 = 8.

Boxed answers:

A∪B={1,2,3,4},A∩B={2,3},A∖B={1},∣P(A)∣=8\boxed{A\cup B = \{1,2,3,4\},\quad A\cap B=\{2,3\},\quad A\setminus B=\{1\},\quad |\mathcal{P}(A)|=8}
ExampleVerifying De Morgan's Law Numerically

Given: U={1,2,3,4,5,6}U = \{1,2,3,4,5,6\}, A={1,2,3}A = \{1,2,3\}, B={3,4}B = \{3,4\}. Verify Equation 11: (A∩B)c=Ac∪Bc(A \cap B)^c = A^c \cup B^c.

Step 1 — Left side. A∩B={3}A \cap B = \{3\}, so

(A∩B)c=U∖{3}={1,2,4,5,6}.(A \cap B)^c = U \setminus \{3\} = \{1,2,4,5,6\}.

Step 2 — Right side, complements. Ac={4,5,6}A^c = \{4,5,6\} and Bc={1,2,5,6}B^c = \{1,2,5,6\}.

Step 3 — Right side, union.

Ac∪Bc={1,2,4,5,6}.A^c \cup B^c = \{1,2,4,5,6\}.

Step 4 — Compare. Both sides equal {1,2,4,5,6}\{1,2,4,5,6\}.

Boxed answer:

(A∩B)c=Ac∪Bc={1,2,4,5,6} ✓\boxed{(A\cap B)^c = A^c \cup B^c = \{1,2,4,5,6\}\ \checkmark}

Common Misconceptions

⚠️ Common mistake

An element is not the same as the singleton set containing it. The number 22 and the set {2}\{2\} are different objects: 2∈{2}2 \in \{2\}, but 2≠{2}2 \neq \{2\}. Likewise, ∅\emptyset (the empty set, containing nothing) differs from {∅}\{\emptyset\} (a set containing one element, namely the empty set) — so ∣∅∣=0|\emptyset| = 0 but ∣{∅}∣=1|\{\emptyset\}| = 1.

Do not confuse ⊆\subseteq with ∈\in. "{1}⊆{1,2}\{1\} \subseteq \{1,2\}" is true (subset), but "{1}∈{1,2}\{1\} \in \{1,2\}" is false, since the element {1}\{1\} is not one of the members 11 or 22.

CounterexampleOrder and Repetition Do Not Create New Sets

One might think {1,2,3}\{1, 2, 3\}, {3,2,1}\{3, 2, 1\}, and {1,1,2,3,3}\{1, 1, 2, 3, 3\} are three different sets. By the Axiom of Extensionality (Equation 3), they are all the same set, because every xx is a member of one iff it is a member of the others. If you need order to matter, you need an ordered tuple (1,2,3)(1,2,3), not a set; if you need repetition to matter, you need a multiset — neither of which is a set.

CounterexampleNaïve Comprehension Fails — Russell's Paradox

It is tempting to believe any property defines a set. Consider R={ x∣x∉x }R = \{\, x \mid x \notin x \,\}, "the set of all sets that are not members of themselves." Ask: is R∈RR \in R? If R∈RR \in R, then by its own definition R∉RR \notin R — contradiction. If R∉RR \notin R, then RR satisfies the defining property, so R∈RR \in R — contradiction. No such set can exist. This is Russell's Paradox, and it shows unrestricted set-building is logically inconsistent, motivating the careful axioms of modern set theory.

Connections

connection

Sets are the connective tissue of mathematics. A <span class="wiki-link-missing">Function</span> is formally a special set of ordered pairs (a relation with at most one output per input). The number systems — the <span class="wiki-link-missing">Natural Numbers</span>, integers, rationals, and <a class="wiki-link" href="/wiki/ncert-10-maths-real-numbers">Real Numbers</a> — are all constructed as sets. <span class="wiki-link-missing">Logic</span> mirrors set operations exactly: "and"/"or"/"not" correspond to intersection/union/complement, which is why De Morgan's Laws appear in both. <a class="wiki-link" href="/wiki/ndli-isc-11-mathematics-probability">Probability</a> defines events as subsets of a sample space, so P(A∪B)P(A \cup B) and P(A∩B)P(A \cap B) inherit the set algebra directly. <span class="wiki-link-missing">Cardinality</span> generalizes "counting" to compare sizes of infinite sets.

Real-World Applications

🔬 Where this appears

Historical Development

⏳ History
- c. 350 BCE — Aristotle studies syllogistic logic, an informal precursor to class/membership reasoning.
- 1847 — George Boole publishes The Mathematical Analysis of Logic, algebraizing logical classes (Boolean algebra).
- 1874 — Georg Cantor's paper on countability launches set theory; he proves the algebraic numbers are countable but the reals are not.
- 1881–1883 — John Venn introduces the diagrams that bear his name for visualizing set relations.
- 1891 — Cantor publishes the diagonal argument, cleanly proving ∣R∣>∣N∣|\mathbb{R}| > |\mathbb{N}|.
- 1901 — Bertrand Russell discovers Russell's Paradox, exposing the inconsistency of naïve set theory.
- 1908 — Ernst Zermelo proposes the first axiom system to avoid paradoxes; refined with Abraham Fraenkel into ZFC (1922).
- 1931 — Kurt Gödel's Incompleteness Theorems show no consistent axiom system (including ZFC) can prove all true statements about sets.
- 1963 — Paul Cohen proves the Continuum Hypothesis is independent of ZFC, completing work begun by Gödel (1940).

Subtleties & Limits

open-problem

The Continuum Hypothesis (CH) asks whether there exists a set whose size is strictly between that of the natural numbers ∣N∣|\mathbb{N}| and that of the real numbers ∣R∣|\mathbb{R}|. Cantor conjectured "no," but the question turned out to be undecidable: Gödel (1940) showed CH cannot be disproved from the standard ZFC axioms, and Cohen (1963) showed it cannot be proved either. CH is therefore independent of ZFC — both it and its negation can be consistently added. This raises a profound philosophical puzzle: are there genuine mathematical truths beyond what any axiom system can capture, and how do we choose which set-theoretic universe to inhabit? Active research in large cardinals and forcing continues to probe these foundations.

See Also

Functions · Relations · Cardinality · Logic · Probability · Real Numbers · Boolean Algebra · Russell's Paradox