3.1.8 · HinglishBoolean Algebra & Logic Gates

De Morgan's theorems

1,594 words7 min readRead in English

3.1.8 · Hardware › Boolean Algebra & Logic Gates


YEH HAIN KYA?

Yeh kitne bhi variables tak generalise hota hai:


YEH SACH KYUN HAIN? (Scratch se derive karo — truth tables)

Hum inhe blind faith se accept nahi karte. Do Boolean expressions tab equal hote hain jab har input combination ke liye same output dete hain. Isliye hum truth table banate hain.

Theorem 1: prove karo

0 0 0 1 1 1 1
0 1 0 1 1 0 1
1 0 0 1 0 1 1
1 1 1 0 0 0 0

Yeh step kyun? Do bold columns ( aur ) har row par match karte hain → expressions provably equal hain. ∎

Theorem 2: prove karo

0 0 0 1 1 1 1
0 1 1 0 1 0 0
1 0 1 0 0 1 0
1 1 1 0 0 0 0

Yeh step kyun? Yahan bhi dono bold columns charon rows par match karte hain → equal. ∎

Figure — De Morgan's theorems

APPLY KAISE KAREIN (mechanical recipe)

Kisi bhi expression ko negate karne ke liye:

  1. Har AND () ko OR () mein badlo aur har OR ko AND mein.
  2. Har individual variable/term ko negate karo.
  3. Agar constants hain toh 0↔1 bhi swap raho.

Yahi complement procedure hai — De Morgan hi "dualise and complement" ka engine hai.


Common mistakes (Steel-manned)


Active recall

Recall Answers chhupao aur khud test karo
  • Q: Do theorems kya hain? → aur .
  • Q: 4-word slogan batao → "Break the bar, change the sign."
  • Q: Inhe rigorously kaise prove karte hain? → identical truth-table columns.
  • Q: Designers kyun care karte hain? → circuits ko sirf NAND ya sirf NOR mein convert karna (bubble pushing).
  • Q: barabar hai? → .
Recall Feynman: ek 12-saal ke bacche ko samjhao

Socho ek rule hai: "Tum bahar ja sakte ho sirf tab jab not (baarish AND thand) ho." Yeh same hai jaise kaho "Tum bahar ja sakte ho agar baarish nahi OR thand nahi hai." Ek "nahi" do conditions par spread hone se "aur" "ya" mein badal jaata hai. Yahi flip De Morgan's theorem karta hai — yeh bas common sense hai jo symbols mein likhi gayi hai.


Connections

  • Boolean Algebra Laws — De Morgan distributive, commutative, absorption laws ke saath baithta hai.
  • Logic Gates - AND OR NOT — woh physical gates jo negate ho rahe hain.
  • NAND and NOR Universal Gates — De Morgan hi wajah hai ki woh universal hain.
  • Karnaugh Maps — grouping/complement steps justify karne ke liye use hote hain.
  • Complement of a Function — De Morgan complement lene ki general recipe hai.
  • Bubble Pushing — circuit diagrams par De Morgan ki graphical form.
De Morgan Theorem 1
De Morgan Theorem 2
De Morgan ka 4-word slogan
Break the bar, change the sign
De Morgan's theorems rigorously kaise prove hote hain
Truth table se — dono sides sab input rows ke liye identical outputs deti hain
simplify hoke banta hai
Hardware mein De Morgan's theorems kyun matter karte hain
Yeh circuits ko sirf NAND ya sirf NOR gates se rebuild karne dete hain (bubble pushing)
ka common galat answer
(AND ko OR mein flip karna bhool gaye)
ko negate karo
N variables ke liye Generalised Theorem 1

Concept Map

gives

gives

shares rule

shares rule

verify via

proves

proves

extends to

extends to

is engine of

enables

enables

NOT distributes over group

Theorem 1: bar A.B = barA + barB

Theorem 2: bar A+B = barA . barB

Break the bar, change the sign

Truth tables

Equal iff same output all rows

Generalises to N variables

Complement / dualise procedure

NAND-only or NOR-only circuits

Boolean simplification