Propositional Logic as a Formal System
Anchor (Master): Enderton 2001 *A Mathematical Introduction to Logic* 2e Ch. 1 in full (functional completeness, normal forms, the compactness theorem for sentential logic, completeness of the deductive calculus); Mendelson 2015 *Introduction to Mathematical Logic* 6e (CRC) Ch. 1; Post 1921 *Amer. J. Math.* 43 (truth-table completeness); Cook 1971 (the NP-completeness of satisfiability)
Intuition Beginner
You already know how to fill in a truth table: take a sentence built from smaller sentences using and, or, not, and if-then, try every combination of true and false for the small parts, and read off whether the whole thing comes out true. That practical skill is the starting point. This unit asks a sharper question: what is a sentence of logic, exactly, as an object you could hand to a machine, and what does it mean for one sentence to follow from others?
The move is the same one mathematics makes everywhere. To study numbers carefully you first say precisely what counts as a number and what counts as a legal operation. To study logical reasoning carefully you first say precisely what counts as a formula and what counts as a legal step of reasoning. A formula stops being an informal English sentence and becomes a string built by fixed rules from a fixed alphabet, like a well-formed arithmetic expression with its parentheses in the right places.
Two different questions then pull apart. One is about meaning: under which assignments of true and false does a formula come out true? That is the world of truth tables. The other is about proof: starting from some assumptions, which formulas can you reach by mechanical rules that never mention truth at all? The headline result of the subject is that these two questions give the same answer. Everything true-in-all-cases is provable, and everything provable is true-in-all-cases.
This is the warm-up. Every idea here — a language, its meanings, a proof system, and the match between them — returns in a harder form when we add for all and there exists later in the chapter.
Visual Beginner
A formula is a built-up thing. The same way an arithmetic expression like has a tree showing which operation is on the outside, every logical formula has one connective on the very outside and smaller formulas hanging below it. The diagram shows the construction tree of one formula, alongside its truth table.
Formula: ( (not p) or q )
Construction tree (outermost connective on top):
OR
/ \
NOT q
|
p
Truth table (work bottom-up: first not-p, then or with q):
p | q | not p | (not p) or q
--+---+-------+--------------
T | T | F | T
T | F | F | F
F | T | T | T
F | F | T | TRead the tree from the bottom. The atoms and are the leaves. The branch on the left applies not to . The root applies or to the two pieces below it. The truth table just walks the same tree: you compute the value at each leaf, then each node above, until you reach the root. The outermost connective — here or — is what the whole formula "is."
| input row | value of | value of | whole formula |
|---|---|---|---|
| 1 | T | T | T |
| 2 | T | F | F |
| 3 | F | T | T |
| 4 | F | F | T |
The formula comes out false in exactly one of the four cases, so it is true in most rows but not all — it is not a formula that holds no matter what.
Worked example Beginner
We test whether the formula "if then " together with "" forces "" — the pattern called modus ponens. The claim to check is that whenever the two assumptions are both true, the conclusion is also true.
Step 1. Write the assumptions. The first is the conditional , read "if then ." The second is just . The candidate conclusion is .
Step 2. Recall the meaning of the conditional. The expression is false only in the single case where is true and is false; in the other three rows it is true. This is the standard truth table for "if-then" in logic.
Step 3. Build the table for both assumptions and the conclusion.
| both assumptions true? | ||||
|---|---|---|---|---|
| T | T | T | yes ( true and true) | T |
| T | F | F | no | F |
| F | T | T | no ( is false) | T |
| F | F | T | no ( is false) | F |
Step 4. Look only at the rows where both assumptions are true. There is exactly one such row, the first. In that row is true.
Step 5. Conclude. In every case where and are both true, is true as well.
What this tells us: the conclusion holds in every situation that makes the assumptions hold, so genuinely follows from . The next sections make "follows from" precise as a relation written with the symbol , and then build a separate proof machine that reaches the same conclusions by rule-pushing.
Check your understanding Beginner
Formal definition Intermediate+
The sentential language is built from a fixed alphabet. Fix a countable set of sentence symbols (the propositional variables), the five connective symbols , and the two parentheses. An expression is any finite string over this alphabet. The well-formed formulas (wffs) form the smallest set of expressions containing every sentence symbol and closed under the five formula-building operations $$ \mathcal{E}{\neg}(\alpha) = (\neg \alpha), \qquad \mathcal{E}{\wedge}(\alpha,\beta) = (\alpha \wedge \beta), $$ and likewise . Equivalently where is the set of sentence symbols and adjoins all -images of members of [Enderton §1.1]. Sentential variables range over wffs.
A truth assignment is a function on the sentence symbols (or on a subset containing those that occur in the formulas under discussion). Its recursive extension is the unique extension agreeing with on sentence symbols and respecting the connectives by their truth tables: iff ; iff both are ; iff at least one is ; iff and ; and iff the two agree. Uniqueness of is the content of the parsing theorem below.
A wff is a tautology if for every truth assignment ; satisfiable if for at least one. A set of wffs tautologically implies , written , if every with for all also has . Two wffs are tautologically equivalent when each implies the other. The notion , abbreviated , is exactly tautologyhood. This semantic consequence relation is the precise form of the "follows from" of the Beginner tier, sharpening the truth-table check of 25.01.01 into a relation on arbitrary formula sets [Enderton §1.2].
Counterexamples to common slips Intermediate+
"A formula is just any string of symbols and connectives." Only the inductively generated strings are wffs. The string is an expression but not a wff; the closure clause, not mere symbol membership, defines , which is why the parsing theorem has content.
" means is a tautology." It means is true under every assignment that satisfies , a weaker demand relative to the restricted class of assignments. holds though is not a tautology. Tautologyhood is the special case .
"If is unsatisfiable then fails for every ." The reverse holds: an unsatisfiable tautologically implies every wff, vacuously, since there are no assignments to satisfy the premise. Inconsistency is maximal, not minimal, in consequence.
"The conditional asserts a causal or relevance link between and ." It is the material conditional: false in the single row , and true otherwise. A false antecedent makes it true regardless of , which has no bearing on relevance.
Key theorem with proof Intermediate+
The signature theorem of the language layer is unique readability: the inductive definition of wffs is genuinely a definition by recursion, because every non-atomic wff decomposes in exactly one way. Without it the extension would be ambiguous and truth-value assignment ill-defined.
Theorem (Unique readability / the parsing theorem). Every wff is exactly one of: a sentence symbol; or for a unique wff ; or for a unique binary connective and unique wffs . In particular no wff is a proper initial segment of another, and the main connective and immediate subformulas of a non-atomic wff are determined by the string alone [Enderton §1.2].
Proof. Assign to each symbol a weight: each left parenthesis counts , each right parenthesis , each binary connective , and sentence symbols and count . Define the balance of an expression as the running total of weights read left to right. A first induction on the construction of wffs shows that every wff has total balance and every proper nonempty initial segment of a wff has balance (it begins with a surplus left parenthesis never yet closed). The base case: a sentence symbol has balance and no proper nonempty initial segment. The inductive step for and tracks the leading "(" which raises the count to and is closed only by the final ")".
This balance property gives the non-segment claim: if were a proper initial segment of , then has balance while being a proper initial segment, contradicting that proper initial segments of the wff have balance . For uniqueness of decomposition, a non-atomic wff begins with "(" by construction, so it is or . If it is the remainder after up to the matching ")" is forced. If it is , the first place where the running balance (started after the opening "(") returns to marks the end of ; since no proper initial segment of the wff has balance , the substring is determined, hence so is the connective immediately after it and the remaining wff . Thus the decomposition is unique.
Corollary (recursion principle). Given a set , functions for each connective, and a function on sentence symbols, there is a unique with and . Applying this with and the connective truth tables yields the unique extension of any truth assignment , so the semantics of the Formal definition is well posed.
Bridge. Unique readability is the foundational reason the semantics of the language is unambiguous, and it is exactly the parsing fact that lets a truth assignment extend by recursion to a single value on every formula. This builds toward functional completeness — once is well defined, a wff is a Boolean function of its atoms and one asks which functions arise — and it appears again in first-order logic 42.01.03 pending, where the same balance argument is re-run for terms and formulas with quantifiers and the recursion principle underwrites Tarski's satisfaction definition. The central insight is that an inductively built syntax admits definition by recursion precisely when its constructors are injective with disjoint ranges; this is exactly the unique-readability condition, and it generalises from the five sentential connectives to any algebraic signature. Putting these together, the language layer (syntax plus its unambiguous semantics) is now fixed, and the rest of the unit runs two parallel developments over it — the space of Boolean functions a formula can express, and a proof calculus that reaches the tautologies by rule — meeting in the soundness and completeness theorem.
Exercises Intermediate+
Advanced results Master
The semantics fixes which Boolean functions formulas compute; the deductive calculus reaches the tautologies syntactically; and the two layers are identified by soundness and completeness, after which compactness and the complexity of the decision problem follow.
Theorem 1 (functional completeness and Post's adequacy criterion). Every function is computed by some wff in ; the disjunctive-normal-form construction exhibits one, so is functionally complete, as are , , , the Sheffer stroke (NAND), and the joint denial (NOR) [Post 1921]. A set of connectives is adequate if and only if it is not contained in any of the five Post maximal closed classes: the truth-preserving, the falsity-preserving, the monotone, the self-dual, and the affine (linear) functions. The stroke lies outside all five, which is why it is singly adequate; lies in the truth-preserving class and is not. Both DNF and the dual conjunctive normal form (a conjunction of disjunctions of literals) exist for every wff, the CNF being read from the falsifying rows.
Theorem 2 (a Hilbert-style deductive calculus and the deduction theorem). Fix the three axiom schemata over wffs (with as primitive and the others defined): $$ \text{(A1)}\ \alpha\rightarrow(\beta\rightarrow\alpha), \quad \text{(A2)}\ (\alpha\rightarrow(\beta\rightarrow\gamma))\rightarrow((\alpha\rightarrow\beta)\rightarrow(\alpha\rightarrow\gamma)), \quad \text{(A3)}\ ((\neg\beta)\rightarrow(\neg\alpha))\rightarrow(\alpha\rightarrow\beta), $$ with the single rule modus ponens: from and infer . A deduction of from is a finite sequence of wffs ending in , each an axiom, a member of , or a modus-ponens consequence of two earlier entries; one writes [Mendelson Ch. 1]. The deduction theorem holds: iff , proved by induction on the length of the deduction using A1 and A2. The turnstile is the purely syntactic counterpart of , defined without reference to truth.
Theorem 3 (soundness and completeness of sentential logic). For every set of wffs and every wff ,
$$
\Sigma \vdash \tau \quad\Longleftrightarrow\quad \Sigma \models \tau.
$$
The forward direction (soundness) is the induction: each axiom is a tautology and modus ponens preserves tautological consequence, so every deducible is a tautological consequence. The reverse direction (completeness) reduces to: every consistent is satisfiable. One extends to a maximal consistent by a Lindenbaum enumeration (adjoin each wff or its negation, preserving consistency), then the assignment satisfies , because membership in a maximal consistent set respects the connectives [Enderton §1.7]. The full Henkin/Lindenbaum apparatus reappears with witnessing constants for the first-order completeness theorem 42.01.06 pending; here no witnesses are needed.
Theorem 4 (compactness for sentential logic). A set of wffs is satisfiable if and only if every finite subset of is satisfiable; equivalently iff for some finite [Enderton §1.7]. The deductive route is immediate: is satisfiable iff is consistent (by Theorem 3), and consistency is a finitary condition because a deduction of a contradiction uses only finitely many premises. A purely semantic proof runs through König's lemma on the binary tree of partial assignments, or through the topological compactness of (Tychonoff), of which this theorem is the namesake instance. Compactness is the first theorem genuinely about infinite premise sets and is co-produced as 42.01.02 pending.
Theorem 5 (decidability and the complexity of validity). Tautologyhood is decidable: the truth-table algorithm tests all assignments to the sentence symbols of and accepts iff all give , a terminating procedure. The associated decision problems are satisfiability (SAT) — does some assignment satisfy — and its complement, validity. By Cook's theorem SAT is NP-complete, so validity (tautologyhood) is co-NP-complete [Cook 1971]; the truth-table procedure is correct but runs in time up to polynomial factors, and a polynomial decision procedure would prove . The complexity story is developed in 25.03.01; logically, decidability is what sharply separates the propositional warm-up from first-order logic, where validity is only semi-decidable (Church-Turing).
Synthesis. The four layers built here — language, semantics, deductive calculus, and the metatheorem linking them — are the foundational reason propositional logic is the template for the whole chapter: unique readability makes the recursion that defines well posed, functional completeness shows a wff is a Boolean function and fixes how much the language can say, and the calculus reaches exactly the tautologies, which is the central insight that and coincide. This is exactly the soundness-completeness pair, and it generalises: the same architecture — a recursively defined language, a Tarskian satisfaction relation, a Hilbert or natural-deduction calculus, and a Lindenbaum-Henkin completeness proof — is re-run with quantifiers and structures to give Gödel's first-order completeness theorem 42.01.06 pending. Putting these together, compactness is dual to the finitary nature of deduction: a contradiction needs only finitely many premises, so unsatisfiability is finitely witnessed, and this is the bridge from the syntactic finiteness of proofs to the semantic statement about infinite theories that powers the Löwenheim-Skolem and nonstandard-model phenomena of model theory. The decidability of propositional validity, contrasted with the mere semi-decidability of first-order validity, marks precisely where the warm-up ends and the genuine difficulty of logic begins.
Full proof set Master
Proposition 1 (soundness of the sentential calculus). If then .
Proof. Induct on the length of a deduction from . For each we show . If this is immediate. If is an axiom, then is a tautology: A1, A2, A3 are checked tautologies by their truth tables (each is false in no row), and a tautology is implied by every , vacuously on the premise side. If follows by modus ponens from and with , then by induction and ; for any satisfying , and force by the conditional's truth table. Hence . Taking gives .
Proposition 2 (deduction theorem). iff .
Proof. If then adjoining to the premises and one modus ponens yields , so . Conversely let be a deduction from . By induction on we show . If is an axiom or lies in , then from and the instance of A1, modus ponens gives . If , then is a theorem (a standard A1/A2 derivation), so . If comes by modus ponens from and , then by induction and ; the A2 instance with two modus ponens steps yields . At this is .
Proposition 3 (completeness — Lindenbaum and the canonical assignment). If is consistent (no wff has and ) then is satisfiable; consequently .
Proof. Enumerate all wffs (the language is countable). Define and, having defined consistent , set if that is consistent, else . At least one choice is consistent: if both and were inconsistent, the deduction theorem would give and , contradicting consistency of . Let . Then is consistent (any deduction of a contradiction uses finitely many premises, hence lies in some ) and maximal: for every , exactly one of is in .
Maximal consistent sets respect the connectives: , and , each a short derivation from the axioms and the deduction theorem. Define . A structural induction on wffs , using the connective-respecting clauses, gives . In particular for every , so satisfies and is satisfiable. For the consequence: if but , then is consistent (else the deduction theorem gives and ), hence satisfiable by some with , i.e. while satisfies — contradicting . Thus .
Proposition 4 (compactness via completeness). is satisfiable iff every finite is satisfiable.
Proof. The forward direction is immediate, as a satisfying assignment for satisfies each subset. Conversely, suppose is unsatisfiable. By Proposition 3 (contrapositive) is inconsistent, so and for some . Each deduction is finite and uses only finitely many premises from ; let be their union, a finite subset with and . Then is inconsistent, hence by soundness (Proposition 1) unsatisfiable. So some finite subset is unsatisfiable, the contrapositive of the claim.
Proposition 5 (disjunctive normal form and functional completeness). Every wff in is tautologically equivalent to a disjunctive normal form over , and every Boolean function is realised by such a wff.
Proof. If is satisfied by no assignment, it is equivalent to . Otherwise let on the symbols . For put with if , else . Then for any assignment , iff and agree on all . Set . For each : iff agrees with some iff , so and is a DNF. Given an arbitrary , apply the construction to its set of true rows to obtain a wff with for all ; if take . Hence every Boolean function is realised over , which is therefore functionally complete; the encodings and the stroke identities of the Intermediate exercises pass completeness to , , and NAND.
Connections Master
Propositional logic and truth tables
25.01.01is the elementary entry point this unit supersedes in rigor: that unit teaches the truth-table reading of and the informal notion of tautology and validity for a working logician, and it remains the right first contact with the connectives. This unit rebuilds the same material as a formal system — the inductively defined language with unique readability, the semantic consequence relation on arbitrary premise sets, a Hilbert-style calculus with , and the soundness-completeness identification — so that the truth-table check of25.01.01is recovered here as the decision procedure for the defined formally.Compactness for propositional and first-order logic, co-produced as
42.01.02pending, extends Theorem 4: this unit proves sentential compactness as a corollary of completeness and as the namesake instance of Tychonoff compactness of , and42.01.02pending develops the first-order compactness theorem and its model-theoretic harvest (nonstandard models, Löwenheim-Skolem interaction, finite-axiomatisability failures). The connection matters because compactness is the first place the finitary nature of proof — a deduction has finitely many premises — visibly controls the semantics of infinite theories.First-order logic: syntax, terms, and formulas, co-produced as
42.01.03pending, re-runs the language layer of this unit with quantifiers: the balance/unique-readability argument of the Key theorem is re-proved for terms and formulas with , the recursion principle underwrites Tarski's satisfaction relation in place of the truth-assignment extension , and the Hilbert calculus gains quantifier axioms. This unit owns the propositional skeleton — connectives, , , completeness via Lindenbaum — that42.01.03pending and the first-order completeness theorem42.01.06pending specialise and extend with Henkin witnesses.The complexity of satisfiability and NP-completeness
25.03.01is the computational face of Theorem 5: Cook's theorem identifies SAT as NP-complete, making propositional validity co-NP-complete, so the truth-table decision procedure proved correct here is exponential and the existence of a polynomial one is the vs question. The connection routes the decidability statement of this unit into computational complexity, where the propositional satisfiability problem is the canonical hard problem.
Historical & philosophical context Master
The truth-functional analysis of the connectives crystallised in the early twentieth century. Gottlob Frege's Begriffsschrift (1879) introduced a formal proof system with a conditional and negation as primitives and modus ponens as the rule, the ancestor of the Hilbert-style calculus of Theorem 2. Bertrand Russell and Alfred North Whitehead's Principia Mathematica (1910-13) systematised propositional inference, taking and as primitive. Ludwig Wittgenstein's Tractatus Logico-Philosophicus (1921) presented the truth-table as displaying the sense of a proposition as a truth-function of its constituents.
Emil Post's 1921 paper Introduction to a general theory of elementary propositions [Post 1921] is the metatheoretic turning point: Post proved the truth-table method a complete decision procedure, established functional completeness and the classification of adequate connective sets (the five maximal closed classes now bearing his name), and proved the Post-completeness of the propositional calculus. Henry Sheffer had shown in 1913 that a single connective — the stroke — suffices, the result re-derived in the exercises. The soundness and completeness of the calculus relative to truth-table semantics, with the Lindenbaum maximal-consistent-set construction of Proposition 3, became the standard treatment in Hilbert and Ackermann's Grundzüge der theoretischen Logik (1928) and Mendelson's textbook [Mendelson Ch. 1]. Stephen Cook's 1971 theorem [Cook 1971] placed the decision problem in complexity theory by proving SAT NP-complete, recasting the practical cost of the truth-table procedure as the defining hard problem of the class NP.
Bibliography Master
@book{enderton2001logic,
author = {Enderton, Herbert B.},
title = {A Mathematical Introduction to Logic},
edition = {2},
publisher = {Harcourt/Academic Press},
year = {2001}
}
@book{mendelson2015logic,
author = {Mendelson, Elliott},
title = {Introduction to Mathematical Logic},
edition = {6},
publisher = {CRC Press},
year = {2015}
}
@article{post1921propositions,
author = {Post, Emil L.},
title = {Introduction to a general theory of elementary propositions},
journal = {American Journal of Mathematics},
volume = {43},
number = {3},
year = {1921},
pages = {163--185}
}
@incollection{cook1971complexity,
author = {Cook, Stephen A.},
title = {The complexity of theorem-proving procedures},
booktitle = {Proceedings of the Third Annual ACM Symposium on Theory of Computing (STOC)},
publisher = {ACM},
year = {1971},
pages = {151--158}
}
@book{frege1879begriffsschrift,
author = {Frege, Gottlob},
title = {Begriffsschrift, eine der arithmetischen nachgebildete Formelsprache des reinen Denkens},
publisher = {Louis Nebert, Halle},
year = {1879}
}
@book{wittgenstein1921tractatus,
author = {Wittgenstein, Ludwig},
title = {Tractatus Logico-Philosophicus},
publisher = {Annalen der Naturphilosophie; Kegan Paul (1922 English ed.)},
year = {1921}
}
@book{hilbertackermann1928,
author = {Hilbert, David and Ackermann, Wilhelm},
title = {Grundz\"{u}ge der theoretischen Logik},
publisher = {Springer},
year = {1928}
}
@article{sheffer1913stroke,
author = {Sheffer, Henry M.},
title = {A set of five independent postulates for Boolean algebras, with application to logical constants},
journal = {Transactions of the American Mathematical Society},
volume = {14},
number = {4},
year = {1913},
pages = {481--488}
}