Definition. Iteration of endo-relations [00JE]
For R\colon A\mathbin {\nrightarrow } A and n:\mathbb {N}, we define the n-fold iteration of R to be the following endo-relation R^{\circ n}\colon A\mathbin {\nrightarrow } A:
R^{\circ n} = \underbrace {R\circ \cdots \circ R}_{n\text { times}}More precisely, we define R^{\circ n} by recursion on n:
\begin {aligned} R^{\circ 0} &= \mathsf {id}_{A}\\ R^{\circ {\mathopen {}\left (n+1\right )\mathclose {}}} &= R\circ R^{\circ n} \end {aligned}