I am learning set theory through Charles C.Pinter's textbook. In the book, there are no nice explanation for definition or properties of 'such that'. This is my problem. I tried to solve the problem:
If G, H and J are graphs, $$(H \cup J) \circ G = (H \circ G) \cup (J \circ G)$$
And this is what I tried based on the definition of the book $$\begin{align}&(x,y) \in (H \cup J) \circ G \\ &\Leftrightarrow \exists z \text{ such that } (x,z) \in G \wedge (z,y) \in H \cup J \\ &\Leftrightarrow \exists z \text{ such that } (x,z) \in G \wedge ((z,y) \in H \vee (z,y) \in J) \\ &\Leftrightarrow \exists z \text{ such that }[((x,z) \in G \wedge (z,y) \in H) \vee ((x,z) \in G \wedge (z,y) \in J)] \\ &\Leftrightarrow (??) [\exists z \text{ such that }((x,z) \in G \wedge (z,y) \in H)] \vee [\exists z \text{ such that} ((x,z) \in G \wedge (z,y) \in J)] \\ &\Leftrightarrow (x,y) \in H \circ G \vee (x,y) \in J \circ G \\ &\Leftrightarrow (x,y) \in (H \circ G) \cup (J \circ G) \end{align}$$
However, I think the (??) part is not logically proven. If the statement was made of $\wedge$ instead of $\vee$, then intuitively such that is not distributive! $$(\exists z \text{ such that }[((x,z) \in G \wedge (z,y) \in H) \vee ((x,z) \in G \wedge (z,y) \in J)]$$ this is not distributive for 'such that', intuitively) How should I solve this problem and interpret the answer?