Edit: I rephrased the question.
Suppose we have a set $X$ of objects $A,B,C\cdots$, which we wish to compare pairwise. Furthermore we are given a sequence of distinct finite sets $M_n$, $n\ge0$ a set $M := \cup_{i=0}^{\infty}M_i$ and to each object $A \in X$ a map $\phi_A:M \rightarrow \mathbb{N}$. We call the objects $A,B$ equivalent if $\phi_A(x) = \phi_B(x) $ for all $x \in M$. Then I would like to define for each $n\ge0$ a distance on the equivalence classes of objects: $d_n(A,B) := \max_{x \in M_n} | \phi_A(x) - \phi_B(x) |$. The problem with this definition is that if $0=d_n(A,B)$ then $\phi_A(x) = \phi_B(x)$ for all $x \in M_n$ but not necessarily for all $x \in M$, hence $A $ and $B$ might not be equivalent. Is the function defined below a metric on the equivalence classes of objects? $d(A,B) := \sum_{n=0}^{\infty} \frac{1}{2^n}\cdot \frac{d_n(A,B)}{1+d_n(A,B)}$?