Set builder notation [0069]

We can also use set builder (or set comprehension) notation, whose basic form is \{ \text {expression} \mid \text {variable definition}, \text {conditions} \}

This means that for each value of the variable(s) defined on the right side of the vertical bar which satisfy all the conditions, the set will contain the value of the expression on the left side of the vertical bar.

Note that the expression on the left of the \mid must evaluate to the value of the set; the conditions on the right of the \mid must be propositions.