Let $m , n\in \mathbb{Z_+}$. Let $X \neq \emptyset$ If $m \leq n$ find an injective map, $f: X^m \to X^n$.
My Attempted Solution
If I define $f : X^m\to X^n$ such that $f(x_1 , ..x_m) = (x_1, ...x_m, \underbrace{a, ... ,a}_\text{$m-n$ times})$ where $a \in X$, then we can easily see that $f$ is injective.
But I feel that my proposed solution to this problem is somewhat handwavy and non-rigorous. Is there a more rigorous way to define what I stated above, or is there a different cleaner way to construct an injective map given these conditions?
The idea is fine, and the only improvement in the presentation that I would suggest is to rearrange the proof to pick $a$ first: logically, you need $a$ before you can define $f$.
An alternative that avoids the underbrace: