girgit.org

Sets

Equal sets and subsets

The big ideaTwo sets are equal when they have exactly the same elements; one set is a subset of another when all its elements are inside the other.

In simple words

Two bags are "the same" if every thing in the first bag is also in the second, and every thing in the second is also in the first. If all the things in a small bag can also be found in a big bag, the small bag sits inside the big one. That is a subset.

Equal sets

Two sets \( A \) and \( B \) are equal sets if they have exactly the same elements. We write \( A = B \). If not, they are unequal and we write \( A \ne B \).

  • \( \{p, q, r\} = \{r, p, q\} \): same elements, different order.
  • The set of even primes and the set \( \{2\} \) are equal.
  • The set of letters in "TEA" and the set of letters in "EAT" are equal: both are \( \{T, E, A\} \).
  • \( \{1, 2, 3\} = \{1, 1, 2, 3, 3, 3\} \). Repeating an element does not change a set. That is exactly why we do not repeat elements when writing one.

Worked example

Are these equal? \( A = \{\, x : x \in \mathbf{Z},\ x^2 = 9 \,\} \) and \( B = \{\, x : x \in \mathbf{N},\ x^2 = 9 \,\} \).

  1. In \( \mathbf{Z} \), both \( 3 \) and \( -3 \) square to 9, so \( A = \{-3, 3\} \).
  2. In \( \mathbf{N} \), only 3 is allowed, so \( B = \{3\} \).
  3. \( -3 \in A \) but \( -3 \notin B \), so \( A \ne B \).

Lesson: the same equation can give different sets depending on which numbers \( x \) may be.

Subsets

Every student in your class is also a student of your school. We say the set of your classmates is a subset of the set of students in your school.

A set \( A \) is a subset of a set \( B \) if every element of \( A \) is also an element of \( B \). We write \( A \subset B \), read "\( A \) is a subset of \( B \)" or "\( A \) is contained in \( B \)". If \( A \) is not a subset of \( B \), we write \( A \not\subset B \).

Using the arrow \( \Rightarrow \), which means "implies", the definition is short:

\[ A \subset B \quad \text{if} \quad a \in A \Rightarrow a \in B \]

To show \( A \not\subset B \) you need just one element of \( A \) that is missing from \( B \).

Some facts that follow straight from the definition:

  • Every set is a subset of itself: \( A \subset A \).
  • The empty set is a subset of every set: \( \phi \subset A \). It has no elements, so it has no element that could be missing from \( A \).
  • Two-way subsets mean equal sets: if \( A \subset B \) and \( B \subset A \), then \( A = B \), and the other way round. We write this with the two-way arrow \( \Leftrightarrow \), read "if and only if" (short form iff): \[ A \subset B \text{ and } B \subset A \;\Leftrightarrow\; A = B \]

If \( A \subset B \) and \( A \ne B \), then \( A \) is a proper subset of \( B \), and \( B \) is a superset of \( A \). For example, \( \{1, 2\} \) is a proper subset of \( \{1, 2, 3\} \): everything in it is in the bigger set, and the bigger set has something extra.

A set with exactly one element, like \( \{7\} \) or \( \{a\} \), is called a singleton set.

Try it: type two words and see whose letters fit inside whose. One letter left out is enough to break a subset.

∈ is not ⊂

This is the most common slip in the chapter. \( \in \) links an element to a set. \( \subset \) links a set to a set.

Worked example

Let \( A = \{1, 2, \{3, 4\}\} \). It has three elements: \( 1 \), \( 2 \) and the set \( \{3, 4\} \).

  1. \( 1 \in A \): true, 1 is an element.
  2. \( \{1\} \subset A \): true, the set holding 1 sits inside \( A \).
  3. \( 1 \subset A \): wrong. 1 is a number, not a set.
  4. \( \{3, 4\} \in A \): true, \( \{3, 4\} \) is one of the three elements.
  5. \( \{3, 4\} \subset A \): false. That would need 3 and 4 to be elements of \( A \), and they are not.
  6. \( \{\{3, 4\}\} \subset A \): true. Its only element, \( \{3, 4\} \), is in \( A \).

Now test yourself on the same \( A \). Commit to true or false before the picture checks it.

A related trap: if \( A \in B \) and \( B \subset C \), it is not always true that \( A \subset C \). Take \( A = \{5\} \), \( B = \{\{5\}, 6\} \), \( C = \{\{5\}, 6, 7\} \). Here \( A \in B \subset C \), but \( 5 \notin C \), so \( A \not\subset C \).

Remember

  • \( A = B \): exactly the same elements; order and repeats do not matter.
  • \( A \subset B \): every element of \( A \) is in \( B \).
  • \( \phi \subset A \) and \( A \subset A \) for every set \( A \).
  • \( A \subset B \) and \( B \subset A \Leftrightarrow A = B \).

Try it. Let \( P = \{1, 3\} \), \( Q = \{1, 3, 5, 7\} \), \( R = \{3, 6\} \). Fill in \( \subset \) or \( \not\subset \): (a) \( P \dots Q \) (b) \( R \dots Q \) (c) \( \phi \dots R \) (d) \( Q \dots P \).

Answer
(a) \( P \subset Q \): 1 and 3 are both in \( Q \). (b) \( R \not\subset Q \): \( 6 \notin Q \). (c) \( \phi \subset R \): the empty set is a subset of every set. (d) \( Q \not\subset P \): \( 5 \notin P \).

Words to know

Equal sets
Sets with exactly the same elements.
Subset \( \subset \)
\( A \subset B \): every element of \( A \) is also in \( B \).
Proper subset
A subset that is not the whole set.
Superset
The bigger set that contains the subset.
Singleton set
A set with exactly one element.
\( \Rightarrow \), \( \Leftrightarrow \)
"Implies"; "if and only if" (iff).

Which statement is false?

  1. \( \phi \subset \{1, 2\} \)
  2. \( \{1, 2\} \subset \{1, 2\} \)
  3. \( \{a\} \in \{a, b\} \)

\( A = \{\, x : x \text{ is a letter of } \text{LISTEN} \,\} \), \( B = \{\, x : x \text{ is a letter of } \text{SILENT} \,\} \). Then

  1. \( A = B \)
  2. \( A \ne B \)
  3. \( A \) is a proper subset of \( B \)

If \( A \subset B \) and \( B \subset A \), what can you say?

  1. Both are empty
  2. \( A = B \)
  3. One is a proper subset of the other