# Why do we try to encode every mathematical object as a set? [closed]

Probably everyone of us has seen set-theoretic encodings of mathematical objects which we wouldn't naturally consider to be sets. May it be the "definition" of a function from $A$ to $B$ as a relation $f\subseteq A\times B$ with the property $$\text{for every single a\in A one can find exactly one b\in B with (a, b)\in f }$$ or the construction of natural numbers due to von Neumann in which we consider $0$ to be the empty set, $1$ to be the set $\{0\}$, $2$ to be the set $\{0, 1\}$, and so on.

But why do we bother about set-theoretic encodings? When did mathematicians historically felt that we need to code non-set entities as sets? What's the purpose of doing so?

## closed as off-topic by R W, Stefan Kohl, Emil Jeřábek, Ilya Bogdanov, user1688 Sep 18 '16 at 13:53

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "MathOverflow is for mathematicians to ask each other questions about their research. See Math.StackExchange to ask general questions in mathematics." – R W, Stefan Kohl, Ilya Bogdanov, Community
If this question can be reworded to fit the rules in the help center, please edit the question.

• It is the Grand Unified Theory of mathematics. – Goldstern Sep 18 '16 at 11:44
• Nota bene: There are other foundations of mathematics where not everything is a set, notably ETCS, SEAR and HTT. References: ncatlab.org/nlab/show/ETCS + ncatlab.org/nlab/show/SEAR + ncatlab.org/nlab/show/homotopy+type+theory . One might argue that ZFC is a relict from the past, the first serious attempt to axiomatize mathematics. – HeinrichD Sep 18 '16 at 11:50
• @HeinrichD: Just out of curiosity, why do you think that "ZFC is a relict from the past"? Certainly there are foundations other than ZFC, but have they been successfully replacing ZFC (say, in the textbooks and math education)? – Burak Sep 18 '16 at 12:25
• @HeinrichD: ZFC formalizes what set-theorists mean by "set", as Andreas Blass explains here: mathoverflow.net/a/219647/98612. ZFC is the axiomatic system which is most used by set-theorists. That's why a consider your comment "ZFC is a relict from the past" a bit arrogant. Also, see mathoverflow.net/a/7241/98612, where Mike Shulman says: "I view topos-like set theory and ZF-like set theory as exposing two faces of the same subject." – user98612 Sep 18 '16 at 12:41
• I don't really see why this question was closed... anyway here are my two cents: we code objects as sets because it's harmless (once we make the definition we forget about it) and it makes the theory somewhat slicker. If you want, you could work in "ZFC + urelements", where we allow objects other than sets to exist, but typically all this does is complicate set-theoretic arguments (since you have to take urelements into account). There are exceptions, for example in Barwise's "Admissible sets and structures" it's actually more convenient to use urelements, and so he does. – Douglas Ulrich Sep 24 '16 at 18:23