How do boolean expressions relate to algebra?

  • Context: High School 
  • Thread starter Thread starter Problem+Solve=Reason
  • Start date Start date
  • Tags Tags
    Algebra Boolean algebra
Click For Summary

Discussion Overview

The discussion revolves around the relationship between Boolean expressions and algebra, exploring concepts from Boolean algebra, its operators, and applications in computing. Participants share their understanding of Boolean algebra's structure, operators, and historical context, while also seeking clarification on specific mathematical relationships.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants describe Boolean algebra as having 2^n elements for some n, forming a ring structure similar to modular arithmetic.
  • There is a discussion about the basic operations in Boolean algebra, including AND, OR, NOT, and XOR, with some participants providing definitions and truth tables.
  • One participant suggests that Boolean expressions can be interpreted mathematically by treating 0 as a negative number and 1 as a positive, prompting questions about the implications of this approach.
  • Corrections are made regarding the truth table for AND and OR operations, with some participants noting discrepancies in earlier posts.
  • Historical context is provided, mentioning George Boole's initial development of Boolean algebra and its eventual applications in computing.
  • Participants discuss the construction of logical gates and their functions, referencing laws of Boolean algebra such as De Morgan's Law and the Idempotent Law.
  • There is curiosity about the implications of Boolean algebra in complex systems, such as networks of logical gates.

Areas of Agreement / Disagreement

The discussion contains multiple competing views and interpretations regarding the mathematical relationships and applications of Boolean algebra. Some participants agree on the definitions and operations, while others express confusion or seek further clarification.

Contextual Notes

Some statements are made with assumptions that may not be universally accepted, and there are unresolved questions regarding the mathematical treatment of Boolean expressions. The discussion also reflects varying levels of familiarity with the topic among participants.

Who May Find This Useful

This discussion may be of interest to students and professionals in computer science, mathematics, and engineering, particularly those exploring the foundations of Boolean algebra and its applications in logic and computing.

Problem+Solve=Reason
Messages
116
Reaction score
0
If anyone knows anything about the basics of Boolean Algebra please tell me what you know. Thanks

----- Life is a problem... SOLVE IT!
 
Mathematics news on Phys.org
(i think) a (finite) Boolean algebra must have [itex]2^n[/itex] elements, for some [itex]n \in \mathbb{N}[/itex] and they form a ring:

[tex](\mathbb{Z}/n\mathbb{Z}, +, \cdot)[/tex]

They can be thought of as like, an electric switch, which can either be on (allowing the flow of current) or off (preventing it). Similary in a transistor, or television. That is, they have two-states - and we abstract the 'true and false/on and off' like:

Let [itex]\cal{B} = \{[/itex][itex]0,1[/itex][itex]\}[/itex] and define:

[tex]0+0=0; 0+1=1+0=1+1=1[/tex]
[tex]0\cdot0=0=1\cdot0=0\cdot1; 1\cdot1=1[/tex]
[tex]\overline{0}=1; \overline{1}=0[/tex]

where [itex]\overline{n}[/itex] indicates the complement of n.

so, [itex]x^2 =x \cdot x=xx=x, \forall x \in\cal {B}[/itex]

how does it work when n is like 8 or 16 though? :confused:

edit: oops sorry! I'm confused and talking about something else? how do you delete posts =/
check out mathworld, the mathematics of boolean algebra (stamford.edu) & wikipedia.
 
Last edited:
Oh, yes. You're only dealing with ones and zeroes, trues and falses, and other arbitrary abstractations one made.

There're three operators: AND, OR, and NOT. You can just write them with letters if you like or use: ^, V respective ~. Where AND and OR are binary operators and NOT -what it the word? -.

Then they're defined as following:
0 AND 0 = 0
1 AND 0 = 0
0 AND 1 = 0
1 AND 1 = 0

0 OR 0 = 0
1 OR 0 = 1
0 OR 1 = 1

NOT 0 = 1
NOT 1 = 0

Then we also have the XOR operator (eXclusive OR).
0 XOR 0 = 0
1 XOR 0 = 1
0 XOR 1 = 1
1 XOR 1 = 0

That's all I can remember for the moment.
 
I'm a computer programer, so I work with this a lot. Finding the result of 2 boolean expressions is easy, just think of the 0 as a negative number, and the 1 as a positive. Do the math. Exactly how does boolean logic relate to alg?

Im the master at time!
 
Gamish said:
Finding the result of 2 boolean expressions is easy, just think of the 0 as a negative number, and the 1 as a positive. Do the math.

Could you please define this approach more rigorously, so that we may actually understand how to "do the math" ?

For instance if 0 -> -x, 1 -> +y, where x,y are positive numbers, what is [0 OR 1] = ?
 
Note the following corrections/additions (in bold) :

danne89 said:
...

Then they're defined as following:
0 AND 0 = 0
1 AND 0 = 0
0 AND 1 = 0
1 AND 1 = 1

0 OR 0 = 0
1 OR 0 = 1
0 OR 1 = 1
1 OR 1 = 1
 
Gamish said:
I'm a computer programer, so I work with this a lot. Finding the result of 2 boolean expressions is easy, just think of the 0 as a negative number, and the 1 as a positive. Do the math. Exactly how does boolean logic relate to alg?

It's interesting, the fact that Boolean algebra was first developed as an abstract idea before the application. (1854 Mr Boole thought it up). He probably thought it would serve no real purpose too! :-p If only they were all here today, I remember that one dilbert episode where dilbert's garbageman (the genius) brings Benjamin Franklin back to life and he starts talking about the world wide web and TCP/IP.

If [itex]n \in \mathbb{N}[/itex], then [itex]{{\cal B}^{n}} = \{({b_1},{b_2},\ldots,{b_n})\vert{b_i} \in \{[/itex][itex]0,1[/itex][tex]\}, 1 <= i <= n \}[/itex] So a function [itex]f:{{\cal B}^n}\longrightarrow{\cal B}[/itex] is a Boolean/Switching function of [itex]n[/itex] variables.<br /> <br /> Let [itex]f:{\cal B}^3\longrightarrow\cal{B}[/itex], where [itex]f(x,y,z) = xy+z[/itex] Then:<br /> <br /> [tex] \begin{tabular}{argument} <br /> \hline <br /> x & y & z & xy & f(x,y,z)=xy+z \\<br /> \hline <br /> 0 & 0 & 0 & 0 & 0\\<br /> 0 & 0 & 1 & 0 & 1\\<br /> 0 & 1 & 0 & 0 & 0\\<br /> 0 & 1 & 1 & 0 & 1\\<br /> 1 & 0 & 0 & 0 & 0\\<br /> 1 & 0 & 1 & 0 & 1\\<br /> 1 & 1 & 0 & 1 & 1\\<br /> 1 & 1 & 1 & 1 & 1\\<br /> \hline <br /> \end{tabular}[/tex]<br /> <br /> They bow down to the usual laws as well as:<br /> <br /> Demorgans Law where<br /> [itex]\overline{x+y} = \overline{x}\overline{y}[/itex]<br /> [itex]\overline{xy} = \overling{x}+\overline{y}[/itex]<br /> <br /> Idempotent Law where<br /> [itex]x+y=x[/itex]<br /> [itex]xx=x[/itex]<br /> <br /> Dominance Law:<br /> [itex]x+1=1[/itex]<br /> [itex]x\cdot0=0[/itex]<br /> <br /> Absorption Law:<br /> [itex]x+xy=x[/itex]<br /> [itex]x(x+y)=x[/itex]<br /> <br /> The construction of a logical AND gate would, be a function [itex]\wedge:{\cal B}^2\longrightarrow{\cal B}[/itex] defined by [itex]\wedge(x,y) = xy[/itex] and the logical OR would be [itex]\vee:{\cal B}^2\longrightarrow\cal{B}[/itex] defined by [itex]\vee(x,y) = x+y[/itex], and NOT would just be [itex]\~(x)=\overline{x}[/itex]<br /> <br /> An XOR would be [itex]\oplus(x,y)=(x+y)(\overline{xy})[/itex] (i think).<br /> <br /> Oooh this looks interesting <img src="https://www.physicsforums.com/styles/physicsforums/xenforo/smilies/oldschool/bugeye.gif" class="smilie" loading="lazy" alt=":bugeye:" title="Bug Eye :bugeye:" data-shortname=":bugeye:" /> especially when there are huge networks of gates.[/tex]
 

Similar threads

  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 13 ·
Replies
13
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 12 ·
Replies
12
Views
5K
  • · Replies 5 ·
Replies
5
Views
7K