Definition. Relational composite [00IN]

Given relations R\colon A\mathbin {\nrightarrow } B and S\colon B\mathbin {\nrightarrow } C, we can define the relational composite S\circ R\colon A\mathbin {\nrightarrow } C in a way that generalises composition of functions. In particular, we define S\circ R to be the following subset of A\times C:

\begin {aligned} S\circ R &\colon A\mathbin {\nrightarrow } C\\ S\circ R &= {\mathopen {}\left \{ {\mathopen {}\left (a,c\right )\mathclose {}}: A\times C \,\middle \vert \, \exists b: B\mathpunct {.} a\mathrel {R}b \land b\mathrel {S} c \right \}\mathclose {}} \end {aligned}