Visual Tools
Calculators
Tables
Mathematical Keyboard
Converters
Other Tools


Page Title






How Sets Compare and Connect


Beyond subset containment, sets can relate to one another in several ways. Two sets may be equal, equivalent in size, disjoint, or overlapping. Understanding these relationships clarifies how collections compare and interact, and leads to the concept of a partition — a way of dividing a set into non-overlapping pieces.



Equal Sets


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

A=B    x(xA    xB)A = B \iff \forall x\,(x \in A \iff x \in B)


Order does not matter: {1,2,3}={3,1,2}\{1, 2, 3\} = \{3, 1, 2\}. Repetition does not matter: {1,2,2,3}={1,2,3}\{1, 2, 2, 3\} = \{1, 2, 3\}. Only membership determines equality.

The standard method for proving two sets are equal is to show mutual subset containment:

A=B    (AB)(BA)A = B \iff (A \subseteq B) \land (B \subseteq A)


This reduces the problem to two subset proofs: show every element of AA belongs to BB, then show every element of BB belongs to AA.

Equivalent Sets


Two sets are equivalent if they have the same cardinality:

A=B|A| = |B|


This means a bijection exists between AA and BB — a one-to-one correspondence pairing each element of AA with exactly one element of BB.

Equal sets are always equivalent: if A=BA = B, then certainly A=B|A| = |B|. However, equivalent sets need not be equal.

The sets {a,b,c}\{a, b, c\} and {1,2,3}\{1, 2, 3\} are equivalent (both have cardinality 33) but not equal (they contain different elements). The sets N\mathbb{N} and Z\mathbb{Z} are equivalent (both countably infinite) but not equal (Z\mathbb{Z} contains negative integers).

Disjoint Sets


Two sets are disjoint if they have no elements in common:

AB=A \cap B = \emptyset


The sets {1,2,3}\{1, 2, 3\} and {4,5,6}\{4, 5, 6\} are disjoint. The set of even integers and the set of odd integers are disjoint.

For a collection of more than two sets, the sets are pairwise disjoint if every pair is disjoint:

AiAj=for all ijA_i \cap A_j = \emptyset \quad \text{for all } i \neq j


Pairwise disjoint sets have no overlap whatsoever — no element belongs to more than one set in the collection.

In probability, disjoint events are called mutually exclusive: if one occurs, the others cannot.

Overlapping Sets


Two sets overlap if they share at least one element but neither is a subset of the other:

ABandA⊈BandB⊈AA \cap B \neq \emptyset \quad \text{and} \quad A \not\subseteq B \quad \text{and} \quad B \not\subseteq A


This means each set contains elements the other lacks, yet they also have common elements.

The sets {1,2,3}\{1, 2, 3\} and {2,3,4}\{2, 3, 4\} overlap: they share 22 and 33, but 11 belongs only to the first and 44 belongs only to the second.

In a Venn diagram, overlapping sets appear as circles that intersect but neither contains the other. The lens-shaped intersection region is non-empty, and both the ABA \setminus B and BAB \setminus A regions are also non-empty.

Partitions


    A partition of a set SS is a collection of non-empty, pairwise disjoint subsets whose union equals SS:

    {A1,A2,,An} partitions S    {Aifor all iAiAj=for ijA1A2An=S\{A_1, A_2, \ldots, A_n\} \text{ partitions } S \iff \begin{cases} A_i \neq \emptyset & \text{for all } i \\ A_i \cap A_j = \emptyset & \text{for } i \neq j \\ A_1 \cup A_2 \cup \cdots \cup A_n = S \end{cases}


    Every element of SS belongs to exactly one subset in the partition.

    Examples:

  • {{1,3},{2,4},{5}}\{\{1, 3\}, \{2, 4\}, \{5\}\} partitions {1,2,3,4,5}\{1, 2, 3, 4, 5\}

  • Z\mathbb{Z}

  • nn partition Z\mathbb{Z} into nn subsets

  • Partitions arise naturally in classification problems and connect to equivalence relations. The law of total probability relies on partitions: if events B1,B2,,BnB_1, B_2, \ldots, B_n partition the sample space, probabilities can be computed by summing over the partition.