Suppose $\Gamma\_1(V\_1, E\_1)$ and $\Gamma\_2(V\_2, E\_2)$ are simple graphs with countably many vertices. And suppose $A\_1$ and $A\_2$ are initially empty sets. Suppose two players play the following game: each turn, the first player choses either to add a vertex from $V\_1$ to $A\_1$ or a vertex from $V\_2$ to $A\_2$. Then the second player also choses either to add a vertex from $V\_1$ to $A\_1$ or a vertex from $V\_2$ to $A\_2$. After it, if the subgraphs induced by $A\_1$ and $A\_2$ are not isomorphic, the game terminates. Otherwise, it continue and the next turn begins. If the game has terminated on the $n$-th turn, then the revenue of the first player is $\frac{1}{n}$ and the revenue of the second player is $n$. If the game lasts indefinitely, then the revenue of the first player is $0$ and the revenue of the second player is infinite.


Let’s define $d(\Gamma\_1, \Gamma\_2)$ as the revenue of the first player, provided that both players use best strategies possible. Is it true, that $d$ is a metric on the set of all isomorphism classes of graphs with countable number of vertices?


The proof that $d(\Gamma\_1, \Gamma\_2) = 0$ iff $\Gamma\_1 \cong \Gamma\_2$ can be found [here](https://math.stackexchange.com/q/3440938/407165).


However, I do not know, whether the triangle inequality $d(\Gamma\_1, \Gamma\_3) \leq d(\Gamma\_1, \Gamma\_2) + d(\Gamma\_1, \Gamma\_3)$ holds here.


I have already asked this question a while ago [here](https://math.stackexchange.com/q/3441317/407165), but it remained unnoticed.



Is following function a metric on the set of isomorphism classes of graphs with countably many vertices?
To prove that this is a metric, consider the following theorem.


**Theorem.** If the second player can survive for $n$ steps in the $(\Gamma\_1,\Gamma\_2)$ game, and for $m$ steps in the $(\Gamma\_2,\Gamma\_3)$ game, then he can survive for $\min(n,m)$ steps in the $(\Gamma\_1,\Gamma\_3)$ game. 


**Proof.** The idea is simply to combine the strategies for the two games. Fix strategies for the second player in the $(\Gamma\_1,\Gamma\_2)$ and $(\Gamma\_2,\Gamma\_3)$ games. In the main $(\Gamma\_1,\Gamma\_3)$ game, now, let the second player answer any move of the opponent on either side by first copying the move into $\Gamma\_2$, and then copying the response of that move into $\Gamma\_1$ or $\Gamma\_3$, accordingly. In this way, every play of the $(\Gamma\_1,\Gamma\_3)$ game can be seen as the composition of the strategies for $(\Gamma\_1,\Gamma\_2)$ and $(\Gamma\_2,\Gamma\_3)$ games. Since the resulting finite subgraphs $A\_1$ and $A\_2$ will be isomorphic for $n$ steps and $A\_2$,$A\_3$ isomorphic for $m$ steps, we will thereby maintain $A\_1$ isomorphic to $A\_3$ for $\min(n,m)$ steps, as desired. $\Box$


It now follows that the distance from $\Gamma\_1$ to $\Gamma\_3$ is no larger than the larger of the distances from $\Gamma\_1$ to $\Gamma\_2$ or from $\Gamma\_2$ to $\Gamma\_3$, respectively and so we will obey the triangle inequality. 


Your games are closely related to [Ehrenfeucht–Fraïssé games](https://en.wikipedia.org/wiki/Ehrenfeucht%E2%80%93Fra%C3%AFss%C3%A9_game), but not exactly the same, since in the Ehrenfeucht–Fraïssé games, one keeps track of the moves, and these must be the isomorphism, but the way you described the game, it seems that you allow one to change the isomorphism as play proceeds. 


But actually, I think you should probably use the Ehrenfeucht–Fraïssé style games, where the isomorphism must be that arising from the play, instead of what you wrote. For example, your claim that $D(\Gamma\_1,\Gamma\_2)=0$ if and only if $\Gamma\_1\cong\Gamma\_2$ is not correct in general, unless you use the Ehrenfeucht–Fraïssé style winning conditions. To see this, observe that any two infinite linear orders (coded as graphs) will have distance 0 according to your rules, since any two linear orders of length $n$ are isomorphic, but they need not be Ehrenfeucht–Fraïssé equivalent.


The argument I gave above is the analogue of Lemma 3.2.1(c) in Hodges Model Theory. He shows that Ehrenfeucht–Fraïssé games determine an equivalence relation for length-$\gamma$ play, and this is obtained precisely by copying moves into a supplemental game as I described. 


