\mid - creates the spacing perfect for use in set-builder notation.
{ \mid}
\mid command creates the spacing perfect for use in set-builder notation.
\{x | x\gt 1\}
\{x \mid x\gt 1\}