Among any $9$ real numbers, two satisfy $0 < \frac{x-y}{1+xy} < \sqrt{2} - 1$

Outline: let the nine real numbers be $r_1,\dots,r_9$. Define $a_1=\arctan r_1, \dots, a_9=\arctan r_9$. Prove that there exist $1\le i<j\le 9$ satisfying $|a_i-a_j| < \frac\pi8$ (hint: pigeonhole principle). Then consider $\tan(a_i-a_j)$.


Hint :

Divide the half-plane formed by first and fourth quadrants into eight regions by drawing lines emanating from origin at equal angles.

Now argue that some two of given nine numbers must lie in same region. From this you can conclude the given inequality.