Hello I am self teaching foundational math, I am thinking about union of a set. It definition assumes the set to have only elements that are also sets, else it would break. But I started thinking is the empty set infact an element of any mathematical object, like say the integer n? In that case taking the union of the set U {1,{2,3}} would yeild {2,3} Do I understand this correctly? Also since the integers can be constructed as sets of empty sets etc, the empty set would be an element of any integer. But does this extend to any mathematical object?
My question boils down to do union of a set imply that the set is composed of sets, or do we allow the empty set to be the result when asking for the element if any mathematical object that is not an explicit set.
In modern treatments of set theory, for the most part everything is a set.
Naive set theory is—well—naive. Since it is not axiomatized or formalized in full, this question is a bit awkward to answer. But the general wisdom is that if you write $x\in y$, then $y$ is a set. Namely, only sets can have elements. This is also the case in set theories with urelements, or atoms, or objects which are not sets.
In particular, this means that if we define $\bigcup\cal A$ to be $\{a\mid\exists A\in\mathcal A:a\in A\}$, then all the non-sets objects which might exist in $\cal A$ sort of disappear. In other words, if $\bf Set$ is the collection of all sets, then $\bigcup\mathcal A=\bigcup(\mathcal A\cap\mathbf{Set})$.
The point here is that mathematics is written by humans and for humans. It is us who decide what to do with the end cases, or whether we ignore the exceptions or type errors, or however else we handle them. This is why mathematical texts have definitions. To formalize this sort of thing. And once you start formalizing naive set theory... you end up with a more modern treatment of it.