given the function
$d:\{0,1\}^\Bbb N \times \{0,1\}^\Bbb N \rightarrow \Bbb R_0^+ $
$d(a,b):= \begin{Bmatrix} 0 &if&a=b\\\frac{1}{min\{k\in\Bbb N|a_k\neq b_k\}} & if & a\ne b \end{Bmatrix}$
Now we are given in the definition of d that d(a,b)=0 iff a=b and we also know that $\frac{1}{min\{k \in \Bbb N |a_k \neq b_k\}} >0$. So condition one is satisfied.
next if a=b then d(a,b)=0=d(b,a)
and if $a\neq b$ then $d(a,b)=\frac{1}{min\{k\in \Bbb N | a_k \neq b_k\}}=\frac{1}{min\{k \in \Bbb N | b_k \neq a_k\}}=d(b,a)$
But finally I don't think it satisfies the triangle inequality, because
$d(a,c)\leq d(a,b)+d(b,c)$ implies that $\frac{1}{min\{k\in \Bbb N | a_k \neq c_k\}}\leq\frac{1}{min\{q\in \Bbb N | a_q \neq b_q\}} + \frac{1}{min\{p\in \Bbb N | b_p \neq c_p\}} $
but if the minimum k was 1 , and the minimum p and q were say 4 then we would have $1 \leq 0.5$ which is not true ....is this correct ?