Let $\phi$ be some function between two cyclic groups of order 4,3 $C_4 =\langle x\rangle $, $C_3 = \langle y\rangle $; $\phi:C_4 \to C_3$, with $\phi(x^i) = y^i$.
Clearly, $x^4 = x^0$, so $\phi(x^4) = y^0 = e$ but by the definition of the function, $\phi(x^4) = y^4 = y$.
My interpretation of the two ways to read $\phi(x^4)$ is clearly leading to a contradiction, and I know the proper reading is $\phi(x^4) = e$, but why isn't $\phi(x^4) = y^4 = y$ implied by the definition? Is it simply a mathematical convention to substitute the input of $\phi$, i.e., $\phi(x^4)$ to $\phi(x^0)$ before evaluating $\phi$?
This shows that $\phi$ cannot be a function. Indeed
$$\begin{align} \phi(x^4)&=y^4\\ &=y \end{align}$$
while
$$\begin{align} \phi(x^4)&=\phi(e)\\ &=\phi(x^0)\\ &=y^0\\ &=e. \end{align}$$
These are two distinct values of $\phi(x^4)$.