Called with 3 arguments
SetBuilder(f(x), x, P(x)), rendered as
{f(x):P(x)}, represents the set of values
f(x)
for all
x
satisfying the predicate
P(x).
The argument
x to this operator defines a locally bound variable. The corresponding predicate
P(x)
must define the domain of
x
unambiguously; that is, it must include a statement such as
x∈S
where
S
is a known set. More generally,
x can be a collection of variables
(x,y,…)
all of which become locally bound, with a corresponding predicate
P(x,y,…).
Definitions:
Fungrim symbol | Notation | Short description |
---|
SetBuilder | {f(x):P(x)}
| Set comprehension |
Source code for this entry:
Entry(ID("66ca58"),
SymbolDefinition(SetBuilder, SetBuilder(f(x), x, P(x)), "Set comprehension"),
Description("Called with 3 arguments", SourceForm(SetBuilder(f(x), x, P(x))), ", rendered as", SetBuilder(f(x), x, P(x)), ", represents the set of values", f(x), "for all", x, "satisfying the predicate", P(x), "."),
Description("The argument", SourceForm(x), "to this operator defines a locally bound variable.", "The corresponding predicate", P(x), "must define the domain of", x, "unambiguously; that is, it must include a statement such as", Element(x, S), "where", S, "is a known set.", "More generally,", SourceForm(x), "can be a collection of variables", Tuple(x, y, Ellipsis), "all of which become locally bound, with a corresponding predicate", P(x, y, Ellipsis), "."))