Set-builder notation is a mathematical notation used in set theory, logic, mathematics, and computer science to describe a set by stating the properties that its members must satisfy. Defining sets by properties is also known as set comprehension, set abstraction, or defining a set's intension.
In set-builder notation, a set is typically written in one of the following forms:
Where:
Set-builder notation is heavily used in predicate logic to define sets based on conditions. If the predicate (the condition) is true for a particular element, that element belongs to the set.
If no values satisfy the condition specified in set-builder notation, the set will be the empty set, denoted by \emptyset or \{ \.