PHL 200 · Introduction to Logic
Our notes
2 min readSimple and compound statements
- Simple statement: no other statement as a part: "Ada is a student" (letter p).
- Compound statement: built from simple ones with connectives.
The five connectives
| Connective | Symbol | Read | True when |
|---|---|---|---|
| Negation | ~p | not p | p is false |
| Conjunction | p · q (or p ∧ q) | p and q | both are true |
| Disjunction | p ∨ q | p or q | at least one is true (inclusive) |
| Conditional | p ⊃ q (or p → q) | if p then q | false only when p is true and q false |
| Biconditional | p ≡ q (or p ↔ q) | p if and only if q | p and q have the same truth value |
Truth table for the conditional
| p | q | p ⊃ q |
|---|---|---|
| T | T | T |
| T | F | F |
| F | T | T |
| F | F | T |
A promise "If you pass, I will pay you" is broken only if you pass and I do not pay.
Building a truth table
With n simple statements there are 2ⁿ rows. For p and q: 4 rows; with p, q, r: 8 rows.
Tautology, contradiction, contingency
- Tautology: true in every row: p ∨ ~p.
- Self-contradiction: false in every row: p · ~p.
- Contingent: true in some rows, false in others: p ⊃ q.
Testing validity by truth table
An argument is valid if no row has all premises true and the conclusion false.
Worked example: modus tollens. Premises p ⊃ q and ~q; conclusion ~p.
| p | q | p ⊃ q | ~q | ~p |
|---|---|---|---|---|
| T | T | T | F | F |
| T | F | F | T | F |
| F | T | T | F | T |
| F | F | T | T | T |
Only row 4 has both premises true, and there ~p is true. Valid.
Affirming the consequent: premises p ⊃ q and q, conclusion p. Row 3 (p false, q true): both premises true, conclusion false. Invalid.
Translating
- "Ada will pass if she studies": S ⊃ P (the "if" part is the antecedent).
- "Ada will pass only if she studies": P ⊃ S.
- "Unless you pay, you will be sent out": ~P ⊃ O (or P ∨ O).
- "Neither p nor q": ~p · ~q.
Exams usually ask
- Construct truth tables for compound statements.
- Test an argument for validity by a truth table.
- Classify a statement as tautologous, contradictory or contingent.
Common mistake
Translating "only if" like "if". "p only if q" is p ⊃ q: q is a necessary condition for p.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Introduction to Philosophy, 5.2 Logical Statements
(opens openstax.org in a new tab)
OpenStax, Introduction to Philosophy, 5.2 Logical Statements, CC BY-NC-SA 4.0 · licence
-
Truth table
(opens en.wikipedia.org in a new tab)
Wikipedia, Truth table, CC BY-SA 4.0 · licence
-
Propositional logic
(opens en.wikipedia.org in a new tab)
Wikipedia, Propositional logic, CC BY-SA 4.0 · licence
-
OpenStax, Introduction to Philosophy (whole free textbook)
The whole book, free to read online or download as a PDF (the PDF is large: Wi-Fi).
(opens openstax.org in a new tab)
OpenStax, OpenStax, Introduction to Philosophy (whole free textbook), CC BY-NC-SA 4.0 · licence
-
forall x: Calgary, an introduction to formal logic (whole book, read online)
The free textbook whose exercises the solutions booklet answers. Read online, or the PDF is about 1.6 MB.
(opens forallx.openlogicproject.org in a new tab)
forall x: Calgary, forall x: Calgary, an introduction to formal logic (whole book, read online), CC BY 4.0 · licence
-
NPTEL: Introduction to Logic (IIT Kanpur, whole course)
44 lectures: arguments, deduction and induction, truth and validity, informal fallacies, Aristotle's syllogisms, propositional logic and truth tables, natural deduction. Video lectures, many hours in all: watch on Wi-Fi where you can.
(opens nptel.ac.in in a new tab)
NPTEL, NPTEL: Introduction to Logic (IIT Kanpur, whole course), CC BY-NC-SA 4.0 · licence
Watch
-
Converse, Inverse, & Contrapositive - Conditional & Biconditional Statements, Logic, Geometry
12 min · ≈ 54 MB · about ₦30
(opens youtube.com in a new tab)
-
Truth Table Tutorial - Discrete Mathematics Logic
8 min · ≈ 36 MB · about ₦20
(opens youtube.com in a new tab)
-
INTRODUCTION to PROPOSITIONAL LOGIC - DISCRETE MATHEMATICS
11 min · ≈ 50 MB · about ₦28
(opens youtube.com in a new tab)
-
Introduction to Propositional Logic and Truth Tables
7 min · ≈ 32 MB · about ₦18
(opens youtube.com in a new tab)
-
Intro to Truth Tables | Negation, Conjunction, and Disjunction
6 min · ≈ 27 MB · about ₦15
(opens youtube.com in a new tab)
-
Propositional Logic: The Complete Crash Course
54 min · ≈ 243 MB · about ₦136
(opens youtube.com in a new tab)
Practise
-
forall x: Calgary, solutions to selected exercises (PDF, 0.5 MB)
Answers to the exercises in the free forall x book: arguments and validity, truth tables, natural deduction, first-order logic.
(opens forallx.openlogicproject.org in a new tab)
forall x: Calgary, forall x: Calgary, solutions to selected exercises (PDF, 0.5 MB), CC BY 4.0 · licence
We link to free material and never copy it. Every link was opened by our team before it went up; video data is a rough guide at 360p.