I think the title pretty much covers it
$\begingroup$
$\endgroup$
3
To add to the comments, you can easily define your own container for sets like this:
ClearAll[set]
SetAttributes[set, Orderless];
s : set[___] /; ! DuplicateFreeQ[Unevaluated @ s] := DeleteDuplicates[Unevaluated @ s];
set[1, 2] === set[2, 1] === set[1, 1, 2]
True
Just be aware that the built-in function Set has nothing to do with set theory.
-
$\begingroup$ Their needs to be a closer parallel to the axiom of extensionality. I don't want it to know that {1,2}={2,1}, I want to be able to prove from extensionality things like {1,1,1,1,1,2,1,2,1,1}={1,2} but there is an unlimited different presentation for even just a finite set... $\endgroup$ – Veritas Lux Oct 14 '20 at 19:48
-
$\begingroup$ I think you may need to elaborate your question then, because it's not clear to me what you want to do exactly. $\endgroup$ – Sjoerd Smit Oct 15 '20 at 8:13
-
$\begingroup$ I want to write the axiom of extensionality in Mathematica. $\endgroup$ – Veritas Lux Oct 15 '20 at 23:08
Union
,Intersection
etc. act on the list $\endgroup$ – cvgmt Oct 13 '20 at 2:23