The Timpson Lyceum seal

The Timpson Lyceum · First-Order Predicate Logic (2024)

Logical Operators and Truth Tables - Lecture 1 (Logic)

Logical Operators and Truth Tables – Lecture 1

Overview

This lecture lays the foundation for propositional logic, the logic of things that are either true or false. We begin by locating logic beneath every systematic body of knowledge and isolating the one kind of reasoning logic studies — deductive reasoning — as distinct from inductive and abductive reasoning. From there we strip the unambiguous core out of ordinary English: we define what counts as a statement, identify the truth-functional connectives worth keeping, and build the truth tables for the five operators used throughout the course — negation, conjunction, disjunction, the conditional, and the biconditional. We pay special attention to the slippery cases: negating quantified sentences, reading "if" versus "only if," vacuous truth, and the difference between an implication and its converse. The payoff is a precise vocabulary and the first logical equivalences (De Morgan's laws and the contrapositive) that later proofs rely on.

Key Concepts

Logic and language. Logic is the study of the rules of deductive reasoning — the rules for building correct statements from given statements. Because we must communicate it in English, an imprecise language, we deliberately strip away the ambiguous parts and keep only the univocal parts (those with exactly one interpretation).

Three kinds of reasoning.

Statement (proposition). A statement is a sentence that is either true or false, but not both. Commands ("Go back home"), fragments ("Thursday up paper"), and questions are not statements. We denote statements by Greek letters α,β,…\alpha, \beta, \dots The subject is called propositional logic; we treat "statement" and "proposition" as the same thing.

Predicate vs. statement. A sentence with a free variable, like x+2=5x + 2 = 5, is not a statement — its truth depends on xx. It is a predicate, handled later with quantifiers.

Sentential connective. Any word or phrase that can be attached to sentences so the result is still a meaningful sentence (still a sentence — not necessarily true). There are infinitely many ("and," "or," "not," "Jack believes that," "it is probable that," "if … then," "if and only if"). "Cal the yesterday 2+2=42+2=4" is nonsense, so "Cal the yesterday" is not a connective.

Truth-functional connective. A connective for which the truth value of the result is completely determined by the truth values of the component statements — equivalently, one for which a truth table can be built. We keep only these.

The five operators and their truth tables.

αβ¬αα∧βα∨βα→βα↔βTTFTTTTTFFFTFFFTTFTTFFFTFFTT\begin{array}{cc|ccccc} \alpha & \beta & \lnot\alpha & \alpha\land\beta & \alpha\lor\beta & \alpha\to\beta & \alpha\leftrightarrow\beta \\\hline 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 \end{array}

Vacuous truth. When the antecedent of a conditional is false, the conditional is vacuously true — there are no cases to check, so it is not false, hence true. This is the definition of →\to, not a claim about the physical world: there is no notion of time or "what if things changed." This is why "if 1=01 = 0 then I'm the pope" counts as true. (We avoid words like "never," which smuggle in time/physics, just as we avoid "but.")

Reading "if" and "only if."

Converse and contrapositive.

Negation is subtle. ¬α\lnot\alpha must be true exactly when α\alpha is false. So the negation of "all swans are white" is "some swans are not white" (some = at least one) — not "some swans are black" or "no swans are white" (those are merely contrary: they cannot both be true with α\alpha, but can both be false). Likewise the negation of "some men play golf" is "no men play golf," and the negation of "there is at least one xx with x+3=7x+3=7" is "there is no such xx."

De Morgan's laws (the first theorems). Pushing a negation through a connective flips ∧↔∨\land \leftrightarrow \lor and negates each part:

¬(α∧β)≡¬α∨¬β,¬(α∨β)≡¬α∧¬β.\lnot(\alpha \land \beta) \equiv \lnot\alpha \lor \lnot\beta, \qquad \lnot(\alpha \lor \beta) \equiv \lnot\alpha \land \lnot\beta.

Precedence. Apply operators in the order: ¬\lnot, then ∧\land, then ∨\lor, then →\to, then ↔\leftrightarrow (analogous to negative sign, ×\times, ++, and == in arithmetic). When in doubt, parenthesize ∧\land and ∨\lor explicitly.

Tautology and contradiction. A tautology is a statement that is always true (e.g. α∨¬α\alpha \lor \lnot\alpha); proving a theorem means showing the implication is a tautology. A contradiction is always false (e.g. α∧¬α\alpha \land \lnot\alpha).

Worked Example

Verify the first De Morgan law, ¬(α∧β)≡¬α∨¬β\lnot(\alpha \land \beta) \equiv \lnot\alpha \lor \lnot\beta, by showing both sides agree in every row. A logical equivalence holds exactly when the two columns are identical for all truth assignments.

¬(α∧β)  ≡  ¬α∨¬βαβα∧β¬(α∧β)¬α¬β¬α∨¬βTTTFFFFTFFTFTTFTFTTFTFFFTTTT\begin{aligned} &\lnot(\alpha \land \beta) \;\equiv\; \lnot\alpha \lor \lnot\beta \\ &\begin{array}{cc|c|c|cc|c} \alpha & \beta & \alpha\land\beta & \lnot(\alpha\land\beta) & \lnot\alpha & \lnot\beta & \lnot\alpha\lor\lnot\beta \\\hline T & T & T & F & F & F & F \\ T & F & F & T & F & T & T \\ F & T & F & T & T & F & T \\ F & F & F & T & T & T & T \end{array} \end{aligned}

The column for ¬(α∧β)\lnot(\alpha \land \beta) (F,T,T,TF,T,T,T) matches the column for ¬α∨¬β\lnot\alpha \lor \lnot\beta (F,T,T,TF,T,T,T) in every row, so the two are logically equivalent. In words: denying "today is Monday and the weather is cold" is the same as asserting "today is not Monday, or the weather is not cold."

Summary