Is the inclusion function $ i_{AB}:A \to B$ the same function as the composition of the two identity functions $id_A:A \to A$ and $id_B:B \to B$ ? In other words, is the following equation true?
$$ i_{AB}=id_B \circ id_A $$
The answer seems to depend on the rules for composing functions. If, when composing $g \circ f$, the codomain of $f$ is allowed to be a subset of the domain of $g$, then the answer is yes. But if the codomain of $f$ is required to equal the domain of $g$, then the answer is no. So, which is it?
This particular "rule of function composition" has been discussed before. There was no consensus and it seemed inconsequential.
Composition of functions in Munkres' Topology
domain of composite function (is there a set rule)
But this is a case where it actually matters. If the answer to my question is yes, then it gives me a neat way of proving something is an inclusion function.
If the answer is no, then $id_B \circ id_A$ would be an illegal composition. In order to compose $id_A$ and $id_B$, you'd need to stick $i_{AB}$ in between them.
$$id_B \circ i_{AB} \circ id_A$$