This question is related to one I asked here.
I am trying, overall, to show that $|A - \{x\}| =n-1$ using a bijection given that $A$ is a finite set with $|A|\geq 1$. For the case when $n > 1$, suppose that, since $|A|=n$, $\exists$ a bijection $f: A \to \mathbb{N}_{n}$.
With some help, I came up with the mapping $f^{-1}\circ \tau \circ I: \mathbb{N}_{n-1} \to A - \{x\}$.
Here, $I: \mathbb{N}_{n-1} \to \mathbb{N}_{n}$ where for each $j \in \mathbb{N}_{n-1}$, $I(j) = j$. It is not difficult to show that $I$ is injective, but it is not surjective, because $n$ has no preimage.
$\tau: \mathbb{N}_{n} \to \mathbb{N}_{n}$, where $\forall k \in \mathbb{N}_{n}$, $\tau(k) = \begin{cases} n & \text{if} \, k=f(x) \\ f(x) & \text{if} \, k = n \\ k & \text{otherwise} \end{cases}$
$\tau$ is bijective, whether we restrict it to $\mathbb{N}_{n} - \{f(x)\}$ or not.
Now, I need to show that the composition $f^{-1} \circ \tau \circ I$ is a well-defined bijection in order to complete my cardinality proof.
Since $I$, $\tau$, and $f^{-1}$ (since $f$ is, its inverse is) are all injective, their composition is injective.
Showing surjectivity and that the map is well-defined are not so easy for me, however. To show that $f^{-1} \circ \tau \circ I$ is surjective, I know that I need to show that every $y \in A - \{ x \}$ has a preimage in $\mathbb{N}_{n-1}$, but I'm not specifically sure how to do that. Could someone please help me with this part?
Also, to show that it's well-defined, I need to show that two different $i$'s in $\mathbb{N}_{n-1}$ do not map to the same $y \in A - \{ x \}$. Suppose they did. I.e., suppose that $i \neq j$ and $f^{-1}(\tau(I(i))) = f^{-1}(\tau(I(j)))$. Since the map is injective, it seems like this shouldn't work, but I can't use that to help me prove well-definedness, so I could use some help with this part as well.
Thank you.