Lesson 4 +35 XP

Boolean Algebra: Postulates, Theorems & Algebraic Simplification

Boolean Algebra: Postulates, Theorems & Algebraic Simplification

Boolean algebra is the algebra of variables that take only two values, 0 and 1. George Boole introduced it in 1854 for logic; Claude Shannon showed in 1938 that it describes switching circuits exactly. Every digital circuit is a Boolean function, and simplifying the function means building the circuit with fewer gates.

1. The Three Basic Operations

OperationSymbolsRead asResult is 1 when
ANDx · y, xy"x and y"both are 1
ORx + y"x or y"at least one is 1
NOTx', overline{x}"x complement", "not x"x is 0
xyxyx + yx'
00001
01011
10010
11110

Operator precedence: parentheses first, then NOT, then AND, then OR. So x + y'z means x + ((y')z), and (xy)' is different from x'y'.

2. Huntington's Postulates

Boolean algebra is defined on a set B = {0, 1} with two operations + and · that satisfy these postulates. Every other law is proved from them.

No.Postulate(a) form(b) dual form
P1Closurex + y ∈ Bx · y ∈ B
P2Identity elementsx + 0 = xx · 1 = x
P3Commutativex + y = y + xxy = yx
P4Distributivex(y + z) = xy + xzx + yz = (x + y)(x + z)
P5Complementx + x' = 1x · x' = 0
P6At least two distinct elements0 ≠ 1
⚠️ Warning

The second distributive law x + yz = (x + y)(x + z) is not true in ordinary algebra, but it is true in Boolean algebra. It is used constantly when converting to product-of-sums form.

3. The Principle of Duality

Every Boolean identity stays true if we swap + with · and 0 with 1 (leaving the variables and their complements alone). The result is called the dual. This is why the postulates come in (a)/(b) pairs: prove one and you get the other for free.

  • The dual of x + 0 = x is x · 1 = x.
  • The dual of x + x'y = x + y is x(x' + y) = xy.
  • The dual of x(y + z') is x + yz'.

4. Basic Theorems

No.Theorem(a)(b) dual
T1Idempotentx + x = xx · x = x
T2Null (dominance)x + 1 = 1x · 0 = 0
T3Involution(x')' = x
T4Associativex + (y + z) = (x + y) + zx(yz) = (xy)z
T5De Morgan(x + y)' = x'y'(xy)' = x' + y'
T6Absorptionx + xy = xx(x + y) = x
T7Redundant literalx + x'y = x + yx(x' + y) = xy
T8Consensusxy + x'z + yz = xy + x'z(x + y)(x' + z)(y + z) = (x + y)(x' + z)
T9Combining (adjacency)xy + xy' = x(x + y)(x + y') = x

Proofs from the postulates

SolvedProof 1 · Idempotent law x + x = x

Prove x + x = x using only the postulates.

  1. x + x = (x + x) · 1 (P2b)
  2. = (x + x)(x + x') (P5a)
  3. = x + x x' (P4b, distributive)
  4. = x + 0 (P5b)
  5. = x (P2a)
Answerx + x = x; by duality x · x = x
SolvedProof 2 · Absorption x + xy = x

Prove x + xy = x.

  1. x + xy = x · 1 + x y (P2b)
  2. = x(1 + y) (P4a)
  3. = x · 1 (T2a, since 1 + y = 1)
  4. = x (P2b)
Answerx + xy = x
SolvedProof 3 · Consensus theorem

Prove xy + x'z + yz = xy + x'z.

  1. Multiply the term yz by 1 = x + x': xy + x'z + yz(x + x').
  2. Expand: xy + x'z + xyz + x'yz.
  3. Group: xy(1 + z) + x'z(1 + y).
  4. 1 + z = 1 and 1 + y = 1, so the result is xy + x'z.
Answerthe term yz (the consensus of xy and x'z) is redundant

De Morgan's theorem

De Morgan's laws say how to complement a sum or a product: break the bar and change the sign.

(x + y)' = x' · y' qquad (x · y)' = x' + y'

They extend to any number of variables: (A + B + C + D)' = A'B'C'D' and (ABCD)' = A' + B' + C' + D'. The proof by truth table:

xyx + y(x + y)'x'y'x'y'
0001111
0110100
1010010
1110000

The two bold columns are identical, so the identity holds. A truth table with n variables has 2n rows; showing that two expressions have the same column is a complete proof (perfect induction).

5. Boolean Functions and Literals

A Boolean function is an expression of binary variables, constants and operators, for example F1 = x + y'z. It can be given as an expression, a truth table or a logic diagram. The expression is not unique, but the truth table is.

A literal is a variable or its complement in an expression. F = x'y'z + x'yz + xy' has 3 terms and 8 literals. Each term becomes a gate and each literal becomes a gate input, so fewer terms and fewer literals mean a cheaper circuit. That is the goal of simplification.

The same function before and after simplificationThe same function before and after simplification

6. Algebraic Simplification

SolvedExample 1 · Factor and combine

Simplify F = x'y'z + x'yz + xy'.

  1. Factor x'z out of the first two terms: x'z(y' + y) + xy'.
  2. y' + y = 1: F = x'z + xy'.
AnswerF = x'z + xy' (2 terms, 4 literals instead of 3 terms, 8 literals)
SolvedExample 2 · Three short simplifications

Simplify (a) x(x' + y) (b) x + x'y (c) (x + y)(x + y').

  1. (a) xx' + xy = 0 + xy = xy.
  2. (b) (x + x')(x + y) = 1 · (x + y) = x + y (P4b).
  3. (c) x + yy' = x + 0 = x (P4b).
Answerxy, x + y and x
SolvedExample 3 · Three-variable function

Simplify F = ABC + ABC' + A'BC.

  1. ABC + ABC' = AB(C + C') = AB.
  2. F = AB + A'BC = B(A + A'C).
  3. A + A'C = A + C (T7a), so F = B(A + C) = AB + BC.
AnswerF = AB + BC
SolvedExample 4 · Using the second distributive law

Show that (A + B)(A + C) = A + BC.

  1. Expand: AA + AC + AB + BC = A + AC + AB + BC.
  2. Factor A: A(1 + C + B) + BC = A · 1 + BC = A + BC.
Answer(A + B)(A + C) = A + BC
SolvedExample 5 · Proving an identity

Prove (A + B)(A' + C) = AC + A'B.

  1. Expand: AA' + AC + A'B + BC = AC + A'B + BC.
  2. BC is the consensus of AC and A'B (T8a), so it drops out.
Answer(A + B)(A' + C) = AC + A'B
SolvedExample 6 · A long expression that collapses

Simplify F = xyz + x'y + xyz'.

  1. xyz + xyz' = xy(z + z') = xy.
  2. F = xy + x'y = y(x + x') = y.
AnswerF = y

Checking a simplification by simulation

A hardware description language can check a simplification by comparing both forms on every input. In Verilog ~ is NOT, & is AND and | is OR. This testbench tries all 8 inputs of Example 1 and counts mismatches:

VERILOG
// Checks that two Boolean expressions are equal for every input combination
module tb;
    reg x, y, z;
    wire f1, f2;
    integer i, errors;

    assign f1 = (~x & ~y & z) | (~x & y & z) | (x & ~y);   // original
    assign f2 = (~x & z) | (x & ~y);                       // simplified

    initial begin
        errors = 0;
        $display("x y z | f1 f2");
        for (i = 0; i < 8; i = i + 1) begin
            {x, y, z} = i;
            #1 $display("%b %b %b |  %b  %b", x, y, z, f1, f2);
            if (f1 !== f2) errors = errors + 1;
        end
        $display("mismatches: %0d", errors);
    end
endmodule

The simulation prints the truth table of both forms, which match on all rows:

OUTPUT
x y z | f1 f2
0 0 0 |  0  0
0 0 1 |  1  1
0 1 0 |  0  0
0 1 1 |  1  1
1 0 0 |  1  1
1 0 1 |  1  1
1 1 0 |  0  0
1 1 1 |  0  0
mismatches: 0

7. Complement of a Function

The complement F' is 1 exactly where F is 0. Two methods:

  • Apply De Morgan repeatedly, working from the outside in.
  • Take the dual and complement each literal. This is the same thing in one step.
SolvedExample 7 · Complementing functions

Find the complements of F1 = x'yz' + x'y'z and F2 = x(y'z' + yz).

  1. F1' = (x'yz')' (x'y'z)' = (x + y' + z)(x + y + z').
  2. F2' = x' + (y'z' + yz)' = x' + (y'z')'(yz)' = x' + (y + z)(y' + z').
  3. Dual-and-complement check for F1: dual is (x' + y + z')(x' + y' + z); complementing each literal gives (x + y' + z)(x + y + z'), the same.
AnswerF1' = (x + y' + z)(x + y + z') and F2' = x' + (y + z)(y' + z')
⚠️ Warning

A common mistake is (AB)' = A'B'. It is wrong: (AB)' = A' + B'. Check with A = 1, B = 0: (AB)' = 1 but A'B' = 0.

Key points to remember

  • Precedence: parentheses, NOT, AND, OR.
  • Duality: swap + ≤ftrightarrow · and 0 ≤ftrightarrow 1; every theorem has a dual.
  • De Morgan: (x + y)' = x'y' and (xy)' = x' + y'.
  • Absorption x + xy = x; redundant literal x + x'y = x + y; consensus xy + x'z + yz = xy + x'z.
  • Fewer literals and terms give fewer gates and gate inputs.
🎯 END-TERM EXAM PREP

📝 IPU End-Term Exam Corner (5-10 Marks)

  • Q1. State Huntington's postulates of Boolean algebra. State and prove De Morgan's theorem. (10 Marks)
  • Write: the postulate table, both laws, and the truth-table proof.
  • Q2. State and prove the consensus theorem. Find the dual of x + x'y = x + y. (5 Marks)
  • Q3. Simplify using Boolean algebra: (a) x'y'z + x'yz + xy' (b) ABC + ABC' + A'BC (c) xyz + x'y + xyz'. (5 Marks)
  • Q4. Find the complement of F = x(y'z' + yz) using De Morgan's theorem. (2.5 Marks)
  • Q5. Prove that (A + B)(A' + C) = AC + A'B. (2.5 Marks)