Logic · Foundations · Boolean Algebras

The Finitary Basis of Formal Systems and a Rigorous Construction of the Propositional Calculus with Its Models

A note on the foundations of mathematical logic

📄 The same text as a PDF: Propositional Calculus (PDF)

Introduction

The propositional calculus (PC) and the predicate calculus based on it are treated as formal systems that replace natural-language logical reasoning by a strictly regulated ``computational'' apparatus for transforming character strings, to which meaning is assigned outside these calculi. The aim of such a replacement is to reduce mathematical reasoning to a maximally rigorous rule-governed game without any exceptions or hidden assumptions.

Describing the foundations of mathematics always faces a dilemma: whether to allow an infinite regress of foundations, or to choose an initial stock of undefined notions on which the entire subsequent theory is built. In the second case, the problem is to choose this stock of notions so that, on the one hand, the expressive power needed to describe the foundations is preserved, and on the other hand, the notions themselves are not made unduly complex—not more complex than what is to be defined and constructed with their help.

Science, and mathematics in particular, has long been accustomed to placing undefined notions at the base of a fundamental theory and formulating the theory by specifying relations among them; in this way the dilemma resolves itself. The axiomatic method rests on this principle. However, the axiomatic method presupposes logic in its background: the basic modes of inference that allow one to arrange facts into a deductive chain, thereby systematizing known facts and discovering new ones.

What, then, if the subject of study is logic itself? In that case, the axiomatic method alone does not suffice: even to write down a single axiom or to introduce notation for an undefined notion, one must first choose (or construct) a language in which the description of the theory and the construction of logical arguments are maximally rigorous, unambiguous, and regular, admitting no arbitrary interpretations or meaningless exceptions.

Thus, the primary task in formalizing logic is to define the language in which its laws and derivations are written. Yet how can one define a language without already having a language? Here one must rely on the language always at hand—natural language. Not in its full extent, however, but in a minimal, strictly delimited form that ensures the unambiguity, regularity, expressibility, and verifiability required for logic. That is, one deliberately carves out a rigidly defined fragment of natural language and makes its conceptual apparatus special: all notions in it, including logical ones, always signify one and the same thing regardless of context, author, or the author's attitude toward that context. Simultaneously with fixing the language and its logical connectives, its domain of discourse is severely restricted: the special language describes exclusively elementary syntactic constructions (symbols, finite strings of symbols, and operations on them), without touching upon external semantics, infinite sets, or other abstract objects. In this way natural language is reduced to a highly specialized, refined surrogate that provides a firm basis for subsequent constructions. This surrogate serves as the metalanguage: in it the formal system is defined and reasoning about it is conducted. The replacement of natural logic takes place at the next step: the formal system built by the means of the metalanguage assumes the role that natural logic plays in ordinary mathematical reasoning.

Part I of this paper explains how the special language is isolated from natural language. It proceeds in three steps: first, words and operations on them are described; next, methods for generating classes of words; and finally, types of statements about words and classes of words together with methods for justifying them. The basic notions of Part I are undefined in the sense that their exposition is informal, yet they are specified by means of natural language as strictly as possible. The extreme elementarity of the syntactic domain, together with the simplicity and small number of basic tools, gives grounds to regard the use of such a metalanguage as reliable and consistent. All assumptions on which the special language relies are stated explicitly in Part I.

The conceptual apparatus introduced in Part I is common to the construction of many formal systems, including all finitarily specified (ordinary) propositional and predicate calculi, as well as modal calculi.

Part II, equipped with this basic set of tools, proceeds directly to the construction of the formal language of PC as a syntactic object and to the calculus itself as a mechanism for generating theorems.

Part III examines models of the propositional calculus in mathematics, bringing standard mathematical methods of structural analysis to bear in order to obtain a rigorous, detailed description of the properties of PC. Here no restriction is placed on the choice of mathematical tools in constructing and analyzing models, and PC is treated as an independent object of scientific study. The mathematical theories used in studying models are themselves formalizable on the basis of the predicate calculus, whose syntax is constructed by the means of Part I; thus only primary syntactic constructions and reasoning about words remain in the metalanguage. The relationship between the three language levels and the parts of the paper is shown in Fig. 1.

Fig. 1. Diagram of the three language levels: isolating the metalanguage from natural language (Part I) and constructing the formal system and its models (Parts II–III).

Part I. The Special Language

The special language in which the subsequent construction is written is formulated by means of natural language. Its subject matter consists of words, that is, finite strings of symbols from a fixed finite alphabet. The special language describes:

  1. (a)

    symbols, the alphabet, and words; operations and relations on words (§ I.1);

  2. (b)

    recursive generation of classes of words (§ I.2);

  3. (c)

    statements about words and classes of words, parse trees, and methods of justification (§ I.3).

Thus the scope of the special language is exhausted by finite syntactic constructions and includes neither meanings of words, nor numbers, nor infinite collections; the surveyability and primitiveness of these constructions justify the reliability of the finitary level (upon passing to models in Part III, these restrictions are lifted). This approach traces back to the finitary standpoint of D. Hilbert and P. Bernays and is adopted in E. Post's canonical systems, A. A. Markov's theory of algorithms, and S. C. Kleene's exposition.

I.1. Words and operations on them

A symbol is a graphic figure that can be written down, recognized upon rewriting, and reliably distinguished from other symbols regardless of who performs this. A single symbol may be written many times; each writing is called an occurrence of that symbol. The permitted symbols are exhibited by a finite list called an alphabet. Only one requirement is placed on an alphabet: for any two written symbols, it is unambiguously decidable whether they are occurrences of the same symbol. For simplicity, in the examples of this part the alphabet consists of two symbols: \(\partial\) and \(\varrho\). In general, an alphabet may contain any finite set of symbols.

A word in a given alphabet is a finite string of symbols of the alphabet written in a line from left to right; a word contains at least one symbol of the alphabet. Examples of words: \(\partial\), \(\partial\partial\partial\), \(\partial\varrho\partial\), \(\varrho\partial\partial\varrho\), etc.

No external meaning is ascribed to the symbols of the alphabet or to words; words need not be words of natural language or follow its rules.

To illustrate working with words, one may use the image of a typewriter (or a text editor): the keyboard is the alphabet, a keystroke produces an occurrence of a symbol of the alphabet, and a word is the imprint of such keystrokes on paper (or on a display) in an arbitrary order.

To denote arbitrary words, we use the metavariables \(\xi, \eta, \zeta, \theta, \tau\). They belong to the special language and serve to define the following operations and relations on words:

  1. 1.

    Concatenation. The word \(\eta\) is adjoined immediately to the right of the word \(\xi\); the resulting word is denoted \(\xi\eta\) and is called the concatenation of \(\xi\) and \(\eta\) in that order. For example, the concatenation of \(\partial\partial\varrho\) and \(\varrho\partial\) yields \(\partial\partial\varrho\varrho\partial\).

  2. 2.

    Identity. Two words are identical if they consist of the same symbols occurring in the same order. Coincidence is checked by comparing symbols in order and is denoted \(\xi \equiv \eta\); non-coincidence is written \(\xi \not\equiv \eta\). For example, \(\partial\varrho\varrho\partial\equiv \partial\varrho\varrho\partial\) and \(\partial\varrho\varrho\partial\not\equiv \partial\varrho\partial\partial\).

Identity and concatenation enjoy the following properties, each of which is evident from the manner in which words are written.

  1. (a)

    Equivalence: \(\xi\equiv\xi\); if \(\xi\equiv\eta\), then \(\eta\equiv\xi\); if \(\xi\equiv\eta\) and \(\eta\equiv\zeta\), then \(\xi\equiv\zeta\).

  2. (b)

    Congruence: if \(\xi\equiv \eta\), then \(\xi\zeta\equiv\eta\zeta\) and \(\zeta\xi\equiv\zeta\eta\).

  3. (c)

    Associativity: adjoining \(\zeta\) to \(\xi\eta\) and adjoining \(\eta\zeta\) to \(\xi\) yield the same word, which is denoted \(\xi\eta\zeta\).

  4. (d)

    Cancellation: if \(\xi\zeta\equiv\eta\zeta\) or \(\zeta\xi\equiv\zeta\eta\), then \(\xi\equiv\eta\).

  5. (e)

    Editor property: if \(\xi\eta\equiv\zeta\theta\), then either \(\xi\equiv\zeta\), or one of the words \(\xi\), \(\zeta\) is obtained from the other by adjoining some word on the right.

  6. (f)

    Lengthening: the words \(\xi\eta\) and \(\eta\xi\) are not identical to \(\xi\).

Parts of a word are defined in terms of the basic relations. A word \(\eta\) is called an initial subword of a word \(\xi\) if \(\xi\equiv\eta\zeta\) for some word \(\zeta\), or if \(\xi\equiv\eta\). A word \(\eta\) occurs in \(\xi\) and is called a subword of \(\xi\) if \(\eta\) is an initial subword of \(\xi\), or if \(\xi\equiv\zeta\theta\) where \(\eta\) is an initial subword of \(\theta\). If \(\eta\) is a (initial) subword of \(\xi\) and \(\xi\not\equiv\eta\), then \(\eta\) is called a proper (initial) subword of \(\xi\). For example, \(\partial\varrho\partial\) occurs in \(\partial\partial\varrho\partial\varrho\) and is not an initial subword of it, though it is a proper subword.1

  1. 1.

    Replacement. The word \(\xi\) is scanned from left to right in a single pass. The leftmost occurrence of \(\eta\) is replaced by \(\zeta\), after which scanning resumes from the symbol immediately following the replaced occurrence; the inserted word \(\zeta\) is not rescanned, and replaced occurrences do not overlap. The resulting word is denoted \(\xi[\zeta/\eta]\) and is called the result of replacing \(\eta\) by \(\zeta\) in \(\xi\). If \(\eta\) does not occur in \(\xi\), then \(\xi[\zeta/\eta]\) is the original word \(\xi\). For example, \(\partial\partial\partial[\varrho/\partial\partial]\equiv\varrho\partial\) and \(\partial\varrho\partial[\partial\partial/\partial]\equiv\partial\partial\varrho\partial\partial\).

Replacement is introduced as another basic operation. In terms of identity and concatenation alone, it is expressible only by recursion on a word, whereas recursion in the special language exists only in the form of rules for generating classes of words (§ I.2); the corresponding definition is given in Remark I.2.1.2

It is also taken as evident that concatenation of words, testing identity/non-identity of words, testing occurrence/non-occurrence of one word in another, and replacement are unambiguous procedures (algorithms) that always terminate in finitely many steps.

This system of operations is closely related to Grzegorczyk's formal theory of concatenation, whose main axioms are associativity and the editor property; unlike a formal theory, however, the present section sets out a contentual metatheory of operations on words.

I.2. Generation of classes of words

A further notion of the special language is a property of words, such as ``to be a formula'' or ``to be a theorem''. Words possessing a property form a class. A class is not an object: the expression ``a word belongs to the class'' stands for ``the word possesses the property''. A class is specified by a recursive definition consisting of three parts:

  1. 1.

    Basis. Specific words belonging to the class are exhibited, or a previously defined class is indicated all of whose words belong to the new class.

  2. 2.

    Rules. Each rule specifies how, from words belonging to the class, another word belonging to the class is formed.

  3. 3.

    Closure. No other words belong to the class.

An example is the class of \(\partial\)-words. Basis: the word \(\partial\). Rule: if \(\xi\) is a \(\partial\)-word, then \(\xi\partial\) is a \(\partial\)-word. Closure: there are no other \(\partial\)-words. Relations between words are defined in the same way; the basis and rules then apply to pairs of words.

Construction. The meaning of a recursive definition is given by the notion of a construction. A construction is a finite sequence of words written down one after another, in which each word is either taken from the basis or obtained by one of the rules from words appearing earlier in the sequence. A word belongs to the class if and only if a construction is exhibited in which it stands last. The sequence \(\partial\), \(\partial\partial\), \(\partial\partial\partial\) is a construction of \(\partial\partial\partial\). Closure asserts precisely this: membership in the class is established by exhibiting a construction and by nothing else. In Part I, a sequence of steps is given by means of the special language as words written in succession; when formalizing such a sequence itself as a single word in Part II, the alphabet is extended by a fresh separator symbol (see § II.3).

Absence of circularity. In the formulation of the rule ``if \(\xi\) is a \(\partial\)-word, then \(\xi\partial\) is a \(\partial\)-word'', the property being defined appears in both the premise and the conclusion, making the definition look self-referential. Yet there is no vicious circle here, because the rule specifies not a logical dependence requiring prior knowledge of the entire class, but a step in verifying an exhibited sequence of words. Each word in the sequence is checked in order from left to right: its initial elements have no predecessors and can be verified only by the basis, without appealing to the rules; each subsequent word is either taken from the basis or obtained by one of the rules from words already verified earlier in the same sequence. Checking each step reduces to inspecting concrete words by the means of § I.1 (identity, concatenation, replacement) and, when a previously defined class appears in the basis, to its construction. Neither the totality of all words of the class nor the logic of compound statements (§ I.3) is invoked.

Remark I.2.1 (Replacement as a generated relation). Let words \(\eta\) and \(\zeta\) be fixed. The relation ``\(\tau\) is the result of replacement in \(\xi\)'' is generated by the following rules. Basis: if \(\eta\) does not occur in \(\xi\), then the result of replacement in \(\xi\) is \(\xi\); the result of replacement in \(\eta\) is \(\zeta\). Rules: let \(\theta\) be a word such that \(\eta\) occurs in no proper initial subword of \(\theta\eta\); then the result of replacement in \(\theta\eta\) is \(\theta\zeta\); if \(\tau\) is the result of replacement in \(\xi\), then \(\zeta\tau\) is the result of replacement in \(\eta\xi\), and \(\theta\zeta\tau\) is the result of replacement in \(\theta\eta\xi\). Closure: no other pairs belong to the relation. This definition uses only identity, concatenation, and occurrence; existence and uniqueness of the result for every word \(\xi\) are proved by induction (§ I.3).

I.3. Statements about words and parse trees

Statements of the special language speak about words and about classes of words generated by the rules of § I.2.

Elementary statements. Elementary statements are of two kinds. A statement of the first kind reports about exhibited words something established by inspecting them: two words are identical; one word occurs in another; a word is the result of a given replacement. Verification terminates in finitely many steps and has one of two outcomes: the statement is true or false. A statement of the second kind reports that an exhibited word belongs to a generated class; it is true if the word has a construction, and is established by exhibiting such a construction (its verification always terminates in finitely many steps). Exhaustive search over constructions according to the rules eventually finds a construction if one exists, but when none exists it may in general fail to terminate. Classes of words for which there exists a finite decision procedure (algorithm) establishing for every word both the presence and the absence of a construction are called decidable (such are, for example, the classes of formulas of PC and predicate calculus, as well as the class of theorems of PC; see Remark II.2.4). Many recursively defined classes (in particular, the class of theorems of predicate calculus and many formal theories) admit no such algorithm. Regardless of the decidability of the class, the classical bivalence assumption is adopted for statements of the second kind: for any word, a construction either exists (the statement is true) or does not exist (the statement is false).

Parse trees. A construction from § I.2 is written as a linear sequence, yet the same dependency of steps is conveniently depicted as a branching diagram—a parse tree (or construction tree) of a word in the given class (Fig. 2a). At the root of such a tree stands the word being checked; from each compound node edges lead to its child nodes—the words from which that node is directly obtained by one of the rules of the definition; at the leaves of the tree stand words of the basis (or words of a previously defined class included in the basis). Fixed symbols, suffixes, parentheses, or other insertions added by the rule itself (the transition operations between nodes) do not form separate nodes or leaves of the tree: only the premises of the rule—words of the class—serve as nodes. Thus, for the unary rule \(\xi \mapsto \xi\partial\) from the definition of \(\partial\)-words, the parse tree of \(\partial\partial\partial\) is linear (Fig. 2b): at each step the operation of adjoining \(\partial\) acts, and the leaf is the basis word \(\partial\). The existence of a parse tree is equivalent to the existence of a construction: a linear sequence is obtained by listing the nodes of the tree from the leaves to the root. Checking an exhibited tree reduces to inspecting each transition from child nodes to a parent node for conformity with the rules of the definition and checking that the leaves belong to the basis.

Fig. 2. Parse tree: (a) general scheme with rule operations on transitions to child nodes (premises); (b) linear parse tree of \(\partial\partial\partial\) under the rule \(\xi \mapsto \xi\partial\).

Compound and general statements of the special language. From elementary statements of the special language, compound statements are formed using the words ``not'', ``and'', ``or'', ``if …, then'', and the phrase ``if and only if''. In the special language these connectives are used in a fixed sense without temporal or causal connotations: ``not …'' denotes the negation of a statement, i.e., the statement that is true precisely when the original statement is false; ``… and …'' requires both parts to be true jointly and regardless of their order; ``… or …'' is non-exclusive (it suffices that at least one part be true); ``if …, then …'' is established by an argument deriving the conclusion from the assumption of the premise (or specifies a construction step from premises to result), allows one to infer the truth of the consequent given a true premise, and is refuted by exhibiting a case in which the premise is true and the conclusion is false. The phrase ``… if and only if …'' combines two converse conditional statements.

A statement containing metavariables, such as ``\(\xi\) is an initial subword of \(\xi\eta\)'', refers to all words that can be substituted for the metavariables and is read with ``for all words \(\xi\), \(\eta\)''. It is true if every statement obtained by such a substitution is true. A general statement is justified by an argument valid for any exhibited words (including case analysis and proof by contradiction) and is refuted by exhibiting a counterexample. A statement ``there exists a word \(\xi\) such that …'' is established by exhibiting such a word or a method for writing it down.

Restricted metavariables. A letter may be assigned to a class of words; such a letter is called a metavariable restricted to that class. Before a statement written with a restricted metavariable, the condition ``if the word belongs to the class, then'' is understood. Thus, if the letter \(n\) is assigned to \(\partial\)-words, then ``\(n\partial\) is a \(\partial\)-word'' means: for every word \(\xi\), if \(\xi\) is a \(\partial\)-word, then \(\xi\partial\) is a \(\partial\)-word. This general statement is true: if \(\xi\) is a \(\partial\)-word, then a construction of \(\xi\) extended by \(\xi\partial\) yields a construction of \(\xi\partial\).

Induction on the construction. A general statement ``every word of the class has property \(S\)'' is established by verifying two conditions:

  1. 1)

    the basis words have property \(S\);

  2. 2)

    each rule preserves property \(S\): if the premises of the rule (child nodes) have it, then the resulting word (parent node) also has it.

This method of proof is called induction on the construction, or structural induction. Let a word of the class be exhibited; then a parse tree for it exists. By the first condition, all leaves of the tree have property \(S\); by the second condition, at each transition from child nodes to a parent node, property \(S\) is passed toward the root. Since the tree is finite, property \(S\) is reached in finitely many steps at the root—for the original word. Closure is essential here: without it, a word of the class might have no parse tree.

Non-membership. The statement ``a word does not belong to the class'' means that no parse tree for it exists in that class. When every rule of the definition builds a word from strictly shorter words (in particular, from proper subwords), there are finitely many ways to decompose a node into child nodes, and every attempt to parse from the root terminates in finitely many steps; if no branch reaches basis leaves, the word does not belong to the class (such is the parsing of formulas by Proposition II.1.5). In general, the premises of a rule need not be shorter than the result (such is the inference rule in § II.2), so top-down search need not terminate. Sometimes non-membership can be proved by induction—by specifying a property possessed by all words of the class and not possessed by the given word. Thus, every \(\partial\)-word consists solely of symbols \(\partial\) (the basis word does, and the rule adjoins \(\partial\)); the word \(\partial\varrho\) contains \(\varrho\), so it is not a \(\partial\)-word. However, neither method guarantees a proof of non-membership: the first applies only when top-down search terminates, and the second requires finding a suitable property, which does not follow from the definition and may in general be impossible.

Part II. Syntax

II.1. Alphabet, words, and syntactic predicates

An object alphabet \(\Alf\) consisting of seven symbols is fixed: \[\pp\qquad (\qquad )\qquad \neg\qquad {\land}\qquad {\lor}\qquad {\to}\] Words in the alphabet \(\Alf\), operations and relations on them (concatenation, identity, occurrence, replacement), and metavariables \(\xi, \eta, \zeta, \theta, \tau\) are understood in the sense of § I.1: in particular, every word is non-empty, and the notation \((\xi\to\eta)\) denotes the concatenation of the single-symbol word \((\), the word \(\xi\), the single-symbol word \(\to\), the word \(\eta\), and the single-symbol word \()\). Properties of words generated by recursive definitions (§ I.2) are written as predicates of the special language; to distinguish their argument parentheses from the parentheses of the alphabet \(\Alf\), parentheses of predicates are highlighted in blue, and any predicate argument other than a single metavariable is enclosed in single quotes: \(\Form\mo \q{(\xi\to\eta)}\mc \).

Propositional variables are words composed of symbols \(\pp\) and enclosed in parentheses: \((\pp)\), \((\pp\pp)\), \((\pp\pp\pp)\), etc. This notation satisfies three requirements. The supply of variables must be unlimited, so a finite set of letters is insufficient. This supply must be generated by rules over a finite alphabet (§ I.2), so letters with numerical subscripts, which require digits and the notion of an index, are not used. Finally, replacement of a variable (§ I.1) must act without error, so no variable may occur inside another: the word \(\pp\pp\pp\) is a subword of \(\pp\pp\pp\pp\), and replacement would insert a word inside it, whereas the variable \((\pp\pp\pp)\) is not a subword of the variable \((\pp\pp\pp\pp)\).

Definition II.1.1 (The predicate ``to be a propositional variable''). The predicate \(\Var\mo \xi\mc \) is defined recursively:

  1. A1.

    Basis: \(\Var\mo \q{(\pp)}\mc \).

  2. A2.

    Rule: if \(\Var\mo \q{(\xi)}\mc \), then \(\Var\mo \q{(\xi\pp)}\mc \).

  3. A3.

    Closure: no other words have the property \(\Var\).

The words \((\pp)\), \((\pp\pp)\), \((\pp\pp\pp)\), etc. have the property \(\Var\). By induction on the construction (§ I.3), every variable has the form \((\xi)\), where \(\xi\) consists solely of symbols \(\pp\); in particular, the parentheses \((\) and \()\) occur in a variable only as its first and last symbol.

Definition II.1.2 (The predicate ``to be a formula''). The predicate \(\Form\mo \xi\mc \) is defined recursively:

  1. F1.

    Basis: if \(\Var\mo \xi\mc \), then \(\Form\mo \xi\mc \).

  2. F2.

    Rule for negation: if \(\Form\mo \xi\mc \), then \(\Form\mo \q{\neg\xi}\mc \).

  3. F3.

    Rules for binary connectives: if \(\Form\mo \xi\mc \) and \(\Form\mo \eta\mc \), then \[\Form\mo \q{(\xi\land\eta)}\mc ,\qquad \Form\mo \q{(\xi\lor\eta)}\mc ,\qquad \Form\mo \q{(\xi\to\eta)}\mc .\]

  4. F4.

    Closure: no other words have the property \(\Form\).

The implication in the basis F1 acts in one direction: every variable is a formula, whereas formulas obtained by rules F2 and F3 contain connectives and are not variables.

To the class of formulas are assigned the restricted metavariables (§ I.3) \(\mathcal{A}, \mathcal{B}, \mathcal{C}, \mathcal{D}\), and to the class of variables the restricted metavariables \(p, q, r\) (Fig. 3). All these letters belong to the special language and do not belong to the object alphabet \(\Alf\).

Fig. 3. Ranges of metavariables of the three sorts, with sample values.

Omission of parentheses. Parentheses are omitted only in metalanguage notation; the word in the alphabet \(\Alf\) itself contains all of them. The signs \(\circ, \bullet\) denote an arbitrary binary connective among \(\land, \lor, \to\). Outer parentheses of binary connectives are omitted: \(\mathcal{A} \circ \mathcal{B}\) denotes the word \((\mathcal{A}\circ\mathcal{B})\). When occurring inside a longer formula, outer parentheses are restored: \(\neg(\mathcal{A} \to \mathcal{B})\), \(\mathcal{C} \to (\mathcal{A} \to \mathcal{B})\). Rule F2 introduces no parentheses, so \(\neg\mathcal{A} \to \mathcal{B}\) unambiguously denotes the word \((\neg\mathcal{A} \to \mathcal{B})\), i.e., an implication with antecedent \(\neg\mathcal{A}\), rather than the negation \(\neg(\mathcal{A} \to \mathcal{B})\). Further customary conventions (\(\land, \lor\) binding more tightly than \(\to\); chains of implications associating to the right) are not used in the present text.

Proposition II.1.3 (Replacement of a variable by a formula). The result \(\mathcal{A}[\mathcal{B}/p]\) (§ I.1) of replacing the variable \(p\) by the formula \(\mathcal{B}\) in a formula \(\mathcal{A}\) is a formula, and replacement commutes with connectives: \((\neg\mathcal{A})[\mathcal{B}/p] \equiv \neg\mathcal{A}[\mathcal{B}/p]\) and \((\mathcal{A} \circ \mathcal{C})[\mathcal{B}/p] \equiv \mathcal{A}[\mathcal{B}/p] \circ \mathcal{C}[\mathcal{B}/p]\), where \(\circ\) is one of \(\land, \lor, \to\) (the parentheses in \((\neg\mathcal{A})[\mathcal{B}/p]\) indicate that replacement is applied to the entire word \(\neg\mathcal{A}\)).

Proof. The parentheses \((\) and \()\) occur in a variable only as its first and last symbol, the symbol \(\pp\) occurs in a formula only inside variables, and connectives do not occur in variables. Hence, when scanning a formula from left to right (§ I.1), no occurrence of the variable \(p\) crosses the outer parentheses or connectives of a formula or is a proper subword of another variable. Consequently, replacement \([\mathcal{B}/p]\) does not affect the initial symbol \(\neg\) in \(\neg\mathcal{A}\), and in \((\mathcal{A}\circ\mathcal{C})\) it acts independently on the subwords \(\mathcal{A}\) and \(\mathcal{C}\). Commutativity follows. Structural induction on \(\mathcal{A}\) (§ I.3): for a variable the result is \(\mathcal{B}\) or the variable itself; for a compound formula, commutativity, the induction hypothesis, and rules F2, F3 apply.

Lemma II.1.4 (Initial subwords). No formula is a proper initial subword of another formula.

Proof. Every formula contains at least three symbols and begins either with \((\) or with \(\neg\). The form of a formula is determined by its first two symbols: a formula beginning with \(\neg\) is obtained by rule F2; a formula beginning with \((\) is a variable if its second symbol is \(\pp\), and is obtained by rule F3 if its second symbol is \((\) or \(\neg\) (since every formula \(\mathcal{A}\) in \((\mathcal{A}\circ\mathcal{B})\) begins with \((\) or \(\neg\)). By structural induction on the construction of a formula, we prove the following statement: for every other formula, neither of the two formulas is a proper initial subword of the other. Suppose, to the contrary, that one of them is a proper initial subword of the other, i.e., the second is obtained from the first by adjoining some word \(\eta\) on the right. The first two symbols of both formulas then coincide, and they have the same form. Properties (d)–(f) from § I.1 are used.

Basis (F1): the given formula is a variable; then the second formula is also a variable. The closing parenthesis \()\) occurs in a variable only as its last symbol. The last symbol of the shorter variable is \()\), which in the longer variable is neither the first symbol nor the last, since it is followed by the word \(\eta\). Contradiction.

Step for F2: the given formula has the form \(\neg\mathcal{C}\), where the claim holds for \(\mathcal{C}\); then the second formula has the form \(\neg\mathcal{A}\). Cancellation of \(\neg\) shows that one of \(\mathcal{A}\), \(\mathcal{C}\) is a proper initial subword of the other, contradicting the induction hypothesis for \(\mathcal{C}\).

Step for F3: the given formula has the form \((\mathcal{C}\circ\mathcal{D})\), where the claim holds for \(\mathcal{C}\) and \(\mathcal{D}\); then the second formula has the form \((\mathcal{A}\bullet\mathcal{B})\). Consider the case \((\mathcal{A}\bullet\mathcal{B})\eta \equiv (\mathcal{C}\circ\mathcal{D})\); the other case follows by interchanging roles. After cancelling the opening parenthesis, \(\mathcal{A}\) and \(\mathcal{C}\) are initial subwords of the same word. By the editor property, either \(\mathcal{A} \equiv \mathcal{C}\) or one of these formulas is a proper initial subword of the other; the second alternative contradicts the induction hypothesis for \(\mathcal{C}\). Cancelling \(\mathcal{A}\) yields \(\bullet\mathcal{B})\eta \equiv \circ\mathcal{D})\), whence \(\bullet \equiv \circ\). The same argument for \(\mathcal{B}\) and \(\mathcal{D}\) yields \(\mathcal{B} \equiv \mathcal{D}\). After cancellation there remains the identity of \()\eta\) with \()\), contradicting the lengthening property.

Proposition II.1.5 (Unique readability). Every formula has exactly one of the following forms: a variable; \(\neg\mathcal{A}\); \((\mathcal{A}\circ\mathcal{B})\), where \(\circ\) is one of \(\land, \lor, \to\). Moreover, the formulas \(\mathcal{A}, \mathcal{B}\) and the symbol \(\circ\) are uniquely determined.

Proof. The form of a formula is determined by its first two symbols: the first symbol singles out formulas of the form \(\neg\mathcal{A}\), while among formulas beginning with \((\), variables have second symbol \(\pp\) and formulas of the form \((\mathcal{A}\circ\mathcal{B})\) have second symbol \((\) or \(\neg\). In the case of negation, uniqueness of \(\mathcal{A}\) is immediate. Let \((\mathcal{A}\circ\mathcal{B}) \equiv (\mathcal{C}\bullet\mathcal{D})\). If \(\mathcal{A} \not\equiv \mathcal{C}\), then by the editor property (§ I.1) one of these formulas is a proper initial subword of the other, contradicting Lemma II.1.4. Hence \(\mathcal{A} \equiv \mathcal{C}\), whence \(\circ \equiv \bullet\) and \(\mathcal{B} \equiv \mathcal{D}\).

II.2. Axioms and theorems of the calculus

The next class of words introduced here is that of theorems. It is defined in the same recursive manner as the classes of variables and formulas: first the class of axioms is defined, and then it is extended to the class of theorems.

Axioms are specified by schemas.

Definition II.2.1 (The predicate ``to be an axiom''). A word \(\xi\) has the property \(\Ax\) (written \(\Ax\mo \xi\mc \)) and is called an axiom if there exist formulas \(\mathcal{A}, \mathcal{B}, \mathcal{C}\) such that \(\xi\) is identical to one of the following formulas (written with outer parentheses omitted):

  • affirmation of the consequent: \(\mathcal{A} \to (\mathcal{B} \to \mathcal{A})\);

  • Frege's axiom: \((\mathcal{A} \to (\mathcal{B} \to \mathcal{C})) \to ((\mathcal{A} \to \mathcal{B}) \to (\mathcal{A} \to \mathcal{C}))\);

  • conjunction elimination: \((\mathcal{A} \land \mathcal{B}) \to \mathcal{A}\),   \((\mathcal{A} \land \mathcal{B}) \to \mathcal{B}\);

  • conjunction introduction: \(\mathcal{A} \to (\mathcal{B} \to (\mathcal{A} \land \mathcal{B}))\);

  • disjunction introduction: \(\mathcal{A} \to (\mathcal{A} \lor \mathcal{B})\),   \(\mathcal{B} \to (\mathcal{A} \lor \mathcal{B})\);

  • constructive dilemma: \((\mathcal{A} \to \mathcal{C}) \to ((\mathcal{B} \to \mathcal{C}) \to ((\mathcal{A} \lor \mathcal{B}) \to \mathcal{C}))\);

  • Duns Scotus's law: \(\neg\mathcal{A} \to (\mathcal{A} \to \mathcal{B})\);

  • negation introduction: \((\mathcal{A} \to \mathcal{B}) \to ((\mathcal{A} \to \neg\mathcal{B}) \to \neg\mathcal{A})\);

  • law of excluded middle: \(\mathcal{A} \lor \neg\mathcal{A}\).

The expressions in this list contain metavariables and are not words in the alphabet \(\Alf\); they are called axiom schemas, and the words obtained for concrete formulas \(\mathcal{A}, \mathcal{B}, \mathcal{C}\) are called instances of these schemas. No other words have the property \(\Ax\).

Since every instance is built from formulas \(\mathcal{A}, \mathcal{B}, \mathcal{C}\) by rules F2 and F3, every axiom is a formula. By Proposition II.1.3, applying replacement \([\mathcal{D}/p]\) to an instance of a schema reduces to applying it to the constituent formulas \(\mathcal{A}, \mathcal{B}, \mathcal{C}\) and therefore yields an instance of the same schema.

Definition II.2.2 (The predicate ``to be a theorem of PC''). The predicate \(\Thm\mo \xi\mc \) is defined recursively:

  1. T1.

    Basis: if \(\Ax\mo \mathcal{A}\mc \), then \(\Thm\mo \mathcal{A}\mc \).

  2. T2.

    Rule of Modus Ponens: if \(\Thm\mo \mathcal{A}\mc \) and \(\Thm\mo \q{\mathcal{A} \to \mathcal{B}}\mc \), then \(\Thm\mo \mathcal{B}\mc \).

  3. T3.

    Closure: no other words have the property \(\Thm\).

Example of a construction and derivation tree. A construction (§ I.2) for the predicate \(\Thm\) is called a derivation (or proof), and the corresponding parse tree (§ I.3) is called a derivation tree. The formula \((\pp) \to (\pp)\) is not an axiom, yet it belongs to the class of theorems: its derivation consists of five steps (three instances of axiom schemas and two applications of Modus Ponens), and its derivation tree is shown in Fig. 4. Unlike parsing a formula under rules F2–F3, moving from the root to child nodes under rule T2 does not shorten words; rather, they lengthen by the premise \(\mathcal{A}\) detached by Modus Ponens (see § I.3, ``Non-membership''). Replacing \((\pp)\) by an arbitrary formula \(\mathcal{A}\) in all nodes of this tree yields a derivation schema for the theorem \(\mathcal{A} \to \mathcal{A}\).

Fig. 4. Derivation tree of the theorem \((\pp) \to (\pp)\): the leaves are three axioms (basis T1), and the internal node and root are obtained by Modus Ponens (T2). Listing the nodes from the leaves to the root gives a five-step construction.
Fig. 5. Theorems as a separate class of formulas. Variables are not theorems (§ III.2).

Remark II.2.3 (Finite list of axioms). If in the 11 schemas the metavariables \(\mathcal{A}, \mathcal{B}, \mathcal{C}\) are replaced by the concrete variables \((\pp), (\pp\pp), (\pp\pp\pp)\), one obtains 11 concrete formulas; at the leaves of their parse trees (§ I.3) stand these three variables. An arbitrary axiom is obtained by grafting the parse trees of formulas \(\mathcal{A}, \mathcal{B}, \mathcal{C}\) onto those leaves, which by Proposition II.1.3 coincides with replacing a variable at the leaves of the tree by a formula. Therefore the same class of axioms (and the same class of theorems) is generated from a finite basis—the 11 indicated formulas—by adjoining the replacement rule \(\mathcal{A} \mapsto \mathcal{A}[\mathcal{B}/p]\) (when replacing several variables sequentially, fresh intermediate variables are used so as not to affect occurrences inside already grafted formulas).

Remark II.2.4 (Decidability). The classes of variables, formulas, axioms, and theorems of PC are decidable (§ I.3): for any word \(\xi\), both the holding and the failure of each of the predicates \(\Var\mo \xi\mc \), \(\Form\mo \xi\mc \), \(\Ax\mo \xi\mc \), \(\Thm\mo \xi\mc \) are established in finitely many steps. For variables, formulas, and axioms, the decision procedure is parsing by Proposition II.1.5: each parsing step passes to proper subwords of the word being parsed, so parsing terminates, after which membership in the class of axioms is checked by comparing subformulas against the finite list of schemas. For theorems, there also exists a finite proof-search method based on the functional model of the propositional calculus.

II.3. Derivability in the context of a list of hypotheses

In a set-theoretic presentation, the derivability relation connects an arbitrary, possibly infinite, set of formulas and a single formula. In the finitary language of Part I there is no notion of set, and hypotheses are written as a finite list of formulas. To format a list of formulas as a single word and parse it unambiguously into its constituent formulas, the alphabet \(\Alf\) is extended by a fresh separator symbol—the comma; the extended alphabet is denoted \(\Alf'\).

Since the rules of Definitions II.1.1, II.1.2, II.2.1, and II.2.2 do not use the comma, the predicates \(\Var\), \(\Form\), \(\Ax\), and \(\Thm\) over \(\Alf'\) generate the exact same classes of words as over \(\Alf\), and the meaning of the restricted metavariables \(\mathcal{A}, \mathcal{B}, \mathcal{C}, \mathcal{D}\) and \(p, q, r\) remains unchanged. The comma allows one to define a new class of words in \(\Alf'\): lists of formulas. For arbitrary words of \(\Alf'\) (including words of the original alphabet \(\Alf\)), Definition II.3.1 uses uppercase Greek letters \(\Gamma, \Delta\).

Definition II.3.1 (List of formulas and occurrence in a list). The predicate \(\List\mo \Gamma\mc \) and the relation \(\mathcal{A} \trianglelefteq \Gamma\) (``formula \(\mathcal{A}\) occurs in list \(\Gamma\)'') are defined by simultaneous recursion (§ I.2):

  1. L1.

    Single-element list: \(\List\mo \mathcal{B}\mc \) and \(\mathcal{B} \trianglelefteq \mathcal{B}\).

  2. L2.

    Appending a formula to a list: if \(\List\mo \Gamma\mc \), then \(\List\mo \q{\Gamma,\mathcal{B}}\mc \) and \(\mathcal{B} \trianglelefteq \Gamma,\mathcal{B}\); if moreover \(\mathcal{A} \trianglelefteq \Gamma\), then \(\mathcal{A} \trianglelefteq \Gamma,\mathcal{B}\).

  3. L3.

    Closure: no other words are lists, and no other pairs of a formula and a list are related by \(\trianglelefteq\).

Formulas contain no comma, so by the editor property (§ I.1) and Lemma II.1.4 the decomposition of a list into its constituent formulas is unique. By the same device—extending the alphabet by a fresh separator—any construction in the sense of § I.2 (in particular, a finite derivation in the calculus) is written as a single word admitting unique parsing into individual steps and step-by-step verification of rules; thus the initial metalinguistic picture of a sequence of words written in succession is replaced by a construction on words.

A list of hypotheses is fixed and called a context. Instead of a binary relation between lists and formulas, a predicate on formulas depending on the context as a parameter is introduced. The empty context, i.e., the absence of hypotheses, is also permitted. The empty context is not a word (there is no empty word in the language; see § I.1): it is the case where no parameter is specified, so no alphabet symbol is required for it. Henceforth \(\Gamma, \Delta\) are used as restricted metavariables for lists of formulas with the convention that they may also denote the empty context. When \(\Gamma\) is empty, no formula occurs in it, \(\Gamma, \mathcal{A}\) denotes the single-element list \(\mathcal{A}\), and \(\Gamma \vdash \mathcal{A}\) takes the form \(\vdash \mathcal{A}\).

Definition II.3.2 (Derivability in a context). Let \(\Gamma\) be a context. The predicate \(\Gamma \vdash \mathcal{A}\) (``formula \(\mathcal{A}\) is derivable in context \(\Gamma\)'') is defined recursively:

  1. D1.

    Axiom basis: if \(\Ax\mo \mathcal{A}\mc \), then \(\Gamma \vdash \mathcal{A}\).

  2. D2.

    Hypothesis basis: if \(\mathcal{A} \trianglelefteq \Gamma\), then \(\Gamma \vdash \mathcal{A}\).

  3. D3.

    Rule of Modus Ponens: if \(\Gamma \vdash \mathcal{A}\) and \(\Gamma \vdash \mathcal{A} \to \mathcal{B}\), then \(\Gamma \vdash \mathcal{B}\).

  4. D4.

    Closure: no other formulas are derivable in context \(\Gamma\).

In the empty context, rule D2 does not apply since no formula occurs in it: derivability \(\vdash \mathcal{A}\) is defined by rules D1, D3, D4.

Example of a derivation and derivation tree in a context. A derivation in a context is a construction (§ I.2) for the predicate \(\Gamma \vdash \mathcal{A}\), i.e., a finite sequence of formulas each of which is an axiom (D1), a hypothesis from the list \(\Gamma\) (D2), or obtained from two preceding formulas by Modus Ponens (D3). For any variables \(p, q\), one has \(p, \neg p \vdash q\):

1.\(\neg p\)hypothesis (D2)
2.\(\neg p \to (p \to q)\)axiom: Duns Scotus's law (D1)
3.\(p \to q\)Modus Ponens (D3): from 1 and 2
4.\(p\)hypothesis (D2)
5.\(q\)Modus Ponens (D3): from 4 and 3

Unlike Fig. 4, where a concrete propositional variable \((\pp)\) is fixed and a single derivation in \(\Alf\) is exhibited, the table replaces propositional variables (\((\pp), (\pp\pp), \dots\)) with restricted metavariables \(p, q\) over variables: the lines of the table are not words in \(\Alf\) and define a derivation schema, which becomes a concrete derivation upon substituting (§ I.3) any concrete variables for \(p\) and \(q\). Replacing the metavariables \(p, q\) by formula metavariables \(\mathcal{A}, \mathcal{B}\) yields the general schema \(\mathcal{A}, \neg\mathcal{A} \vdash \mathcal{B}\), whose derivation tree (Fig. 6) directly matches the axiom schemas of Definition II.2.1 and rules D1–D3 of Definition II.3.2: at the leaf of basis D1 stands the schema of Duns Scotus's law \(\neg\mathcal{A} \to (\mathcal{A} \to \mathcal{B})\) itself, and substituting any concrete formulas for \(\mathcal{A}\) and \(\mathcal{B}\) turns this tree into the parse tree of a concrete derivation (the passage from the variable schema \(p, \neg p \vdash q\) to the formula schema \(\mathcal{A}, \neg\mathcal{A} \vdash \mathcal{B}\) can also be carried out by replacing a variable by a formula in a derivation via Proposition II.3.6; see ``Continuation of the example'' below).

Fig. 6. Derivation tree schema for \(\mathcal{A}, \neg\mathcal{A} \vdash \mathcal{B}\) in the context \(\mathcal{A}, \neg\mathcal{A}\) for arbitrary formulas \(\mathcal{A}, \mathcal{B}\): the leaves correspond to the two bases of Definition II.3.2—axioms (D1) and hypotheses of the list (D2)—while the internal node and root are obtained by Modus Ponens (D3).

Proposition II.3.3.

  1. (a)

    \(\Thm\mo \mathcal{A}\mc \) if and only if \(\vdash \mathcal{A}\).

  2. (b)

    Replacing the premise \(\Ax\mo \mathcal{A}\mc \) by \(\Thm\mo \mathcal{A}\mc \) in rule D1 yields the same predicate.

Proof. (a) Rules D1 and D3 without context coincide with the rules for \(\Thm\). (b) By (a), a theorem has a derivation in the empty context using only D1 and D3; the same derivation is valid in context \(\Gamma\).

Proposition II.3.4 (Monotonicity in the context). If \(\Gamma \vdash \mathcal{A}\) and every formula occurring in \(\Gamma\) occurs in context \(\Delta\), then \(\Delta \vdash \mathcal{A}\). In particular, \(\Gamma, \mathcal{B} \vdash \mathcal{A}\).

Proof. Induction on the derivation: rules D1 and D3 do not depend on the context, and a hypothesis from \(\Gamma\) is a hypothesis from \(\Delta\).

Proposition II.3.5 (Deduction Theorem; J. Herbrand, 1930). \(\Gamma,\mathcal{A} \vdash \mathcal{B}\) if and only if \(\Gamma \vdash \mathcal{A} \to \mathcal{B}\).

Proof. The converse is Modus Ponens. For the forward direction, apply induction on the derivation of \(\Gamma,\mathcal{A} \vdash \mathcal{B}\). If \(\mathcal{B} \equiv \mathcal{A}\), use the theorem \(\mathcal{A} \to \mathcal{A}\), derived by two applications of Modus Ponens to instances of Frege's axiom and affirmation of the consequent (Fig. 4). If \(\mathcal{B}\) is an axiom or a hypothesis from \(\Gamma\), apply affirmation of the consequent \(\mathcal{B} \to (\mathcal{A} \to \mathcal{B})\). A Modus Ponens step is handled by Frege's axiom.

By \(\Gamma[\mathcal{B}/p]\) we denote the context obtained from \(\Gamma\) by replacing the variable \(p\) with the formula \(\mathcal{B}\) (§ I.1): for a non-empty list \(\Gamma\), the word \(\Gamma[\mathcal{B}/p]\) coincides with the result of applying replacement \([\mathcal{B}/p]\) to each of its formulas, since the comma does not occur in variables; the empty context remains empty under replacement.

Proposition II.3.6 (Replacement in a derivation). If \(\Gamma \vdash \mathcal{A}\), then \(\Gamma[\mathcal{B}/p] \vdash \mathcal{A}[\mathcal{B}/p]\). In particular, if the variable \(p\) does not occur in the formulas of context \(\Gamma\), then \(\Gamma \vdash \mathcal{A}[\mathcal{B}/p]\), and if \(\Thm\mo \mathcal{A}\mc \), then \(\Thm\mo \mathcal{A}[\mathcal{B}/p]\mc \).

Proof. Induction on the derivation of \(\Gamma \vdash \mathcal{A}\). Replacement in an axiom yields an axiom of the same schema. From \(\mathcal{A} \trianglelefteq \Gamma\) it follows that \(\mathcal{A}[\mathcal{B}/p] \trianglelefteq \Gamma[\mathcal{B}/p]\). For Modus Ponens, commutativity of replacement with implication (Proposition II.1.3) is applied.

Proposition II.3.6 requires no restrictions on the variables of \(\mathcal{B}\): replacement is performed in a single pass, and inserted occurrences are not rescanned. A restriction arises only when performing several consecutive replacements if the result must match a prescribed formula: a subsequent replacement affects variables introduced by an earlier one.

Proposition II.3.7 (Invariance under permutation of variables). Let \(\pi\) be a permutation of finitely many variables; all other variables remain fixed. By \(\mathcal{A}^\pi\) and \(\Gamma^\pi\) we denote the formula and context obtained from \(\mathcal{A}\) and \(\Gamma\) by replacing in a single pass each variable \(p\) with \(\pi(p)\) (such a simultaneous replacement is expressible by consecutive replacements (§ I.1) via intermediate variables not occurring in \(\mathcal{A}\) or \(\Gamma\); see Remark II.2.3). Then \(\Gamma \vdash \mathcal{A}\) if and only if \(\Gamma^\pi \vdash \mathcal{A}^\pi\). In particular, \(\Thm\mo \mathcal{A}\mc \) if and only if \(\Thm\mo \mathcal{A}^\pi\mc \).

Proof. The forward direction follows by successive application of Proposition II.3.6 along the defining chain of replacements (or directly by induction on the derivation of \(\Gamma \vdash \mathcal{A}\), since \((\mathcal{A} \to \mathcal{B})^\pi \equiv \mathcal{A}^\pi \to \mathcal{B}^\pi\)). The converse follows by applying the inverse permutation.

Bijectivity is essential: for distinct variables \(p, q\), the formula \(p \to p\) is a theorem and is obtained by identifying variables in \(p \to q\), which is not a theorem (§ III.2).

Continuation of the example. In Fig. 6, the general schema \(\mathcal{A}, \neg\mathcal{A} \vdash \mathcal{B}\) is obtained directly because Duns Scotus's law in Definition II.2.1 is stated as a schema for arbitrary formulas \(\mathcal{A}, \mathcal{B}\). Proposition II.3.6 also allows one to derive \(\mathcal{A}, \neg\mathcal{A} \vdash \mathcal{B}\) from the single variable schema \(p, \neg p \vdash q\) (which uses Duns Scotus's law only for variables, as in the finite basis of Remark II.2.3) by means of two consecutive replacements. For given formulas \(\mathcal{A}, \mathcal{B}\), choose a variable \(q\) not occurring in \(\mathcal{A}\) and a variable \(p\) distinct from \(q\). The first replacement \([\mathcal{A}/p]\) in the derivation of \(p, \neg p \vdash q\) yields \(\mathcal{A}, \neg\mathcal{A} \vdash q\); since \(q\) does not occur in \(\mathcal{A}\), it does not occur in the context \(\mathcal{A}, \neg\mathcal{A}\) either, so the second replacement \([\mathcal{B}/q]\) leaves the hypotheses untouched and yields \(\mathcal{A}, \neg\mathcal{A} \vdash \mathcal{B}\). By monotonicity (Proposition II.3.4), any formula is derivable from any context containing a formula and its negation.

Remark II.3.8 (Limits of the list-based definition). The finiteness of a list suffices for a finitary construction of the propositional calculus, since every derivation uses only finitely many hypotheses. Passing to infinite collections of hypotheses goes beyond the special language of Part I and requires a set-theoretic metatheory.

Part III. Models of the Propositional Calculus

III.1. The purpose of models

Part II defines theorems and derivability as properties of words. The derivability of a formula is confirmed by exhibiting a derivation, whereas non-derivability is not directly visible from the definition: it would require searching through all possible derivations (and because of Modus Ponens, there is the problem of finding a suitable premise \(\mathcal{A}\) that does not appear in the consequent). A model solves this problem. Formulas are assigned elements of an algebra (a valuation of formulas) so that all derivable formulas (theorems) receive one specific value in that algebra; formulas receiving other values are not derivable. A diagram of such an assignment is shown in Fig. 7: the values of variables are chosen arbitrarily, the value of every other formula is determined by its structure, and all theorems receive the value \(1\).

Fig. 7. Model of the propositional calculus. A valuation \(\varepsilon\) assigns elements of an algebra to formulas: variables are mapped to arbitrarily chosen elements, the values of formulas \(\mathcal{A}\) and \(\mathcal{B}\) are computed from the values of the variables occurring in them, and all theorems are mapped to \(1\).

A mathematical model may be used to interpret or justify a phenomenon or construction either outside mathematics or within mathematics itself. A model of the propositional calculus is precisely the latter case: we construct a class of set-theoretic models of a formal calculus. The goal of such modeling is to translate a purely syntactic calculus into the language of algebra (or other branches of mathematics, such as topology) in order, on the one hand, to use a more familiar set of notions and, on the other, to gain access to the developed apparatus of algebraic structures (for an example, see § III.5). At the same time, constructing a model (or, more precisely, a class of models) requires a certain exactness: when translating from the language of the calculus into the language of algebra, one must reproduce all derivable relations among formulas up to equivalence (soundness) while introducing no new ones (completeness).

Moreover, this translation must be arranged so that every result about formulas can be unambiguously interpreted in the models and, conversely, every algebraic result (equation) common to the models of the given class can be unambiguously interpreted (modulo a strictly defined equivalence of formulas) in the calculus. For this reason, the two main requirements on a class of models—soundness and completeness—are decisive in choosing a class of models for a calculus. There may be several (or infinitely many) such classes; such classes may contain only a single model or many (not necessarily isomorphic) models; and their construction may be anything permitted by classical set theory; yet soundness and completeness of the class must hold unconditionally if we wish to have an exact algebraic representation of the calculus.

Note that it is a class of models, rather than a single concrete model, that solves the problem of sound and complete interpretation, because each concrete model of its class may possess particular algebraic properties that fail for the class as a whole and fail (upon reverse translation) in the calculus. This both simplifies and complicates the situation with interpretation: it simplifies it because the set of theorems common to the entire class of models may be considerably narrower than the theory of a single concrete model; it complicates it because many models must be described simultaneously, without overlooking ``extreme cases''.

In this part, the metatheory freely uses sets, functions, and relations; the finitary restrictions of Part I are lifted for convenience and full mathematical freedom of reasoning. The metavariables \(\mathcal{A}, \mathcal{B}, \mathcal{C}, \mathcal{D}\) (for formulas), \(p, q, r\) (at the beginning of the Latin alphabet, for propositional variables), \(\Gamma,\Delta\) (for contexts), and \(\vdash\) (derivability) retain their earlier meanings. As new conventions, letters from the end of the Latin alphabet such as \(x, y, z, w\) are reserved for values of formulas (elements of a model), the Greek letter \(\varepsilon\) for a valuation function, and \(n, m, k, i\) for natural numbers. Subscripts and accents are also used freely to increase the supply of variables.

III.2. The functional model

On the set \(\mathbb{B}=\{0,1\}\), operations are defined by \(\neg x = 1-x\), \(x \land y = \min(x,y)\), \(x \lor y = \max(x,y)\), and \(x \to y = \max(1-x, y)\). The truth table of these operations is: \[\def\arraystretch{1.15} \begin{array}{cc|cccc} x & y & \neg x & x \land y & x \lor y & x \to y \\ \hline 0 & 0 & 1 & 0 & 0 & 1 \\ 0 & 1 & 1 & 0 & 1 & 1 \\ 1 & 0 & 0 & 0 & 1 & 0 \\ 1 & 1 & 0 & 1 & 1 & 1 \end{array}\]

Definition III.2.1 (Valuation). A valuation \(\varepsilon\) assigns to each variable an element \(0\) or \(1\) and extends to all formulas by the equalities \(\varepsilon(\neg\mathcal{A}) = \neg \varepsilon(\mathcal{A})\) and \(\varepsilon(\mathcal{A} \circ \mathcal{B}) = \varepsilon(\mathcal{A}) \circ \varepsilon(\mathcal{B})\). Well-definedness of the extension is guaranteed by unique readability (Proposition II.1.5).

The value \(\varepsilon(\mathcal{A})\) depends only on the values of \(\varepsilon\) on the variables occurring in \(\mathcal{A}\). Therefore a formula all of whose variables lie among \(p_1, \dots, p_n\) defines a function \(f_{\mathcal{A}} \colon \mathbb{B}^n \to \mathbb{B}\). The set \(B_n\) of all such functions with pointwise operations is called the functional model in \(n\) variables; here \(f_{\neg\mathcal{A}} = \neg f_{\mathcal{A}}\) and \(f_{\mathcal{A} \circ \mathcal{B}} = f_{\mathcal{A}} \circ f_{\mathcal{B}}\), where \(\circ\) on the right-hand side is understood pointwise. The set \(B_n\) has \(2^{2^n}\) elements.

Replacement of a variable by a formula corresponds to shifting the valuation: \(\varepsilon(\mathcal{A}[\mathcal{B}/p]) = \varepsilon'(\mathcal{A})\), where the valuation \(\varepsilon'\) agrees with \(\varepsilon\) everywhere except that \(\varepsilon'(p) = \varepsilon(\mathcal{B})\). This is verified by structural induction on \(\mathcal{A}\).

Definition III.2.2 (Tautology and semantic entailment). A formula \(\mathcal{A}\) is a tautology (denoted \(\models_{\mathbb{B}} \mathcal{A}\)) if \(\varepsilon(\mathcal{A})=1\) under every valuation \(\varepsilon\), i.e., \(f_{\mathcal{A}}\) is the function identically equal to \(1\).

A formula \(\mathcal{A}\) logically (semantically) follows from a context \(\Gamma\) (\(\Gamma \models_{\mathbb{B}} \mathcal{A}\)) if for every valuation \(\varepsilon\): whenever \(\varepsilon(\mathcal{C})=1\) for all \(\mathcal{C} \trianglelefteq \Gamma\), one has \(\varepsilon(\mathcal{A})=1\) (that is, the value \(1\) is preserved from the formulas of context \(\Gamma\) to \(\mathcal{A}\)).

When \(\Gamma\) is empty, the premise holds for every valuation, so the notation \(\models_{\mathbb{B}} \mathcal{A}\) agrees with the notation for a tautology.

Proposition III.2.3 (Soundness). If \(\Gamma \vdash \mathcal{A}\), then \(\Gamma \models_{\mathbb{B}} \mathcal{A}\). In particular, every theorem is a tautology (the case of the empty context).

Proof. Induction on the derivation. All 11 axiom schemas yield tautologies: this is a finite check by truth tables in three variables, and by the formula for replacing a variable by a formula it extends to all instances. Hypotheses take the value \(1\) by assumption. If \(\varepsilon(\mathcal{A})=1\) and \(\varepsilon(\mathcal{A})\to \varepsilon(\mathcal{B})=1\), then \(\varepsilon(\mathcal{B})=1\). For a theorem, Proposition II.3.3 (a) applies: it is derivable in the empty context.

It follows that a variable is not a theorem (taking \(\varepsilon(p)=0\) suffices), \(p \nvdash p \land \neg p\), and the pair \(\vdash \mathcal{A}\), \(\vdash \neg\mathcal{A}\) is impossible (consistency of PC).

A tuple of values \(\langle x_1, \dots, x_n \rangle \in \mathbb{B}^n\) is abbreviated as \(\vec{x}\), so that \(f(\vec{x})\) denotes \(f(x_1, \dots, x_n)\).

Definition III.2.4 (Literal and full disjunctive normal form). For a variable \(p\) and a value \(s \in \mathbb{B}\), the literal \(p^s\) is the formula defined by \(p^1 \equiv p\) and \(p^0 \equiv \neg p\). For a function \(f \in B_n\) not identically zero, its full disjunctive normal form is the formula \[\mathcal{D}_f \equiv \bigvee_{\substack{\vec{x} \in \mathbb{B}^n \\ f(\vec{x})=1}} \bigl(p_1^{x_1} \land \dots \land p_n^{x_n}\bigr),\] i.e., the disjunction of conjunctions of literals over all tuples \(\vec{x}\) at which \(f\) equals \(1\). This is a metalanguage notation: tuples are taken in lexicographic order, and parentheses in conjunctions and disjunctions associate to the left, so that \(\mathcal{C}_1 \land \mathcal{C}_2 \land \mathcal{C}_3\) denotes \((\mathcal{C}_1 \land \mathcal{C}_2) \land \mathcal{C}_3\).

Proposition III.2.5 (Functional completeness). Every function in \(B_n\) for \(n \geqslant 1\) is \(f_{\mathcal{A}}\) for some formula \(\mathcal{A}\) with variables from \(p_1, \dots, p_n\).

Proof. For a function \(f \in B_n\) not identically zero, we verify that \(f_{\mathcal{D}_f} = f\). Let \(\vec{y} \in \mathbb{B}^n\) and \(\varepsilon(p_i)=y_i\) for all \(i\). By the truth table, \(\varepsilon(p^s)=1\) if and only if \(\varepsilon(p)=s\). Hence the conjunction \(p_1^{x_1} \land \dots \land p_n^{x_n}\) takes the value \(1\) precisely when \(\vec{y}=\vec{x}\), and \(\mathcal{D}_f\) takes the value \(1\) precisely when \(f(\vec{y})=1\). The identically zero function corresponds to \(p_1 \land \neg p_1\).

Functional completeness means that every function is expressible by a formula and differs from logical completeness. The converse of Proposition III.2.3 (everything true in the model is derivable) follows from the general construction for Boolean algebras and is proved in Theorem III.4.3.

III.3. Boolean algebras as models

A Boolean algebra is a distributive lattice \(\langle B, \land, \lor, 0, 1 \rangle\) with complementation: \(x \land \neg x = 0\), \(x \lor \neg x = 1\). In it, one sets \(x \to y = \neg x \lor y\), and \(x \leqslant y\) means \(x \land y = x\). Examples: \(\mathbb{B}\); the functional model \(B_n\); the set of all subsets of a set \(X\) with set-theoretic operations. The one-element algebra, in which \(0=1\), is not excluded.

A valuation taking values in a Boolean algebra \(B\) is defined and extended as in Definition III.2.1. The notation \(\Gamma \models_{\mathsf{BA}} \mathcal{A}\) means: in every Boolean algebra \(B\), every valuation \(\varepsilon\) such that \(\varepsilon(\mathcal{C})=1\) for all \(\mathcal{C} \trianglelefteq \Gamma\) satisfies \(\varepsilon(\mathcal{A})=1\). The relation \(\models_{\mathbb{B}}\) is the special case with the single model \(\mathbb{B}\).

Lemma III.3.1.

  1. (a)

    \(x \to y = 1\) if and only if \(x \leqslant y\).

  2. (b)

    A Boolean identity true in \(\mathbb{B}\) is true in every Boolean algebra.

Proof. (a) If \(x \leqslant y\), then \(\neg x \lor y \geqslant \neg x \lor x = 1\). If \(\neg x \lor y = 1\), then \(x = x \land (\neg x \lor y) = x \land y\). (b) The laws of Boolean algebra reduce each side of the identity to full disjunctive normal form, which is determined by the table of values in \(\mathbb{B}\); the forms of both sides coincide.

Proposition III.3.2 (Soundness with respect to the class of Boolean algebras). If \(\Gamma \vdash \mathcal{A}\), then \(\Gamma \models_{\mathsf{BA}} \mathcal{A}\).

Proof. Induction on the derivation. Axioms are tautologies, so by Lemma III.3.1 (b) they take the value \(1\) in every Boolean algebra. Hypotheses take the value \(1\) by assumption. If \(\varepsilon(\mathcal{A})=1\) and \(\varepsilon(\mathcal{A}) \to \varepsilon(\mathcal{B})=1\), then by Lemma III.3.1 (a) we have \(1 \leqslant \varepsilon(\mathcal{B})\).

III.4. Completeness

III.4.1. Completeness with respect to the class of Boolean algebras

Fix a context \(\Gamma\). The notation \(\mathcal{A} \preccurlyeq \mathcal{B}\) means \(\Gamma \vdash \mathcal{A} \to \mathcal{B}\); formulas are equivalent, \(\mathcal{A} \sim \mathcal{B}\), if \(\mathcal{A} \preccurlyeq \mathcal{B}\) and \(\mathcal{B} \preccurlyeq \mathcal{A}\).

Lemma III.4.1. The following properties hold; the Deduction Theorem (Proposition II.3.5) is used in verifying them.

  1. (1)

    \(\preccurlyeq\) is reflexive (the theorem \(\mathcal{A} \to \mathcal{A}\)) and transitive;

  2. (2)

    \(\mathcal{A} \land \mathcal{B}\) is the greatest lower bound of \(\mathcal{A}\) and \(\mathcal{B}\) with respect to \(\preccurlyeq\) (conjunction elimination and introduction);

  3. (3)

    \(\mathcal{A} \lor \mathcal{B}\) is the least upper bound (disjunction introduction and constructive dilemma);

  4. (4)

    \(\mathcal{A} \land (\mathcal{B} \lor \mathcal{C}) \preccurlyeq (\mathcal{A} \land \mathcal{B}) \lor (\mathcal{A} \land \mathcal{C})\) (constructive dilemma in the context with hypothesis \(\mathcal{A}\));

  5. (5)

    \(\mathcal{A} \land \neg\mathcal{A} \preccurlyeq \mathcal{B}\) (Duns Scotus's law), \(\mathcal{B} \preccurlyeq \mathcal{A} \lor \neg\mathcal{A}\) (law of excluded middle), and \(\mathcal{A} \preccurlyeq \mathcal{B}\) implies \(\neg\mathcal{B} \preccurlyeq \neg\mathcal{A}\) (negation introduction);

  6. (6)

    \((\mathcal{A} \to \mathcal{B}) \sim (\neg\mathcal{A} \lor \mathcal{B})\) (law of excluded middle for \(\mathcal{A}\), constructive dilemma, and Duns Scotus's law);

  7. (7)

    \(\Gamma \vdash \mathcal{A}\) if and only if \(\mathcal{B} \preccurlyeq \mathcal{A}\) for every formula \(\mathcal{B}\).

By the lemma, \(\sim\) is a congruence, and the equivalence classes \([\mathcal{A}]\) with the operations \([\mathcal{A}] \land [\mathcal{B}] = [\mathcal{A} \land \mathcal{B}]\), \([\mathcal{A}] \lor [\mathcal{B}] = [\mathcal{A} \lor \mathcal{B}]\), \(\neg[\mathcal{A}] = [\neg\mathcal{A}]\) form a Boolean algebra \(\mathsf{LT}_\Gamma\)—the Lindenbaum–Tarski algebra of context \(\Gamma\); for the empty context it is denoted \(\mathsf{LT}\). By item (7), its unit element is the class of formulas derivable in the context. By item (6), \([\mathcal{A} \to \mathcal{B}] = [\mathcal{A}] \to [\mathcal{B}]\).

Translation dictionary. The construction \(\mathsf{LT}_\Gamma\) translates the calculus into the language of algebra. The order of the Boolean algebra is the relation \(\preccurlyeq\): the inequality \([\mathcal{A}] \leqslant [\mathcal{B}]\) means \(\Gamma \vdash \mathcal{A} \to \mathcal{B}\), i.e., by the Deduction Theorem, \(\Gamma, \mathcal{A} \vdash \mathcal{B}\). Hence, for a single-formula context, the derivability sign translates into the inequality sign. For the algebra \(\mathsf{LT}\), the translation is:

calculusalgebra \(\mathsf{LT}\)
formula \(\mathcal{A}\)element \([\mathcal{A}]\)
connectives \(\neg, \land, \lor, \to\)operations \(\neg, \land, \lor, \to\)
equivalence \(\mathcal{A} \sim \mathcal{B}\)equality \([\mathcal{A}] = [\mathcal{B}]\)
\(\vdash \mathcal{A}\)\([\mathcal{A}] = 1\)
\(\vdash \neg\mathcal{A}\)\([\mathcal{A}] = 0\)
\(\mathcal{A} \vdash \mathcal{B}\)\([\mathcal{A}] \leqslant [\mathcal{B}]\)
\(\mathcal{C}_1, \dots, \mathcal{C}_k \vdash \mathcal{B}\)\([\mathcal{C}_1] \land \dots \land [\mathcal{C}_k] \leqslant [\mathcal{B}]\)
\(\mathcal{C}, \mathcal{A} \vdash \mathcal{B}\) iff \(\mathcal{C} \vdash \mathcal{A} \to \mathcal{B}\)\(z \land x \leqslant y\) iff \(z \leqslant x \to y\)
Modus Ponens\(x \land (x \to y) \leqslant y\)
valuation \(\varepsilon\)homomorphism \(\mathsf{LT} \to \mathbb{B}\)
permutation of variables \(\pi\)automorphism \([\mathcal{A}] \mapsto [\mathcal{A}^\pi]\)

Theorem III.4.2 (Completeness with respect to the class of Boolean algebras). \(\Gamma \vdash \mathcal{A}\) if and only if \(\Gamma \models_{\mathsf{BA}} \mathcal{A}\).

Proof. The forward direction (\(\Gamma \vdash \mathcal{A}\) implies \(\Gamma \models_{\mathsf{BA}} \mathcal{A}\)) is Proposition III.3.2. The converse is proved by contradiction: suppose \(\Gamma \models_{\mathsf{BA}} \mathcal{A}\), yet \(\Gamma \nvdash \mathcal{A}\). By the definition of \(\Gamma \models_{\mathsf{BA}} \mathcal{A}\), in every Boolean algebra (and, in particular, in \(\mathsf{LT}_\Gamma\)), for every valuation \(\varepsilon\) sending all formulas of \(\Gamma\) to \(1\), one must have \(\varepsilon(\mathcal{A})=1\). For the canonical valuation \(\varepsilon(p)=[p]\) in \(\mathsf{LT}_\Gamma\), the definition of operations via representatives yields \(\varepsilon(\mathcal{B})=[\mathcal{B}]\) for all formulas \(\mathcal{B}\) by structural induction. Every hypothesis \(\mathcal{C} \trianglelefteq \Gamma\) is derivable in context \(\Gamma\) by rule D2 (\(\Gamma \vdash \mathcal{C}\)), and by Lemma III.4.1 (7) the unit element of \(\mathsf{LT}_\Gamma\) is the class of formulas derivable in context \(\Gamma\), so \(\varepsilon(\mathcal{C})=[\mathcal{C}]=1\) for all \(\mathcal{C} \trianglelefteq \Gamma\). The premise \(\Gamma \models_{\mathsf{BA}} \mathcal{A}\) applied to \(\mathsf{LT}_\Gamma\) and \(\varepsilon\) then gives \(\varepsilon(\mathcal{A})=[\mathcal{A}]=1\). On the other hand, from the assumption \(\Gamma \nvdash \mathcal{A}\), Lemma III.4.1 (7) gives \([\mathcal{A}] \neq 1\) in \(\mathsf{LT}_\Gamma\). Contradiction.

III.4.2. Reduction to a single model

Theorem III.4.3 (E. Post, 1921). \(\Gamma \vdash \mathcal{A}\) if and only if \(\Gamma \models_{\mathbb{B}} \mathcal{A}\). In particular, \(\Thm\mo \mathcal{A}\mc \) if and only if \(\mathcal{A}\) is a tautology.

Proof. The forward direction is Proposition III.2.3. Suppose \(\Gamma \nvdash \mathcal{A}\). By Lemma III.4.1 (7) we have \([\mathcal{A}] \neq 1\), so \(\neg[\mathcal{A}] \neq 0\), and there exists an ultrafilter \(U\) of \(\mathsf{LT}_\Gamma\) containing \(\neg[\mathcal{A}]\).3 The map \(h \colon \mathsf{LT}_\Gamma \to \mathbb{B}\) given by \(h(y)=1\) for \(y \in U\) and \(h(y)=0\) otherwise is a homomorphism. Indeed, by the definition of an ultrafilter, \(\neg y \in U\) if and only if \(y \notin U\), and \(y \land z \in U\) if and only if \(y \in U\) and \(z \in U\); for disjunction and implication, the equalities follow from these two because \(y \lor z = \neg(\neg y \land \neg z)\) and \(y \to z = \neg y \lor z\). The valuation with \(\varepsilon(p)=h([p])\) for all variables \(p\) yields \(\varepsilon(\mathcal{B})=h([\mathcal{B}])\) for all formulas \(\mathcal{B}\) by structural induction. For \(\mathcal{C} \trianglelefteq \Gamma\) we have \([\mathcal{C}]=1 \in U\), whence \(\varepsilon(\mathcal{C})=1\), whereas \(\neg[\mathcal{A}] \in U\) implies \(\varepsilon(\mathcal{A})=0\). Consequently, \(\Gamma \not\models_{\mathbb{B}} \mathcal{A}\).

Corollary III.4.4. Formulas \(\mathcal{A}, \mathcal{B}\) with variables from \(p_1, \dots, p_n\) are equivalent in the empty context if and only if \(f_{\mathcal{A}} = f_{\mathcal{B}}\). The map \([\mathcal{A}] \mapsto f_{\mathcal{A}}\) is an isomorphism of the subalgebra of \(\mathsf{LT}\) generated by the classes \([p_1], \dots, [p_n]\) onto the functional model \(B_n\).

Proof. \(\mathcal{A} \sim \mathcal{B}\) means \(\vdash \mathcal{A} \to \mathcal{B}\) and \(\vdash \mathcal{B} \to \mathcal{A}\); by Theorem III.4.3 this is equivalent to \(f_{\mathcal{A}} = f_{\mathcal{B}}\). Well-definedness and injectivity of the map follow. Surjectivity is Proposition III.2.5.

Remark III.4.5 (Class of models and single model). Theorem III.4.2 is obtained by a direct construction: the model \(\mathsf{LT}_\Gamma\) is built from derivability itself. The substantive step is Theorem III.4.3: for PC, a single finite model suffices.

III.5. Computations in the model: Zhegalkin polynomials

Translation into the language of algebra provides not only a test for derivability by checking rows of a truth table, but also computations by the rules of arithmetic. For this purpose, a Boolean algebra is turned into a ring.

A commutative ring with identity in which the idempotence identity \(x^2 = x\) holds for every element is called a Boolean ring (M. Stone, 1936); from \((x + y)^2 = x + y\) in such a ring it follows that \(x + x = 0\). In any Boolean algebra, the operations \(xy = x \land y\) and \(x + y = (x \land \neg y) \lor (\neg x \land y)\) define the structure of a Boolean ring. On the two-element model \(\mathbb{B} = \{0,1\}\) these are multiplication and addition modulo \(2\), turning \(\mathbb{B}\) into the two-element field \(\mathbb{F}_2\), and the equalities \[\neg x = 1 + x, \qquad x \lor y = x + y + xy, \qquad x \to y = 1 + x + xy\] hold. By Lemma III.3.1 (b), the same identities hold in every Boolean algebra (in particular, in the functional model \(B_n\) and in the Lindenbaum–Tarski algebra \(\mathsf{LT}_\Gamma\)), so Boolean algebras and Boolean rings differ only in the choice of basic operations.

Definition III.5.1 (Zhegalkin polynomial). A monomial in the variables \(p_1, \dots, p_n\) is a product of distinct variables; the empty product equals \(1\). A Zhegalkin polynomial is a sum of distinct monomials; the empty sum equals \(0\). Addition and multiplication of Zhegalkin polynomials are performed by expanding parentheses and collecting like terms subject to the relations \(p_i^2 = p_i\) and \(x + x = 0\): thus Zhegalkin polynomials in \(p_1, \dots, p_n\) form the Boolean ring of Zhegalkin polynomials (the quotient ring of the polynomial ring \(\mathbb{F}_2[p_1, \dots, p_n]\) by the ideal generated by \(p_1^2 + p_1, \dots, p_n^2 + p_n\)).

To each formula with variables from \(p_1, \dots, p_n\) there is assigned a Zhegalkin polynomial by recursion on its construction (well-defined by unique readability, Proposition II.1.5): on variables one sets \(P_{p_i} = p_i\), and for compound formulas the polynomials are given by \[\begin{gather*} P_{\neg\mathcal{A}} = 1 + P_{\mathcal{A}}, \qquad P_{\mathcal{A} \land \mathcal{B}} = P_{\mathcal{A}} P_{\mathcal{B}},\\ P_{\mathcal{A} \lor \mathcal{B}} = P_{\mathcal{A}} + P_{\mathcal{B}} + P_{\mathcal{A}} P_{\mathcal{B}}, \qquad P_{\mathcal{A} \to \mathcal{B}} = 1 + P_{\mathcal{A}} + P_{\mathcal{A}} P_{\mathcal{B}}. \end{gather*}\]

Theorem III.5.2 (I. I. Zhegalkin, 1927). For \(n \geqslant 1\), every function in \(B_n\) is represented by a unique Zhegalkin polynomial in \(n\) variables, the function \(f_{\mathcal{A}}\) is represented by the polynomial \(P_{\mathcal{A}}\), and assigning to a polynomial the function it defines is an isomorphism of the Boolean ring of Zhegalkin polynomials in \(p_1, \dots, p_n\) onto the Boolean ring \(B_n\).

Proof. The second statement is verified by structural induction using the defining equalities above. By Proposition III.2.5, every function in \(B_n\) has the form \(f_{\mathcal{A}}\), hence is represented by a polynomial. There are \(2^n\) monomials in \(n\) variables and \(2^{2^n}\) polynomials, the same number as functions in \(B_n\). Therefore the representation is unique.

Corollary III.5.3. For formulas \(\mathcal{A}, \mathcal{B}\) with variables from \(p_1, \dots, p_n\):

  1. (a)

    \(\vdash \mathcal{A}\) if and only if \(P_{\mathcal{A}} = 1\);

  2. (b)

    \(\mathcal{A}\) and \(\mathcal{B}\) are equivalent in the empty context if and only if \(P_{\mathcal{A}} = P_{\mathcal{B}}\);

  3. (c)

    \(\mathcal{A} \vdash \mathcal{B}\) if and only if \(P_{\mathcal{A}} P_{\mathcal{B}} = P_{\mathcal{A}}\).

Proof. By Theorem III.4.3 and Corollary III.4.4, derivability and equivalence reduce to equalities of functions, and by Theorem III.5.2 functions are uniquely represented by polynomials. Item (c) is item (a) applied to \(\mathcal{A} \to \mathcal{B}\).

Example. Peirce's law \(((p \to q) \to p) \to p\) is verified in two lines. We have \(P_{p \to q} = 1 + p + pq\), whence \[P_{(p \to q) \to p} = 1 + (1 + p + pq) + (1 + p + pq)p = p + pq + pq = p,\] so \((p \to q) \to p\) is equivalent to the variable \(p\). Hence \(P_{((p \to q) \to p) \to p} = 1 + p + p \cdot p = 1\), and the formula is derivable; no derivation from the axioms is needed.

General statements. A truth table checks each formula individually, whereas computation in the ring yields statements about infinite families of formulas. The notation \(\mathcal{A} \leftrightarrow \mathcal{B}\) abbreviates \((\mathcal{A} \to \mathcal{B}) \land (\mathcal{B} \to \mathcal{A})\). Its polynomial is linear: \(P_{\mathcal{A} \leftrightarrow \mathcal{B}} = 1 + P_{\mathcal{A}} + P_{\mathcal{B}}\).

Proposition III.5.4 (S. Leśniewski, 1929). A formula built from variables using only the connective \(\leftrightarrow\) is a theorem if and only if every variable occurs in it an even number of times.

Proof. By induction on the construction: the polynomial of a formula with \(m\) occurrences of variables equals the sum of those occurrences and \(m-1\) ones. A variable with an even number of occurrences cancels upon addition. If all variables have an even number of occurrences, then \(m\) is even and the polynomial equals \(1\). Otherwise a variable remains in the polynomial, so it differs from \(1\). It remains to apply Corollary III.5.3 (a).

Context and ideal. In the Boolean ring of Zhegalkin polynomials (in the variables \(p_1, \dots, p_n\) occurring in the formulas under consideration), a context \(\mathcal{C}_1, \dots, \mathcal{C}_k\) translates into the ideal \(I\) generated by the polynomials \(1 + P_{\mathcal{C}_1}, \dots, 1 + P_{\mathcal{C}_k}\): derivability \(\mathcal{C}_1, \dots, \mathcal{C}_k \vdash \mathcal{B}\) holds if and only if \(1 + P_{\mathcal{B}} \in I\). Indeed, if \(1 + P_{\mathcal{B}} = \sum_{i=1}^k g_i(1 + P_{\mathcal{C}_i}) \in I\), then on every tuple in \(\mathbb{B}^n\) where all \(P_{\mathcal{C}_i}\) equal \(1\), the right-hand side vanishes, whence \(P_{\mathcal{B}} = 1\), and Theorem III.4.3 applies. Conversely, suppose \(\mathcal{C}_1, \dots, \mathcal{C}_k \vdash \mathcal{B}\) and let \(Q = P_{\mathcal{C}_1} \cdots P_{\mathcal{C}_k}\). From the ring identity \(1 + xy = (1 + x) + x(1 + y)\), induction on \(k\) shows that \(1 + Q \in I\). By the Deduction Theorem and Corollary III.5.3 (c), derivability \(\mathcal{C}_1 \land \dots \land \mathcal{C}_k \vdash \mathcal{B}\) means \(Q P_{\mathcal{B}} = Q\), i.e., \(Q(1 + P_{\mathcal{B}}) = 0\), whence \(1 + P_{\mathcal{B}} = (1 + Q)(1 + P_{\mathcal{B}}) \in I\). In the Boolean ring \(\mathsf{LT}_\Gamma\), the homomorphism \(h \colon \mathsf{LT}_\Gamma \to \mathbb{F}_2\) from the proof of Theorem III.4.3 is a ring epimorphism, and the complement \(\mathsf{LT}_\Gamma \setminus U\) of the ultrafilter \(U\) is its kernel, i.e., a maximal ideal of \(\mathsf{LT}_\Gamma\).

III.6. Duality, uniqueness of the two-valued model, and Post completeness

The truth table of § III.2 is not chosen arbitrarily among others: the axioms and Modus Ponens determine it uniquely up to interchanging \(0\) and \(1\), and this interchange corresponds to passing to dual formulas. Moreover, the calculus cannot be extended while preserving consistency and closure under replacement of variables by formulas.

Definition III.6.1 (Dual formula). The formula \(\mathcal{A}^*\) is defined by recursion: \(p^* \equiv p\) for variables, \((\neg\mathcal{A})^* \equiv \neg\mathcal{A}^*\), \((\mathcal{A} \land \mathcal{B})^* \equiv \mathcal{A}^* \lor \mathcal{B}^*\), \((\mathcal{A} \lor \mathcal{B})^* \equiv \mathcal{A}^* \land \mathcal{B}^*\), \((\mathcal{A} \to \mathcal{B})^* \equiv \neg\mathcal{A}^* \land \mathcal{B}^*\).

Theorem III.6.2 (Duality principle; C. Peirce, E. Schröder). If the variables of a formula \(\mathcal{A}\) lie among \(p_1, \dots, p_n\), then \(f_{\mathcal{A}^*}(x_1, \dots, x_n) = \neg f_{\mathcal{A}}(\neg x_1, \dots, \neg x_n)\). Consequently:

  1. (a)

    \(\mathcal{A} \vdash \mathcal{B}\) if and only if \(\mathcal{B}^* \vdash \mathcal{A}^*\); in particular, formulas \(\mathcal{A}, \mathcal{B}\) are equivalent in the empty context if and only if \(\mathcal{A}^*, \mathcal{B}^*\) are equivalent;

  2. (b)

    \(\vdash \mathcal{A}\) if and only if \(\vdash \neg\mathcal{A}^*\).

Proof. The equality is checked by structural induction. For a variable it is \(x = \neg\neg x\), for negation it follows from the induction hypothesis, and for the remaining connectives it is De Morgan's law in \(\mathbb{B}\). For example, for implication, with \(\vec{y} = \langle \neg x_1, \dots, \neg x_n \rangle\), we have \[f_{\neg\mathcal{A}^* \land \mathcal{B}^*}(\vec{x}) = f_{\mathcal{A}}(\vec{y}) \land \neg f_{\mathcal{B}}(\vec{y}) = \neg\bigl(\neg f_{\mathcal{A}}(\vec{y}) \lor f_{\mathcal{B}}(\vec{y})\bigr) = \neg f_{\mathcal{A} \to \mathcal{B}}(\vec{y}).\] By Theorem III.4.3, \(\mathcal{A} \vdash \mathcal{B}\) means \(f_{\mathcal{A}} \leqslant f_{\mathcal{B}}\) pointwise, which is equivalent to \(f_{\mathcal{B}^*} \leqslant f_{\mathcal{A}^*}\). Derivability \(\vdash \mathcal{A}\) means that \(f_{\mathcal{A}}\) is identically \(1\), which is equivalent to \(f_{\mathcal{A}^*}\) being identically \(0\).

In terms of the translation dictionary, duality reverses the order: the map \(y \mapsto \neg y\) is an isomorphism of a Boolean algebra onto the algebra in which \(\land\) and \(\lor\), and \(0\) and \(1\), interchange roles. Hence along with every identity its dual also holds; thus distributivity \(x \land (y \lor z) = (x \land y) \lor (x \land z)\) entails \(x \lor (y \land z) = (x \lor y) \land (x \lor z)\), and the theorem \(p \lor \neg p\) corresponds to the theorem \(\neg(p \land \neg p)\).

Proposition III.6.3 (Uniqueness of the two-valued model). Let operations \(\neg, \land, \lor, \to\) be given on a two-element set, by which valuations extend to formulas, and let one element be designated. Denote it by \(1\) and the other element by \(0\). If \(x = 1\) and \(x \to y = 1\) imply \(y = 1\), and all axioms take the value \(1\) under every valuation, then these are the operations of § III.2.

Proof. The condition on Modus Ponens implies \((1 \to 0) = 0\). Substituting values \(x, y, z \in \{0,1\}\) into the axiom schemas of Definition II.2.1 determines the remaining entries of the truth tables. Affirmation of the consequent \((x\to(y\to x))=1\) at \(x=1\) gives \((1 \to (y \to 1)) = 1\), whence \((y \to 1) = 1\); at \(x=y=0\) the same axiom gives \((0 \to (0 \to 0)) = 1\), whence \((0 \to 0) = 1\) (if \((0 \to 0) = 0\), the equality \((0 \to (0 \to 0)) = 1\) would give \((0 \to 0) = 1\)). Thus implication agrees with the table, and \((x \to y) = 1\) is equivalent to \(x \leqslant y\). Conjunction elimination gives \((x \land y) \leqslant \min(x,y)\), while conjunction introduction at \(x=y=1\) gives \((1 \land 1) = 1\). Disjunction introduction gives \((x \lor y) \geqslant \max(x,y)\), while constructive dilemma at \(x=y=z=0\) gives \(((0 \lor 0) \to 0) = 1\), i.e., \((0 \lor 0) = 0\). Duns Scotus's law at \(x=1\), \(y=0\) gives \((\neg 1 \to (1 \to 0)) = 1\), i.e., \((\neg 1 \to 0) = 1\) and \((\neg 1) = 0\). Negation introduction at \(x=y=0\) gives \(((0 \to 0) \to ((0 \to \neg 0) \to \neg 0)) = 1\), i.e., \((1 \to (1 \to \neg 0)) = 1\) and \((\neg 0) = 1\).

By Proposition III.6.3, the choice of the designated element on \(\{0,1\}\) uniquely determines the operations of the model. With \(1\) designated, one obtains the model \(\mathbb{B}\) of § III.2. With \(0\) designated, one obtains the inverted model: \(\neg x = 1 - x\), \(x \land y = \max(x,y)\), \(x \lor y = \min(x,y)\), \(x \to y = \min(1-x, y)\). Interchanging the two values is an isomorphism of these two models. The value of a formula \(\mathcal{A}\) in the inverted model equals the value of \(\mathcal{A}^*\) in \(\mathbb{B}\) under the same valuation, so computing in the inverted model amounts to computing the dual formula: \(\mathcal{A}\) is a theorem if and only if \(f_{\mathcal{A}^*}\) is identically \(0\).

By Theorem III.4.3, the theorems are precisely the tautologies, so every calculus in the same language that is sound with respect to \(\mathbb{B}\) is contained in PC. Any extension of PC preserving closure under replacement of variables by formulas can only be inconsistent.

Proposition III.6.4 (Post completeness). If \(\mathcal{A}\) is not a theorem, then adjoining to the axioms all formulas obtained from \(\mathcal{A}\) by replacing variables with formulas makes every formula derivable.

Proof. By Theorem III.4.3, there exists a valuation \(\varepsilon\) with \(\varepsilon(\mathcal{A})=0\). Let \(r\) be a variable not occurring in \(\mathcal{A}\). The formula \(r \to r\) takes the value \(1\) under every valuation, and \(\neg(r \to r)\) takes the value \(0\). Replacing each variable \(p\) of \(\mathcal{A}\) by the former if \(\varepsilon(p)=1\) and by the latter if \(\varepsilon(p)=0\) yields a formula \(\mathcal{A}'\) whose value under every valuation equals \(\varepsilon(\mathcal{A})=0\). Hence \(\neg\mathcal{A}'\) is a tautology and, by Theorem III.4.3, a theorem. In the extended calculus both \(\mathcal{A}'\) and \(\neg\mathcal{A}'\) are derivable, whence by Duns Scotus's law every formula is derivable.

This result was obtained by D. Hilbert and P. Bernays (1918; see Zach, 1999) and E. Post (1921). Consequently, every consistent calculus in the same language closed under replacement and Modus Ponens and distinct from PC lacks some of its axioms and theorems. Such is the situation of intuitionistic logic, relevance logics, and those many-valued logics that lie between intuitionistic and classical logic: their theorems form a proper part of the theorems of PC.

Supplement. The formal system and ordinary reasoning

PC is constructed in §§ II.1–II.3 as a family of predicates on words over a finite alphabet; the notions of truth, meaning, and entailment do not enter the definitions, and the symbol \(\to\) is a graphic figure. Therefore the claim that PC models everyday logic does not follow from the construction and cannot be a theorem: ordinary reasoning is not a formal object.

Identifying PC with everyday logic rests on reading the symbols \(\neg, \land, \lor, \to\) as the conjunctions ``not'', ``and'', ``or'', ``if …, then'' and on the agreement of PC with mathematical proof practice. However, the refinement of connectives in PC involves a direct loss of several features of natural speech (the letters \(\mathcal{A}, \mathcal{B}, \mathcal{C}\) denote arbitrary formulas):

  1. 1.

    Loss of semantic connection. \((\mathcal{A} \to \mathcal{B}) \lor (\mathcal{B} \to \mathcal{A})\) is a theorem, and a false antecedent makes an implication true; everyday ``if'' requires a connection between antecedent and consequent.

  2. 2.

    Loss of order and causality. The formulas \(\mathcal{A} \land \mathcal{B}\) and \(\mathcal{B} \land \mathcal{A}\) are equivalent, whereas in speech the order and causal link between clauses (``took the medicine and recovered'') are asymmetric.

  3. 3.

    Restriction to two values. The axiom \(\mathcal{A} \lor \neg\mathcal{A}\) excludes vague or indeterminate statements (and is contested by intuitionism for infinite collections).

  4. 4.

    Monotonicity of derivation. Derivability is monotonic (Proposition II.3.4), and modus ponens merely detaches \(\mathcal{B}\) from \(\mathcal{A}\) and \(\mathcal{A} \to \mathcal{B}\), without modeling revision of initial premises upon discovering a contradiction.

Squeezing and replacement. In mathematical proof, divergences 1–2 play no essential role: statements do not depend on time or context, and universal conditional statements (``if an integer is divisible by \(4\), then it is even'') are refuted by a single counterexample—a true premise with a false conclusion. This suffices to reduce the conditional connective to the table of material implication. PC thus serves not as a model of everyday speech, but as its explication (R. Carnap, 1950; W. Quine, 1960, § 53)—a formal replacement in those functions required by proof. Upon conflict with everyday intuition, it is the informal judgment that is corrected, not the calculus; outside mathematics and computer science such a replacement is unwarranted (other functions of connectives are retained by intuitionistic and relevance logics).

The Completeness Theorem (§ III.4) links derivability to truth under truth tables, which themselves belong to this replacement, and says nothing about everyday speech (G. Kreisel's squeezing argument, 1967, relies on a notion of validity already accepted in mathematics). The replacement itself is not absolute: the definitions of PC are written in the special language of Part I, where connectives are used in the sense fixed in § I.3. The relationship between the three language levels—natural, special, and formal—is shown in Fig. 8.

Fig. 8. Comparison of the three language levels: natural language as the ambient medium, the special language as a finitary metalanguage, and the formal language of the calculus.

References

  1. [1]

    Hilbert D., Bernays P. Grundlagen der Mathematik, Vol. 1. (Russian transl.: Moscow, Nauka, 1979.)

  2. [2]

    Zhegalkin I. I. On the technique of calculating propositions in symbolic logic // Matematicheskii Sbornik. 1927. Vol. 34, no. 1. (In Russian.)

  3. [3]

    Kazimirov N. I. Architecture of Mathematical Models: course notes, subsection ``Lindenbaum–Tarski Algebra''. (In Russian.)

  4. [4]

    Kazimirov N. I. Mathematics as a Foreign Language. mathem.at/Materials/maglish_index.html (In Russian.)

  5. [5]

    Kleene S. C. Introduction to Metamathematics. (Russian transl.: Moscow, IL, 1957.)

  6. [6]

    Quine W. V. O. Word and Object. Cambridge, MA: MIT Press, 1960. (Russian transl.: Moscow, Logos; Praxis, 2000.)

  7. [7]

    Markov A. A. Theory of algorithms // Trudy MIAN. 1954. Vol. 42. (In Russian.)

  8. [8]

    Rasiowa H., Sikorski R. The Mathematics of Metamathematics. Warsaw: PWN, 1963. (Russian transl.: Moscow, Nauka, 1972.)

  9. [9]

    Carnap R. Logical Foundations of Probability. Chicago: University of Chicago Press, 1950.

  10. [10]

    Grzegorczyk A. Undecidability without arithmetization // Studia Logica. 2005. Vol. 79.

  11. [11]

    Kreisel G. Informal rigour and completeness proofs // Problems in the Philosophy of Mathematics / ed. I. Lakatos. Amsterdam: North-Holland, 1967.

  12. [12]

    Post E. Introduction to a general theory of elementary propositions // American Journal of Mathematics. 1921. Vol. 43.

  13. [13]

    Quine W. V. Concatenation as a basis for arithmetic // Journal of Symbolic Logic. 1946. Vol. 11.

  14. [14]

    Zach R. Completeness before Post: Bernays, Hilbert, and the development of propositional logic // Bulletin of Symbolic Logic. 1999. Vol. 5.