The closure of a relation $R$ over a set $S$ is denoted $R[S]$ and calculated via $\bigcup_{i\in\mathbb{N}}Y_i$ where $Y_0=S$ and $Y_{n+1}=Y_n\cup R(Y_n)$. ($R(Y_n)$ is the image of $Y_n$ under $R$).
Given that $Q\in A\times A$, I am attempting to find and express a relation $R = \{((x_1, y_1), (x_2, y_2)):x_1,y_1\in A, \ldots \}$. The $"\ldots"$ stand in for where my wits have so far failed me, I am unable to figure it out what to place there.
$R$ is supposed to be as such that when used alongside some (I believe) $S = Q$, in the closure formula presented above, it yields the transitive closure of Q. I believe that in order for this to happen, $R[Q] = Q \circ Q$, $R[Q\circ Q] = Q\circ Q\circ Q$, et cetera.
I have attempted various solutions, them so far failing me, I can recall that I have tried at least:
- $\ldots = x_2,y_2\in A, x_1=x_2$ - This yields far too many elements of $R$, but is seemingly a superset of the desired $R$.
- $\ldots=x_2,y_2\in A, x_1 = x_2, x_1\in(\operatorname{domain} Q), y_2\in(\operatorname{range} Q)$ - This still yields too great an $R$, but is smaller, yet is still seemingly a superset of the desired $R$.
- $\ldots = x_2,y_2 \in A, (x_1,x_2)\in Q$ - This is too restrictive, as $Q\circ Q$ is prone to contain pairs not in $Q$.
And some more I have since forgotten.
Would anyone mind offering me some guidance as how to construct $R$? Many thanks for all help in advance. It is preferably to avoid recursion unless absolutely unavoidable.