I know how to formulate the set of all $x$ with minimal distance to $y$ with $d(x,y)$ being the distance function: $\{x \mid \arg\min d(x,y)\}$
But how do I formulate the set of the $n$ closest $x$ to $y$ using $d$?
EDIT: Basically I want a "Highscore" and cut it after the $n$-th entry (to be nit-picky: it's a "Lowscore")
How about this : $$ \{ x : d(x,y) \leq d(u,y) \text{ for all } u \}. $$
EDIT
$$ \{ x_i : d(x_i,y) \leq d(u,y) \text{ for all } u \text{ and } i \le n\}. $$
Could be a bit ropey.