Basically, I'm trying to get my set definition to look exactly like the image.
But when I do \Set{w \in { 0,1 } \mid (long definition) }, the text just goes off the right edge of the page and neither the brackets nor the | adjust to fit the long contents.

\parbox{width}{text}– daleif Oct 06 '16 at 10:03