Propositional Logic – Comprehensive Study Notes
Propositions
- Declarative sentences that are unequivocally TRUE (T) or FALSE (F) – never both.
- Examples judged as propositions
- “Kuala Lumpur is the capital of Malaysia.” →
- “Superman can fly.” → truth‐value context–dependent; formally treated as a proposition.
- →
- “Tuesday is the day after Wednesday.” →
- Non-propositions (commands, open statements, questions, etc.)
- “Please sit down.” (imperative)
- “” (contains free variable)
- “What time is it?” (question)
- Truth‐value operator
- Notation returns the truth value of proposition .
- abbreviates TRUE, abbreviates FALSE.
Truth Values & Notation
- Long propositions are symbolised by lowercase letters
- Example: : “CMA6124 is a compulsory subject for Finance majors at MMU.”
- : “You are sitting in this class to learn mathematical logic.”
- We write , for their truth values.
Compound Propositions & Logical Connectives
Compound proposition = combination of ≥2 simple propositions using logical operators.
- Four fundamental connectives + two derived ones
- Negation (“not”)
- Conjunction (“and”)
- Disjunction (“or”, inclusive)
- Implication (“if … then”)
- Biconditional (“iff”, derived)
- Exclusive–or (derived)
- Truth tables precisely describe how truth values propagate through connectives.
Negation (¬)
- Truth table
- Example
- : “It is sunny.”
- : “It is not sunny.” — true exactly when is false.
Conjunction (∧)
- Truth table
\begin{array}{|c|c|c|}
\hline p&q&p\land q\\hline
T&T&T\ T&F&F\ F&T&F\ F&F&F\\hline
\end{array} - Example: : “Today is Tuesday”, : “It is raining today”
- : “Today is Tuesday and it is raining today.” Truth only when both clauses are true.
Disjunction (∨)
- Truth table
- Example: : “Mary likes jogging.” : “Mary likes dancing.”
- : “Mary likes jogging or dancing.” False only if Mary likes neither.
Implication (→)
- Truth table
- Linguistic equivalents: “ implies ”, “ only if ”, “ sufficient for ”, “ necessary for ”, “ when/whenever ”.
- Example: : “It is sunny.”, : “We go to the beach.”
- Statement false only in the scenario (sunny but we do not go).
Biconditional (↔) & Exclusive–or (⊕)
- Definitions
- Truth table snippet
- English for : “ iff ”, “ is necessary and sufficient for ”.
Translating English ↔ Propositional Logic
- Given example block (rain/sun/clouds):
- : It is raining; : The sun is shining; : There are clouds.
- a) “If it is raining, then the sun is not shining and there are clouds.” →
- b) “If the sun is shining or there are no clouds, then it is not raining.” →
- c) “The sun is shining iff it is not raining.” →
- d) “If there are no clouds, then it is not raining and the sun is shining.” →
- Reverse translation example (Monday / raining / hot):
- → “If today is not Monday, then it is raining or hot.”
- → “It is not the case that today is Monday or raining iff it is hot.”
- → “Today is Monday and (raining or hot) implies that it is hot or raining or today is Monday.”
Truth Tables
- Mechanical method to compute full semantics of a compound formula.
- Example truth table for shown on slide 14.
- Precedence rules (highest → lowest):
- Parentheses
- Negation
- Conjunction
- Disjunction
- Implication
- Biconditional
- Exercise: add parentheses to ⇒
Converse, Inverse, Contrapositive
Given
- Converse:
- Inverse:
- Contrapositive:
- Truth‐table property: is logically equivalent to its contrapositive, but not to its inverse or converse.
Tautology, Contradiction, Contingency
- Tautology: always (e.g. ).
- Contradiction: always (e.g. ).
- Contingency: sometimes , sometimes (e.g. ).
- Slide 19 provides illustrative truth tables.
Logical Equivalence
- and are logically equivalent if is a tautology.
- Denoted , , or .
- Demonstrations
- Truth-table method (slide 22): .
- Algebraic method using equivalence laws (slide 23): .
Catalogue of Equivalence Laws (slide 24)
- Identity, Domination, Idempotent, Double-negation, Commutative, Associative, Distributive, De Morgan, Implication conversion, Biconditional conversion, Contrapositive, Absorption, Negation.
- Emphasises ability to transform complex statements systematically.
Worked Law-Based Proofs
- Prove via chain of replacements (slide 25).
- Show tautology of (slide 26) – critical for simplifying logical conditions in programming/specification.
Summary of Lecture Concepts
- Definition & examples of propositions.
- Compound propositions and six logical connectives.
- Construction & interpretation of truth tables.
- Translation between natural language and propositional formulas.
- Converse, inverse, contrapositive notions and their equivalence relations.
- Classification into tautology / contradiction / contingency.
- Operator precedence conventions.
- Logical equivalence, truth-table verification, and algebraic proof using equivalence laws.
Supplementary Exercises (selected)
- Syntax check: identify malformed formulas, e.g. “(p → q)(→ r ∨ ¬q)” lacks connective between parenthetical groups.
- Truth-value evaluation given : compute
- Construct the full truth table for (be mindful of precedence).
- Translation & manipulation with health/wealth/wise predicates; derive converse/inverse/contrapositive.
- Classify each formula as tautology/contingency/contradiction.
- Fill-in-the-blanks to recall specific laws (conversion, De Morgan, distributive, contrapositive, etc.).
- Prove by (a) truth table & (b) equivalence laws.
Practical/Real-World Relevance
- Digital circuit design: conjunction ↔ AND-gate, disjunction ↔ OR-gate, negation ↔ NOT-gate.
- Software specification & verification: implications capture pre-/post-conditions; tautologies assure invariant truths.
- Database query optimisation: equivalence laws parallel relational algebra rewrites.
- AI rule systems: contrapositive allows backward chaining; exclusive-or models mutually-exclusive conditions.
- Ethical reasoning: clear separation of truth values prevents equivocation; helps analyse argument validity.
Foundational Connections
- Forms basis for Predicate Logic (next topic) by adding quantifiers .
- Probability & discrete structures: logical events correspond to sets; maps to union, to intersection, to complement.
- Set identities mirror logical equivalences (De Morgan between sets & logic).
Operator Precedence Reference (re-listed)
( )\;>\;\lnot\;>\;\land\;>\;\lor\;>\;\rightarrow\;>\;\leftrightarrow
Key Takeaways
- Master truth tables for mechanical certainty.
- Learn key equivalence laws – they dramatically shorten proofs and simplify conditions.
- Remember: implication ≡ contrapositive; biconditional captures equality of truth.
- Evaluate real English statements carefully: OR is inclusive unless explicitly exclusive.
- Practise translating both directions to reinforce comprehension.