Let $U$ be the universe and $E\subsetneq U$ and $$S=\{x\in E \mid \exists V{\subseteq} E\;\; V{\in} \mathscr N(x)\}. \tag1$$
So, the complement of $S$ must contain elements outside $E,$ so I know that this negation isn't correct: $$S^\complement =\{x\in E \mid \forall V, V\cap E^c \neq \emptyset, V{\in} \mathscr N(x)\} .$$
I think that the correct negation is
$$S^\complement= \{x\in U \mid \forall V, V\cap E^c \neq \emptyset, V{\in} \mathscr N(x)\},$$ but what are the coherent and systematic rules to apply to get here from $(1)$ ? I know that ∃ becomes ∀, etc, but what about the domain specification x ∈ E?