login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for #279 Equality fails for Set Any revision 1 of 3

1 2 3
Editor:
Time: 2007/11/17 22:20:23 GMT-8
Note:

changed:
-
Equality of sets demands:
$$x \in X \iff x \in Y \implies X=Y$$

This axiom fails for the domain 'Set Any'. For example:
\begin{axiom}
X:Set Any
Y:Set Any
X:=["x"]
Y:=["x"]
(X=Y)::Boolean
\end{axiom}

and
\begin{axiom}
X:=[1.0]
Y:=[1.0]
(X=Y)::Boolean
\end{axiom}

But notice that the following cases work:
\begin{axiom}
X:=[1]
Y:=[1]
(X=Y)::Boolean
\end{axiom}

\begin{axiom}
Z:Set Union(String,Integer,Float)
W:Set Union(String,Integer,Float)
Z:=["x"]
W:=["x"]
(Z=W)::Boolean
\end{axiom}


Submitted by : (unknown) at: 2007-11-17T22:20:23-08:00 (16 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

Equality of sets demands:

LatexWiki Image 

This axiom fails for the domain Set Any. For example:

axiom
X:Set Any
Type: Void
axiom
Y:Set Any
Type: Void
axiom
X:=["x"]
LatexWiki Image(1)
Type: Set Any
axiom
Y:=["x"]
LatexWiki Image(2)
Type: Set Any
axiom
(X=Y)::Boolean
LatexWiki Image(3)
Type: Boolean

and

axiom
X:=[1.0]
LatexWiki Image(4)
Type: Set Any
axiom
Y:=[1.0]
LatexWiki Image(5)
Type: Set Any
axiom
(X=Y)::Boolean
LatexWiki Image(6)
Type: Boolean

But notice that the following cases work:

axiom
X:=[1]
LatexWiki Image(7)
Type: Set Any
axiom
Y:=[1]
LatexWiki Image(8)
Type: Set Any
axiom
(X=Y)::Boolean
LatexWiki Image(9)
Type: Boolean

axiom
Z:Set Union(String,Integer,Float)
Type: Void
axiom
W:Set Union(String,Integer,Float)
Type: Void
axiom
Z:=["x"]
LatexWiki Image(10)
Type: Set Union(String,Integer,Float)
axiom
W:=["x"]
LatexWiki Image(11)
Type: Set Union(String,Integer,Float)
axiom
(Z=W)::Boolean
LatexWiki Image(12)
Type: Boolean