In reference to this question, I tried to prove that $\bar{z}$ cannot be uniformly approximated by complex polynomials in $z$ on the closed unit disc $D$. I came up with a proof, but I'm not entirely sure whether it's correct.
Here's how the proof goes: Assume it can be done. Pick an $\varepsilon < 0.1$ and then you'll have a polynomial $p$ such that $|p(z) - \bar{z}| < \varepsilon$ for all $z \in D$. Multiply both sides by $z$ to get: $$|zp(z) - z\bar{z}| < |z|\varepsilon$$ Now if we just look at the points where $|z| = 1$, the inequation becomes: $$|zp(z) - 1| < \varepsilon$$
Now I'll show on some point on the unit circle $C$, $zp(z)$ has a non-positive real part, which will lead to a contradiction because then $|zp(z) - 1| > 1 > \varepsilon$. Notice that $zp(z)$ is of the form: $$zp(z) = a_nz^n + \cdots + a_1z$$ Pick $2(n!)$ points on the circle such that the angle between two adjacent points is $\frac{\pi}{n!}$. The sum of $zp(z)$ over these points will be $0$. Here's why: For each point, there exists a point $\pi$ radians away, so the $z$ term in $zp(z)$ goes to $0$. Similarly, the $z^2$, $z^3$ and so on terms also add up to $0$ hence the polynomial adds up to $0$. Which means at one of those points, the real part of $zp(z) \leq 0$. This leads to the contradiction mentioned above and completes the proof.
Is this proof correct? And if it is correct, this only works for sets containing a neighbourhood of $0$. But you'd expect a proof a global property (i.e. uniform approximation) to not depend on any local properties (i.e. a neighbourhood of $0$). It'd be nice if someone could explain how to extend this proof to any compact set in $\mathbb{C}$.