Logic Laws, Simplification, and Disjunctive Normal Form Notes
Logic Laws and Formula Simplification
Goal of Simplification for Validity:
- To show a logical expression is valid, a truth table would result in a final column where every entry is "True."
- When using logic laws to simplify a valid expression, the final result should be a single (True).
Eliminating Conditionals (Laws 10, 11, 12):
- The first step in simplification is usually removing conditional (implies) or biconditional (if and only if) signs.
- Conditional Law: is replaced with .
Laws of Movement and Grouping:
- Commutativity: Allows swapping the order of variables (e.g., ).
- Associativity: Allows changing the placement of brackets when the operations are all the same (e.g., ).
- Practical Application: If a long series of operations consists entirely of ORs (or entirely of ANDs), terms can be shuffled and rearranged using both Commutativity and Associativity simultaneously.
Key Simplification Laws:
- Excluded Middle: is replaced with .
- Domination Law:
- Identity Law:
- Double Negation: .
Mathematical Analogies:
- OR and AND work like Addition () and Multiplication () in real numbers because they are commutative and associative.
- Subtraction and Division do not work this way, as changing the order or grouping changes the result.
- Distributivity: This law must be used when there is a mixture of ANDs and ORs; terms cannot simply be rearranged.
Proving Logical Equivalence
Methodology:
- To show logical equivalence using laws, one can work from both sides of the equation simultaneously.
- Once both sides simplify to the exact same expression, the proof is complete.
Exercise 1: Beginner Level
- Problem: Show .
- Step 1 (Conditional Law): Negate the left side of the implies and change the arrow to an OR: .
- Step 2 (Double Negation): becomes , resulting in .
- Step 3 (Commutativity): If needed, rearrange to match the other side.
Exercise 2: Advanced Level (Biconditional)
- Problem: Show equivalence involving a biconditional sign ().
- Biconditional Law (Law 11): is replaced with .
- De Morgan's Law: Used to expand a negation over brackets: and .
- Complex Simplification Steps:
- Expand Biconditional to Conditionals.
- Apply Conditional Law ().
- Apply De Morgan's if negations are outside brackets.
- Apply Distributivity ().
- Simplify using Excluded Middle () and Identity or Domination laws.
Logic in Natural Language
- The Conditional in English:
- Statements like "Clean your room or you won't get dinner" are logically equivalent to "if-then" statements.
- Let "You clean your room" and "You get dinner."
- The English statement "Clean your room or you won't get dinner" is represented as .
- This is logically equivalent to ("If you don't clean your room, then you don't get dinner").
- Precedence of NOT: The negation symbol () is the strongest operator; brackets are not strictly required around negated variables (e.g., is clearly ).
Full Disjunctive Normal Form (DNF)
Definition: A standard way of representing a logical formula based on its truth table. It allows for the comparison of different but equivalent expressions.
The Goal: Given the final column of a truth table, find the formula that produces it.
The Procedure for Full DNF:
- Identify Model Rows: Focus only on the rows where the final result is TRUE.
- Create Row Formulas (Min-terms):
- For each model row, look at the values of the variables.
- If a variable is TRUE, write the variable (e.g., ).
- If a variable is FALSE, write its negation (e.g., ).
- Connect all variables in that row using AND ().
- Combine with OR: Link all the individual row formulas together using OR ().
Example 1 (2 Variables):
- Row 1: , Result=. Row Formula: .
- Row 3: , Result=. Row Formula: .
- Full DNF: .
Example 2 (3 Variables - Q, R, S):
- The task is to find the DNF for , given a truth table for .
- Step 1: Negate the final column of to get the column for .
- Step 2: Identify rows where . In this specific case, Rows 1, 2, and 4 are models:
- Row 1:
- Row 2:
- Row 4:
- Step 3: The Full DNF is the OR summation of these terms:
Questions & Discussion
- Question: If it's valid, what would the final column of a truth table look like?
- Response: It would be all True.
- Question: What do we expect the final answer to be when simplifying a valid formula using logic laws?
- Response: It should simplify down to just a .
- Question: What law allows us to swap the order of variables?
- Response: The Commutative Law.
- Question: Which law describes being replaced with True?
- Response: The Excluded Middle.
- Question: Do we need brackets around negations?
- Response: No, because "not" is stronger than any other operation. is unambiguous.
- Question: Can we just rearrange terms if there is a mixture of ANDs and ORs?
- Response: No, we must be careful and use the Distributivity law in those cases.