I've recently been delving into axiomatic set theories for the first time, and I've been troubled by the construction of natural numbers with the Peano axioms under ZFC. What I don't understand is how equality can be closed under the natural numbers, when the natural numbers are just an arbitrary encoding.
In other words, if I take the encoding of natural numbers to be $0=\{\}, 1=\{0\}, 2=\{0,1\}, ...$, then why could I not define some other concepts on ZFC as well, say primary colors as $red=\{\{\},\{\}\}, green=\{\{\},\{\{\}\}\}, blue=\{\{\{\}\},\{\{\}\}\}$ in which case $2=\{\{\},\{\{\}\}\}=green$, but green is not a natural number which seems to violate closure on equality. (i.e. $\forall x,y :(x \in \mathbb{N}) \wedge (x=y) \Rightarrow y \in \mathbb{N}$)
Edit:
Even though the question is answered, some people still seem to be wondering why this issue was troubling to me so I'll eplain for clarity.
In practical use, colors and natural numbers are probably not concepts that would be mixed. However, perhaps a better example would have been $\mathbb N$ and functions $\mathbb N \to \mathbb N$. Now if natural numbers are encoded in the traditional way as listed above and functions encoded in the traditional way, as sets of tuples, then the set {} denotes both the natural number 0 and a function that maps nothing to nothing. Thus any proof using ZFC that used both the notion of natural numbers and functions over natural numbers would violate the peano axioms for natural numbers. Now if you can use a different encoding for either functions or natural numbers that are completely disjoint, then this is not a problem which as @Henning Makholm noted, is always possible. However, without that being always possible any proof under ZFC using both natural numbers and functions would be invalid and since that fact was not obvious to me, I found it troubling.