On a ring $F_p[[X]]$ of formal series with coefficients in the field with $p$ elements we have a metric $$d(\sum\limits_{n=0}^{\infty} a_n X^n,\sum\limits_{n=0}^{\infty} b_n X^n)=p^{-\min\{n|a_n\neq b_n\}}.$$ I have two problems
Problem with showing the triangular inequality. I have only managed to see how it looks like $$ p^{-\min\{n|a_n\neq b_n\}}\leq p^{-\min\{n|a_n\neq c_n\}}+ p^{-\min\{n|c_n\neq b_n\}}.$$ I tried to apply logarithm to both sides, but without effects. Also I do not know any senible inequality with powers.
Problem with showing that open ball in regard to this metric with the centre in $0$ and any positive radius is compact ideal in $F_p[[X]]$. Our ball is in a form ($r>0$) $K_{0,r}=\{\sum\limits_{n=0}^{\infty} a_n X^n:d(\sum\limits_{n=0}^{\infty} a_n X^n,0)\leq r\} =\{\sum\limits_{n=0}^{\infty} a_n X^n:p^{-\min\{n|a_n\neq 0\}}\leq r\} $.
In my opinion we ought to show that
a) $K_{0,r}$ is nonempty and $\alpha - \beta\in K_{0,r} \ \forall_{\alpha,\beta\in K_{0,r}}$,
b) if $\gamma\in F_p[[X]], \ \alpha\in K_{0,r}$ then $\gamma \alpha \in K_{0,r}$,
b) if $\gamma\in F_p[[X]], \ \alpha\in K_{0,r}$ then $ \alpha\gamma \in K_{0,r}$.
Unfortunately I have no idea how to prove that, what is more how to show that this ideal is compact.