Hi I am trying to prove that the set of binary strings is a metric space. I define $S$ as the binary string (0/1). For two different strings I look at the metric space for the number of entries in which the two strings differ.
So $x=10000$ and $y=11000$ would be $1$ clearly. I am trying to prove the triangle inequality for a metric space on this but I am having trouble doing it vigorously enough. I want to show:
$$d(a,b)\le d(a,c)+d(b,c)$$
I said that $A,C$ differ by $K$ entries and $B,C$ differ by $J$ entries. I think that $A,B$ cannot differ by more than $K+J$ but I can't prove it can someone help me out?