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

  • Context: Undergrad 
  • Thread starter Thread starter Jhenrique
  • Start date Start date
  • Tags Tags
    Set Set theory Theory
Click For Summary

Discussion Overview

The discussion revolves around the relationship between set theory operations and binary logic, particularly focusing on the XOR operation and its potential analogues in set theory. Participants explore the identities of union and intersection in relation to AND and OR, and debate the nature of XOR within this framework.

Discussion Character

  • Exploratory
  • Debate/contested
  • Technical explanation

Main Points Raised

  • Some participants propose that union is analogous to OR and intersection to AND, while others challenge this comparison.
  • One participant suggests that XOR can be related to the concept of "not equals," while another counters that XOR should be compared to the symmetric difference in set theory.
  • A later reply defines the symmetric difference as AΔB = {x | (x ∈ A) XOR (x ∈ B)}, indicating a specific mathematical formulation.
  • There is a contention regarding the classification of operations, with some arguing that XOR should not be compared to "not equals," which is not an operation.
  • Participants correct each other regarding the analogies drawn between logical operations and set operations, with some acknowledging errors in their previous statements.

Areas of Agreement / Disagreement

Participants express disagreement on the analogies between set operations and binary logic, particularly concerning the roles of union, intersection, and XOR. No consensus is reached on the best way to relate these concepts.

Contextual Notes

Some participants note the complexity of mapping binary operations to set operations, mentioning that there are multiple functions that can relate pairs of boolean values. The discussion also highlights the need for careful definitions and the potential for confusion in analogies.

Who May Find This Useful

This discussion may be of interest to those studying set theory, binary logic, or mathematical operations, particularly in the context of exploring relationships between different mathematical frameworks.

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

[tex]A\Delta B = \{x~\vert~(x\in A)~\mathrm{XOR}~(x\in B)\}[/tex]

Thus we see easily that this is

[tex]A\Delta B = (A\cup B)\setminus (A\cap B)[/tex]

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 ·
Replies
7
Views
3K
  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
529
  • · Replies 25 ·
Replies
25
Views
2K
  • · Replies 29 ·
Replies
29
Views
6K
  • · Replies 11 ·
Replies
11
Views
5K
  • · Replies 30 ·
2
Replies
30
Views
3K
  • · Replies 11 ·
Replies
11
Views
4K