Foundations — Boolean algebra laws (commutative, associative, distributive)
This page assumes nothing. Before you touch the parent laws note, we build every single symbol it uses, one brick at a time, each one anchored to a picture. If a symbol appears in the parent, it is defined here first.
0. What is a "bit"? The only two values in the whole universe
Ordinary counting numbers go up forever. Boolean algebra throws almost all of them away. It keeps exactly two:
WHY only two? Because real hardware is built from switches, and a switch has exactly two honest states: current flows, or it doesn't. We invented an algebra with two values precisely because that matches the physical thing we want to describe.

Look at the picture: the number line of ordinary maths is an endless road, but the Boolean world is just two dots. Every symbol on this page is a machine that takes one or two of these dots and returns another dot.
1. The NOT symbol — the bit-flipper
Our first machine has one input.
The picture: imagine a light switch wired backwards. When you press it OFF, the lamp turns ON, and vice versa. The overline is that "reverse" wire.
WHY the topic needs it: the parent note writes when it talks about the Logic Gates AND OR NOT and later the De Morgan's Theorems. Without knowing "bar means flip", those symbols are gibberish.
Recall Check yourself
What is (flip, then flip again)? ::: You get back — flipping twice returns the original bit.
2. The AND symbol — the "both" machine
Now a machine with two inputs.
Here is the complete behaviour — all four possible input pairs (this is called a truth table, defined properly in §5):
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
The picture — two switches in a row (series): current only reaches the lamp if switch and switch are both closed. One gap anywhere = darkness.

3. The OR symbol — the "at least one" machine
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
The picture — two switches side by side (parallel): current reaches the lamp if either path is closed. You need to block both to get darkness.

4. Precedence — why isn't ambiguous
When several symbols appear together, which do we do first?
WHY we need this rule: the parent writes with no brackets. Without a precedence rule you couldn't tell if it means "" or "". The rule "AND before OR" (same as "times before plus" in normal maths) makes it unambiguous: it is .
5. The truth table — the tool that PROVES everything
Every "proof" in the parent note is a truth table. So what is it, and why is it a valid proof?
WHY this counts as a proof: in ordinary algebra you can't test for all numbers — there are infinitely many. But Boolean inputs only take values and . With just or rows you cover literally every case that can ever occur. If two columns match on every row, the two expressions are provably equal — no case escaped.

6. Two special constants the proofs quietly use
The parent's algebraic proof secretly uses two facts. Let's earn them now.
WHY flagged here: the parent's quick proof of jumps from to . That jump only works because . If you haven't met that fact, the proof looks like a magic trick. Now it's just .
7. Putting the symbols together — a worked parse
You have now met every symbol the parent uses: , , , , , brackets, precedence, truth tables, and the two collapse-constants. You are ready.
Prerequisite map
Equipment checklist
Connections
- Parent topic (Hinglish) — the laws these symbols unlock.
- Logic Gates AND OR NOT — the physical switches behind , , .
- Boolean Algebra Identity & Null Laws — where and live formally.
- De Morgan's Theorems — the next tool that leans on the bar symbol.
- Karnaugh Maps — a visual truth-table cousin.
- Combinational Circuit Simplification — the payoff: fewer gates.