Now the plot begins to thicken. The previous handout, ``Defining a Language,'' was exclusively concerned with the syntax of a language
. That is, we defined a language by carefully delimiting which strings of basic symbols in
are formulas (or what logicians sometimes call ``well-formed formulas'' or ``wffs'' for short). But we haven't said anything yet about what these formulas mean. We need a way to specify not only the syntax of a language, but also its semantics; not only which strings are grammatical, but also what their content is. This is what structures are for.
Meaning or semantics has to do with the relation between language and the world, between language and what it represents. The only nonlogical parts of a first-order language, i.e. the only items that can vary from one first-order language to another, are the constant symbols, relation symbols, and function symbols. A semantics for such a language will need to specify what these symbols express. Intuitively, constants represent particular things; function symbols represent functions; and relation symbols represent relations. (Recall the set-theoretic analysis of relations, according to which an
-place relation is a set of ordered
-tuples, and an
-place function is an
-place relation that satisfies the condition that no two tuples differ only in their last place.)
So there shouldn't be anything too surprising in the definition of a structure (Leary's Definition 1.6.1, p. 26):
Definition: Fix a language
. An
-structure
is a nonempty set
, called the universe of
, together with:
A couple of comments on the notation here may be in order. I don't see that Leary explains the expressions
or
. No doubt he assumes that his readers are already familiar with these notational devices.
is simply the set of all the ordered
-tuples whose elements are elements of
. (Another way to put this involves the notion of the Cartesian product of sets. The Cartesian product
is the set of ordered pairs
where
and
. So
is the set of ordered pairs both of whose members are elements of
. Similarly,
is the set of ordered triples all of whose members are elements of
. Then
is the general case:
is
where
occurs
times.) To describe a function
as
is to say that it is a function from
to
-- that is, that the domain of the function is
and its range is
.
A simple example: suppose that
is
. Then
is
We can define a binary function
that has
as its domain: that is, the possible pairs of arguments for the function
are
and
. Similarly, the function has
as its range - that is, the possible values of the function (relative to the universe
) are 1 and 2. (For example,
might be the max function; in that case
takes the value 1 for the argument pair (1,1) and takes the value 2 for the other three argument pairs.)