Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@

\begin{defn}[Rules for quantifiers]
\item If $!B \lif !A(a)$ already occurs in the !!{derivation} and $a$
does not occur in~$\Gamma$ or~$!B$, then $!B \lif
is a constant that does not occur in~$\Gamma$, $!B$, or~$!A(x)$, then $!B \lif
\lforall[x][!A(x)]$ is a correct inference step.
\item If $!A(a) \lif !B$ already occurs in the !!{derivation} and $a$
does not occur in~$\Gamma$ or~$!B$, then $\lexists[x][!A(x)] \lif
is a constant that does not occur in~$\Gamma$, $!B$, or~$!A(x)$, then $\lexists[x][!A(x)] \lif
!B$ is a correct inference step.
\end{defn}

We'll abbreviate either of these by ``\QR.''

Here $\Gamma$ is the finite premise set chosen to witness derivability.

\end{document}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
\end{thm}

\begin{proof}
Choose a finite support for the given !!{derivation}, and rename
quantifier-rule eigenconstants as in \olref[ptn]{prop:transitivity} so
that adjoining $!A$ as a premise is permitted. It suffices to prove the
claim for this finite set of other premises, which we again call
$\Gamma$; the result for the original set follows by monotonicity.
We again proceed by induction on the length
of the !!{derivation} of $!B$ from $\Gamma \cup \{!A\}$.

Expand All @@ -28,7 +33,7 @@
as in the proof of \olref[ded]{thm:deduction-thm}. If the inference
rule is \QR, we know that $!B \ident !C \lif \lforall[x][!D(x)]$ and
!!a{formula} of the form $!C \lif !D(a)$ appears earlier in the
!!{derivation}, where $a$ does not occur in~$!C$, $!A$, or $\Gamma$. We
!!{derivation}, where $a$ does not occur in~$!C$, $!A$, $!D(x)$, or $\Gamma$. We
thus have that
\begin{align*}
\Gamma \cup \{!A\} & \Proves !C \lif !D(a),\\
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,15 @@
is an axiom, then $\Gamma \Proves !B$. We also have that $\Gamma
\Proves !B \lif (!A \lif !B)$ by \olref[prp]{ax:lif1}, and
\olref{prop:mp} gives $\Gamma \Proves !A \lif !B$. If $!B \in \{ !A\}$
then $\Gamma \Proves !A \lif !B$ because the last !!{sentence}~$!A
then $\Gamma \Proves !A \lif !B$ because the last !!{formula}~$!A
\lif !B$ is the same as $!A \lif !A$, and we have !!{derive}d that in
\olref[pro]{ex:identity}.

For the inductive step, suppose !!a{derivation} of~$!B$ from
$\Gamma \cup \{!A\}$ ends with a step~$!B$ which is justified by modus
ponens. (If it is not justified by modus ponens, $!B \in \Gamma$, $!B
ponens. \iftag{FOL}{The additional quantifier-rule cases are proved in
\olref[ddq]{thm:deduction-thm-q}.}{}
(If it is not justified by modus ponens\iftag{FOL}{ or \QR}{}, $!B \in \Gamma$, $!B
\ident !A$, or $!B$ is an axiom, and the same reasoning as in the
induction basis applies.) Then some previous steps in the
!!{derivation} are $!C \lif !B$ and $!C$, for some !!{formula}~$!C$,
Expand Down
6 changes: 3 additions & 3 deletions content/first-order-logic/axiomatic-deduction/identity.tex
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
\end{prob}

\begin{prop}\ollabel{prop:iden1}
$\Gamma \Proves \eq[t][t]$, for any term $t$ and set~$\Gamma$.
$\Gamma \Proves \eq[t][t]$, for any closed term $t$ and set~$\Gamma$.
\end{prop}

\begin{prop}\ollabel{prop:iden2}
If $\Gamma \Proves !A(t_1)$ and $\Gamma \Proves
\eq[t_1][t_2]$, then $\Gamma \Proves !A(t_2)$.
If $t_1$ and $t_2$ are closed terms, $\Gamma \Proves !A(t_1)$, and
$\Gamma \Proves \eq[t_1][t_2]$, then $\Gamma \Proves !A(t_2)$.
\end{prop}

\begin{proof}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@
!!^a{formula}~$!A$ is \emph{!!{derivable}} from $\Gamma$, written
$\Gamma \Proves !A$, if there is !!a{derivation} from~$\Gamma$ ending
in~$!A$.
\iftag{FOL}{For an arbitrary premise set, $\Gamma \Proves !A$ means
that there is such a !!{derivation} from a finite subset
$\Gamma_0 \subseteq \Gamma$. Fresh constants may be chosen in a finite
expansion of the language, and the freshness conditions on quantifier
rules refer to this chosen finite premise set.}{}
\end{defn}

\begin{defn}[Theorems]
Expand Down Expand Up @@ -56,8 +61,11 @@
\end{prop}

\begin{proof}
Any !!{derivation} of $!A$ from $\Gamma$ is also !!a{derivation} of
$!A$ from~$\Delta$.
\iftag{FOL}{A finite $\Gamma_0 \subseteq \Gamma$ witnessing
$\Gamma \Proves !A$ is also a finite subset of~$\Delta$. The same
!!{derivation} from~$\Gamma_0$ therefore witnesses $\Delta \Proves !A$.}{Any
!!{derivation} of $!A$ from $\Gamma$ is also !!a{derivation} of
$!A$ from~$\Delta$.}
\end{proof}

\begin{prop}[Transitivity]
Expand All @@ -67,6 +75,14 @@
\end{prop}

\begin{proof}
\iftag{FOL}{First choose finite premise supports for the two
!!{derivation}s. Before combining them, make each quantifier-rule
eigenconstant fresh for their union: copy the subderivation leading to
that rule's premise and rename its eigenconstant throughout the copy to
a new constant. The rule's conclusion and the original premises do not
contain that eigenconstant, so they stay unchanged. Repeating this for
the finitely many rule applications makes both !!{derivation}s legal
over the combined support.}{}
Suppose $\{!A\} \cup \Delta \Proves !B$. Then there is
!!a{derivation} $!B_1$, \dots, $!B_l = !B$ from~$\{!A\} \cup
\Delta$. Some of the steps in that !!{derivation} will be correct
Expand All @@ -79,7 +95,7 @@
!A_1, \dots, !A_k = !A, !B_1, \dots, !B_l = !B.
\]
This is a correct !!{derivation} of~$!B$ from $\Gamma \cup \Delta$
since every $B_i = !A$ is now justified by the same rule which
since every $!B_i = !A$ is now justified by the same justification which
justifies~$!A_k = !A$.
\end{proof}

Expand Down Expand Up @@ -124,8 +140,8 @@
\item If $\Gamma \Proves !A$, then there is a finite sequence of
!!{formula}s $!A_1$, \dots,~$!A_n$ so that $!A \ident !A_n$ and
each $!A_i$ is either a logical axiom, !!a{element} of~$\Gamma$
or follows from previous !!{formula}s by modus ponens. Take
$\Gamma_0$ to be those $!A_i$ which are in~$\Gamma$. Then the
or follows from previous !!{formula}s by a rule of inference. Take
$\Gamma_0$ to consist of the !!{formula}s used as premise steps. Then the
!!{derivation} is likewise !!a{derivation} from~$\Gamma_0$, and
so $\Gamma_0 \Proves !A$.
\item This is the contrapositive of~(1) for the special case $!A
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@
\begin{proof}
By the deduction theorem, $\Gamma \Proves \ltrue \lif !A(c)$. Since
$c$ does not occur in $\Gamma$ or~$\top$, we get $\Gamma \Proves
\ltrue \lif \lforall[x][!A(x)]$. By the deduction theorem again, $\Gamma \Proves
\lforall[x][!A(x)]$.
\ltrue \lif \lforall[x][!A(x)]$. Since $\Proves \ltrue$ by \olref[prp]{ax:ltrue}, \olref[ded]{prop:mp}
gives $\Gamma \Proves \lforall[x][!A(x)]$.
\end{proof}

\begin{prop}
\ollabel{prop:provability-quantifiers}
For any closed term~$t$:
\begin{tagenumerate}{prvEx,prvAll}
\tagitem{prvEx}{$!A(t) \Proves \lexists[x][!A(x)]$.}{}

Expand Down
40 changes: 29 additions & 11 deletions content/first-order-logic/axiomatic-deduction/provability.tex
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,23 @@

\olsection{Properties of \usetoken{S}{derivability}}

\begin{editorial}
This section uses a separate classical axiom presentation. Ax0 consists
of all propositional tautology instances. Ax1 consists of
$\lforall[x][!A] \lif \Subst{!A}{t}{x}$, where $t$ is !!{free for} $x$;
Ax2 is $\lforall[x][(!A \lif !B)] \lif
(\lforall[x][!A] \lif \lforall[x][!B])$; and Ax3 is
$!A \lif \lforall[x][!A]$ when $x$ is not free in $!A$.
All finite universal closures of these axioms are also axioms.
If the existential quantifier is primitive, also include all finite
universal closures of $\lexists[x][!A] \liff \lnot\lforall[x][\lnot !A]$.
The sole inference rule is modus ponens. Here $\mathsf{Thm}_\Gamma$ is
the set obtained from the axioms and $\Gamma$ by that rule, so each
!!{derivation} uses only finitely many premises. The Ax0--Ax3 names and
the following proofs refer to this presentation, not to the quantifier
rules in \olref[qua]{sec}.
\end{editorial}

\begin{prop}[Monotonicity] If $\Gamma \subseteq \Delta$ and $\Gamma \Proves !A$
then also $\Delta \Proves !A$ \end{prop}

Expand Down Expand Up @@ -73,16 +90,16 @@
Since $\Gamma_0 \subseteq \Gamma$ and $\Gamma_1 \subseteq \Gamma$,
$\Gamma_0 \cup \Gamma_1 \subseteq \Gamma$, hence $\Gamma \Proves \lfalse$.

\item We assume that $\Gamma_0 \cup\{\lnot !A\} \Proves \lfalse$.
\item We assume that $\Gamma_0 \cup\{!A\} \Proves \lfalse$.

\begin{derivation}
1. & $\Gamma_0 \cup\{\lnot !A\} \Proves \lfalse$ & hyp. \\
2. & $\Gamma_0 \Proves \lnot !A \lif \lfalse$ & Deduction Theorem\\
3. & $\Gamma_0 \Proves (\lnot !A \lif \lfalse) \lif !A$ & Ax0\\
4. & $\Gamma_0 \Proves !A$ & MP 2, 3 \\
1. & $\Gamma_0 \cup\{!A\} \Proves \lfalse$ & hyp. \\
2. & $\Gamma_0 \Proves !A \lif \lfalse$ & Deduction Theorem\\
3. & $\Gamma_0 \Proves (!A \lif \lfalse) \lif \lnot !A$ & Ax0\\
4. & $\Gamma_0 \Proves \lnot !A$ & MP 2, 3 \\
\end{derivation}

\item We assume that $\Gamma \cup \{ !A \} \Proves \lfalse$ and that
\item We assume that $\Gamma_0 \cup \{ !A \} \Proves \lfalse$ and that
$\Gamma_1 \cup \{\lnot !A \} \Proves \lfalse$.

\begin{derivation}
Expand Down Expand Up @@ -121,7 +138,7 @@
\begin{derivation}
1. & $\Gamma_0 \Proves !A \land !B$ & hyp \\
2. & $\Gamma_0 \Proves (!A\land !B) \lif !A $ & Ax0\\
3. & $\Gamma_0 \Proves !A \lor !B$ & MP 1, 2 \\
3. & $\Gamma_0 \Proves !A$ & MP 1, 2 \\
\end{derivation}

Hence, $\Gamma \Proves !A$. A similar !!{derivation} starting shows that
Expand All @@ -132,15 +149,16 @@

% prop:provability-mp
\tagitem{defIf}{}{ \iftag{probIf}{Exercise.}{ We
assume both that $\Gamma_0 \Proves !A$ and $\Gamma_0 \Proves !A \lif !B $.
choose a common finite $\Gamma_0 \subseteq \Gamma$ such that
$\Gamma_0 \Proves !A$ and $\Gamma_0 \Proves !A \lif !B $.

\begin{derivation}
1. & $\Gamma_0 \Proves !A$ & hyp \\
2. & $\Gamma_0 \Proves !A \lif !B $ & hyp\\
3. & $\Gamma_0 \Proves !B$ & MP 1, 2\\
\end{derivation}

Since $\Gamma_0 \cup \Gamma_1 \subseteq \Gamma$, this means that $\Gamma
Since $\Gamma_0 \subseteq \Gamma$, this means that $\Gamma
\Proves !B$.}}

% prop:provability-lif
Expand Down Expand Up @@ -194,7 +212,7 @@
that $!A=!A_n$. Pick a variable $x$ not in $!A_1,\ldots,!A_n$, and consider
the new sequence: $\Subst{!A_1}{x}{c},\ldots,\Subst{!A_n}{x}{c}.$ Such a
sequence is a proof of $\Subst{!A}{x}{c}$ from $\Gamma$. In fact, for each
$i=1,\ldots,n$: \begin{itemize} \item if $!A$ is an axiom, then so is
$i=1,\ldots,n$: \begin{itemize} \item if $!A_i$ is an axiom, then so is
$\Subst{!A_i}{x}{c}$; \item if $!A_i \in \Gamma$, then since $c$ is not in
$\Gamma$, we have $\Subst{!A_i}{x}{c} = !A_i \in \Gamma$; \item if $!A_i$
is obtained from $!A_j$ and $!A_j \lif !A_i$ then $\Subst{!A_i}{x}{c}$
Expand Down Expand Up @@ -223,7 +241,7 @@
is !!{free for} $y$ in $\Subst{!A}{y}{c}$.
\end{lem}

\begin{proof} If $x$ is not !!{free for} $y$ in $\Subst{!A}{y}{x}$, then
\begin{proof} If $x$ is not !!{free for} $y$ in $\Subst{!A}{y}{c}$, then
some free occurrence of $y$ in $\Subst{!A}{y}{c}$ falls within the scope of
a quantifier $\lforall[x]$. But $y$ is not free in $!A$, by hypothesis, so
all such occurrences come from the substitution $\Subst{}{y}{c}$. So some
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
Let us give !!a{derivation} of $(\lforall[x][!A(x)] \land
\lforall[y][!B(y)]) \lif \lforall[x][(!A(x) \land !B(x))]$.

Assume that the only possible free variables of $!A(x)$ and $!B(y)$
are $x$ and $y$, respectively, and choose $a$ absent from both matrices.
First, note that
\begin{align*}
(\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif \lforall[x][!A(x)]\\
Expand All @@ -26,7 +28,7 @@
\lforall[y][!B(y)] & \lif !B(a)\\
\intertext{are instances of \olref[prp]{ax:land2} and \olref[qua]{ax:q1}, respectively,}
(\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif !B(a)\\
\intertext{is derivable by \olref[pro]{prop:chain}. Using an appropriate instance of \olref[prp]{ax:land3} and two applications of~\MP, we see that}
\intertext{is derivable by \olref[pro]{prop:chain}. By \olref[prp]{ax:land3} and \olref[pro]{prop:chain}, the first implication above yields an implication from the same antecedent to $!B(a) \lif (!A(a) \land !B(a))$. The corresponding instance of \olref[prp]{ax:lif2}, followed by two applications of~\MP, combines this with the second implication and shows that}
(\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif (!A(a) \land !B(a))\\
\intertext{is derivable. We can now apply \QR{} to obtain}
(\lforall[x][!A(x)] \land \lforall[y][!B(y)]) & \lif \lforall[x][(!A(x) \land !B(x))].
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
\begin{ex}
Suppose we want to prove $(\lnot !D \lor !E) \lif (!D \lif
!E)$. Clearly, this is not an instance of any of our axioms, so we
have to use the \MP{} rule to !!{derive} it. Our only rule is~MP, which
have to use the \MP{} rule to !!{derive} it. The only rule needed here is~MP, which
given $!A$ and $!A \lif !B$ allows us to justify~$!B$. One
strategy would be to use \olref[prp]{ax:lor3} with $!A$ being $\lnot
!D$, $!B$ being $!E$, and $!C$ being $!D \lif !E$, i.e., the instance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,11 @@
A !!{formula}~$!A$ is \emph{!!{derivable}} from $\Gamma$, written
$\Gamma \Proves !A$, if there is !!a{derivation} from $\Gamma$ ending
in $!A$.
\iftag{FOL}{For an arbitrary premise set, $\Gamma \Proves !A$ means
that there is such a !!{derivation} from a finite subset
$\Gamma_0 \subseteq \Gamma$. Fresh constants may be chosen in a finite
expansion of the language, and the freshness conditions on quantifier
rules refer to this chosen finite premise set.}{}
\end{defn}

\begin{defn}[Theorems]
Expand Down
18 changes: 16 additions & 2 deletions content/first-order-logic/axiomatic-deduction/soundness.tex
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,21 @@

\begin{thm}[Soundness]
\ollabel{thm:soundness}
\iftag{FOL}{Let $\Gamma$ be a set of sentences and $!A$ a sentence. }{}
If $\Gamma \Proves !A$ then $\Gamma \Entails !A$.
\end{thm}

\begin{proof}
\iftag{FOL}{Choose a finite premise support. Replace each free
variable in its finite !!{derivation} by a distinct new constant, using
the same replacement at every free occurrence. This leaves the sentence
premises and conclusion unchanged and makes all intermediate formulas
sentences. The replacements preserve axiom instances, modus ponens,
and the quantifier rules: the new constants are distinct from every
eigenconstant already in the !!{derivation}. Every structure for the
original language has an expansion interpreting the finitely many new
constants. It therefore suffices to prove soundness for this sentence
!!{derivation} from the finite support, again denoted by $\Gamma$.}{}
By induction on the length of the !!{derivation} of $!A$ from
$\Gamma$. If there are no steps justified by inferences, then all
!!{formula}s in the !!{derivation} are either instances of axioms or are
Expand All @@ -65,6 +76,9 @@
$\Gamma \Entails !A$. If $!A \in \Gamma$, then trivially $\Gamma
\Entails !A$.

The same immediate argument applies whenever the last line is an
axiom or a premise, regardless of earlier inference steps.

If the last step of the !!{derivation} of~$!A$ is justified by modus
ponens, then there are !!{formula}s $!B$ and $!B \lif !A$ in the
!!{derivation}, and the induction hypothesis applies to the part of
Expand Down Expand Up @@ -118,12 +132,12 @@

\begin{cor}
\ollabel{cor:weak-soundness}
If $\Proves !A$, then $!A$ is \iftag{FOL}{valid}{a tautology}.
If $\Proves !A$\iftag{FOL}{ and $!A$ is a sentence}{}, then $!A$ is \iftag{FOL}{valid}{a tautology}.
\end{cor}

\begin{cor}
\ollabel{cor:consistency-soundness}
If $\Gamma$ is satisfiable, then it is consistent.
If $\Gamma$ is \iftag{FOL}{a satisfiable set of sentences}{satisfiable}, then it is consistent.
\end{cor}

\begin{proof}
Expand Down
18 changes: 10 additions & 8 deletions content/first-order-logic/natural-deduction/derivations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
We've said what an assumption is, and we've given the rules of
inference. !!^{derivation}s in natural deduction are inductively
generated from these: each !!{derivation} either is an assumption
on its own, or consists of one, two, or three !!{derivation}s followed
on its own, is the conclusion of a correct inference with no
premises, or consists of one, two, or three !!{derivation}s followed
by a correct inference.
\end{explain}

Expand All @@ -25,16 +26,17 @@
assumptions~$\Gamma$ is a finite tree of !!{sentence}s satisfying the
following conditions:
\begin{enumerate}
\item The topmost !!{sentence}s of the tree are either in $\Gamma$ or
are !!{discharged} by an inference in the tree.
\item Each topmost !!{sentence} is either the conclusion of a correct
inference with no premises or an assumption. Every assumption is in
$\Gamma$ or is !!{discharged} by an inference on its branch.
\item The bottommost !!{sentence} of the tree is~$!A$.
\item Every !!{sentence} in the tree except the sentence~$!A$ at
the bottom is a premise of a correct application of an inference
rule whose conclusion stands directly below that !!{sentence} in the
tree.
\item At every node with premises, the complete list of its immediate
predecessors and that node form one correct application of an
inference rule, including the rule's discharge and eigenvariable
conditions.
\end{enumerate}
We then say that $!A$ is the \emph{conclusion} of the !!{derivation}
and $\Gamma$ its !!{undischarged} assumptions.
and its !!{undischarged} assumptions belong to $\Gamma$.

If !!a{derivation} of $!A$ from~$\Gamma$ exists, we say that $!A$ is
\emph{!!{derivable}} from~$\Gamma$, or in symbols: $\Gamma \Proves
Expand Down
3 changes: 2 additions & 1 deletion content/first-order-logic/natural-deduction/identity.tex
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@
\intertext{from the !!{sentence}}
& \lexists[x][\lforall[y][(!A(y) \lif \eq[y][x])]]
\end{align*}
We develop the !!{derivation} backwards:
Choose distinct constants $a$, $b$, and $c$ not occurring in the
displayed premise or in $!A(x)$. We develop the !!{derivation} backwards:
\begin{prooftree}
\AxiomC{$\lexists[x][\lforall[y][(!A(y) \lif \eq[y][x])]]
\quad \Discharge{!A(a) \land !A(b)}{1}$}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ \subsection{Rules for $\lfalse$}

Note that $\Intro{\lnot}$ and $\FalseCl$ are very similar: The
difference is that $\Intro{\lnot}$ derives a negated
!!{sentence}~$\lnot !A$ but $\FalseCl$ a positive !!{sentence}~$!A$.
!!{sentence}~$\lnot !A$ but $\FalseCl$ the !!{sentence}~$!A$ itself.

Whenever a rule indicates that some assumption may be discharged, we
take this to be a permission, but not a requirement. E.g., in the
Expand Down
Loading
Loading