Here's what happens: most mathematicians study the basic foundations of set theory and boolean logic in one course, and then never ever think about those foundations ever again... that is, until something goes wrong in mathematics such as needing to define the set of equivalence classes as the elements of an $L_p$ space rather than functions themselves, or perhaps for instance the controversy over Riemann-zeta regularization only yielding logically consistent results when the axiomatic definitions of convergence are changed to something other than their conventionally accepted definitions.
I don't want to make that mistake, so I want to be more sure of my statements in a mathematical setting by knowing they are logically consistent starting with something elementary.
Let's say $X$ and $Y$ are two metric spaces as defined here https://en.wikipedia.org/wiki/Metric_space .
Now, consider two elements of the metric space $X$ denoted $a$ and $b$, $a,b \in X$.
Then, consider a function from the set $X$ to the set $Y$ denoted $f,$ where $f(x)$ denotes the action of $f$ on some element $x \in X.$
Then, how can I use set theory and the definition of an equivalence relation as well as boolean logic prove in a logical way that
$a = b$ implies $f(a) = f(b)$?