The WFFs we have studied so far only capture logical statements of a very simple form. Very commonly we want to work with more complex statements, especially those that depend on some kind of parameter or variable. Here are some examples.
There exists a rational number with .
For every natural number22 2 A natural number is a non-negative whole number. there exists a natural number with .
For all real numbers there exists a real number such that for all real numbers greater than it holds that is greater than .
This kind of statement is especially common in analysis, but they arise everywhere in mathematics. Propositional calculus doesn’t have a way of talking about statements that depend on a variable, and might be true for some values, or all values, or no values that variable could take. It also has no way to talk about functions or relations. The logical theory we’re going to learn about that can deal with statements like this is called first order logic or predicate calculus.
In propositional calculus we had WFFs. The corresponding thing in first order calculus is called a first order formula.
When we studied propositional calculus, we were able to give a precise definition of a WFF. Doing something similar in first order logic is much more complicated, so we won’t do that (if you want to know how, read chapter 4 of the book by Goldrei mentioned in the further reading section at the end of this chapter, or take MATH0037 in year 3). Instead we are going to list the ingredients used to write first order formulas and give some examples.
Here is a simple example of a first order formula:
The intended meaning of this is “for all , there exists a , such that and are related by the relation .” At the moment, this is like a WFF in that it isn’t true or false — we need more information (what sort of thing are the s and s? What is the relation ?) to decide that.
First order formulas are made up of
quantifiers and ,
the logical connectives and brackets,
variable symbols , and
relation symbols
The quantifiers and are known as the universal quantifier and the existential quantifier). Formulas that contain are interpreted to mean “for all , …” and formulas that contain are interpreted to mean “there exists an such that ….”
We write to indicate that and are related by some relation . A two-variable relation is a property of two things that can be true or false, for example and and are relations on the real numbers: for every two real numbers and , the statements and and are either true or false.
We allow relations on any number of things. A one-variable relation is just a true or false property of a single thing (for example, “ is even”), a three-variable relation is a true or false property of three things (for example, “ equals ”), and so on.
The three statements in Example 1.9.1 correspond to first order formulas
(“there exists a rational number with ”)
(“for every natural number there exists a natural number with ”)
(“for all there exists an such that for all greater than , is greater than .”)
Turning the first order formula into the statement in brackets is called giving an interpretation for the formula.