Is There an Order of Operations for Boolean Expressions in Sets?

  • Thread starter Thread starter kmwest
  • Start date Start date
  • Tags Tags
    Operations Sets
Click For Summary
SUMMARY

The discussion centers on the simplification of Boolean expressions, specifically the expression (A ∩ B ∪ C) ∩ B. Participants emphasize the ambiguity of the notation without parentheses, leading to confusion regarding the order of operations between intersection (∩) and union (∪). It is concluded that intersection should be prioritized over union, as intersection is analogous to multiplication and union to addition in Boolean algebra. The necessity for clear notation and context is highlighted, particularly in reliability engineering courses.

PREREQUISITES
  • Understanding of Boolean algebra concepts, including intersection and union.
  • Familiarity with set theory notation and operations.
  • Basic knowledge of reliability engineering principles.
  • Experience with discrete mathematics, particularly in simplifying expressions.
NEXT STEPS
  • Research the precedence rules in Boolean algebra, focusing on intersection and union operations.
  • Explore the implications of ambiguous notation in mathematical expressions.
  • Study the application of Boolean algebra in reliability engineering contexts.
  • Learn how to use tools like WolframAlpha for visualizing set operations and Venn diagrams.
USEFUL FOR

Students in reliability engineering, mathematicians, and anyone involved in discrete mathematics or Boolean algebra who seeks clarity on expression simplification and notation conventions.

kmwest
Messages
28
Reaction score
1
Hello all. Currently working on simplifying some Boolean expressions, one of the questions is:

( A int B U C) int B

I do not know how to go about simplifying the first term because there are not any parentheses within it and I have both the intersection and union symbols. Is there an order of operations, so to speak, where the union or intersect takes priority? Or I work left-to-right within a set of parentheses, etc. I've searched my textbooks and the Internet and I haven't found anything. Thanks in advance.
 
Physics news on Phys.org
In my experience, an expression like A\cap B\cup C is ill-defined. It needs brackets to let it mean whatever you want it to mean.

So perhaps you copied this problem wrong?? Or the book makes an assumption that is nonstandard (in which case you should read the book to find it).
 
There is a bar over the ( A int B U C) , another bar over the latter B, and another bar over everything. But I don't think that would affect the result.

I've done Boolean expressions before in a discrete math class (this is just an introductory chapter for a reliability engineering course) so this looks so unusual to me. I just re-read the section in the book and it has nothing like this, and only has the odd-looking expressions in the exercises.
 
kmwest said:
There is a bar over the ( A int B U C) , another bar over the latter B, and another bar over everything. But I don't think that would affect the result.

I've done Boolean expressions before in a discrete math class (this is just an introductory chapter for a reliability engineering course) so this looks so unusual to me. I just re-read the section in the book and it has nothing like this, and only has the odd-looking expressions in the exercises.

I've never seen anyone write (A int B U C) because it's so ambiguous. But if I HAD to evaluate it, I would give intersection higher precedence than union, because intersection is analogous to multiplication, and union is analogous to addition. But I've never seen that convention used the way you have it here. I wonder if there's a typo.

Exactly what are the bars over? And are they bars as in "logical negation" or bars as in "topological closure?" Are you in set theory class or real analysis class? The more context you can give, the better.
 
I just made the attached in Paint. This isn't even for a math class, it is part of a reliability engineering course. It is part of an early chapter on basic related math, including probability distributions and very introductory set theory.
 

Attachments

  • Untitled.gif
    Untitled.gif
    2.5 KB · Views: 1,164
kmwest said:
I just made the attached in Paint. This isn't even for a math class, it is part of a reliability engineering course. It is part of an early chapter on basic related math, including probability distributions and very introductory set theory.

If it's not a typo in the book, take the intersection first. For the reason I have above. When people generalize intersections and unions to Boolean algebra, intersection is multiplication and union is addition. If you have to interpret this as opposed to asking your teacher if its a typo, then the only choice is taking the intersection first.
 
Yes, I'm going to ask the teacher because nothing along these lines were in the text. I doubt it's a typo though, as it happens again in another question! Thanks.
 
Interesting, when you type in 'b union c intersection a' into WolframAlpha, it produces a Venn diagram that is equivalent to 'b union (c intersection a)'. So you seem to be right, intersection should be taken first. (Prof hasn't got back to me yet...)
 
micromass said:
In my experience, an expression like A\cap B\cup C is ill-defined. It needs brackets to let it mean whatever you want it to mean.

So perhaps you copied this problem wrong?? Or the book makes an assumption that is nonstandard (in which case you should read the book to find it).

Within some fields (e.g. electronic logic circuit design) it is coventional to use the same notation conventions as the algebra of numbers, where addition is analogous to union and multiplication is analogous to intersection. So AB + CD means (A intersection B) union (C intersection D).

But I agree that if you don't know the context, the OP's notation is ambiguous.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 12 ·
Replies
12
Views
7K
  • · Replies 11 ·
Replies
11
Views
4K
  • · Replies 40 ·
2
Replies
40
Views
8K
Replies
5
Views
3K
Replies
2
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 6 ·
Replies
6
Views
1K