Is it $\quad a+b\in\{1, 2, ..., 8\}\quad$ or $\quad (a+b)\in\{1, 2, ..., 8\}$?
And is it $\quad S'=S\cup\{a+b\}\quad$ or $\quad S'=S\cup\{(a+b)\}$?
What is the most correct?
Is it $\quad a+b\in\{1, 2, ..., 8\}\quad$ or $\quad (a+b)\in\{1, 2, ..., 8\}$?
And is it $\quad S'=S\cup\{a+b\}\quad$ or $\quad S'=S\cup\{(a+b)\}$?
What is the most correct?
It is completely fine to write $a+b \in \lbrace 1,\ldots, 8 \rbrace$. Parentheses are (mostly) used when there is a risk of confusion about the order in which to apply the operations. Since $a + (b \in \lbrace 1,\ldots, 8 \rbrace)$ does not have any meaning whatsoever, it is not necessary to use parentheses. In the same vein, $S' = S \cup \lbrace a + b \rbrace$ is completely fine (and preferable).