Let
- $A⊆X×Y$
- $A$ be a multi-set over $X×Y$
- $A∈⋃_{n∈ℕ}(X×Y)^n$
Anyway, $A$ is a collection of tuples $(x, y)$, potentially with duplicates in cases (2) and (3). Given $F⊆X$, I am looking for an elegant notation for
- The set $B≔\{x∈F∣∃y∈Y:(x, y)∈A\}$, i.e. the intersection on the $x$-component.
- The multiset $B$ over $X$ obtained by selecting the $x$-component from all items in $A$ whose $x$-component is in $F$.
- The element $B∈⋃_{n∈ℕ}X^n$ obtained by selecting the $x$-component from all rows of $A$ whose $x$-component is in $F$.
In all 3 cases, given a function $f:X→Y$, I want to express the set/multiset/array obtained by broadcasting $f$ over $B$.
This seems a lot like you may wanna use relational algebra as your "natural language" to describe your sets:
For cases (1) and (2) your broadcasting should just be the image of the function so $f(B)$; for (3) it's a bit tricky and requires some more thinking: for broadcasting of $f$ to a function $X^n \to Y$ I'd maybe use something like $f^{\times n}$ (mirroring the tensor power notation) but since your domain is quite "ugly" this doesn't translate all that well. I'd maybe use notation referring to the categorical coproduct here (without knowing any category theory so please correct me if this absolutely butchers the concept) and use $\coprod_{n \in \mathbb{N}} f^{\times n}$ for your broadcasted function. This also emphasized that the union of your $(X \times Y)^n$ is really a disjoint union.
All that said: you might also be better off by either