MATH.1:4.3 - Define composition by concatenation
For paths p:x→y and q:y→z, write p;q for the path obtained by putting the list of q after the list of p. Here the semicolon is read in execution order: first p, then q.
Composition is defined when the full intermediate object agrees. Its source is x and its target is z. If the endpoints disagree, the two paths cannot be joined as given. When the receiver needs to reach a target, examine another permitted path or find a connecting arrow that the rules permit.
Concatenation gives two laws:
id_x;p=p=p;id_yforp:x→y, because an empty list adds no generator.(p;q);r=p;(q;r)for three consecutively composable paths, because both sides contain the same three lists in the same order.
These arguments establish identity and associativity for this construction. They can be reused while the definitions stay unchanged. They leave the order of the generators intact: p;q and q;p can differ or one can be undefined. A structure with objects, arrows and these laws is a category; the path construction gives the free category on the generating graph.