yossell said:
Yes, equivalence relations can be defined in set theory.
You are distinguishing between the concept of "identity" and the concept of an equivalence relation. In my OP, I wasn't making such a distinction.
With that vocabulary, I think that we agree that once we have the concept "identity" (specifically for things that are "elements") we can define a concept of equivalence for sets with respect to some set of elements smaller than "all elements". I think we also agree that the concept of "identity" cannot be defined as a set consisting of all pairs ##(x,x)##. Such a definition would have the same logical problems as defining a "universal set" that consists of all elements.
If we have a concept of "identity", it is a technical question whether we need to define a different "=" for sets. You wrote:
There is the suggestion that identity can be defined in set-theoretic terms. As two sets are identical if they have the same members, some suggest using the axiom of extensionality as a set-theoretic definition of identity:
s1 = s2 iff, for every x (x is in s1 iff x is in s2).
and
yossell said:
Any reasonable set-theory will include identity. But one can wonder whether identity should be defined, or is a primitive of the theory.
For my part, I see no problem with leaving it as a primitive -- any more than taking 'for all' as a primitive of the theory. But it is an interesting conceptual question whether, say, extensionality should be treated as a definition of '='. There are interesting questions about whether and how to define identity in general. However, since the axioms of set theory are the same whether this is treated as a definition of identity or as a statement about sets, I can't see the question making any difference to the practice of set-theory.
So, I take it that different experts on set theory can have different opinions on this matter.
As with any primitive logical symbol, there will be rules of logic which tell you how the symbol behaves. In the textbook 'An Introduction to Mathematical Logic', Mendelson takes as axioms the reflexivity of identity, and the substitution principle (if x = y, then, (if P(x) the P(y)). Reflexivity and transitivity follow. Substitutivity also allows us to prove what you want to be proved in the last three lines very quickly.
In the fourth edition, p. 95 there is:
(A6) ## (\forall x) x = x## (reflexivity of equality)
(A7) ## x = y \implies ( \mathscr{B}(x,x) \implies \mathscr{B}(x,y) ) ## (substitutivity of equality)
Is this to be interpreted as metalanguage? For example, does "##\forall x##" refer to all elements of some
set? It's interesting that (A7) doesn't bother to associate quantifiers with the symbols ##x##,##y##, and ##\mathscr{B}##.
As to the concept of "identity", can it be precisely defined in simpler metalanguage?
I don't know whether the study of formal languages is regarded as a proper subfield of Logic. Perhaps those who study formal languages think that the only rigorous way to study Logic is to implement it as a formal language! If I take the view of a formal language, the metalanguage describing it must assume some basic cognitive capabilities on the part of those who read it. For example, they must be able to distingush strings of symbols such as "##x##", "##x + x##", "##x + y##". This involves distinguishing individual symbols, an ordering of the symbols, and which symbols are "the same". The occurrence of two ##x##'s in the string "##x + x##" involves distinguishing two things that are different with respect to their position, but the same with respect to which symbol they are.
However, when I think of the concept of "identity", I think of the concept that two different representations of "the same thing" are, in some contexts, completely interchangeable. This concept of "identity" would add semantics to the cognition of ##x+x## as being two occurrences of the same symbol. It would assume the symbol "represents" something.