$A, B, C$ are sets. I want to show $|A|\leq|B| \ \text{and} \ |B|\leq|C| \Longrightarrow |A|\leq|C|$.
I am confused as to how I would approach this, because the sets in this problem can be either finite or infinite.
Does anyone have a good way of approaching this problem? It seems like it isn't hard but I feel like I am overcomplicating it.
Hint: If $|A| \leq |B|$ there is an injection $f: A \to B$. If $|B| \leq |C|$ there is another injection $g: B \to C$. Now look at $g\circ f: A \to C$.