4.1.\textbf{4.1.} \enspace \triangleright Composition is defined for two morphisms. If more than two morphisms are given, e.g.,

▶︎
all
running...

then one can compose them in several ways, for example:

(ih)gf,(i(hg))f,i((hg)f),etc.(ih)gf, \quad (i(hg))f, \quad i((hg)f), \quad \text{etc.}

so that at every step one is only composing two morphisms. Prove that the result of any such nested composition is independent of the placement of the parentheses.
(Hint: Use induction on nn to show that any such choice for fnfn1f1f_nf_{n-1}\cdots f_{1} equals

((((fnfn1)fn2))f1).((\cdots((f_nf_{n-1})f_{n-2})\cdots)f_1).

Carefully working out the case n=5n=5 is helpful.) [§4.1,§II.1.3][\S4.1, \S\textrm{II}.1.3]


4.2.\textbf{4.2.} \enspace \triangleright In Example 3.3 we have seen how to construct a category from a set endowed with a relation, provided this latter is reflexive and transitive. For what types of relations is the corresponding category a groupoid (cf. Example 4.6)? [§4.1][\S 4.1]