First order logic
Denote by the underlying set which is the universe of discourse. Let be a context free language (look this up), where is the set of relational symbols defined on , is the set of functional symbols (not functions, mind you) defined on , and is the set of constant symbols. We also have access to variables (we do not include them in the definition of because we can use the same variables for all ).
Terms evaluate to elements in .
where , is a variable, and , and .
Formulas are defined by the BNF
, , and can defined in terms of and .
An -structure consists of
- : the universe of discourse
- , , . These actually assign concrete relations, functions and elements of to symbols in , , and .
Variable valuations (not part of the model itself)
, , , .
Free variables are defined analogously to Definition 66.2.
Definition 227.1.
- .
- .
- .
- .
- .
- .
- .
Lemma 227.2.
If two valuations agree on , then .
If doesn’t have any free variables, it is called a sentence. If is a sentence, then denotes the partition of the collection of all models into the ones which satisfy and the ones that don’t (the valuation doesn’t matter here, since doesn’t have any free variables).
If has one free variable (denoted by ), then for a given model , defines a partition of into elements which satisfy and ones that do not. For example, defines the set of non-isolated vertices on a graph (thus, this set is said to be FO-definable). As an other example, star graphs are FO-definable: