I got 0 points for the proof I gave, and I would like to know the mistakes I made. Thank you.
Want to show: $$\frac{|x-y|}{1+|x-y|} \le \frac{|x-z|}{1+|x-z|} + \frac{|z-y|}{1+|z-y|}$$ $$\frac{|x-y|}{1+|x-y|} \le \frac{|x-z|+2|x-z||z-y|+|z-y|}{(1+|x-z|)(1+|z-y|)}$$ Let $a = |x-y|, b = |x-z|, c = |z-y|$. We have already shown that $|x-y| \le |x-z|+|z-y|$ (i.e. $a \le b + c$). $$\frac{a}{1+a} \le \frac{b+2bc+c}{(1+b)(1+c)}$$ $$a (1+b+c+bc) \le (b+2bc+c)(1+a)$$ $$a+ab+ac+abc \le b+2bc+c+ab+2abc+ac$$ $$a \le b+c+2bc+abc$$, which we know is true, $\because a \le b + c$. So $d(x,y)$ satisfies the triangle inequality.
My grader wrote that if $a=1; b=c=0$ then the inequality does not hold. But if $b=c$, then $x=z=y$, and therefore $a = 0$ too.
The following is OP's proof plus my annotations (in red), which would make it rigorous IMHO.
As a side comment,
my grader wrote that if a=1, b=c=0 then the inequality does not holdtheir choice of values is inconsistent with $\,(4)\,$ so it cannot be used as a counterexample to dispute or invalidate the proof.As for
I would very much like to know how I can improveone way would be to write your own version of the above (note: do not copy/paste, make it your own proof), and ask the grader what they think about it. That should give you a better sense of what the requirements/expectations are.