3.1.8 · D5Boolean Algebra & Logic Gates
Question bank — De Morgan's theorems
Before the traps, three words we'll lean on constantly:
- bar / negation / NOT — the line drawn over an expression, meaning "flip 0↔1". A bar over one letter negates one letter; a bar over a whole group negates the group's result.
- scope of a bar — how far the line reaches. has two short bars (each over one letter); has one long bar (over the whole product). These are different expressions, and telling them apart is the single most important skill here.
- top-level operator — the operation that gets done last under the bar. That is the operator De Morgan flips first.
True or false — justify
TF: and are the same expression.
False. You changed the bar's scope but forgot to flip AND→OR. At : LHS but . They disagree, so they are not equal.
TF: is a valid instance of De Morgan.
True. The bar sits over a top-level OR, so OR→AND and each term is negated. This is Theorem 2 exactly.
TF: De Morgan's theorems are definitions, so no proof is needed.
False. They are theorems proved by truth tables — both sides give identical output on all input rows. A definition is assumed; a theorem is earned.
TF: De Morgan only works for exactly two variables.
False. It generalises: , and likewise for OR. One long bar over any-length group splits into individual bars with the operator flipped.
TF: Applying De Morgan changes what the circuit computes.
False. It's an identity — the output truth table is unchanged. It only rewrites the form (e.g. into NAND-only), which is why designers use it freely.
TF: is a separate rule you sometimes need alongside De Morgan.
True. De Morgan produces double bars (e.g. after breaking ); you then collapse them with double negation, which is a distinct law from Boolean Algebra Laws.
TF: In the top-level operator under the bar is the AND.
False. AND binds tighter than OR, so is computed first and the last operation is the OR. De Morgan flips that OR first: .
TF: A NAND gate is literally an OR gate fed by two inverters.
True. means "invert both inputs, then OR" — the graphical form of this is Bubble Pushing.
Spot the error
Error: "."
The operator was not flipped. A bar over OR must become AND: . Test : LHS , but the wrong RHS agrees by luck — try : LHS , wrong RHS . Mismatch.
Error: "."
The bar covers the whole group, so every term inside gets negated — you stopped after the first. Correct: (also flip the operator).
Error: "."
All bars distributed correctly, but the operator was left as AND. Breaking a bar over AND gives OR: .
Error: "."
The double bar over was dropped. Break the outer bar → , then , giving .
Error: "To negate , flip signs to get ."
The top-level operator is , so it must become : . The proposed answer never flipped the outer OR.
Error: "."
Only the inner group was touched. Flip the outer AND first: .
Error: "Since has two bars and has one, De Morgan can't relate them."
Bar count is irrelevant; bar scope and operator are what matter. De Morgan is precisely the theorem that these two differently-drawn expressions are equal.
Why questions
Why does breaking a bar over AND produce an OR (not another AND)?
is 1 only when both are 1, so its NOT is 1 whenever at least one is 0 — "A is 0 or B is 0". "At least one" is exactly OR, so the operator must flip to OR.
Why is a truth table considered a complete proof, not just evidence?
Boolean variables take only finitely many value combinations ( rows). Checking all of them checks every possible input, so identical output columns prove exact equality — nothing is left untested.
Why do hardware designers care about De Morgan at all?
It lets any circuit be rebuilt from a single gate type (NAND-only or NOR-only), which is cheaper and more uniform to fabricate — see NAND and NOR Universal Gates.
Why must you identify the top-level operator before applying De Morgan?
De Morgan flips the operator done last under the bar. Flip the wrong (inner) operator and you negate the wrong grouping, producing a non-equivalent expression.
Why is De Morgan called the "engine" of taking a complement?
Complementing a whole function means pushing one big bar all the way down to the variables; De Morgan is the rule that legally moves the bar inward one operator at a time — see Complement of a Function.
Why does the double-negation law keep showing up right after De Morgan?
Breaking a bar over an already-negated term (like ) stacks a second bar, giving ; double negation collapses it back to , finishing the simplification.
Edge cases
Edge: what does De Morgan give for a single variable (no operator)?
Nothing to break — there is no top-level AND/OR, so the theorem doesn't apply. It fires only when a bar sits over a group of two or more terms joined by an operator.
Edge: apply Theorem 1 with a constant: .
Break the AND: . This matches the shortcut , so — consistent.
Edge: apply Theorem 2 with a constant: .
Break the OR: . Sanity check: always, and — matches.
Edge: does De Morgan hold if (same variable twice), e.g. ?
Yes. . It also equals directly since . Repeated variables are fine.
Edge: is ambiguous about grouping, and does that break De Morgan?
No ambiguity: AND is associative, so all groupings agree. De Morgan gives regardless of how you pair the ANDs.
Edge: apply De Morgan twice to .
First bar: , so the whole thing is ; break again → . Two negations return the original, as expected.
Connections
- De Morgan's theorems — the parent note these traps drill.
- Boolean Algebra Laws — double negation and associativity used in the edge cases.
- Complement of a Function — De Morgan as the bar-pushing engine.
- Bubble Pushing — the graphical form tested in the NAND item.
- NAND and NOR Universal Gates — why designers care.
- Logic Gates - AND OR NOT — the gates being negated.
- Karnaugh Maps — alternative justification tool.