Chapter 1

Sets and Relations

[27/100%]
Show
LaTeX
Problem 1

Find all subsets of the following sets: ∅,{∅},{1,2,3}\varnothing ,\left\{ \varnothing \right\} ,\left\{ 1,2,3\right\}, {a,{1,2},∅}\left\{ a, \left\{ 1,2\right\} , \varnothing \right\}.

?
Problem 2

Let A={0,1},B={a,b,c}A=\left\{ 0,1\right\} , B=\left\{ a, b, c\right\}. Find the sets A×BA \times B and B×AB \times A.

?
Problem 3

Prove the following inclusions:

?
(a)

A∩B⊆A⊆A∪BA \cap B \subseteq A \subseteq A \cup B;

(b)

A\B⊆AA \backslash B \subseteq A.

Problem 4

Prove the following identities for arbitrary sets A,B,CA, B, C:

?
(a)

A∪A=A∩A=AA \cup A=A \cap A=A;

(b)

A∩(B∪C)=(A∩B)∪(A∩C)A \cap (B \cup C)=(A \cap B) \cup (A \cap C);

(c)

(A∪B)∩A=(A∩B)∪A=A(A \cup B) \cap A=(A \cap B) \cup A=A;

(d)

A\(B∪C)=(A\B)∩(A\C)A \backslash (B \cup C)=(A \backslash B) \cap (A \backslash C);

(e)

A\(B∩C)=(A\B)∪(A\C)A \backslash (B \cap C)=(A \backslash B) \cup (A \backslash C);

(f)

(A\B)∩C=(A∩C)\B(A \backslash B) \cap C=(A \cap C) \backslash B;

(g)

A\(B\C)=(A\B)∪(A∩C)A \backslash (B \backslash C)=(A \backslash B) \cup (A \cap C);

(h)

(A\B)\C=A\(B∪C)(A \backslash B) \backslash C=A \backslash (B \cup C);

(i)

A÷B=(A∪B)\(A∩B)A \div B=(A \cup B) \backslash (A \cap B);

(j)

A∪∅=∅∪A=AA \cup \varnothing =\varnothing \cup A=A;

(k)

A∩∅=∅∩A=∅A \cap \varnothing =\varnothing \cap A=\varnothing;

(l)

A÷∅=∅÷A=AA \div \varnothing =\varnothing \div A=A;

(m)

A÷A=∅A \div A=\varnothing.

Problem 5

Prove that

?
(a)

A×(B∪C)=(A×B)∪(A×C)A \times (B \cup C)=(A \times B) \cup (A \times C);

(b)

A×(B∩C)=(A×B)∩(A×C)A \times (B \cap C)=(A \times B) \cap (A \times C);

(c)

A×(B\C)=(A×B)\(A×C)A \times (B \backslash C)=(A \times B) \backslash (A \times C);

(d)

if A⊆BA \subseteq B and C⊆DC \subseteq D, then (A×C)=(A×D)∩(B×C)(A \times C)=(A \times D) \cap (B \times C).

Problem 6

Prove that the inclusion A⊆BA \subseteq B holds if and only if P(A)⊆P(B)\mathrm{P}(A) \subseteq \mathrm{P}(B) holds.

?
Problem 7

For each of the following relations find dom⁡R,rng⁡R,R−1\operatorname {dom} R, \operatorname {rng} R, R^{-1}, R∘R,R∘R−1R \circ R, R \circ R^{-1}:

?
(a)

R={(x,y):x,y∈ω and x divides y}R=\left\{ (x, y): x, y \in \omega \text{ and }x\text{ divides }y\right\}; xx divides yy if there exists zz such that xz=yx z=y;

(b)

R={(x,y):x,y∈ω and x+y⩽10}R=\left\{ (x, y): x, y \in \omega \text{ and }x+y \leqslant 10\right\};

(c)

R={(x,y):x,y∈ω and y=3x+1}R=\left\{ (x, y): x, y \in \omega \text{ and }y=3 x+1\right\};

(d)

R={(x,x2):x∈ω and x⩽10}R=\left\{ \left(x, x^{2}\right): x \in \omega \text{ and } x \leqslant 10\right\};

(e)

R={(a,b),(b,c),(b,d),(c,d),(d,b)}R=\left\{ (a, b),(b, c),(b, d),(c, d),(d, b)\right\}.

Problem 8

Let the set S={(i,j):1⩽i,j⩽8}S=\left\{ (i, j): 1 \leqslant i, j \leqslant 8\right\} denote the squares of a chessboard. Describe the following binary relations on SS:

?
(a)

L={(a,b) : a rook can move from square a to square b in one move}L=\left\{ (a, b)\text{ : a rook can move from square }a\text{ to square }b\text{ in one move}\right\};

(b)

K={(a,b) : a knight can move from square a to square b in one move}K=\left\{ (a, b)\text{ : a knight can move from square }a\text{ to square }b\text{ in one move}\right\}.

Are these relations equivalence relations? Describe the relation L∘LL \circ L.

Problem 9

Let Π\Pi be the set of all lines in the Euclidean plane. Determine whether the following relations on Π\Pi are equivalence relations:

?
(a)

parallelism of lines (we regard a line as parallel to itself);

(b)

perpendicularity of lines.

Problem 10

Let Π\Pi be the set of polygons in the plane. Are the following relations equivalence relations on Π\Pi:

?
(a)

xx and yy can be made to coincide;

(b)

xx and yy are similar;

(c)

xx and yy have the same angle;

(d)

xx and yy intersect;

(e)

xx and yy have the same area;

(f)

xx and yy have a common vertex;

(g)

xx and yy are equidecomposable.

Problem 11

Let WW be the set of words over the alphabet Σ\Sigma. Are the following relations equivalence relations on WW:

?
(a)

xx and yy consist of the same symbols, disregarding count;

(b)

xx and yy consist of the same symbols, counting multiplicity;

(c)

xyx y has even length;

(d)

xx and yy have the same length;

(e)

xx and yy have the same length and differ in at most one position;

(f)

xx and yy have at least one common letter;

(g)

xx and yy begin with the same letter.

Problem 12

Let Σ={a1,…,am}\Sigma =\left\{ a_{1}, \ldots , a_{m}\right\} be an arbitrary finite alphabet, that is, a set of symbols. Denote by Σn\Sigma^{n} the set of words of length nn over the alphabet Σ\Sigma (this notation is consistent with the same notation for the Cartesian power of Σ\Sigma, since the power Σn\Sigma^{n} consists of all sequences of elements of Σ\Sigma of length nn).

?
(a)

Define the following relation R1R_{1} on words from Σn\Sigma^{n}. Let v=ai1ai2…ain,w=aj1aj2…ajnv=a_{i_{1}} a_{i_{2}} \ldots a_{i_{n}}, w=a_{j_{1}} a_{j_{2}} \ldots a_{j_{n}}. Then (v,w)∈R1(v, w) \in R_{1} if and only if ik⩽jki_{k} \leqslant j_{k} for all kk from 1 to nn and ik<jki_{k}<j_{k} for some such kk, that is, the number of each letter of the word vv is no greater than the number of the same letter in the word ww, and for at least one letter it is strictly smaller. Determine whether this relation R1R_{1} is a relation of partial (linear) order.

(b)

Define the following relation R2R_{2} on words from Σ∗\Sigma^{*}. Let v=ai1ai2…ain,w=aj1aj2…ajrv=a_{i_{1}} a_{i_{2}} \ldots a_{i_{n}}, w=a_{j_{1}} a_{j_{2}} \ldots a_{j_{r}}. Then (v,w)∈R2(v, w) \in R_{2} if and only if there exists kk in the range from 1 to nn such that il=jli_{l}=j_{l} for l<kl<k and ik<jki_{k}<j_{k}, or n<rn<r and the first nn symbols of ww coincide with the word vv. Determine whether this relation R2R_{2} is a relation of partial (linear) order.

Remark.
?

Remark 3 (Ordering of tuples). The relation R1R_{1} defined in part (a) is called the coordinatewise order relation, and the relation R2R_{2} from part (b) is called the lexicographic order relation. Words in dictionaries and encyclopedias, for example, are ordered according to lexicographic order.

Problem 13

Prove that, under the conditions of Problem 12 on the facing page, on the set Σk\Sigma^{k} the lexicographic order extends the coordinatewise order, that is R1⊆R2R_{1} \subseteq R_{2}.

?
Problem 14

Prove that if X⊆YX \subseteq Y are finite subsets of ω\omega, then ρ(X)⩽ρ(Y)\rho (X) \leqslant \rho (Y), where the function ρ\rho is from Example 2 on p. 31. Show that the converse is false.

Example 2: Let Pf(A)\mathrm{P}_{f}(A) denote the set of all finite subsets of AA. The function ρ:Pf(ω)→ω\rho : \mathrm{P}_{f}(\omega ) \rightarrow \omega is defined by ρ(X)=∑i∈X2i\rho (X)=\sum_{i \in X} 2^{i}.

?
Problem 15

Prove that a function ff on a set AA is a partial order on AA if and only if f(f(x))=f(x)f(f(x))=f(x) for all x∈Ax \in A.

?
Problem 16

Prove that if the sets AA and BB are finite, then the following equalities hold for their cardinalities:

?
(a)

∣A×B∣=∣A∣⋅∣B∣\left|A \times B\right|=\left|A\right| \cdot \left|B\right|;

(b)

∣A∪B∣=∣A∣+∣B∣−∣A∩B∣|A \cup B|=|A|+|B|-|A \cap B|;

(c)

∣{0,1}n∣=2n\left|\left\{ 0,1\right\}^{n}\right|=2^{n};

(d)

∣P(A)∣=2∣A∣\left|\mathrm{P}(A)\right|=2^{\left|A\right|}.

Problem 17

Prove that the set of pairs ω2\omega^{2} is countable.

?
Problem 18

Prove that the set of ordered nn-tuples ωn\omega^{n} is countable.

?
Problem 19

Prove that the union of a countable number of countable sets is again countable.

?
Problem 20

Prove that the set of rational numbers Q\mathbb {Q} is countable.

?
Problem 21

Prove that the set of degree-nn polynomials with integer coefficients is countable for a fixed nn.

?
Problem 22

Prove that the set of all polynomials with integer coefficients is countable.

?
Problem 23

Prove that the set of algebraic numbers is countable.

?
Problem 24

Using the Cantor–Bernstein theorem, prove that the set SS of sequences of real numbers (ai)i∈ω,ai∈R\left(a_{i}\right)_{i \in \omega }, a_{i} \in \mathbb {R}, has the same cardinality as R\mathbb {R}.

?
Problem 25

Prove that every language over a finite alphabet is countable.

?
Problem 26

Find L1∩L2,L2\L1,Lˉ1L_{1} \cap L_{2}, L_{2} \backslash L_{1}, \bar{L}_{1} for the following languages over the alphabet Σ={a,b}\Sigma =\left\{ a, b\right\}:

L1={w∈Σ∗: the numbers of letters a and b in w are equal }L2={aibj:i,j∈ω}. \begin{align} & L_{1}=\left\{ w \in \Sigma ^{*}: \text{ the numbers of letters } a \text{ and } b \text{ in } w \text{ are equal }\right\} \\ & L_{2}=\left\{ a^{i} b^{j}: i, j \in \omega \right\} . \end{align}
?
Problem 27

Find all prefixes and suffixes of the word a2b2ca^{2} b^{2} c.

?