WHY the first one is true (Feynman-style): "A AND (B or C)" fires when A is on and at
least one of B,C is on. That's exactly "(A and B) or (A and C)". Splitting the OR across
A doesn't change the meaning.
HOW — prove the second (the one that trips people up) by truth table:
A
B
C
B⋅C
A+(B⋅C)
A+B
A+C
(A+B)(A+C)
0
0
0
0
0
0
0
0
0
0
1
0
0
0
1
0
0
1
0
0
0
1
0
0
0
1
1
1
1
1
1
1
1
0
0
0
1
1
1
1
1
0
1
0
1
1
1
1
1
1
0
0
1
1
1
1
1
1
1
1
1
1
1
1
Columns A+(B⋅C) and (A+B)(A+C)match every row → law proven from scratch.
Imagine two light switches. Commutative: it doesn't matter which switch you call "first" —
flipping switch-A-then-B or switch-B-then-A gives the same light. Associative: if three
friends must ALL agree (AND) to go to the park, it doesn't matter whether the first two decide
first or the last two — you still need all three saying yes. Distributive: "I'll eat cake if
(it's a party) AND (it's chocolate OR vanilla)" is the same as "I'll eat if (party and chocolate)
OR (party and vanilla)". Same rules, just written two ways — and picking the shorter way means a
factory can build the machine with fewer parts.
Dekho, Boolean algebra basically true/false ka math hai — sirf do values chalti hain, 0 aur 1.
Yahan ⋅ ka matlab AND hai (dono on ho tabhi output 1) aur + ka matlab OR hai (koi ek bhi on
ho to output 1). Sabse important trick: AND ko min samjho aur OR ko max samjho. Ek baar yeh
samajh gaye, to teenon laws khud-ba-khud prove ho jaate hain.
Commutative matlab order se farak nahi padta: A+B=B+A, kyunki max mein kaun pehle likha
hai isse koi matlab nahi. Associative matlab bracket ki grouping se farak nahi padta jab tak
same operator ho: (A+B)+C=A+(B+C). Lekin dhyan rakho — yeh sirf same operator ke andar chalta
hai, AND aur OR mix karoge to yeh law fail ho jaayega.
Distributive thoda tricky hai kyunki iske do form hain. Pehla normal algebra jaisa:
A(B+C)=AB+AC. Doosra "ulta" wala jo students ko confuse karta hai: A+BC=(A+B)(A+C) — yahan lone
term A ko dono brackets mein copy karna padta hai, warna galat. Isko proof karne ke liye
(A+B)(A+C) expand karo aur A⋅A=A use karke collapse kar do.
Yeh matter kyun karta hai? Kyunki har simplification se hardware mein gates kam ho jaate hain.
Jaise AB+AC (3 gates) ko A(B+C) (2 gates) bana do — same output, sasta chip, kam power, zyada
speed. Exam mein bhi aur real chip design mein bhi yahi kaam aata hai.