To show that ( R \circ (S \circ T) = (R \circ S) \circ T ) for the given relations, we'll proceed by carefully unpacking the definitions of relational composition and demonstrating their equivalence.
Definitions
Let's recall the definitions of relational composition:
-
Relation Composition (( R \circ S )):
- If ( R \subseteq A \times B ) and ( S \subseteq B \times C ), then ( R \circ S \subseteq A \times C ) is defined by:
[
a , (R \circ S) , c \quad \text{iff} \quad \exists b \in B \text{ such that } (a, b) \in R \text{ and } (b, c) \in S.
]
-
Applying Composition to Three Relations:
- Given ( R \subseteq A \times B ), ( S \subseteq B \times C ), and ( T \subseteq C \times D ):
- ( S \circ T \subseteq B \times D )
- ( R \circ (S \circ T) \subseteq A \times D )
- ( R \circ S \subseteq A \times C )
- ( (R \circ S) \circ T \subseteq A \times D )
Proof of ( R \circ (S \circ T) = (R \circ S) \circ T )
We'll prove that both compositions yield the same relation between ( A ) and ( D ).
-
Show ( R \circ (S \circ T) \subseteq (R \circ S) \circ T ):
- Take any ( (a, d) \in R \circ (S \circ T) ).
- By definition:
[
\exists b \in B \text{ such that } (a, b) \in R \text{ and } (b, d) \in (S \circ T).
]
- Since ( (b, d) \in S \circ T ), there exists ( c \in C ) such that ( (b, c) \in S ) and ( (c, d) \in T ).
- Therefore, ( (a, c) \in R \circ S ) because:
[
\exists b \in B \text{ with } (a, b) \in R \text{ and } (b, c) \in S.
]
- And since ( (c, d) \in T ), we have ( (a, d) \in (R \circ S) \circ T ).
- Thus, ( R \circ (S \circ T) \subseteq (R \circ S) \circ T ).
-
Show ( (R \circ S) \circ T \subseteq R \circ (S \circ T) ):
- Take any ( (a, d) \in (R \circ S) \circ T ).
- By definition:
[
\exists c \in C \text{ such that } (a, c) \in R \circ S \text{ and } (c, d) \in T.
]
- Since ( (a, c) \in R \circ S ), there exists ( b \in B ) such that ( (a, b) \in R ) and ( (b, c) \in S ).
- Therefore, ( (b, d) \in S \circ T ) because:
[
\exists c \in C \text{ with } (b, c) \in S \text{ and } (c, d) \in T.
]
- And since ( (a, b) \in R ) and ( (b, d) \in S \circ T ), we have ( (a, d) \in R \circ (S \circ T) ).
- Thus, ( (R \circ S) \circ T \subseteq R \circ (S \circ T) ).
Conclusion
Since we've shown both ( R \circ (S \circ T) \subseteq (R \circ S) \circ T ) and ( (R \circ S) \circ T \subseteq R \circ (S \circ T) ), it follows that:
[
R \circ (S \circ T) = (R \circ S) \circ T
]
This establishes the associativity of relational composition for the given relations ( R ), ( S ), and ( T ).