Suppose that the function $x^x = z, z \in \mathbb{Z^+ - \{4\}}$ has rational solutions. Then $x^x = (\frac{a}{b})^{{\frac{a}{b}}}$ where $a$ and $b$ are coprimes. Now let's look at the equation $(\frac{a}{b})^{{\frac{a}{b}}} = z$, clearly $(\frac{a}{b})^a = z^b$, so $\sqrt[a]{\frac{a^a}{b^a}} = \sqrt[a]{z^b}$. We conclude that $\frac{a}{b} = \sqrt[a]{z^b}$, this imples that both sides are rational, but the right side can only be rational if $z^{\frac{b}{a}}$ is rational, since $b$ and $a$ are coprimes, this cannot be true, so the assumption that the solutions are rational must be false.
This is my attempt to prove, it's clearly missing something. Does exist a more "technical" proof of the statement that every solution for this equation is irrational whenever $z$ is different of $4$?