Loading lessons...
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
| Operation | Symbols | Read as | Result is 1 when |
|---|---|---|---|
| AND | x · y, xy | "x and y" | both are 1 |
| OR | x + y | "x or y" | at least one is 1 |
| NOT | x', overline{x} | "x complement", "not x" | x is 0 |
| x | y | xy | x + y | x' |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 1 | 0 |
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 |
|---|---|---|---|
| P1 | Closure | x + y ∈ B | x · y ∈ B |
| P2 | Identity elements | x + 0 = x | x · 1 = x |
| P3 | Commutative | x + y = y + x | xy = yx |
| P4 | Distributive | x(y + z) = xy + xz | x + yz = (x + y)(x + z) |
| P5 | Complement | x + x' = 1 | x · x' = 0 |
| P6 | At least two distinct elements | 0 ≠ 1 |
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 |
|---|---|---|---|
| T1 | Idempotent | x + x = x | x · x = x |
| T2 | Null (dominance) | x + 1 = 1 | x · 0 = 0 |
| T3 | Involution | (x')' = x | |
| T4 | Associative | x + (y + z) = (x + y) + z | x(yz) = (xy)z |
| T5 | De Morgan | (x + y)' = x'y' | (xy)' = x' + y' |
| T6 | Absorption | x + xy = x | x(x + y) = x |
| T7 | Redundant literal | x + x'y = x + y | x(x' + y) = xy |
| T8 | Consensus | xy + x'z + yz = xy + x'z | (x + y)(x' + z)(y + z) = (x + y)(x' + z) |
| T9 | Combining (adjacency) | xy + xy' = x | (x + y)(x + y') = x |
Proofs from the postulates
Prove x + x = x using only the postulates.
- x + x = (x + x) · 1 (P2b)
- = (x + x)(x + x') (P5a)
- = x + x x' (P4b, distributive)
- = x + 0 (P5b)
- = x (P2a)
Prove x + xy = x.
- x + xy = x · 1 + x y (P2b)
- = x(1 + y) (P4a)
- = x · 1 (T2a, since 1 + y = 1)
- = x (P2b)
Prove xy + x'z + yz = xy + x'z.
- Multiply the term yz by 1 = x + x': xy + x'z + yz(x + x').
- Expand: xy + x'z + xyz + x'yz.
- Group: xy(1 + z) + x'z(1 + y).
- 1 + z = 1 and 1 + y = 1, so the result is xy + x'z.
De Morgan's theorem
De Morgan's laws say how to complement a sum or a product: break the bar and change the sign.
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:
| x | y | x + y | (x + y)' | x' | y' | x'y' |
|---|---|---|---|---|---|---|
| 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 |
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 simplification
6. Algebraic Simplification
Simplify F = x'y'z + x'yz + xy'.
- Factor x'z out of the first two terms: x'z(y' + y) + xy'.
- y' + y = 1: F = x'z + xy'.
Simplify (a) x(x' + y) (b) x + x'y (c) (x + y)(x + y').
- (a) xx' + xy = 0 + xy = xy.
- (b) (x + x')(x + y) = 1 · (x + y) = x + y (P4b).
- (c) x + yy' = x + 0 = x (P4b).
Simplify F = ABC + ABC' + A'BC.
- ABC + ABC' = AB(C + C') = AB.
- F = AB + A'BC = B(A + A'C).
- A + A'C = A + C (T7a), so F = B(A + C) = AB + BC.
Show that (A + B)(A + C) = A + BC.
- Expand: AA + AC + AB + BC = A + AC + AB + BC.
- Factor A: A(1 + C + B) + BC = A · 1 + BC = A + BC.
Prove (A + B)(A' + C) = AC + A'B.
- Expand: AA' + AC + A'B + BC = AC + A'B + BC.
- BC is the consensus of AC and A'B (T8a), so it drops out.
Simplify F = xyz + x'y + xyz'.
- xyz + xyz' = xy(z + z') = xy.
- F = xy + x'y = y(x + x') = 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:
// 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
endmoduleThe simulation prints the truth table of both forms, which match on all rows:
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: 07. 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.
Find the complements of F1 = x'yz' + x'y'z and F2 = x(y'z' + yz).
- F1' = (x'yz')' (x'y'z)' = (x + y' + z)(x + y + z').
- F2' = x' + (y'z' + yz)' = x' + (y'z')'(yz)' = x' + (y + z)(y' + z').
- 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.
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.
📝 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)