Mathematics · Glossary

What is Set operations?

Also known as: set · power set

Definition 1.16 University Mathematics — Year 1 · Chapter 1 — Logic, Sets and Maps

We take the notion of set and the membership relation xEx \in E as primitive. For sets A,BA, B inside an ambient set EE:

  • inclusion: ABA \subseteq B when x, xA    xB\forall x,\ x \in A \implies x \in B; equality A=BA = B when ABA \subseteq B and BAB \subseteq A;
  • union ABA \cup B, intersection ABA \cap B, difference AB={xA:xB}A \setminus B = \{x \in A : x \notin B\}, complement A=EA\overline{A} = E \setminus A;
  • the empty set \emptyset, contained in every set;
  • the power set P(E)\mathcal{P}(E): the set of all subsets of EE;
  • the product E×FE \times F: the set of ordered pairs (x,y)(x, y) with xEx \in E, yFy \in F.

Examples

Example 1.17 (Getting used to the power set)

For E={a,b}E = \{a, b\}:

P(E)={, {a}, {b}, {a,b}},\mathcal P(E) = \bigl\{\, \emptyset,\ \{a\},\ \{b\},\ \{a, b\} \,\bigr\},

four elements — and note the type discipline: aEa \in E but {a}P(E)\{a\} \in \mathcal P(E); the statements aP(E)a \in \mathcal P(E) and {a}P(E)\{a\} \subseteq \mathcal P(E) are both false as written (the second would require aa to be a subset of EE). Iterating from nothing: P()={}\mathcal P(\emptyset) = \{\emptyset\} has one element, P(P())={,{}}\mathcal P(\mathcal P(\emptyset)) = \{\emptyset, \{\emptyset\}\} has two, the next has four — sets of sets are ordinary sets, and Chapter 2 will confirm the doubling pattern: P(E)=2E\abs{\mathcal P(E)} = 2^{\abs E}. Keeping the levels (xx, {x}\{x\}, {{x}}\{\{x\}\}) straight is half the battle in exercises like Exercises 1.11 and 1.12.

Example 1.27 (Point (2) is sharp)

In Proposition 1.26 (2), one cannot upgrade the conclusions: gfg \circ f bijective does not force ff surjective or gg injective. Take E=G={1}E = G = \{1\}, F={1,2}F = \{1, 2\}, with f(1)=1f(1) = 1 and g(1)=g(2)=1g(1) = g(2) = 1: then gf=idEg \circ f = \mathrm{id}_E is bijective, yet ff misses the element 22 and gg collapses both elements. The moral is a precise bookkeeping rule: composition information flows to the inner map for injectivity and to the outer map for surjectivity, never the other way. (Exercise 1.9 builds the same phenomenon with infinite sets, where it is the engine behind one-sided inverses.)

Example 1.32

On Z\Z, congruence modulo nn (xy(modn)x \equiv y \pmod n when nn divides xyx - y) is an equivalence relation; its classes are the nn sets of integers with a given remainder upon division by nn. This example becomes the ring Z/nZ\Z/n\Z in Chapter 7.

Read in context →