0. Preliminary Remarks
1. First-order Languages
def: $\textbf{SYMBOL}$
We assume that we have been given infinitely many distinct objects (which we call symbols), arranged as follows:
A. Logic Symbols
- Parenthesis: $\left(\right.$, $\left.\right)$.
- Sentential Connective Symbols: $\to$, $\neg$.
- Variables (one for each postive integer $n$):
- Equality Symbol (optional): $=$.
B. Parameters
- Quantifier Symbol (量词): $\forall$.
- Predicable Symbol (谓词): For each positive integer $n$, some set (possibly empty) of symbols, called $n$-place predicate symbols.
- Constant Symbols (常量): Some set (possibly empty) of symbols.
- Function Symbols: For each positive integer $n$, some set (possibly empty) of symbols, called $n$-place function symbols.
Note that:
- $\exists$: $\exists$ is not necessary because $\exists x$ can be replaced by $\neg\forall x\neg$
- $=$: In A.3 we allow for the possibility of the equality symbol’s being present, but we do not assume its presence. Some languages will have it and others will not.
- Constant Symbol: In B.2, the constant symbols are also called 0-place function symbols. (This allows a uniform treatment of constants and functions.)
To distinguish a first-order language from other (first-order) languages, we should at least:
- say whether or not the equality symbol is present, and
- say what the parameters are.
1.1. Formulas
$def: \textbf{Expression}$
An expression is any finite sequence of symbols. Of course most expressions are nonsensical, but there are certain interesting expressions: the terms and the wffs.
$def: \textbf{Term}$
The set of terms is the set of expressions that can be built up from the constant symbols and variables by applying (zero or more times) the $\mathcal F_f$ operations, where $\mathcal F_{f}$ is a $n$-place term-building operation defined from $f$, an $n$-place function symbol.
If there are no function symbols (apart from the constant symbols), then the terms are just the constant symbols and the variables.
$def: \textbf{Atomic Formula}$
The set of atomic formulas is the set of expressions that can be built up from the predicate symbols and terms by applying (zero or more times) the $\mathcal F_P$ operations, where $\mathcal F_{P}$ is a $n$-place atomic formula-building operation defined from $P$, an $n$-place predicate symbol.
The atomic formulas will play a role roughly analogous to that played by the sentence symbols in sentential logic.
$def: \textbf{Well-formed Formula}$
The set of well-formed formulas (wffs) is the smallest set of expressions that contains all the atomic formulas and is closed under the following operations:
1.2. Free and Bound Variables
$def: \textbf{Occur Free}$
Consider any variable $x$. We define, for each wff $\alpha$, what it means for $x$ to occur free in $\alpha$. This we do by recursion:
- If $\alpha$ is atomic, then $x$ occurs free in $\alpha$ iff $x$ occurs in $\alpha$ as a symbol.
- $x$ occurs free in $\neg \alpha$ iff $x$ occurs free in $\alpha$.
- $x$ occurs free in $(\alpha\to\beta)$ iff $x$ occurs free in $\alpha$ or $x$ occurs free in $\beta$.
- $x$ occurs free in $\forall y\alpha$ iff $x$ occurs free in $\alpha$ and $x\neq y$.
$def: \textbf{Sentence}$
A wff $\alpha$ is a sentence iff no variable occurs free in $\alpha$.
Note that a sentence is the most meaningful wff.
Similar usages of variables occur elsewhere in mathematics. In
$i$ is a dummy variable (假变量) and $j$ is a free variable.
1.3. On Notation
We adopt then the following abbreviations and conventions. Here $\alpha$ and $\beta$ are formulas, $x$ is a variable, and $u$ and $t$ are terms.
- $(\alpha \lor \beta)$ abbreviates $((\neg \alpha) \to \beta)$.
- $(\alpha \land \beta)$ abbreviates $(\neg(\alpha \to (\neg \beta)))$.
- $(\alpha \leftrightarrow \beta)$ abbreviates $((\alpha \to \beta) \land (\beta \to \alpha))$.
- $\exists x\alpha$ abbreviates $\neg\forall x\neg\alpha$.
- $u=t$ abbreviates $=ut$.
- $u\neq t$ abbreviates $\neg = u t$.
- etc.
Note well that we are not changing our definition of what a wff is. We are simply conspiring to fix certain ways of naming wffs for convenience.
2. Truth and Models
In sentential logic we had truth assignments to tell us which sentence symbols were to be interpreted as being true and which as false.
In firstorder logic the analogous role is played by structures, which can be thought of as providing the dictionary for translations from the formal language into natural language.
With a structure $\gA$ we can know:
-
What collection of things the universal quantifier symbol ($\forall$) refers to, and
-
What the other parameters (the predicate and function symbols) denote.
$def:\textbf{Structure}$
Formally, a structure $\gA$ for a given first-order language is a function, whose domain is the set of all the symbols of the language, such that:
-
$\gA$ assigns $\forall$ a nonempty set $\gA(\forall)$, or $|\gA|$, called the universe or domain of $\gA$.
-
$\gA$ assigns to each $n$-place predicate symbol $P$ an $n$-ary relation $\gA(P)$ or $P^{\gA}\subseteq |\gA|^n$, a subset of $|\gA|^n$ for some $n$.
-
$\gA$ assigns to each constant $c$ a member $\gA(c)$ or $c^{\gA}\in|\gA|$.
-
$\gA$ assigns to each $n$-place function symbol $f$ an $n$-ary function $\gA(f)$ or $f^{\gA}:|\gA|^n\to|\gA|$.
注意这里所有的符号都是新定义的, 不要认为$|\gA|$是模长.
We would show that a sentence is sometimes true and sometimes false difference structures. For example, the sentence
where $P$ is a 2-place predicate symbol.
Consider Set Theory, we can define a structure $\gA$ as follows:
Except for $\forall$, $\in$ is the only predicate symbol in Set Theory.
So $\varphi$ can be translated to natural language as:
This is false obviously.
Or we can define another finite structure $\gB$ as follows:
where $P(x, y)$ means there is a directed edge from $x$ to $y$. So the graph of $\gB$ is:
Then $\varphi$ can be translated to natural language as:
This is true because $d$ is such a vertex.
So before we define the “$\sigma$ is true in $\gA$”, denoted as
for sentences $\sigma$ and structures $\gA$,
we find it desirable first to define a more general concept involving wffs. Let:
Then we will define what it means for $\gA$ to satisfy $\varphi$ with $s$, denoted by
$def: \textbf{Satisfy}$
The formal definition of satisfaction proceeds as follows.
- for terms
We define the extension
a function from the set $T$ of all terms into the universe of $\gA$. The idea is that $s(t)$ should be the member of the universe $|\gA|$ that is named by the term $t$. $\bar s$ is defined by recursion as follows:
- for each variable $x$, $\bar s(x)=s(x)$
- for each constant symbol $c$, $\bar s(c)=c^{\gA}$
- if $t_i(i=1,2,\ldots,n)$ are terms and $f$ is a $n$-place function symbol, then
3. A Parsing Algorithm
4. Deductive Calculus
5. Soundness and Completeness Theorems
In this section we establish two major theorems: the soundness of our deductive calculus
and its completeness
\text{< is an ordering with no largest element.}
111
$$