Lesson 3.11,958 words

First-Order Languages

Sentential logic cannot see inside a simple statement, so it misses valid arguments that turn on quantifiers and predicates. A first-order language adds a quantifier, variables, and a chosen vocabulary of predicate, function, and constant symbols.

╌╌╌╌

Sentential logic treats a sentence as an indivisible atom. A sentence symbol is either true or false, and the connectives combine those verdicts, but nothing in the apparatus looks inside . That coarseness is fatal for ordinary mathematical reasoning. Consider the classic syllogism:

  • All men are mortal.
  • Socrates is a man.
  • Therefore Socrates is mortal.

Anyone accepts this as valid. Yet if we translate the three sentences into sentential logic we must assign them three unrelated symbols , , , and is false: a truth assignment making and true and false is available, because sentential logic cannot represent that the three sentences share the subject Socrates and the predicates man and mortal. The validity turns on structure the model cannot express.1

First-order logic supplies exactly that structure. It keeps the connectives of sentential logic and adds three devices: variables that range over a domain, a quantifier (for all), and a vocabulary of predicate, function, and constant symbols that describe the objects in the domain. The Socrates argument becomes

with for is a man, for is mortal, and naming Socrates. This consequence holds once satisfaction is defined. Almost any argument a working mathematician writes in a proof can be mirrored in a first-order language; that expressive reach is why first-order logic, rather than a weaker system, is the standard object of metamathematics.

Two simplifications

Before listing symbols we adopt two simplifications, each justified by results from sentential logic, each reducing the symbol set with no loss of expressive power.

  • One adequate pair of connectives. We keep only and . The set is expressively complete, so , , are recovered as abbreviations and never enter the official alphabet.
  • One quantifier. We keep only the universal quantifier . The existential quantifier is definable: there is something rotten in Denmark says it is not the case that everything is un-rotten, so abbreviates . A single quantifier symbol suffices.

These are conveniences of presentation. Every theorem below holds unchanged under the richer alphabet; the shorter one keeps inductions and case analyses to a minimum.

The alphabet

A first-order language draws its symbols from two pools. One pool is fixed and present in every first-order language; the other is chosen when we decide which language we are studying.2

The equality symbol occupies a middle position. It is a two-place predicate, but it is classified as a logical symbol rather than a parameter, because its interpretation is fixed once and for all as genuine identity, not left open the way an ordinary predicate is. A language either has or does not; we say so explicitly when we name the language. We do assume at least one predicate symbol is present for some arity, so that formulas can be built at all. Constant symbols are treated uniformly as -place function symbols, which spares us separate clauses for constants in many later arguments.

The symbols split into a fixed logical core, present in every first-order language, and a chosen parameter vocabulary that names the subject matter.

The connective symbols carry their sentential readings unchanged. The three defined connectives are abbreviations, spelled out in the last section.

SymbolReadingStatus
notprimitive
impliesprimitive
andabbreviation
orabbreviation
if and only ifabbreviation
for allprimitive (parameter)
there existsabbreviation

Naming a language

To specify a particular first-order language, as distinct from every other, we answer two questions: is the equality symbol present, and what are the parameters? Four languages recur throughout these notes.

  • Pure predicate language. Equality: no. For each , predicate symbols ; constant symbols ; no function symbols of positive arity. The barest setting, used for counterexamples.
  • Language of set theory. Equality: yes. One two-place predicate symbol ; no function symbols (occasionally a constant ). Nearly all of mathematics embeds here: statements become sentences of set theory, and theorems follow from the set-theoretic axioms.
  • Language of elementary number theory. Equality: yes. A two-place predicate ; a constant ; a one-place function symbol (successor); two-place function symbols , , and (exponentiation). This is the language of Chapter 3.
  • Language of group theory. Equality: yes. A two-place function symbol (the group operation), and optionally a constant for the identity.

Translation

A sentence like there is no set of which every set is a member translates in stages, from English through a mixed idiom to the official symbols. In the language of set theory, reading as for all sets and as membership, we pass through

Two conventions of the official syntax appear here. Predicate symbols go on the left of their arguments, so is really ; and expands to . The finished string is hard to read, and the abbreviations below exist to avoid it. But the finished string is what the definitions govern.

Two patterns account for most quantified translations. A claim that everything in a category has a property takes ; a claim that some object in the category has a property takes . Swapping the connective between the two patterns changes the meaning drastically.

The two translation templates; a universal claim binds the category and the property with an implication, an existential claim with a conjunction. Swapping the connective between them changes the assertion.

Terms

The terms are the noun phrases of the language: the expressions that name objects. They are built from the variables and constant symbols by prefixing function symbols. To reuse the recursion of Chapter 1, each -place function symbol carries a term-building operation on expressions,

which writes at the front and concatenates its arguments — Polish notation, with no parentheses and no commas.

If the only function symbols are constants, no recursion is needed: the terms are just the variables and the constants. With genuine function symbols present, a term is any expression assembled by finitely many prefixings. In the language of number theory, names (the successor of the successor of zero), and names — again the function symbol leads. A term never contains a connective or a quantifier; those belong to formulas.

The term (infix for a two-place function symbol ) parsed as a tree; every internal node is a function symbol, every leaf a variable or constant.

Atomic formulas and well-formed formulas

Atomic formulas are the smallest complete assertions. Unlike terms and compound formulas, they are defined explicitly, not by recursion.

Thus is atomic (equality is a two-place predicate), as is in the language of set theory. Atomic formulas play the role that sentence symbols played in sentential logic: they are the base of the recursion that builds every formula.

The compound formulas are built from atomic ones by the connectives and the quantifier. As with terms, we phrase the construction through formula-building operations on expressions,

The expression is not a wff: is a term, not a formula, so cannot apply to it. By contrast the following string is a wff, built up atom by atom — it happens to be the axiom of regularity for set theory:

Its structure is that of a formation tree, atomic formulas at the leaves and one building operation at each internal node.

A formation tree for the wff ; the quantifier node binds over the implication below it.

Free and bound variables

Compare two wffs of set theory:

The second reads there is a set of which every set is a member, a complete statement. The first can only be read every set is a member of ___, with a blank we cannot fill until we know what refers to. The difference is that occurs free in the first wff and does not in the second, where the prefix has captured it. We make this precise without appeal to English by recursion on the wff.

The last clause is where binding happens: a prefix removes from the free variables of whatever it governs. The definition is legitimate because every wff has a unique formation tree, a fact proved in the parsing lesson; the recursion theorem of Chapter 1 then guarantees a unique free-variable function on all wffs.

Each variable occurrence in tagged bound or free; the two 's are bound by the outer quantifier, both 's by the inner one.

Sentences are the wffs of primary interest; the others exist mainly as building blocks. The two examples and are sentences, whereas occurs free in — note that the second lies outside the reach of once outermost parentheses are read correctly.

The particular variables in a sentence do not matter. All apples are bad translates equally well as or ; the variable is used as a pronoun. Because the choice is immaterial, we often write , where stands for some unspecified variable. The same pattern appears wherever mathematicians use a dummy index, as in a sum is bound while occurs free.

Notational conventions

The official syntax is complete but hard to read. We therefore fix ways of naming wffs more readably, without changing the definition of what a wff is. Here are formulas, a variable, terms.

  • abbreviates .
  • abbreviates .
  • abbreviates .
  • abbreviates .
  • abbreviates ; likewise abbreviates and abbreviates , restoring familiar infix placement for chosen two-place symbols.
  • abbreviates .

Parentheses are dropped by rules of precedence: outermost parentheses go; , , bind as little as possible; and bind less than ; and a repeated connective groups to the right, so means . Under these conventions the regularity axiom above reads — the same wff, now legible.

These abbreviations are naming devices only. In the rare cases where the exact sequence of symbols matters, drop the conventions and revert to primitive notation. A wff carries no meaning until a structure interprets its parameters and fixes when it is satisfied.

Footnotes

  1. Enderton, §2.0 — the passage from sentential to first-order logic, and the economy measures reducing the connectives to and the quantifiers to alone. ↩
  2. Enderton, §2.1 — the division of symbols into logical symbols and parameters, the status of equality as a distinguished logical symbol, and the recursive definitions of terms, atomic formulas, wffs, and free occurrence. ↩ ↩2 ↩3

╌╌ END ╌╌