Let $K$ be a complete valued division ring and $S$ be a compact subset of $D$. It is easy to see that if $K$ is commuative, the $K$-algebra $\mathscr C(S,K)$ of continuous functions on $S$ in $K$ is $K[x]$ if and only if $S$ is finite. Does one have such a characterization on $S$ when $K$ is not commutative?
Thanks in advance.