Set Theory and Binary Logic: Understanding XOR in Set Theory Operations

AI Thread Summary
The discussion explores the relationship between set theory and binary logic, particularly focusing on the operations of Union and Intersection, which are analogized to OR and AND, respectively. Participants clarify that the XOR operation corresponds to the symmetric difference in set theory, defined as AΔB = (A∪B) \ (A∩B). There is a debate about the appropriateness of comparing binary operations with set operations, emphasizing that XOR is indeed an operation, akin to "not equals." The conversation highlights the importance of accurate analogies in mathematical operations, leading to a consensus on the correct relationships. Overall, the symmetric difference is recognized as the appropriate analogue for XOR in set theory.
Jhenrique
Messages
676
Reaction score
4
First: relating some ideia of set theory and binary logic, like:

U = 1
Ø = 0

thus, some identities appears:

U ∪ U = U
U ∪ Ø = U
Ø ∪ U = U
Ø ∪ Ø = Ø

U ∩ U = U
U ∩ Ø = Ø
Ø ∩ U = Ø
Ø ∩ Ø = Ø

1 + 1 = 1
1 + 0 = 1
0 + 1 = 1
0 + 0 = 0

1 × 1 = 1
1 × 0 = 0
0 × 1 = 0
0 × 0 = 0

So, the conclusion is that the operation of Union is analogous to AND, and the Intersection is analogous to OR.

But, one thing no is clear for me yet: and the binary operation XOR, XOR have a analogue in set theory?
 
Physics news on Phys.org
XOR is the same as "not equals", and sets can be compared for equality (or lack thereof).
 
Wait... binary operations shouldn't be compared with set operations ?
 
Jhenrique said:
Wait... binary operations shouldn't be compared with set operations ?
Huh?
Jhenrique said:
So, the conclusion is that the operation of Union is analogous to AND, and the Intersection is analogous to OR.
The other way around. Union is analogous to OR, intersection to AND.

But, one thing no is clear for me yet: and the binary operation XOR, XOR have a analogue in set theory?
Symmetric difference, perhaps.

Don't get too carried away with analogies. There are sixteen functions that map a pair of booleans to a boolean.
 
I compared AND with Union and OR with Intersection. AND, OR, Union and Intersection are all operations. I think strange to compare XOR (an operation) with the ideia of "not equals" (that isn't an operation).
 
Jhenrique said:
I compared AND with Union and OR with Intersection.
And that was an erroneous comparison. Look at your own opening post. Anything AND false is false. The intersection between any set and the null set is the null set. AND is analogous to set intersection, not set union. Similarly, OR is analogous to set union, not set intersection.
AND, OR, Union and Intersection are all operations. I think strange to compare XOR (an operation) with the ideia of "not equals" (that isn't an operation).
Of course "not equals" is an operation. There's even a special symbol for it: ≠. Boolean not equals and boolean exclusive or have the exactly same truth tables. They are the same operation in boolean algebra.
 
I would say the equivalent to XOR is the operation

A\Delta B = \{x~\vert~(x\in A)~\mathrm{XOR}~(x\in B)\}

Thus we see easily that this is

A\Delta B = (A\cup B)\setminus (A\cap B)

This is called the symmetric difference.
 
That's what I said in post #4.
 
D H said:
And that was an erroneous comparison. Look at your own opening post. Anything AND false is false. The intersection between any set and the null set is the null set. AND is analogous to set intersection, not set union. Similarly, OR is analogous to set union, not set intersection.

OH YEAH! I was wrong! AND is to Intersection so like OR is to Union.

micromass said:
This is called the symmetric difference.

"symmetric difference"... huh... very interesting!
 

Similar threads

Replies
7
Views
1K
Replies
18
Views
2K
Replies
1
Views
2K
Replies
2
Views
3K
Replies
5
Views
2K
Replies
5
Views
2K
Replies
11
Views
4K
Back
Top