# first order language

Let $\Sigma$ be a signature. The first order language $\operatorname{FO}(\Sigma)$ on $\Sigma$ contains the following:

1. 1.

the set $S(\Sigma)$ of symbols of $\operatorname{FO}(\Sigma)$, which is the disjoint union of the following sets:

1. (a)

$\Sigma$ (the non-logical symbols),

2. (b)

a countably infinite set $V$ of variables,

3. (c)

the set of logical symbols $\{\wedge,\vee,\neg,\Rightarrow,\Leftrightarrow,\forall,\exists\}$,

4. (d)

the singleton consisting of the equality symbol $\{=\}$, and

5. (e)

the set of parentheses (left and right) $\{(,)\}$;

2. 2.

the set $T(\Sigma)$ of terms of $\operatorname{FO}(\Sigma)$, which is built inductively from $S(\Sigma)$, as follows:

1. (a)

Any variable $v\in V$ is a term;

2. (b)

Any constant symbol in $\Sigma$ is a term;

3. (c)

If $f$ is an $n$-ary function symbol in $\Sigma$, and $t_{1},...,t_{n}$ are terms, then $f(t_{1},...,t_{n})$ is a term.

3. 3.

the set $F(\Sigma)$ of formulas of $\operatorname{FO}(\Sigma)$, which is built inductively from $T(\Sigma)$, as follows:

1. (a)

If $t_{1}$ and $t_{2}$ are terms, then $(t_{1}=t_{2})$ is a formula;

2. (b)

If $R$ is an $n$-ary relation symbol and $t_{1},...,t_{n}$ are terms, then $(R(t_{1},...,t_{n}))$ is a formula;

3. (c)

If $\varphi$ is a formula, then so is $(\neg\varphi)$;

4. (d)

If $\varphi$ and $\psi$ are formulas, then so is $(\varphi\vee\psi)$;

5. (e)

If $\varphi$ is a formula, and $x$ is a variable, then $(\exists x(\varphi))$ is a formula.

In other words, $T(\Sigma)$ and $F(\Sigma)$ are the smallest sets, among all sets satisfying the conditions given for terms and formulas, respectively.

Formulas in 3(a) and 3(b), which do not contain any logical connectives, are called the atomic formulas.

For example, in the first order language of partially ordered rings, expressions such as

 $0,\quad x^{2},\quad\mbox{ and }\quad y+zx$

are terms, while

 $(x=xy),\quad(x+y\leq yz),\quad\mbox{ and }\quad(\exists x((x\leq 0)\vee(0\leq x% )))$

are formulas, and the first two of which are atomic.

Remarks.

1. 1.

Generally, one omits parentheses in formulas, when there is no ambiguity. For example, a formula $(\varphi)$ can be simply written $\varphi$. As such, the parentheses are also called the auxiliary symbols.

2. 2.

The other logical symbols are obtained in the following way :

 $\displaystyle\varphi\wedge\psi$ $\displaystyle\overset{\operatorname{def}}{:=}\neg(\neg\varphi\vee\neg\psi)$ $\displaystyle\qquad\varphi\Rightarrow\psi$ $\displaystyle\overset{\operatorname{def}}{:=}\neg\varphi\vee\psi$ $\displaystyle\varphi\Leftrightarrow\psi$ $\displaystyle\overset{\operatorname{def}}{:=}(\varphi\Rightarrow\psi)\wedge(% \psi\Rightarrow\varphi)$ $\displaystyle\qquad\forall x(\varphi)$ $\displaystyle\overset{\operatorname{def}}{:=}\neg(\exists x(\neg\varphi))$

where $\varphi$ and $\psi$ are formulas. All logical symbols are used when building formulas.

3. 3.

In the literature, it is a common practice to write $\Sigma_{\omega\omega}$ for $\operatorname{FO}(\Sigma)$. The first subscript means that every formula in $\operatorname{FO}(\Sigma)$ contains a finite number of $\vee$’s (less than $\omega$), while the second subscript signifies that every formula has a finite number of $\exists$’s. In general, $\Sigma_{\alpha\beta}$ denotes a language built from $\Sigma$ such that, in any given formula, the number of occurrences of $\vee$ is less than $\alpha$ and the number of occurrences of $\exists$ is less than $\beta$. When the number of occurrences of $\vee$ (or $\exists$) in a formula is not limited, we use the symbol $\infty$ in place of $\alpha$ (or $\beta$). Clearly, if $\alpha$ and $\beta$ are not $\omega$, we get a language that is not first-order.

## First Order Languages as Formal Languages

If the signature $\Sigma$ and the set $V$ of variables are countable, then $S(\Sigma),T(\Sigma)$, and $F(\Sigma)$ can be viewed as formal languages over a certain (finite) alphabet $\Gamma$. The set $\Gamma$ should include all of the logical connectives, the equality symbol, and the parentheses, as well as the following symbols

 $R,F,V,I,\#,$

where they are used to form words for relation, formula, and variable symbols. More precisely,

• $VI^{n}\#$ stands for the variable $v_{n}$,

• $RI^{n}\#I^{m}\#$ stands for the $m$-th relation symbol of arity $n$, and

• $FI^{n}\#I^{m}\#$ stands for the $m$-th function symbol of arity $n$,

where $m,n\geq 0$ are integers. The symbol $\#$ is used as a delimiter or separator. Note that the constant symbols are then words of the form $F\#I^{m}\#$. It can shown that $S(\Sigma),T(\Sigma)$ and $F(\Sigma)$ are context-free over $\Gamma$, and in fact unambiguous.

## References

• 1 W. Hodges, A Shorter Model Theory, Cambridge University Press, (1997).
• 2 D. Marker, Model Theory, An Introduction, Springer, (2002).
 Title first order language Canonical name FirstOrderLanguage Date of creation 2013-03-22 12:42:46 Last modified on 2013-03-22 12:42:46 Owner CWoo (3771) Last modified by CWoo (3771) Numerical id 28 Author CWoo (3771) Entry type Definition Classification msc 03C07 Classification msc 03B10 Synonym auxiliary symbol Synonym first-order language Related topic Type2 Related topic Language Related topic AtomicFormula Defines first order language Defines term Defines formula