Set Theory Exercises

David Lu
July 25, 2018

Venn Diagram

Sets

  1. Which of these sets are equal?
    {x,y,zx, y, z}, {z,y,z,xz, y, z, x}, {y,x,y,zy, x, y, z}, {y,z,x,yy, z, x, y}

  1. List the elements of each set where N\mathbb{N} = {1,2,3,...1, 2, 3, ...}.
    (a) A=A = { xNx \in \mathbb{N} | 3<x<93 < x < 9}
    (b) B=B = { xNx \in \mathbb{N} | xx is even, x<11x < 11}

  1. Prove that BA=BAB \setminus A = B \cap \overline{A}
    (The complement of a set XX, X\overline{X} = {xx | xUx \in \mathbb{U} and xXx \notin X})

  1. Give some example sets that make the following statements true:
    (a) AB=ACA \cap B = A \cap C and BCB \neq C
    (b) $DE=DFD \cup E = D \cup F and E=FE = F

  1. Prove that A(BC)=(AB)(AC)A \cap (B \cup C) = (A \cap B) \cup (A \cap C) (Set distributivity law)

  1. Determine the validity of the following argument, using a Venn diagram:

  1. Which of the following sets are identical?

A={xx24x+3=0}A = \{x | x^2 - 4x + 3 = 0\}

B={xx23x+2=0}B = \{x | x^2 - 3x + 2 = 0\}

C={xxN,x<3}C = \{x | x \in \mathbb{N}, x < 3\}

D={xxN,xD = \{x | x \in \mathbb{N}, x is odd, x<5}x < 5\}

E={1,2}E = \{1, 2\}

F={1,2,1}F = \{1, 2, 1\}

G={3,1}G = \{3, 1\}

H={1,1,3}H = \{1, 1, 3\}


  1. Find the power set P(A)\mathscr{P}(A) of A={{a,b},{c},{d,e,f}}A = \{\{a, b\}, \{c\}, \{d, e, f\}\}


Relations

Some examples:
If A={1,2}A = \{1, 2\} and B={a,b,c}B = \{a, b, c\}, then:

A×B={1,a,1,b,1,c,2,a,2,b,2,c}A \times B = \{\langle 1, a \rangle, \langle 1, b \rangle, \langle 1, c \rangle, \langle 2, a \rangle, \langle 2, b \rangle, \langle 2, c \rangle\}

A binary relation RR from AA to BB is a subset of A×BA \times B
If a,bR\langle a, b \rangle \in R, then we can write RabRab or aRbaRb.
The former is typically preferred, since it allows us an easy convention for notating relationships with >2 relata, e.g. RabcRabc, and to notate the negation ¬Rab\neg Rab, using our logical vocabulary.

The inverse relation R1R^{-1} is the relation from BB to AA which consists of the ordered pairs, which, when reversed, belong to RR. In symbolic notation: R1={b,aa,bR}R^{-1} = \{\langle b, a \rangle | \langle a, b \rangle \in R\}


  1. Relations can be depicted by graphs. Draw a graph for the following relation RR.
    R={1,2,2,2,2,4,3,2,3,4,4,1,4,3}R = \{\langle 1, 2 \rangle, \langle 2, 2 \rangle, \langle 2, 4 \rangle, \langle 3, 2 \rangle, \langle 3, 4 \rangle, \langle 4, 1\rangle, \langle 4, 3 \rangle \}

  1. What does the inverse R1R^{-1} look like?

  1. Relations can also be represented as a table or two dimensional array. What would that look like? Construct one for RR.

Relation Composition or product:
Suppose that we have three sets AA, BB, and CC, a relation RR defined from AA to BB, and a relation SS defined from BB to CC. We can define a composition of RR and SS, written (RS)(R | S) (but sometimes SRS \circ R), as follows. If aa is an element of AA and cc is an element of CC, then (RS)ac(R | S)ac iff there exists some element bb in BB such that RabRab and SbcSbc. So we have a relation RSR|S from aa to cc iff aa is RR related to bb and bb is SS related to cc.

  1. Let AA = {1, 2, 3, 4}, RR = {(1, 2), (1, 2), (2, 4), (3, 2)} ----- using () as angle brackets
    and SS = {(1, 4), (1, 3), (2, 3), (3, 1), (4, 1)}
    Find RSR|S.

Relations have many interesting properties. Some that we’re interested in include: reflexivity, symmetry, antisymmetry, transitivity, equivalence, and partial and total order.

  1. Construct or name an example for each property.

  2. Consider the following relations on the set AA = {1, 2, 3}.
    RR = {(1, 1), (1, 2), (1, 3), (3, 3)}
    SS = {(1, 1), (1, 2), (2, 1), (2, 2), (3, 3)}
    TT = {(1, 1), (1, 2), (2, 2), (2, 3)}
    \emptyset = empty relation
    A×AA \times A = universal relation on AA

Determine whether or not each of the relations is (a) reflexive, (b) symmetric, © transitive, and (d) antisymmetric.


  1. Let ll be any collection of sets. Is the subset relation, \subseteq, a partial order on ll?

Unfamiliar notation: generalized set operation: A1A2A3...Am=i=1mRiA_1 \cup A_2 \cup A_3 \cup ... \cup A_m = \bigcup^m_{i=1} R_i

The transitive closure of a binary relation RR on set AA is the smallest relation on AA that contains RR and is transitive. If RR is transitive, then RR is the transitive closure.