It depends if we are speaking in the instantaneous abstract present, or whether they have external, ongoing, or variable contextual meaning.
Generally, if A is the set [1, 2, 3], then that's it and it never changes, so we can take its instantaneous value, compare it to the instantaneous value of B, and say "they are the same thing" or not.
But if we might add or remove values to a set at some point, then this is not true.
For example, given:
- set X
- set A = [all positive members of X]
- set B = [all even members of X],
... then we can obviously make assumptions about A that we can't make about B (it will not contain -2), and about B that we can't make about A (it will not contain 3). The values A and B have contextual meaning.
Let's now say we consider that setup over a variety of values of X.
If one of the values of X that we try is [-3, -1, 2, 4, 6] then A and B will both be [2, 4, 6]. In that case, we can say A = B, and all assumptions we can make about one, can be made of the other... but only for that value of X.
So A and B are instantaneously equivalent to the set [2, 4, 6], and from a programming PoV we could for that instant consider them "references" to the same set, but if you were programming using objects, it'd be messy pain in the ass to write X.setValue().
But, frame challenge. I think your question is not about any of that. Or indeed about sets. It's about when things should be considered identical.
If there are truly two separate boxes, does that imply there can be identical elements across all levels of analysis, yet remain distinct and independent? For example, shouldn't any object only be identical to itself? If two things are identical, shouldn't they point to the same thing, not separate identical things?
So what does "identical" mean, here?
Other answerers have pointed out that there are many terms for this, used with varying levels of specificity, and often in very woolly ways: equality (being the same in some nebulous way), identicality (sharing the same identity), indiscernability (could share the same identity), equivalence (having the same values), similar (being samey-enough), morphic/homeomorphic/homomorphic/diffeomorphic/isomorphic (types of similarities between maps), homology (same holes), homotopy (same boundaries), etc.
The various names generally translate to "same X" where they're saying what is the same.
Even in computers, the behavior of "Object A.equals(B)" is something that you can override, because it really depends. Are two string variables "equal" if they are stored in the same memory position? Separate positions, but contain the same characters? The same characters, but in different encodings? Are the strings "Null" and "false" equal? Are... you get the idea. It's squishy. Context dependent.
So whether you can consider a grouping of things to have the same identity as another grouping of things is context dependent, too.
I suspect that in philosophy, more than in abstract math, the answer will often be "not identical", since the context matters, even if the items in the groups happen to be the same.
What it means for two things to share an identity is a whole philosophical topic in itself. "Ceci nes pas un pipe", "map/territory", etc. A and B are representations of collections. Are they representations of the same collection? That depends not just what the collection contains, but also on what the collection is a representation of.
If A = [2,4,6] as miles to the nearest towns, and B=[2,4,6] as minutes to cook an egg to soft, medium, and hard, then these aren't representations of the same thing: the sets do not share an identity. They have different units.
But can "[2,4,6]" in itself be considered an indivisible thing with an identity, like "2", or like the concept of "Wednesday"? "Ash Wednesday, March 2nd" and "A couple of Hump Days ago" are not identical sentences, but they both refer to the concept of "2" and to the concept of "Wednesday".
Sure it can. I suspect this is true of all concepts. But again, context matters. Is it useful to consider it a single thing? Does it gain you any additional knowledge about A or B? In the case where A is positive, and B is even, then treating them as equivalent lets you apply both properties to both variables; but treating them as identical adds nothing to that over equivalence.
One of the things that makes identicality important is if you modify one, and the other should change too. If you change A to be "all positive numbers, plus -3", does B also change to be "all even nubers, plus -3"? If so then they are identical, or at least linked in some way to maintain equivalence, making them indistinguishable.
Another is counting. Do they contain countable things? If so, and you have both A and B, do you have one set of things, or two? If you're counting the set of things they include, do you have three things, or six? In the former case, considering the sets as having the same identity might make sense. In the latter case, they are "the same but distinct".
Whether sets A and B both or each contain whatever elements are different conditions even in ordinary English.
Can you say how any particular elements, including 1, 2, and 3, could matter?
My broad suggestion is that what 'each' contains will not and what 'both' contain might be identical and why not re-phrase the Question in set-type language?
– Robbie Goodwin Feb 09 '24 at 18:59