I was trying to prove that, for $S$ the power set of $\{1,2,\dots,n\}$, the following function
$$d(X,Y) = |X\setminus Y| + |Y\setminus X|$$
is a distance function. I managed to prove positivity and symmetry easily, but I am stuck in how to prove the triangle inequality $d(X,Z) \leq d(X,Y) + d(Y,Z)$. I have tried to look at particular cases, like $Y \subseteq Z$, but I can't seem to get to a solution.
Any hints would be appreciated.