Raw

3. Classroom tasks and solutions / Аудиторні задачі та розв’язання

Source of tasks. The problems below are taken exactly from the practical-class assignment for this topic (relations and their properties); only the wording has been cleaned up and translated to English. Each task is followed by a complete worked solution. The theory used is in 2method.md; recall the core properties — reflexive ®, irreflexive (Ir), symmetric (S), antisymmetric (A), asymmetric (As), transitive (T) — and that a “no” is always justified by a witness pair.

Task 1 — Classify relations on {1,2,3,4}\{1,2,3,4\}

For each relation on the set {1,2,3,4}\{1,2,3,4\}, decide whether it is reflexive, irreflexive, symmetric, antisymmetric, asymmetric, and transitive.

Summary of verdicts (✓ = has the property, ✗ = does not):

Relation Refl. Irrefl. Sym. Antisym. Asym. Trans.
(a) {(2,2),(2,3),(2,4),(3,2),(3,3),(3,4)}\{(2,2),(2,3),(2,4),(3,2),(3,3),(3,4)\}
(b) {(1,1),(1,2),(2,1),(2,2),(3,3),(4,4)}\{(1,1),(1,2),(2,1),(2,2),(3,3),(4,4)\}
(c) {(2,4),(4,2)}\{(2,4),(4,2)\}
(d) {(1,2),(2,3),(3,4)}\{(1,2),(2,3),(3,4)\}
(e) {(1,1),(2,2),(3,3),(4,4)}\{(1,1),(2,2),(3,3),(4,4)\}
(f) {(1,3),(1,4),(2,3),(2,4),(3,1),(3,4)}\{(1,3),(1,4),(2,3),(2,4),(3,1),(3,4)\}

Justifications.

  • (a) Not reflexive — missing (1,1),(4,4)(1,1),(4,4). Not symmetric — has (2,4)(2,4) but not (4,2)(4,2). Not antisymmetric — has both (2,3)(2,3) and (3,2)(3,2). Transitive — every first coordinate is 22 or 33, and (2,c),(3,c)(2,c),(3,c) are present for all the cc that occur, so each 2-step chain has its shortcut (e.g. (2,3),(3,4)(2,4)(2,3),(3,4)\Rightarrow(2,4) ✓).
  • (b) Reflexive — all of (1,1),(2,2),(3,3),(4,4)(1,1),(2,2),(3,3),(4,4) present. Symmetric — the only off-diagonal pairs are (1,2)(1,2) and (2,1)(2,1), and both are present. Not antisymmetric — (1,2)(1,2) and (2,1)(2,1) with 121\neq 2. Transitive — e.g. (1,2),(2,1)(1,1)(1,2),(2,1)\Rightarrow(1,1) ✓, and all such shortcuts are present.
  • (c) Not reflexive — no diagonal pairs. Symmetric — (2,4)(2,4) and (4,2)(4,2) both present. Not antisymmetric — same two pairs, 242\neq 4. Not transitive — (2,4),(4,2)(2,2)(2,4),(4,2)\Rightarrow(2,2), which is missing.
  • (d) Not reflexive — no diagonal pairs. Not symmetric — (1,2)(1,2) present but (2,1)(2,1) absent. Antisymmetric — no pair has its reverse, so the condition holds vacuously. Not transitive — (1,2),(2,3)(1,3)(1,2),(2,3)\Rightarrow(1,3) is missing.
  • (e) This is the identity relation. Reflexive, symmetric, antisymmetric, and transitive all hold — there are no off-diagonal pairs to violate anything. (It is both an equivalence relation and a partial order.)
  • (f) Not reflexive — no diagonal pairs. Not symmetric — (1,4)(1,4) present, (4,1)(4,1) absent. Not antisymmetric — (1,3)(1,3) and (3,1)(3,1) with 131\neq 3. Not transitive — (2,3),(3,1)(2,1)(2,3),(3,1)\Rightarrow(2,1) is missing.

Irreflexive, asymmetric, antitransitive. Irreflexive is read straight off the diagonal (no self-loops): (c), (d), (f) qualify; the rest carry at least one loop. Asymmetric == irreflexive ++ antisymmetric, so only (d) {(1,2),(2,3),(3,4)}\{(1,2),(2,3),(3,4)\} is asymmetric — and it is moreover antitransitive, since its only 2-step chains (1,2),(2,3)(1,2),(2,3) and (2,3),(3,4)(2,3),(3,4) have no shortcut ((1,3),(2,4)R(1,3),(2,4)\notin R).

Task 2 — Relations on the integers, defined by a rule

Determine whether the relation RR on the set of all integers Z\mathbb{Z} is reflexive, irreflexive, symmetric, antisymmetric, asymmetric, and/or transitive, where (x,y)R(x,y)\in R if and only if:

Summary of verdicts:

Rule for (x,y)R(x,y)\in R Refl. Irrefl. Sym. Antisym. Asym. Trans.
(a) xyx \neq y
(b) xy1xy \ge 1
(c) x=y+1x = y+1 or x=y1x = y-1
(g) x=y2x = y^2
(h) xy2x \ge y^2

Justifications.

  • (a) xyx \neq y. Not reflexive: xxx \neq x is false. Symmetric: xyx\neq y gives yxy\neq x. Not antisymmetric: 121\neq 2 and 212\neq 1 both hold with 121\neq 2. Not transitive: 121\neq 2 and 212\neq 1, but 111\neq 1 is false.
  • (b) xy1xy \ge 1. Not reflexive: 00=0≱10\cdot 0 = 0 \not\ge 1. Symmetric: xy=yxxy = yx. Not antisymmetric: 2312\cdot 3\ge 1 and 3213\cdot 2\ge 1 with 232\neq 3. Transitive: xy1xy\ge 1 forces x,yx,y to share a sign, so if also yz1yz\ge 1 then x,zx,z share that sign and xz1xz\ge 1.
  • (c) x=y±1x = y\pm 1 (i.e. xy=1|x-y| = 1). Not reflexive: xx=01|x-x| = 0 \neq 1. Symmetric: xy=yx|x-y| = |y-x|. Not antisymmetric: (1,2)(1,2) and (2,1)(2,1) both satisfy it with 121\neq 2. Not transitive: (1,2),(2,1)(1,1)(1,2),(2,1)\Rightarrow(1,1), but 11=01|1-1| = 0 \neq 1.
  • (g) x=y2x = y^2. Not reflexive: x=x2x = x^2 only for x{0,1}x\in\{0,1\}, not all xx. Not symmetric: (9,3)R(9,3)\in R since 9=329 = 3^2, but (3,9)R(3,9)\notin R since 3923 \neq 9^2. Antisymmetric: x=y2x=y^2 and y=x2y=x^2 force x=x4x = x^4, so x{0,1}x\in\{0,1\} and then y=xy=x. Not transitive: (16,4)(16,4) and (4,2)(4,2) are in RR, but 1622=416 \neq 2^2 = 4.
  • (h) xy2x \ge y^2. Not reflexive: xx2x \ge x^2 fails already at x=2x=2 (2≱42\not\ge 4). Not symmetric: (9,3)R(9,3)\in R (999\ge 9) but (3,9)R(3,9)\notin R (3≱813\not\ge 81). Antisymmetric: xy2x\ge y^2 and yx2y\ge x^2 force xy2x4x\ge y^2\ge x^4, so x{0,1}x\in\{0,1\} and y=xy=x. Transitive: if xy2x\ge y^2 and yz2y\ge z^2, then y2z4z2y^2 \ge z^4 \ge z^2, so xy2z2x \ge y^2 \ge z^2.

Task 3 — The inverse of a relation

Let R={(a,b)ab}R = \{(a,b) \mid a \mid b\} be the “divides” relation on the set of positive integers. Find R1R^{-1}.

Solution. The inverse reverses every pair:

R1={(b,a)(a,b)R}={(b,a)ab}.R^{-1} = \{(b,a) \mid (a,b)\in R\} = \{(b,a) \mid a \mid b\}.

Renaming the dummy variables (aba\leftrightarrow b) states it in the usual order:

R1={(a,b)ba}.R^{-1} = \{(a,b) \mid b \mid a\}.

In words, R1R^{-1} is the “is a multiple of” relation: aR1ba\,R^{-1}\,b holds exactly when aa is a multiple of bb.

Task 4 — Operations on the relations << and ==

Given A={0,1,2,3}A = \{0,1,2,3\} and the two relations << and == on AA: represent each as a set of ordered pairs, and find their union, intersection, difference, and complement.

Solution. As sets of pairs (the universe is A×AA\times A, with A×A=16|A\times A| = 16 pairs):

< = {(0,1),(0,2),(0,3),(1,2),(1,3),(2,3)},= = {(0,0),(1,1),(2,2),(3,3)}.<\ =\ \{(0,1),(0,2),(0,3),(1,2),(1,3),(2,3)\}, \qquad {=}\ =\ \{(0,0),(1,1),(2,2),(3,3)\}.

  • Union — every pair in << or in ==; this is exactly the relation \le:

    <  = = {(0,0),(0,1),(0,2),(0,3),(1,1),(1,2),(1,3),(2,2),(2,3),(3,3)}.<\ \cup\ {=}\ =\ \{(0,0),(0,1),(0,2),(0,3),(1,1),(1,2),(1,3),(2,2),(2,3),(3,3)\}.

  • Intersection — no pair is both “less than” and “equal”:

    <  = = .<\ \cap\ {=}\ =\ \varnothing.

  • Difference — since the two relations are disjoint, removing == changes nothing: <  = = <<\ \setminus\ {=}\ =\ < (and symmetrically =< = ={=}\setminus{<}\ =\ {=}).
  • Complement (relative to A×AA\times A) — the pairs not in each relation:

    < = {(a,b):ab} = {(0,0),(1,0),(1,1),(2,0),(2,1),(2,2),(3,0),(3,1),(3,2),(3,3)} (= ),\overline{<}\ =\ \{(a,b) : a \ge b\}\ =\ \{(0,0),(1,0),(1,1),(2,0),(2,1),(2,2),(3,0),(3,1),(3,2),(3,3)\}\ (=\ \ge),

    = = {(a,b):ab} (12 pairs).\overline{=}\ =\ \{(a,b) : a \neq b\}\ (12\ \text{pairs}).

Task 5 — A relation given by a matrix (doubles teams)

Given the set of table-tennis players P={Bob,Sam,Tom,Paul}P = \{\text{Bob}, \text{Sam}, \text{Tom}, \text{Paul}\}, define the relation “to play in the same doubles team” by a matrix, and check its properties.

Solution. A doubles arrangement splits the four players into two teams of two; take Team 1 $= {Bob,SamBob, Sam}andTeam2** and **Team 2 = {Tom,PaulTom, Paul}$ (any pairing works the same way). “Same team” includes each player with themselves, so

R={(Bob,Bob),(Sam,Sam),(Tom,Tom),(Paul,Paul),(Bob,Sam),(Sam,Bob),(Tom,Paul),(Paul,Tom)}.R = \{(\text{Bob},\text{Bob}),(\text{Sam},\text{Sam}),(\text{Tom},\text{Tom}), (\text{Paul},\text{Paul}),(\text{Bob},\text{Sam}),(\text{Sam},\text{Bob}), (\text{Tom},\text{Paul}),(\text{Paul},\text{Tom})\}.

As a Boolean matrix (order Bob, Sam, Tom, Paul):

MRM_R Bob Sam Tom Paul
Bob 1 1 0 0
Sam 1 1 0 0
Tom 0 0 1 1
Paul 0 0 1 1

Properties. Reflexive — the diagonal is all 11 (everyone is on their own team). Symmetric — the matrix equals its transpose (if xx is Sam’s teammate, Sam is xx’s). Not antisymmetric — Bob and Sam are related both ways with BobSam\text{Bob}\neq\text{Sam}. Transitive — the two 2×22\times 2 blocks of $1$s are closed under chaining. Reflexive ++ symmetric ++ transitive means RR is an equivalence relation; its equivalence classes are the two teams ${Bob,SamBob, Sam}and and {Tom,PaulTom, Paul}$ — a partition of PP.

The doubles "same team" relation: two clusters (equivalence classes) with mutual arrows and self-loops

Task 6 — One relation, three representations (divisibility)

Given A={1,2,3,4}A = \{1,2,3,4\} and the relation xRyx\,R\,y meaning “xx divides yy” (xyx \mid y, i.e. yy is a multiple of xx), present RR as (1) ordered pairs, (2) a matrix, and (3) a directed graph, and determine its properties and type.

Solution.

(1) Ordered pairs. Test xyx \mid y for all x,y{1,2,3,4}x,y\in\{1,2,3,4\} (note 11 divides everything, and every number divides itself):

R={(1,1),(1,2),(1,3),(1,4),(2,2),(2,4),(3,3),(4,4)}.R = \{(1,1),(1,2),(1,3),(1,4),(2,2),(2,4),(3,3),(4,4)\}.

(2) Matrix (Mxy=1M_{xy} = 1 iff xyx \mid y):

MRM_R 1 2 3 4
1 1 1 1 1
2 0 1 0 1
3 0 0 1 0
4 0 0 0 1

(3) Directed graph. A self-loop at every node (since xxx \mid x), plus arrows 121\to 2, 131\to 3, 141\to 4 and 242\to 4:

Directed graph of the divisibility relation on {1,2,3,4}: loops on all nodes, with arrows 1→2, 1→3, 1→4 and 2→4

Properties and type. Reflexive — every (x,x)(x,x) is present (xxx \mid x). Not symmetric — (1,2)R(1,2)\in R but (2,1)R(2,1)\notin R (121\mid 2 but 212\nmid 1). Antisymmetric — if xyx\mid y and yxy\mid x for positive integers then x=yx=y, so no two distinct elements are related both ways. Transitive — if xyx\mid y and yzy\mid z then xzx\mid z (e.g. 121\mid 2 and 242\mid 4 give 141\mid 4 ✓). Being reflexive, antisymmetric, and transitive, RR is a partial order — the divisibility order on {1,2,3,4}\{1,2,3,4\}.

Practical/Practical2/3classroom.md · 10.2 KB · updated 2026-07-31 21:57