The set of $n\times n$ real matrices may be notated $\mathbb{R}^{n\times n}$, and the set of square matrices whose entries are binary may be notated $\{0, 1\}^{n\times n}$.
Suppose I have decided that $U^n$ denotes the set of $n\times n$ upper triangular matrices. (Other options appear here.) Is there an elegant way to notate the set of $n\times n$ upper triangular matrices whose entries are binary?
$U^n \cap \{0, 1\}^{n\times n}$ is correct, but inelegant.
$\{0, 1\}^{n(n+1)/2}$ gets the "dimension" right, but not the "dimensions."
I don't think that either $\{0, 1\}^{U^n}$ or $\{0, 1\} \times {U^n}$ are correct. If the former is correct, then by analogy we should have $\{0, 1\}^{n\times n} = \{0, 1\}^{\mathbb{R}^{n\times n}}$. If the latter is correct, then in the $1\times 1$ case we have $U^1 = \mathbb{R}$, and then our set is $\{0, 1\} \times \mathbb{R}$ which is again different.