MTH 114 · Introduction to Sets, Logic and Algebra
Our notes
2 min readStatements
A statement (proposition) is a sentence that is either true (T) or false (F), not both. "Port Harcourt is in Rivers State" is a statement; "Close the door" and "x + 2 = 5" (until x is known) are not.
Connectives
| Name | Symbol | True when |
|---|---|---|
| Negation | ¬p | p is false |
| Conjunction | p ∧ q | both are true |
| Disjunction (inclusive or) | p ∨ q | at least one is true |
| Conditional | p → q | except when p is T and q is F |
| Biconditional | p ↔ q | p and q have the same truth value |
Building a truth table
With n simple statements there are 2ⁿ rows.
Worked example: (p → q) ∧ (q → p).
| p | q | p → q | q → p | (p → q) ∧ (q → p) |
|---|---|---|---|---|
| T | T | T | T | T |
| T | F | F | T | F |
| F | T | T | F | F |
| F | F | T | T | T |
The last column matches p ↔ q row by row, so the two are logically equivalent.
Understanding p → q
"If you pay your school fees (p), you can sit the exam (q)." The promise is only broken when you pay and still cannot sit (T, F). If you do not pay, the promise is not broken whatever happens, so p → q is true whenever p is false.
Tautology and contradiction
- A tautology is true in every row: p ∨ ¬p.
- A contradiction is false in every row: p ∧ ¬p.
- A contingency is neither.
Worked example. Show [p ∧ (p → q)] → q is a tautology.
| p | q | p → q | p ∧ (p → q) | whole |
|---|---|---|---|---|
| T | T | T | T | T |
| T | F | F | F | T |
| F | T | T | F | T |
| F | F | T | F | T |
Every row is T. This is the rule modus ponens.
Exams usually ask: decide whether a sentence is a statement; translate English into symbols; draw a truth table for a compound statement; show a statement is a tautology.
Common mistake: marking p → q false when p is false. A false hypothesis makes the conditional true.
Written by the UniHive team in our own words. Spotted a mistake? Tell us on WhatsApp.
Read
-
Best pick Contemporary Mathematics, 2.1 Statements and Quantifiers
(opens openstax.org in a new tab)
OpenStax, Contemporary Mathematics, 2.1 Statements and Quantifiers, CC BY-NC-SA 4.0 · licence
-
Contemporary Mathematics, 2.3 Constructing Truth Tables
(opens openstax.org in a new tab)
OpenStax, Contemporary Mathematics, 2.3 Constructing Truth Tables, 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
-
Levin, Discrete Mathematics: An Open Introduction, Section 1.1 Mathematical Statements
(opens discrete.openmathbooks.org in a new tab)
Levin, Discrete Mathematics: An Open Introduction, Levin, Discrete Mathematics: An Open Introduction, Section 1.1 Mathematical Statements, CC BY-NC-SA 4.0 · licence
-
Hammack, Book of Proof, 3rd edition (whole free textbook)
A free proof textbook used in many universities (PDF, about 1.8 MB): sets, logic, direct and contrapositive proof, contradiction, induction, relations, functions, cardinality.
(opens richardhammack.github.io in a new tab)
Hammack, Book of Proof, CC BY-NC-ND 4.0 · licence
-
Levin, Discrete Mathematics: An Open Introduction, 4th edition (whole free textbook)
The whole book online with interactive exercises; a free PDF is linked from the front page.
(opens discrete.openmathbooks.org in a new tab)
Levin, Discrete Mathematics: An Open Introduction, Levin, Discrete Mathematics: An Open Introduction, 4th edition (whole free textbook), CC BY-NC-SA 4.0 · licence
-
OpenStax, Contemporary Mathematics (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, Contemporary Mathematics (whole free textbook), CC BY-NC-SA 4.0 · licence
Watch
-
Intro to Truth Tables | Negation, Conjunction, and Disjunction
6 min · ≈ 27 MB · about ₦15
(opens youtube.com in a new tab)
-
Tautology, Contradiction, Contingency & Satisfiability
5 min · ≈ 23 MB · about ₦13
(opens youtube.com in a new tab)
-
Tautologies and Contradictions
4 min · ≈ 18 MB · about ₦10
(opens youtube.com in a new tab)
-
Lec 1 | MIT 6.042J Mathematics for Computer Science, Fall 2010
44 min · ≈ 198 MB · about ₦111
(opens youtube.com in a new tab)
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.