"In modern first-order logic equality is primitive. We don't define it, we just know that two things are equal if and only if they are the same thing. So two numbers are equal if and only if they are the same number."-Asaf Karagila
This sentence is extracted from the following question How do we define equality in real numbers?.
I'm writing an article that is not strictly pure logic, but i would like to give a definition of equality (in no particular space) , or at least give something more than "these are equal if they are."
Has someone a track to give me ? Maybe a reference or an advice ?
Also, is it possible to give a sense to the sentence "prove that two things are equal" ?
I've read about the Leibniz identity of indiscernibles , but it seems like a consequence of the equality of two objects. why is the latter can not be given as an equivalence ? that seems very interesting
Set theoretically: Equality on a set $I$ is any fixed equivalence relation that we choose and decide to treat as defining equality.
Category theoretically: Equality in the fiber over $I$ of a fibration $E\to B$ is a left adjoint to the re-indexing functor induced by the diagonal $I\to I\times I$ (assuming that $B$ is products), evaluated at the terminal object of the fiber. To see why this makes sense, consider the predicate fibration, where the fiber over a set $I$ is precisely the power set $\mathcal P(I)$. It is then a straightforward verification that the left adjoint to the evident functor $\mathcal P(I\times I)\to \mathcal P (I)$, evaluated at $I$, is the identity relation on $I$.