Continuing where we have left off, we have an acceptable signature category whose objects are triples and whose morphisms are
. We now make the step from (potentially vacuous) symbols to syntactically well-formed strings of symbols.
Classical Model Theoretic Approach To Syntax
First, we will rather informally describe a kernel signature consisting of the classical logical symbols:
- a countably infinite set
of logical variables
, and parentheses
(,); - four binary operations
and
which we’ll always interpret as
and,or,implies, andif and only ifrespectively; - one unary relation
, which we will always interpret as the Boolean connective of strong negation and a binary relation symbol
=denoting equality - the quantifiers
(read as “for all” and “exists” respectively)
Furthermore, for arbitrary P,Q and formula with free variable v, the following identities hold
With these identities, we see that it we can fully recover classical logic with and classical first order logic if we use
or
(there are other alternative choices, but classical strong negation and disjunction and a single quantifier will suffice when engaged in proofs on the induction of formula complexity in the next post).
Some readers should already be raising questions about this description — there will be a future post exploring the proof system of first order logic in which these relationships will be properly explained. For now, the reader should take as a given that all first order languages studied in classic model theory will contain this signature with the rules given above combined with the other signatures introduced in the last post; first order languages are in one-to-one correspondences with the signatures given last time modulo the kernel signature above.
In the traditional model theoretic approach to we inductively construct sentences from formula, formula from atomic formula, and atomic formula from terms.
For instance, in a singly sorted first order model theory, this inductive process is handled as follows:
Now, we will start with an arbitrary language which we may equivalently consider to be the triple
, where
is a set of constant symbols,
is the same thing as P (i.e. a set of relation symbols) such that for all
there is a positive integer
denoting the arity of the relation symbol R,and
is the set of function symbols such that each
has a positive integer
denoting its arity.
Given , we inductively form
as the smallest set such that
- for all
,
;
- for each
;
- if
and
, then
.
Notice that necessarily the set of terms has cardinality given that we are assuming a countably infinite number of logical variable symbols as terms in our arbitrary language (even one where
is empty save for the kernel of logical symbols).
Now that we have our set of terms, we define the set of atomic formula over
as the set consisting of:
where
;
- for
and
,
.
Then, given , we define the set of
-formula
to be the smallest set containing
such that
- if
then
;
- if
are formula in
, then
and
are in
;
- if
, then
and
are in
.
Finally, given , we define a sentence to be some formula
such that every logical variable appearing in
is bound by a quantifier. For instance, given
and
, we would say that
is a formula with a free variable
, while
is a sentence, as both logical variables are bound.
It is crucial to note that so far we’ve only described how to construct syntactically well-formed statements. The truth of these statements thus far is that we can say they are elements in the sets , and not that the statements that they express are true-in-themselves.
The Functorial Approach To The Syntax of FOL
Now, we switch our focus back to the institution theoretic point of view.
First, recall that we in order to have an institution, we must have a covariant functor . An arbitrary functor
is a map between categories
consisting of
;
- for all
,
such that
;
So what we must now do is define such a map . Given our syntactical category of signatures
, we want to first take
to a set whose elements will be called the sentences over the signature.
Towards that end, given an arbitrary signature , we first define the set of
-terms
inductively over the words from
using the operation symbols
and F-terms
of sorts
to form an F-term
of sort
. We denote by
the subset of terms of sort
and by
, where
, the cartesian product of terms
.
We now define the set of atoms as the set consisting of
- equations
for F-terms
of the same sort
, ;
- relational atoms
formed from
and
.
Finally, we define the set of -sentences
as the least set containing the (quantifier-free) atoms that is closed under Boolean connectives and quantification, i.e.
such that
- For
,
;
- For arbitrary quantifier $Q$, and any finite set
of variables of sort S, with variable x of sort s denoted by
, can be added to
as new constants such that the
sentence
for all
-sentences
; that is
.
We see that for any arbitrary signature, we have that .
We now turn our attention to defining this functor with respect to the morphisms of by inductively defining
on the structures of sentences. Each
is called a sentence translation, and the induction occurs by applying
to replace the symbols of
with the symbols of
as follows:
- For terms, we have a function
by
;
;
- for Boolean connectives
,
–in the case of negation, we just use
;
- For all finite sets X of variables of sort s, and all
-sentences
,
–where we denote by
and the canonical extension of
denoted by
The readers of this blog are encouraged to check that this indeed is just set-valued function from to
. We see that this satisfies the definition of a functor as
;
- With
denoting the application of the signature map
then the application of the signature map
. We finally prove this is a functor by induction on arbitrary sentences
. So that
at the level of sets.
In the latter case, we start the induction first on terms, noting that . We then start induction on sentences proper by noting in the case of equality,
. We then proceed to our relational atoms, Boolean connectives and quantification in a like manner.