Based on common conventions for set builder notation, I believe the "for all" or "any" is implied.
For example, to refer to the set $A$ of all real numbers from 0 to 5, it is common to write something like:
$$
A = \{ x : x \in \mathbb{R} \text{ and } 0 \leq x \leq 5 \},
$$
where it's clear that the set is meant to refer to the entire collection of number $[0,5]$, and not just one.
Personally, if I felt there was some risk of misunderstanding, due to context (e.g. conflating the image of a single element Vs. image of a set), I would include a "for all" or "any"; however, it is usually clear from context.
[edit]
I got curious enough to check Wikipedia, according to their definition, the notation always implies inclusion of all elements that meet the criteria (emphasis added):
Set-builder notation can be used to describe sets that are defined by a predicate, rather than explicitly enumerated. In this form, set-builder notation has three parts: a variable, a colon or vertical bar separator, and a logical predicate. Thus there is a variable on the left of the separator, and a rule on the right of it. These three parts are contained in curly brackets:
$$\{\ x \, | \, \Phi(x) \ \} \quad \text{ or }\quad
\{ \ x : \Phi(x) \ \}$$
The vertical bar (or colon) is a separator that can be read as "such that", "for which", or "with the property that". The formula $\Phi(x)$ is said to be the rule or the predicate. All values of $x$ for which the predicate holds (is true) belong to the set being defined.
Of course, this is a convention, so it may vary from one source to another. FWIW I believe this is the only convention I've encountered.
Edit 2: to clarify that the convention holds on both sides of the statement.
In the comments, you basically asked if the "for all" applies to both the variable and the logical predicate statement, and I would say yes.
Again, pointing to Wikipedia's entry regarding more complex expressions, an expression such as:
$\{ 2n \mid n \in \mathbb{N} \}$ where $\mathbb{N}$ is the set of all natural numbers, is the set of all even natural numbers.
Clearly here the assumption is that the set is the collection of all 2n
.
While I completely empathize with your confusion, (mathematical notation can feel very unintuitive when first encountered) I think if you stake a step back, you'll see that this is the obvious convention to adopt: if there is only one element in the set, there's no need for all this elaborate notation. The whole point of set builder notation is to efficiently and unambiguously refer to the members of a set that would be impractical (or impossible) to list, explicitly. If there were only one member, it would be much simpler (& unambiguous) to refer to that single member.
One of my best math teachers once told me that mathematical notation is founded on two principles:
- mathematicians are pedantic (i.e. they want to be precise and unambiguous), and - the element that makes it tricky for new-comers -
- they are lazy (i.e. they want to write the absolute minimum necessary).
This is a caricaturization, no doubt, but it can be very helpful, in situations like this :)