Basic Logic — Propositions, Truth Tables, Quantifiers
Logic is the study of valid reasoning, built from propositions (statements that are true or false), connectives (and, or, not, if-then), and quantifiers (for all, there exists). A truth table mechanically computes the truth value of any compound statement from its parts. This machinery underlies all of mathematics, computer circuits, and rigorous argument. Formalized by Boole, Frege, and others in the 19th–20th centuries.
Truth flows mechanically. Once you fix the truth values of the atomic propositions, the truth value of any compound built from them is completely determined by fixed rules. Reasoning is reduced to calculation: validity is no longer a matter of opinion or persuasion but of a computable table.
Formal Statement
A proposition is a declarative statement that has exactly one truth value: true (T) or false (F). Questions, commands, and ungrammatical or vague sentences are not propositions.
- "7 is a prime number" — proposition (T).
- "12 is odd" — proposition (F).
- "Close the door." — not a proposition (command).
- "x + 1 = 5" — not a proposition until x is specified (an open sentence).
We denote propositions by letters
The five standard connectives combine propositions into compound propositions:
Derivation hint: flips the truth value; is true only when both are true.
Derivation hint: is inclusive (true if either or both); is false only when is true and false; is true when and share the same value. Symbols: negation, conjunction, disjunction, conditional (implication), biconditional. In , is the antecedent (hypothesis) and the consequent (conclusion).
A truth table for a compound proposition lists every possible assignment of T/F to its atomic propositions (there are rows for atoms) together with the resulting truth value of the compound. The defining tables for the connectives are:
| T | T | F | T | T | T | T |
| T | F | F | F | T | F | F |
| F | T | T | F | T | T | F |
| F | F | T | F | F | T | T |
A compound proposition is:
- a tautology if it is true under every assignment (e.g. );
- a contradiction if it is false under every assignment (e.g. );
- a contingency if it is true under some assignments and false under others.
Two propositions and are logically equivalent, written , if and only if is a tautology — i.e. they have identical truth-table columns.
For an open sentence (predicate) over a domain :
Derivation hint: the universal quantifier is a (possibly infinite) conjunction over all elements.
Derivation hint: the existential quantifier is a (possibly infinite) disjunction over all elements. The negation rules (De Morgan for quantifiers) are:
Derivation hint: to deny "all are P," exhibit one that is not P; to deny "some is P," show all fail P. Push inward and flip the quantifier.
Why It Holds / Derivation
We show the conditional is logically equivalent to "not , or " by comparing columns. 1. List assignments. With two atoms there are rows: . 2. Compute . Negate , then OR with :
- : , .
- : , .
- : , .
- : , .
3. Compare with (from the defining table): — identical column. 4. Conclude. Since the columns match in all rows, is true in every row, hence a tautology, hence .
∎We verify . 1. : is T only at , so its negation is . 2. : This is F only when both disjuncts are F, i.e. both are T — namely at . So its column is . 3. The columns agree everywhere, so the equivalence holds. By symmetric reasoning .
∎A largely self-taught English mathematician, Boole published The Mathematical Analysis of Logic (1847) and An Investigation of the Laws of Thought (1854), showing that logical reasoning could be cast as algebra with values 0 and 1. His Boolean algebra treats AND as multiplication and OR as addition, turning deduction into computation. Though largely ignored in his lifetime as a curiosity, Boole's system became the mathematical foundation of digital electronics and computer science a century later through Claude Shannon. He died at 49 of pneumonia after walking to a lecture in the rain.
Building Intuition
Think of each proposition as a light switch: it is either ON (true) or OFF (false). The connectives are little machines wired between switches:
- AND is two switches in series — current flows only if both are ON.
- OR is two switches in parallel — current flows if either is ON.
- NOT is an inverter — it flips the state.
The conditional is the trickiest. Read it as a promise: "If , then I promise ." The promise is broken (false) only in one situation — happened but did not. If never happens, the promise was never tested, so it counts as kept (true). This is why "if the moon is cheese, then 2+2=4" is true: a false hypothesis makes the whole conditional vacuously true. Quantifiers scale this up. is a demanding inspector: one counterexample condemns the whole claim. is an easygoing scout: one success vindicates it.
Worked Examples
Given: the compound proposition . Determine its full truth table and classify it.
Step 1 — count rows. Two atoms rows.
Step 2 — build columns.
| T | T | T | T | T |
| T | F | F | T | F |
| F | T | T | F | F |
| F | F | T | T | T |
Step 3 — interpret. The final column is — true exactly when and have the same truth value. This is precisely the biconditional column.
Boxed answer:
Given: the statement "Every student passed the exam," with domain = students and predicate = " passed." Formalize it, negate it, and translate the negation back to English.
Step 1 — formalize.
Step 2 — apply the negation rule [5].
Step 3 — translate . "There exists a student who did not pass," i.e. "At least one student failed."
Step 4 — check with a count. Suppose 30 students, 29 passed, 1 failed. The original is false (the inspector found a counterexample). The negation "at least one failed" is true — consistent. The negation is not "no one passed," which would require all 30 to fail.
Boxed answer:
Common Misconceptions
The conditional is not causation, and not the biconditional.
- does not mean causes , nor that and are related in topic. "If grass is green, then 5 is prime" is true simply because both parts are true.
- is not the same as . The latter is the converse and can have a different truth value.
- A true conditional with a false hypothesis ("vacuous truth") confuses many students: "All unicorns are pink" is true because there are no unicorns to falsify it.
- "Or" in logic is inclusive by default: is true when both hold. Everyday "either…or…" often means exclusive or, which is a different connective.
Affirming the consequent — an invalid argument that looks valid. Claim (false): "From and , conclude ." Let = "it rained" and = "the ground is wet." Then is reasonable. Suppose the ground is wet ( true). Does it follow that it rained? No — a sprinkler could have wet the ground. Truth-table check: the argument would require to be a tautology. At the row : , , premise conjunction , but conclusion . So the implication is — not a tautology. The argument is invalid. (Contrast with the valid modus ponens: from and , conclude .)
Connections
Propositional logic is the launchpad for the rest of formal reasoning. Boolean Algebra reinterprets the connectives as algebraic operations on , directly modelling Logic Gates and Digital Circuits. The study of which arguments are valid leads to Rules of Inference and Proof Methods — modus ponens, contrapositive, contradiction. Quantifiers open the door to Predicate Logic (first-order logic), the language in which essentially all of mathematics is written. The set-theoretic operations of union, intersection, and complement in Set Theory mirror , , and exactly, and the Methods of Mathematical Proof used throughout algebra and geometry rest on these foundations.
Real-World Applications
Historical Development
Subtleties & Limits
Classical two-valued logic assumes every proposition is either true or false (the law of excluded middle), but this is contested at the foundations. Intuitionistic logic rejects automatic excluded middle, demanding a construction to assert existence — affecting which proofs count as valid. Many-valued and fuzzy logics allow degrees of truth (useful for vagueness: when exactly is a heap of sand still a "heap"?). Gödel's incompleteness theorems reveal a hard ceiling: no consistent axiomatic system capturing arithmetic can prove all true arithmetic statements, so logic cannot fully mechanize mathematical truth. Furthermore, while propositional satisfiability is decidable, deciding the validity of arbitrary first-order (quantified) statements is undecidable (Church–Turing, 1936) — no algorithm can always answer "is this quantified statement valid?" These boundaries mark where the tidy machinery of truth tables gives way to deep open questions about the nature and limits of formal reasoning.
See Also
Boolean Algebra · Predicate Logic · Rules of Inference and Proof Methods · Set Theory · Logic Gates and Digital Circuits · Methods of Mathematical Proof · Gödel's Incompleteness Theorems