Everything you need for a perfect 100/100. Propositional logic β Boolean algebra β K-Maps β Adder circuits.
Propositional logic deals with propositions β statements that are either TRUE or FALSE. We combine them using logical connectives to form compound statements called Well-Formed Formulae (WFF).
| Symbol | Name | Read As | Example | Description |
|---|---|---|---|---|
| ~ or Β¬ | Negation | NOT p | ~p | Reverses truth value of p |
| β§ | Conjunction | p AND q | p β§ q | True only when BOTH are true |
| β¨ | Disjunction | p OR q | p β¨ q | True when AT LEAST ONE is true |
| β | Implication | p implies q | p β q | False ONLY when p=T, q=F |
| β | Biconditional | p if and only if q | p β q | True when BOTH have same value |
A WFF is a syntactically correct expression formed using propositional variables and logical connectives following precise grammar rules.
Formation rules:
Valid: (p β§ q) β r, ~(p β¨ ~q), ((p β q) β§ (q β r))
Invalid: p β§ β¨ q, β p q, p q β§
| p | q | ~p | p β§ q | p β¨ q |
|---|---|---|---|---|
| T | T | F | T | T |
| T | F | F | F | T |
| F | T | T | F | T |
| F | F | T | F | F |
| p | q | p β q | ~p β¨ q |
|---|---|---|---|
| T | T | T | T |
| T | F | F | F |
| F | T | T | T |
| F | F | T | T |
Implication (p β q) is FALSE ONLY when the premise p is TRUE and conclusion q is FALSE. All other cases are TRUE. Note: p β q β‘ ~p β¨ q (very important for simplification!)
| p | q | p β q | (pβq)β§(qβp) |
|---|---|---|---|
| T | T | T | T |
| T | F | F | F |
| F | T | F | F |
| F | F | T | T |
Biconditional is TRUE when both p and q have the same truth value. It is equivalent to (pβq) β§ (qβp).
A WFF that is TRUE for all possible interpretations (all rows in truth table = T).
A WFF that is FALSE for all possible interpretations (all rows = F).
A WFF that is TRUE for at least one interpretation, but not all. Neither tautology nor contradiction.
Given implication: p β q
But p β q is NOT equivalent to q β p (converse) or ~p β ~q (inverse).
If "if p then q" is true, and p is true, we can conclude q is true.
If p implies q, and q implies r, then p implies r (transitivity of implication).
Two WFFs P and Q are logically equivalent (P β‘ Q) if they have identical truth values for all interpretations. These laws let us simplify and transform expressions.
AND with TRUE and OR with FALSE leave the variable unchanged.
OR with TRUE always gives TRUE; AND with FALSE always gives FALSE.
Order of operands doesn't matter for AND and OR.
Memory trick: "Break the bar, change the operator" β negate each variable and flip ANDβOR.
Used to convert implications to OR form for simplification.
Boolean algebra is a mathematical system dealing with binary values β 0 (FALSE) and 1 (TRUE) β and the operations performed on them. It is the foundation of digital circuits and computing.
| A | B | A Β· B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 0 |
| 1 | 0 | 0 |
| 1 | 1 | 1 |
| A | B | A + B |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
| A | Δ (NOT A) |
|---|---|
| 0 | 1 |
| 1 | 0 |
Every algebraic expression deducible from the postulates of Boolean algebra remains valid if the operators AND and OR are interchanged and the identity elements 0 and 1 are interchanged.
Proof (A + 0 = A): When A=0: 0+0=0 β; When A=1: 1+0=1 β
Proof: OR table: 0+0=0=0, 1+1=1=1 β | AND table: 0Β·0=0, 1Β·1=1 β
In normal algebra, a + (bΒ·c) β (a+b)Β·(a+c), but in Boolean algebra it is valid.
Proof of A + AΒ·B = A:
= AΒ·1 + AΒ·B (Identity: A = AΒ·1)
= AΒ·(1 + B) (Distributive)
= AΒ·1 (1 + B = 1)
= A (Identity) β
Proof by Truth Table: Μ(AΒ·B) = Δ + BΜ
| A | B | AΒ·B | Μ(AΒ·B) | Δ | BΜ | Δ + BΜ | Same? |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | 1 | 1 | β |
| 0 | 1 | 0 | 1 | 1 | 0 | 1 | β |
| 1 | 0 | 0 | 1 | 0 | 1 | 1 | β |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 | β |
A product (AND) term containing all n variables in true or complemented form. Evaluates to 1 for exactly one input combination.
A sum (OR) term containing all n variables. Evaluates to 0 for exactly one input combination.
For the same index n: Mβ = mΜβ. Example: mβ = ΔΒ·BΜ, so Mβ = A+B β
A Boolean expression where product (AND) terms are summed (OR). The Canonical SOP uses only minterms.
1. Find all rows where output = 1
2. Write the minterm for each (0βcomplement, 1βtrue variable)
3. OR all the minterms together
A Boolean expression where sum (OR) terms are multiplied (AND). The Canonical POS uses only maxterms.
1. Find all rows where output = 0
2. Write the maxterm for each (0βtrue variable, 1βcomplement)
3. AND all the maxterms together
| Row | A | B | C | f | Minterm | Maxterm |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | mβ=ΔΒ·BΜΒ·CΜ | Mβ=A+B+C βPOS |
| 1 | 0 | 0 | 1 | 1 | mβ=ΔΒ·BΜΒ·C βSOP | Mβ=A+B+CΜ |
| 2 | 0 | 1 | 0 | 0 | mβ=ΔΒ·BΒ·CΜ | Mβ=A+BΜ+C βPOS |
| 3 | 0 | 1 | 1 | 1 | mβ=ΔΒ·BΒ·C βSOP | Mβ=A+BΜ+CΜ |
| 4 | 1 | 0 | 0 | 1 | mβ=AΒ·BΜΒ·CΜ βSOP | Mβ=Δ+B+C |
| 5 | 1 | 0 | 1 | 0 | mβ =AΒ·BΜΒ·C | Mβ =Δ+B+CΜ βPOS |
| 6 | 1 | 1 | 0 | 0 | mβ=AΒ·BΒ·CΜ | Mβ=Δ+BΜ+C βPOS |
| 7 | 1 | 1 | 1 | 1 | mβ=AΒ·BΒ·C βSOP | Mβ=Δ+BΜ+CΜ |
A Karnaugh Map is a graphical method for simplifying Boolean expressions. Adjacent cells differ by exactly one variable (Gray code ordering), allowing visual identification of groupings.
Columns/rows must follow Gray code order: 00, 01, 11, 10 (NOT 00, 01, 10, 11). This ensures adjacent cells differ by only one bit.
1. Plot all 1s in the K-Map from the minterm list or truth table
2. Identify all essential prime implicants (1s covered by only one group)
3. Form the largest possible groups (prefer 8 > 4 > 2 > 1)
4. Cover all 1s using minimum number of groups
5. Write one term per group (variables that don't change within a group are eliminated)
6. OR all the terms together (SOP form)
For each group of 1s, look at which variables stay constant across all cells in the group:
A Half Adder adds two 1-bit binary numbers A and B, producing a Sum (S) and a Carry (C). It cannot accept a carry-in from a previous stage.
| A | B | Sum (S) | Carry (C) |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 |
| 1 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 |
Sum: 1 XOR gate (or 2 AND + 1 OR + 2 NOT)
Carry: 1 AND gate
A Full Adder adds three 1-bit inputs: A, B, and Carry-in (Cα΅’β), producing Sum (S) and Carry-out (Cβα΅€β). It can be cascaded to add multi-bit numbers.
| A | B | Cα΅’β | Sum (S) | Carry-out (Cβα΅€β) |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 1 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 1 |
A Full Adder can be built using:
A Majority circuit outputs 1 when the majority of inputs are 1. For 3 inputs (A, B, C), output is 1 when 2 or more inputs are 1.
| A | B | C | Output (M) |
|---|---|---|---|
| 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 |
| 0 | 1 | 0 | 0 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 0 | 1 | 1 |
| 1 | 1 | 0 | 1 |
| 1 | 1 | 1 | 1 |
The simplified form needs only 3 AND gates and 1 three-input OR gate.
1. De Morgan's theorem β simplification problems and truth table proofs
2. K-Map simplification β always include grouping visualization
3. SOP from truth table β construct canonical form then simplify
4. Full adder truth table + expressions β circuit design questions
5. WFF simplification using equivalence laws step-by-step