Skip to main content

De Morgan; negative OR equals positive AND

Short answer

De Morgan's theorems: (A+B)' = A'B' and (AB)' = A'+B', proven by truth tables. A gate with truth table 0,0,0,1 in positive logic (H=1) acts as AND; in negative logic (H=0) the complemented levels give OR, so negative-logic OR equals positive-logic AND.

State and prove De-Morgan's theorems with necessary diagrams. Prove that negative logic OR Gate is equivalent to positive logic AND Gate.

De Morgan's theorems

First theorem: the complement of a sum (OR) of variables equals the product (AND) of their complements.

A+B‾=Aˉ⋅Bˉ\overline{A + B} = \bar{A} \cdot \bar{B}

Second theorem: the complement of a product (AND) of variables equals the sum (OR) of their complements.

A⋅B‾=Aˉ+Bˉ\overline{A \cdot B} = \bar{A} + \bar{B}

In words: "break the bar and change the sign".

Proof by truth table

ABA+B‾\overline{A+B}Aˉ⋅Bˉ\bar A \cdot \bar BAB‾\overline{AB}Aˉ+Bˉ\bar A + \bar B
001111
010011
100011
110000

For all four input combinations, column 3 equals column 4 and column 5 equals column 6, so both theorems are proved.

Algebraic proof (Theorem 1): let X=A+BX = A + B, Y=AˉBˉY = \bar A \bar B. Then X+Y=A+B+AˉBˉ=A+B+Bˉ=1X + Y = A + B + \bar A\bar B = A + B + \bar B = 1 and XY=AAˉBˉ+BAˉBˉ=0XY = A\bar A\bar B + B\bar A\bar B = 0, so Y=XˉY = \bar X. Theorem 2 follows by duality.

Diagrams

 Theorem 1: NOR = bubbled AND
 A --|‾‾‾\             A --o|‾‾‾\
     | OR  )o-- Y   =       | AND )-- Y
 B --|___/             B --o|___/

 Theorem 2: NAND = bubbled OR
 A --|‾‾‾\             A --o|‾‾‾\
     | AND )o-- Y   =       | OR  )-- Y
 B --|___/             B --o|___/

 (o = inversion bubble)

Negative-logic OR = positive-logic AND

Take a gate whose output is HIGH only when both inputs are HIGH:

ABY
LLL
LHL
HLL
HHH

Positive logic (H = 1): Y = 1 only for A = B = 1 → AND.

Negative logic (H = 0, L = 1):

ABY
111
101
011
000

Y = 0 only when both inputs are 0 → OR.

Algebraically: a negative-logic OR, seen in positive logic, has all inputs and the output complemented:

Y=Aˉ+Bˉ‾=Aˉˉ⋅Bˉˉ(De Morgan)=A⋅B\begin{aligned} Y &= \overline{\bar A + \bar B} \\ &= \bar{\bar A} \cdot \bar{\bar B} \quad (\text{De Morgan}) \\ &= A \cdot B \end{aligned}

So the negative-logic OR gate is the same circuit as the positive-logic AND gate.

✓ Answer checked by Claude Opus 5.5 (high effort)

All Digital Logic chapter 2 questions →