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})\;?$$