I was reading a theorem from "Beals -- Analysis an Introduction", about how given two metric spaces $(X,d)$ and $(Y,p)$. A function $f: X \to Y$ is continuous on $X$ if and only if for all open sets $O$ in $Y$, the pre-images $f^{-1}(O)$ are open in X.
This theorem is taken as an axiom in more axiomatic approaches to Topology. I have heard that this approach is a common theme in Maths. Why is that? I realize it saves time by not having to re-invent the wheel, and hides the clutter behind the curtains. But I have been thinking a lot about how a Logician would reduce statements in Higher Maths to first-principles so perhaps this is an admission that this example is not the best to pose this question (as this proof is of the type "the next step is always what is the only thing you can do" scenario)
But I really want to ask anyone who is reading how can one be sure that subtle conditions that are required in the proof of a statement in the "niche context" be exactly matched in the later works if this Theorem is adopted as an Axiom? Do Logicians have to worry about this? Like if the Law of Excluded Middle is not applicable to the Theorem we are now adopting as an Axiom, then we have to discard proof by contradiction from our Mathematical toolkit.
Other rough thoughts:
Open sets forms the basis of Topology. And as some sets can be both open and closed and some can be neither open nor closed. Does it also mean that L.E.M is not applicable anywhere in Topology and hence proof by contradiction a banned toolkit?
P.S sorry to anyone who saw this before it was meant to be posted. The question was only half written and didn't make any sense. I am new to this website.