Suppose that we have $$\mathbf{a}_i - \mathbf{a}_j = \mathbf{b} + \mathbf{c},$$ where all variables are of the same dimension (i.e., $n$ dimensional). If we let $g(\mathbf{a}_i-\mathbf{a}_j)$ denote the squared Euclidean distance between $\mathbf{a}_i$ and $\mathbf{a}_j$, then the following is not true $$g(\mathbf{b}+\mathbf{c}) = g(\mathbf{b}) + g(\mathbf{c})\;$$ because $g(\mathbf{b}+\mathbf{c})=(b_1+c_1)^2+...+(b_n+c_n)^2 \ne b_1^2+c_1^2+...+b_n^2+c_n^2=g(\mathbf{b}) + g(\mathbf{c}).$
Is there any distance function $g(\cdot)$ such that $$g(\mathbf{b}+\mathbf{c}) = g(\mathbf{b}) + g(\mathbf{c})\;?$$
If you are considering a normed space $(X,\|\cdot\|)$ and $X$ consists of more than $0$, then $\|x+y\| = \|x\| + \|y\|$ cannot hold for every $x,y$. Take for example $x\neq y$ and $y = -x$, then you get $0 = \|x-x\| = \|x\| + \|x\|$, which implies $\|x\| = 0 \Leftrightarrow x = 0$, which is a contradiction.