Chapter 2 & 3 Mathematical Proofs & Derivations
Overview
This note compiles the core algebraic proofs and mathematical derivations of Chapters 2 and 3. These proofs form the baseline theoretical and logical foundations of digital logic, demonstrating “why” the algebraic rules work before hardware layout.
1. The Self-Complementing Weight Theorem
A weighted 4-bit binary code is self-complementing if the 1’s complement of any decimal digit’s codeword yields the exact codeword of its 9’s complement ().
The Theorem
For a weighted 4-bit binary code with weights to be self-complementing, the sum of its weights must equal exactly 9:
The Algebraic Proof
- Let a decimal digit be represented by the binary bits . The decimal value is:
- For the code to be self-complementing, the 9’s complement () must be represented by the bitwise inverted bits :
- Add these two equations together:
- Since is a binary bit ( or ), the sum of a bit and its complement is always exactly ():
2. Excess-3 Self-Complementing Code Proof
Excess-3 is a non-weighted code, but it is self-complementing. Here is the formal proof.
The Theorem
The Algebraic Proof
- Define the XS-3 representation: The Excess-3 codeword for any decimal digit () is defined as:
- XS-3 of the 9’s complement: The representation of the 9’s complement of () is:
- The 1’s complement of XS-3: Taking the bitwise 1’s complement of a 4-bit number is mathematically equivalent to subtracting that number from ():
- Compare:
3. Dual of XOR Equals Its Complement (XNOR)
This is a highly repeated 10-12 mark exam question.
The Theorem
The Algebraic Proof
Let the XOR function be .
Step 1: Find the Dual ()
Duality rules state we swap AND () with OR (), and identity elements , leaving the literals and their complements completely unchanged. Expand by algebraic distribution: Since and (Huntington Postulate 5b):
Step 2: Find the Complement ()
Apply De Morgan’s Law to : Expand by algebraic distribution: Since and :
Conclusion:
Comparing Eq. 1 and Eq. 2:
4. The Consensus Theorem
Used to eliminate redundant product or sum terms in Boolean simplification.
Original Form (SOP)
Proof:
- Multiply the redundant term by :
- Distribute:
- Group and factor terms:
- Since (Null Element Theorem):
Dual Form (POS)
Proof:
- Add to the redundant term :
- Distribute the third term:
- Rearrange terms:
- Simplify:
5. The Absorption Laws
Original Form:
Proof:
Dual Form:
Proof:
6. 4-Variable XNOR Expansion Proof
The Theorem
Proof:
Let and .
- Recall that
- Recall that
Substitute these into the equation for : Evaluating these 8 canonical product terms into decimal minterms:
Gathering terms:
7. Algebraic Literal Factoring (Under 8 Literals Limit)
Reducing Boolean terms algebraically using the absorption identity .
Problem
Express in three different ways using 8 or fewer literals.
Way 1: Group by and
Apply absorption identity :
Way 2: Group by and
Expand Way 1:
Way 3: Group by and
Grouping from unsimplified : Apply absorption: Likewise: Substitute back into Eq. A: