# Mathematical logic

(Redirected from Symbolic logic)

Mathematical logic is a discipline within mathematics, studying formal systems in relation to the way they encode intuitive concepts of proof and computation as part of the foundations of mathematics.

Although the layperson may think that mathematical logic is the logic of mathematics, the truth is rather that it more closely resembles the mathematics of logic. It comprises those parts of logic that can be modelled mathematically. Earlier appellations were symbolic logic (as opposed to philosophical logic); and metamathematics, which is now restricted as a term to some aspects of proof theory.

 Contents

## History

Mathematical logic was the name given by Peano to what is also known as symbolic logic. In essentials, it is still the logic of Aristotle, but from the point of view of notation it is written as a branch of abstract algebra.

Attempts to treat the operations of formal logic in a symbolic or algebraic way were made by some of the more philosophical mathematicians, such as Leibniz and Lambert; but their labors remained little known and isolated. It was George Boole and then Augustus De Morgan, in the middle of the nineteenth century, who presented a systematic mathematical (of course non-quantitative) way of regarding logic. The traditional, Aristotelian doctrine of logic was reformed and completed; and out of it developed an adequate instrument for investigating the fundamental concepts of mathematics. It would be misleading to say that the foundational controversies that were alive in the period 1900-1925 have all been settled; but philosophy of mathematics was greatly clarified by the 'new' logic.

While the traditional development of logic (see list of topics in logic) put heavy emphasis on forms of arguments, the attitude of current mathematical logic might be summed up as the combinatorial study of content. This covers both the syntactic (for example, sending a string from a formal language to a compiler program to write it as sequence of machine instructions), and the semantic (constructing specific models or whole sets of them, in model theory).

Some landmark publications were the Begriffsschrift and Bertrand Russell's Principia Mathematica.

## Topics in mathematical logic

The main areas of mathematical logic include model theory, proof theory and recursion theory (often now referred to as computability theory). Axiomatic set theory is sometimes considered too. There are many overlaps with computer science, since many early pioneers in computer science, such as Alan Turing, were mathematicians and logicians.

The study of programming language semantics derives from model theory, as does program verification, in particular model checking.

The Curry-Howard isomorphism between proofs and programs relates to proof theory; intuitionistic logic and linear logic are significant here. Calculi such as the lambda calculus and combinatory logic are nowadays studied mainly as idealized programming languages.

Computer science also contributes to logic by developing techniques for the automatic checking or even finding of proofs, such as automated theorem proving and logic programming.

## Some fundamental results

Some important results are:

• The set of valid first-order formulas is recursively enumerable. This follows from Gödel's completeness theorem (which establishes the equivalence of validity and provability), because the set of proofs for first-order logic formulas is recursively enumerable ("semi-decidable"). Therefore, there is a procedure that behaves as follows: Given a first-order formula as its input, the procedure eventually halts if the formula is valid, and runs forever otherwise. Some first-order theorem provers have this completeness property.

## Technical reference

This section is not intended as a crash course in mathematical logic. There is no doubt that the bare display of concise definitions is very far from an adequate encyclopedical presentation, but sections with more amenable paragraphs shall follow soon... Likewise, the several topics will be pertinently separated as soon as it makes sense, and when and where it is found a proper place.

### First-order languages and structures

Definition. A first-order language [itex]\mathfrak{L}\,[itex] is a collection of distinct typographical symbols classified as follows:

1. The equality symbol [itex]=\,[itex]; the connectives [itex]\lor\,[itex], [itex]\lnot\,[itex]; the universal quantifier [itex]\forall\,[itex] and the parentheses [itex](\,[itex], [itex])\,[itex].
2. A countable set of variable symbols [itex]\{v_i\}_{i = 0}^\infty\,[itex].
3. A set of constant symbols [itex]\{c_\alpha\}_{\alpha \in \Alpha}\,[itex].
4. A set of function symbols [itex]\{f_\beta\}_{\beta \in \Beta}\,[itex].
5. A set of relation symbols [itex]\{R_\gamma\}_{\gamma \in \Gamma}\,[itex].

Thus, in order to specify a language, it is often sufficient to specify only the collection of constant symbols, function symbols and relation symbols, since the first set of symbols is standard. The parentheses serve the only purpose of forming groups of symbols, and are not to be formally used when writing down functions and relations in formulas.

These symbols are just that, symbols. They don't stand for anything. They do not mean anything. After saying that, it is always tempting to say yet. However, that deviates further into semantics and linguistical issues not useful to the formalization of mathematical language, yet (and this time... yes, yet).

Yet, because it will indeed be necessary to get some meaning out of this formalization. The concept of model over a language provides with such a semantics.

Definition. An [itex]\mathfrak{L}\,[itex]-structure over the language [itex]\mathfrak{L}\,[itex], is a bundle consisting of a nonempty set [itex]A\,[itex], the universe of the structure, together with:

1. For each constant symbol [itex]c\,[itex] from [itex]\mathfrak{L}\,[itex], an element [itex]c^{\mathfrak{A}} \in A\,[itex].
2. For each [itex]n\,[itex]-ary function symbol [itex]f\,[itex] from [itex]\mathfrak{L}\,[itex], an [itex]n\,[itex]-ary function [itex]f^{\mathfrak{A}} : A^n \longrightarrow A\,[itex].
3. For each [itex]n\,[itex]-ary relation symbol [itex]R\,[itex] from [itex]\mathfrak{L}\,[itex], an [itex]n\,[itex]-ary relation on [itex]A\,[itex], that is, a subset [itex]R^{\mathfrak{A}} \subseteq A^n\,[itex].

Often, the word model is used for that of structure in this context. However, it is important to understand perhaps its motivation, as follows.

### Terms, formulas and sentences

Definition. An [itex]\mathfrak{L}\,[itex]-term is a nonempty finite string [itex]t\,[itex] of symbols from [itex]\mathfrak{L}\,[itex] such that either

• [itex]t\,[itex] is a variable symbol.
• [itex]t\,[itex] is a constant symbol.
• [itex]t\,[itex] is a string of the form [itex]f t_1 ... t_n\,[itex] where [itex]f\,[itex] is an [itex]n\,[itex]-ary function symbol and [itex]t_1\,[itex], ..., [itex]t_n\,[itex] are terms of [itex]\mathfrak{L}\,[itex].

Definition. An [itex]\mathfrak{L}\,[itex]-formula is a nonempty finite string [itex]\phi\,[itex] of symbols from [itex]\mathfrak{L}\,[itex] such that either

• [itex]\phi\,[itex] is a string of the form [itex]t_1 = t_2\,[itex] where [itex]t_1\,[itex] and [itex]t_2\,[itex] are terms of [itex]\mathfrak{L}\,[itex].
• [itex]\phi\,[itex] is a string of the form [itex]R t_1 ... t_n\,[itex] where [itex]R\,[itex] is an [itex]n\,[itex]-ary relation symbol and [itex]t_1\,[itex], ..., [itex]t_n\,[itex] are terms of [itex]\mathfrak{L}\,[itex].
• [itex]\phi\,[itex] is of the form [itex]\lnot(\alpha)\,[itex] where [itex]\alpha\,[itex] is an [itex]\mathfrak{L}\,[itex]-formula.
• [itex]\phi\,[itex] is of the form [itex](\alpha \lor \beta)\,[itex] where both [itex]\alpha\,[itex] and [itex]\beta\,[itex] are [itex]\mathfrak{L}\,[itex]-formulas.
• [itex]\phi\,[itex] is of the form [itex](\forall y)(\alpha)\,[itex] where [itex]y\,[itex] is a variable symbol from [itex]\mathfrak{L}\,[itex] and [itex]\alpha\,[itex] is an [itex]\mathfrak{L}\,[itex]-formula.

Definition. An [itex]\mathfrak{L}\,[itex]-formula that is characterized by either the first or the second clause is called an atomic.

Definition. Let [itex]\phi\,[itex] be an [itex]\mathfrak{L}\,[itex]-formula. A variable symbol [itex]x\,[itex] from [itex]\mathfrak{L}\,[itex] is said to be free in [itex]\phi\,[itex] if either

• [itex]\phi\,[itex] is atomic and [itex]x\,[itex] occurs in [itex]\phi\,[itex].
• [itex]\phi\,[itex] is of the form [itex]\lnot(\alpha)\,[itex] and [itex]x\,[itex] occurs in [itex]\alpha\,[itex].
• [itex]\phi\,[itex] is of the form [itex](\alpha \lor \beta)\,[itex] and [itex]x\,[itex] occurs in [itex]\alpha\,[itex] or [itex]\beta\,[itex].
• [itex]\phi\,[itex] is of the form [itex](\forall y)(\alpha)\,[itex] where [itex]x\,[itex] and [itex]y\,[itex] are not the same variable symbols and [itex]x\,[itex] is free in [itex]\alpha\,[itex].

Definition. A sentence is a formula with no free variables.

### Assignment functions

Hereafter, [itex]\mathfrak{L}\,[itex] will denote a first-order language, [itex]\mathfrak{A}\,[itex] will be an [itex]\mathfrak{L}\,[itex]-structure with underlying universe set denoted by [itex]A\,[itex]. Every formula will be understood to be an [itex]\mathfrak{L}\,[itex]-formula.

Definition. A variable assignment function (v.a.f.) into [itex]\mathfrak{A}\,[itex] is a function from the set of variables of [itex]\mathfrak{L}\,[itex] into [itex]A\,[itex].

Definition. Let [itex]s\,[itex] be a v.a.f. into [itex]\mathfrak{A}\,[itex]. We define the term assignment function (t.a.f.) [itex]\overline{s}\,[itex], from the set of [itex]\mathfrak{L}\,[itex]-terms into [itex]A\,[itex], as follows:

• If [itex]t\,[itex] is the variable symbol [itex]x\,[itex], then [itex]\overline{s}(t) = s(x)\,[itex].
• If [itex]t\,[itex] is the constant symbol [itex]c\,[itex], then [itex]\overline{s}(t) = c^{\mathfrak{A}}\,[itex].
• If [itex]t\,[itex] is of the form [itex]f t_1 ... t_n\,[itex], then [itex]\overline{s}(t) = f^{\mathfrak{A}}(\overline{s}(t_1), ..., \overline{s}(t_n))\,[itex].

Definition. Let [itex]s\,[itex] be a v.a.f. into [itex]\mathfrak{A}\,[itex] and suppose that [itex]x\,[itex] is a variable and that [itex]a \in A\,[itex]. We define the v.a.f. [itex]s[x|a]\,[itex], referred to as an [itex]x\,[itex]-modification of the assignment funtion [itex]s\,[itex], by

[itex] s[x|a](v) = \begin{cases} s(v) & \mbox{if } x = v \\ a & \mbox{if } x \ne v \end{cases} \,[itex]

### Logical satisfaction

Definition. Let [itex]\phi\,[itex] be formula and suppose [itex]s\,[itex] is a v.a.f. into [itex]\mathfrak{A}\,[itex]. We say that [itex]\mathfrak{A}\,[itex] satisfies [itex]\phi\,[itex] with assignment [itex]s\,[itex], and write [itex]\mathfrak{A} \models \phi[s]\,[itex], if either:

• [itex]\phi\,[itex] is of the form [itex]t_1 = t_2\,[itex] and [itex]\overline{s}(t_1) = \overline{s}(t_2)\,[itex].
• [itex]\phi\,[itex] is of the form [itex]R t_1 ... t_n\,[itex] and [itex](\overline{s}(t_1), ..., \overline{s}(t_n)) \in R^{\mathfrak{A}}\,[itex].
• [itex]\phi\,[itex] is of the form [itex]\lnot(\alpha)\,[itex] and [itex]\mathfrak{A}\mbox{ }\not\models\mbox{ }\alpha[s]\,[itex].
• [itex]\phi\,[itex] is of the form [itex](\alpha \lor \beta)\,[itex] and [itex]\mathfrak{A} \models \alpha[s]\,[itex] or [itex]\mathfrak{A} \models \beta[s]\,[itex].
• [itex]\phi\,[itex] is of the form [itex](\forall y)(\alpha)\,[itex] and for each element [itex]a \in A\,[itex], [itex]\mathfrak{A} \models \alpha[s[y|a]]\,[itex].

Definition. Let [itex]\phi\,[itex] be formula and suppose that [itex]\mathfrak{A} \models \phi[s]\,[itex] for every v.a.f. [itex]s\,[itex] into [itex]\mathfrak{A}\,[itex]. Then we say that [itex]\mathfrak{A}\,[itex] models [itex]\phi\,[itex], and write [itex]\mathfrak{A} \models \phi\,[itex].

Definition. Let [itex]\Phi\,[itex] be a set of formulas and suppose that [itex]\mathfrak{A} \models \phi\,[itex] for every formula [itex]\phi \in \Phi\,[itex] then we say that [itex]\mathfrak{A}\,[itex] models [itex]\Phi\,[itex], and write [itex]\mathfrak{A} \models \Phi\,[itex].

In the case that [itex]\phi\,[itex] is a sentence, that is, a formula with no free variables, the existence of a single v.a.f. for which [itex]\mathfrak{A} \models \phi[s]\,[itex] immediately implies that [itex]\mathfrak{A} \models \phi\,[itex].

Definition. Let [itex]\phi\,[itex] be a sentence and suppose that [itex]\mathfrak{A} \models \phi\,[itex]. Then we say that [itex]\phi\,[itex] is true in [itex]\mathfrak{A}\,[itex].

### Logical implication and truth

Definition. Let [itex]\Psi\,[itex] and [itex]\Phi\,[itex] be sets of formulas. We say that [itex]\Psi\,[itex] logically implies [itex]\Phi\,[itex], and write [itex]\Psi \models \Phi\,[itex], if for every structure [itex]\mathfrak{A}\,[itex], [itex]\mathfrak{A} \models \Psi\,[itex] implies [itex]\mathfrak{A} \models \Phi\,[itex].

As a shortcut, when dealing with singletons, we often write [itex]\Psi \models \phi\,[itex] instead of [itex]\Psi \models \{\phi\}\,[itex].

Definition. Let [itex]\phi\,[itex] be a formula and suppose that [itex]\varnothing \models \phi\,[itex]. Then we say that [itex]\phi\,[itex] is universaly valid, or simply valid, and in this case we simply write [itex]\models \phi\,[itex].

To say that a formula [itex]\phi\,[itex] is valid really means that every [itex]\mathfrak{L}\,[itex]-structure [itex]\mathfrak{A}\,[itex] models [itex]\phi\,[itex].

Definition. Let [itex]\phi\,[itex] be a sentence and suppose that [itex]\models \phi\,[itex]. Then we say that [itex]\phi\,[itex] is true.

### Variable substitution

Definition. Let [itex]u\,[itex] be a term and suppose [itex]x\,[itex] is a variable and [itex]t\,[itex] is another term. We define the term [itex]u_t^x\,[itex], read [itex]u\,[itex] with [itex]x\,[itex] replaced by [itex]t\,[itex], as follows:

• If [itex]u\,[itex] is the variable symbol [itex]x\,[itex], then [itex]u_t^x\,[itex] is defined to be the term [itex]t\,[itex].
• If [itex]u\,[itex] is a variable symbol other than [itex]x\,[itex], then [itex]u_t^x\,[itex] is defined to be the term [itex]u\,[itex].
• If [itex]u\,[itex] is a constant symbol, then [itex]u_t^x\,[itex] is defined to be the term [itex]u\,[itex].
• If [itex]u\,[itex] is of the form [itex]f t_1 ... t_n\,[itex], then [itex]u_t^x\,[itex] is defined to be the term [itex]f {t_1}_t^x ... {t_n}_t^x\,[itex].

Definition. Let [itex]\phi\,[itex] be a formula and suppose [itex]x\,[itex] is a variable and [itex]t\,[itex] is a term. We define the formula [itex]\phi_t^x\,[itex], read [itex]\phi\,[itex] with [itex]x\,[itex] replaced by [itex]t\,[itex], as follows:

• If [itex]\phi\,[itex] is of the form [itex]t_1 = t_2\,[itex], then [itex]\phi_t^x\,[itex] is defined to be the formula [itex]{t_1}_t^x = {t_2}_t^x\,[itex].
• If [itex]\phi\,[itex] is of the form [itex]R t_1 ... t_n\,[itex], then [itex]\phi_t^x\,[itex] is defined to be the formula [itex]R {t_1}_t^x, ..., {t_n}_t^x\,[itex].
• If [itex]\phi\,[itex] is of the form [itex]\lnot(\alpha)\,[itex], then [itex]\phi_t^x\,[itex] is defined to be the formula [itex]\lnot(\alpha_t^x)\,[itex].
• If [itex]\phi\,[itex] is of the form [itex](\alpha \lor \beta)\,[itex], then [itex]\phi_t^x\,[itex] is defined to be the formula [itex](\alpha_t^x \lor \beta_t^x)\,[itex].
• If [itex]\phi\,[itex] is of the form [itex](\forall y)(\alpha)\,[itex], then
• if [itex]x\,[itex] and [itex]y\,[itex] are the same variable symbol, [itex]\phi_t^x\,[itex] is defined to be the formula [itex]\phi\,[itex].
• else, [itex]\phi_t^x\,[itex] is defined to be the formula [itex](\forall y)(\alpha_t^x)\,[itex].

### Substitutability

Definition. Let [itex]\phi\,[itex] be a formula and suppose [itex]x\,[itex] is a variable and [itex]t\,[itex] is a term. We say that [itex]t\,[itex] is substitutable for [itex]x\,[itex] in [itex]\phi\,[itex], if either:

• [itex]\phi\,[itex] is atomic.
• [itex]\phi\,[itex] is of the form [itex]\lnot(\alpha)\,[itex] and [itex]t\,[itex] is substitutable for [itex]x\,[itex] in [itex]\alpha\,[itex].
• [itex]\phi\,[itex] is of the form [itex](\alpha \lor \beta)\,[itex] and [itex]t\,[itex] is substitutable for [itex]x\,[itex] in both [itex]\alpha\,[itex] and [itex]\beta\,[itex].
• [itex]\phi\,[itex] is of the form [itex](\forall y)(\alpha)\,[itex] and either
• [itex]x\,[itex] is not a free variable in [itex]\phi\,[itex].
• [itex]y\,[itex] does not occur in [itex]t\,[itex] and [itex]t\,[itex] is substitutable for [itex]x\,[itex] in [itex]\alpha\,[itex].

The notion of substitutability of terms for variables corresponds to that of the preservation of truth after substitution is carried out in terms or formulas. Strictly speaking, substitution is always allowed, but substitutability will be imperative in order to yield a formula which meaning was not deformed by the substitution.

## References

• A. S. Troelstra & H. Schwichtenberg (2000). Basic Proof Theory (Cambridge Tracts in Theoretical Computer Science) (2nd ed.). Cambridge University Press. ISBN 0521779111.
• George Boolos & Richard Jeffrey (1989). Computability and Logic (3rd ed.). Cambridge University Press. ISBN 0521007585.
• Elliott Mendelson (1997). Introduction to Mathematical Logic (4th ed.) Chapman & Hall.
• A. G. Hamilton (1988). Logic for Mathematicians Cambridge University Press.

• Art and Cultures
• Countries of the World (http://www.academickids.com/encyclopedia/index.php/Countries)
• Space and Astronomy