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
41 changes: 27 additions & 14 deletions content/proof-theory/natural-deduction/grafting.tex
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
\AxiomC{$\Discharge{!B}{x}$}
\DeduceC{$!A$}
\DischargeRule{\Intro{\lif}}{x}
\UnaryInfC{$!B \lif !C$}
\UnaryInfC{$!B \lif !A$}
\AxiomC{}
\DeduceC{$!B$}
\RightLabel{\Elim{\lif}}
Expand All @@ -48,37 +48,50 @@
\end{defn}

Provided that $\delta_1$ and $\delta_2$ don't have different
assumption !!{formula}s labelled with the same label, and no open
assumption of~$\delta_2$ contains an eigenvariable of~$\delta_1$, the
assumption !!{formula}s labelled with the same label, no open
assumption label of~$\delta_2$ is discharged in~$\delta_1$, and no
open assumption of~$\delta_2$ contains an eigenvariable of~$\delta_1$, the
resulting $\Subst{\delta_1}{\delta_2}{!B^x}$ is a correct !!{proof},
and its open assumptions are those of $\delta_1$ together with those
of~$\delta_2$. When grafting !!{proof}s, these conditions will
typically be satisfied. The first is satisfied whenever $\delta_1$ and
$\delta_2$ are subproofs of a larger !!{proof}. If the second is not
satisfied, we can rename the eigenvariables of~$\delta_1$ so that it
is.
and its open assumptions are those of $\delta_1$ other than the
replaced occurrences of~$!B^x$, together with those of~$\delta_2$. When grafting !!{proof}s, these conditions will
typically be satisfied. Compatibility holds whenever $\delta_1$ and $\delta_2$ are
subproofs of a larger !!{proof}. The remaining conditions can be
ensured by consistently renaming discharged-assumption labels and
eigenvariables of~$\delta_1$. Freshen internal discharged labels of
the inserted copies when necessary, preserving their open labels.

A corresponding definition applies to \Log{N2c} and~\Log{N2i}.

\begin{defn}
If $\delta_1$ is a \Log{N2c}-!!{proof} (or \Log{N2i}-!!{proof})
of~$x:!B, \Gamma_1 \Sequent !A$, and $\delta_2$ is a
\Log{N1c}-!!{proof} (\Log{N1i}-!!{proof}) of~$\Gamma_2 \Sequent !B$,
\Log{N2c}-!!{proof} (\Log{N2i}-!!{proof}) of~$\Gamma_2 \Sequent !B$,
then $\Subst{\delta_1}{\delta_2}{x:!B}$ is the result of replacing
every axiom $x:!B \Sequent !B$ in~$\delta_1$ by~$\delta_2$, and adding
$\Gamma_2$ to the context of every sequent below such axioms.
each axiom $x:!B \Sequent !B$ corresponding to the designated open
assumption by~$\delta_2$, and replacing $x:!B$ by~$\Gamma_2$ in the
context of every sequent below a replaced axiom. Discharged-assumption
labels are first renamed as necessary so that no already discharged
occurrence is mistaken for the designated open assumption.
\end{defn}

\begin{prop}
If $\delta_1 \Proves x:!B, \Gamma_1 \Sequent
!A$ and $\delta_2 \Proves \Gamma_2 \Sequent !B$, then
$\Subst{\delta_1}{\delta_2}{x:!B} \Proves \Gamma_1, \Gamma_2 \Sequent
!A$, provided no eigenvariable of~$\delta_1$ occurs in~$\Gamma_2$.
!A$, provided the labels are compatible, no label in~$\Gamma_2$
is discharged in~$\delta_1$, and no eigenvariable of~$\delta_1$
occurs in~$\Gamma_2$.
\end{prop}


\begin{proof}
By induction on $\pheight{\delta}$.
By induction on $\pheight{\delta_1}$. At a designated axiom use
$\delta_2$; leave other axioms unchanged. At an inference, apply
the induction hypothesis to its immediate sub-!!{proof}s and repeat
the inference with the updated contexts. The label conditions
prevent discharge capture, and the eigenvariable condition is
preserved because the new open assumptions contain no eigenvariable
of~$\delta_1$.
\end{proof}

\end{document}
38 changes: 26 additions & 12 deletions content/proof-theory/natural-deduction/quantifiers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

\begin{lem}\ollabel{lem:subst-regular} If $\delta$ is regular, ends
in~$!C$, $c$ is !!a{constant} not used as an eigenvariable
in~$\delta$, and $t$~is a term not containing any eigenvariables
in~$\delta$, and $t$~is a closed term not containing any eigenvariables
of~$\delta$, then $\Subst{\delta}{t}{c}$ resulting from~$\delta$ by
replacing every occurrence of~$c$ by~$t$ is a regular !!{proof}. The
end-!!{formula} of $\Subst{\delta}{t}{c}$ is $\Subst{!C}{t}{c}$. If
Expand Down Expand Up @@ -110,39 +110,51 @@
\]
By induction hypothesis, $\Subst{\delta_1'}{t}{c}$ and
$\Subst{\delta_2'}{t}{c}$ are regular !!{proof}s of
$\lexists[x][!A(x,c)]$ and of $!C$ from the open
$\lexists[x][!A(x,t)]$ and of $\Subst{!C}{t}{c}$ from the open
assumption~$!A(a,t)$. Since $a$ is an eigenvariable of~$\delta$,
$a$~does not occur in~$t$. Therefore, the last inference in
$\Subst{\delta}{t}{c}$,
\[
\AxiomC{}
\RightLabel{$\Subst{\delta'}{t}{c}$}
\DeduceC{$!A(a,t)$}
\RightLabel{\Intro{\lforall}}
\UnaryInfC{$\lforall[x][!A(x,t)]$}
\RightLabel{$\Subst{\delta_1'}{t}{c}$}
\DeduceC{$\lexists[x][!A(x,t)]$}
\AxiomC{$\Discharge{!A(a,t)}{x}$}
\RightLabel{$\Subst{\delta_2'}{t}{c}$}
\DeduceC{$\Subst{!C}{t}{c}$}
\DischargeRule{\Elim{\lexists}}{x}
\BinaryInfC{$\Subst{!C}{t}{c}$}
\DisplayProof
\]
is correct: $\Subst{!A(x,t)}{a}{x} \ident \Subst{!A(a,c)}{t}{c}$, neither the conclusion~$!C$ nor any open assumption contains~$a$.
is correct: $\Subst{!A(x,t)}{a}{x} \ident \Subst{!A(a,c)}{t}{c}$,
and neither the conclusion~$\Subst{!C}{t}{c}$ nor any remaining
open assumption contains~$a$.
\end{enumerate}
\end{proof}

\begin{prop}\ollabel{prop:regular}
If $\delta$ is !!a{proof} in \Log{N1c} or \Log{N1i}, then there is a
regular !!{proof}~$\delta'$ with the same structure (in particular, the
same !!{height}) which differs from $\delta$ only by replacing
eigenvariables.
eigenvariables and consistently renaming discharged-assumption labels.
\end{prop}

\begin{proof}
First consistently rename discharged-assumption labels so that
no discharge label is reused outside the assumptions discharged by
its inference. This preserves all open assumptions and the proof
structure, and prevents later local substitutions from creating
incompatible formulas with the same label.
For the purpose of the proof only, call an eigenvariable inference
of~$\delta$ \emph{clean} if its eigenvariable is not the eigenvariable of
another inference nor does it occur anywhere in~$\delta$ except the
immediate sub-!!{proof} of the inference, and \emph{dirty} otherwise.
immediate sub-!!{proof} of \Intro{\lforall}, or the sub-!!{proof}
leading to the minor premise of \Elim{\lexists}, respectively, and
\emph{dirty} otherwise.
Let $n$ be the number of dirty eigenvariable inferences in~$\delta$. We
show, by induction on~$n$, that $\delta$~can be transformed into the
required regular !!{proof}~$\delta'$. If $n=0$, all eigenvariable
inferences in~$\delta$ are clean, and so $\delta$ is regular, and there is
nothing to prove. Otherwise, pick a highest eigenvariable inference,
nothing to prove. Otherwise, pick a highest dirty eigenvariable inference,
say \Intro{\lforall}. The sub-!!{proof}~$\delta_1$ of~$\delta$ ending in it
is of the form
\[
Expand All @@ -155,7 +167,9 @@
\]
Note that as $c$ is an eigenvariable, it does not occur
in~$\lforall[x][!A(x)]$ or an open assumption. The proof $\delta_2$ is
regular, since it contains no eigenvariable inferences at all. Let $a$
regular, since all eigenvariable inferences above the selected
inference are clean. Moreover, $c$ is not an eigenvariable of
$\delta_2$, since such an upper inference would also be dirty. Let $a$
be !!a{constant} not occurring in~$\delta$. By
\olref{lem:subst-regular}, $\Subst{\delta_2}{a}{c}$ is a regular proof
of $!A(a)$. By the eigenvariable condition, no open assumption
Expand All @@ -179,7 +193,7 @@

\begin{prob}
Describe the case in the proof of \olref{prop:regular} where the
topmost eigenvariable inference is~\Elim{\lexists}.
selected highest dirty eigenvariable inference is~\Elim{\lexists}.
\end{prob}

We will not appeal to the proposition just proved explicitly, but we
Expand Down
17 changes: 9 additions & 8 deletions content/proof-theory/natural-deduction/rules-proofs.tex
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
assumptions:
\[
\AxiomC{$\Discharge{!A}{y}$}
\DischargeRule{\Intro{\lif}}{x}
\RightLabel{\Intro{\lif}}
\UnaryInfC{$!B \lif !A$}
\DischargeRule{\Intro{\lif}}{y}
\UnaryInfC{$!A \lif (!B \lif !A)$}
Expand Down Expand Up @@ -128,8 +128,8 @@
the discharged~$!A(c)$, does not occur in~$!B$, and does not occur
in~$!A$. This is called the \emph{eigenvariable condition}.

!!^{proof}s in \Log{N1c} and~\Log{N1i} are finite trees of sequents
that are inductively generated from axioms using the rules of
!!^{proof}s in \Log{N1c} and~\Log{N1i} are finite trees of !!{formula} occurrences
that are inductively generated from assumptions using the rules of
inference. Each leaf is an assumption, possibly labelled with a
discharge label, and every other !!{formula} follows from the
!!{formula}s immediately above it by one of the inference rules of the
Expand Down Expand Up @@ -175,7 +175,7 @@
\DeduceC{$!A_2$}
\AxiomC{}
\RightLabel{$\delta_3$}
\DeduceC{$!A_2$}
\DeduceC{$!A_3$}
\RightLabel{$R$}
\TrinaryInfC{$!A$}
\DisplayProof
Expand All @@ -188,7 +188,8 @@
\emph{open assumptions} of the !!{proof} if they are open
assumptions of $\delta_1$, $\delta_2$, or~$\delta_3$, except those
occurrences discharged by the rule. If the rule is labelled~$x$ (or
$x\, y$), then for \Intro{\lif} and~\Intro{\lnot}, that is all open
$x\, y$), then for \Intro{\lif}, \Intro{\lnot}, and (in \Log{N1c}) \FalseCl,
that is all open
assumptions in~$\delta_1$ labelled~$x$; for \Elim{\lexists}, it is
all open assumptions labelled~$x$ in~$\delta_2$; for \Elim{\lor}, it
is all open assumptions labelled~$x$ in~$\delta_2$ and all open
Expand All @@ -199,7 +200,7 @@
The !!{proof}s used in the inductive construction of !!a{proof} are
called its \emph{sub-!!{proof}s}. The sub-!!{proof}s ending in the
premises of an inference are called the \emph{immediate
sub-!!{proof}s} of the inference. The rules of \Log{N2c} and \Log{N2i}
sub-!!{proof}s} of the inference. The rules of \Log{N1c} and \Log{N1i}
are given in \olref{tab:N1}

\subfile{rules-N1}
Expand All @@ -218,7 +219,7 @@
sub-!!{proof}s~$\delta_1$, $\delta_2$, and~$\delta_3$, then $\pheight{\delta} =
\max(\pheight{\delta_1}, \pheight{\delta_2}, \pheight{\delta_3}) + 1$.
\end{enumerate}
If a sequent~$S$ has !!a{proof} of height $\le n$, we write $\Proves[n] S$.
If !!a{formula}~$S$ has !!a{proof} of height $\le n$, we write $\Proves[n] S$.
\end{defn}

\begin{ex}
Expand All @@ -244,7 +245,7 @@
The immediate sub-!!{proof}s of the last inference in~$\delta_2$ and
in~$\delta_3$ is the same: $!A \land !B$. Both !!{proof}s have the
occurrence of $!A\land !B$ as an open assumption. We have
$\pheight{\delta_1} = \pheight{\delta_2} = 1$.
$\pheight{\delta_2} = \pheight{\delta_3} = 1$.

The rule \Intro{\land} requires two premises of the form $!B$ and $!A$
to justify a conclusion of the form~$!B \land !A$. Thus, the following
Expand Down
12 changes: 7 additions & 5 deletions content/proof-theory/natural-deduction/sequents.tex
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

\olsection{Natural Deduction with Sequents: \Log{N2c} and~\Log{N2i}}

!!^a{proof}~$\delta$ in \Log{G1c} or \Log{G1i} shows that its
!!^a{proof}~$\delta$ in \Log{N1c} or \Log{N1i} shows that its
end-!!{formula}~$!A$ follows from its open assumptions. If $\Gamma$ is
the set of !!{formula}s~$!B$, where $!B^x$ occurs as an open
assumptions in~$\delta$, we can write this as $\delta \Proves \Gamma
Expand Down Expand Up @@ -43,6 +43,8 @@
applications of the corresponding rules in \Log{N2c} and~\Log{N2i}
also when the corresponding context !!{formula}s $!A$, $!B$, and
$!A(a)$ are not present in the context of the relevant premise.
The same convention applies to \FalseCl in~\Log{N2c}: its indicated
negated assumption may be absent from the premise context.

\begin{prop}
If $\delta$ is !!a{proof} in~\Log{N1c} or \Log{N1i} of~$!A$, then
Expand Down Expand Up @@ -134,22 +136,22 @@
\UnaryInf$\Gamma \fCenter !B \lif !C$
\DisplayProof
\]
By inductive hypothesis, there is !!a{proof} in~\Log{N1c}
By inductive hypothesis, there is !!a{proof}~$\delta_1'$ in~\Log{N1c}
(\Log{N1i}) of~$!C$. In the first case, $!B^x$ is an open
assumption of~$\delta'$; in the second case it is not. We can take
assumption of~$\delta_1'$; in the second case it is not. We can take
the !!{proof}~$\delta'$ to be
\[
\bottomAlignProof
\AxiomC{$\Discharge{!B}{x}$}
\RightLabel{$\delta_1$}
\RightLabel{$\delta_1\prime$}
\DeduceC{$!C$}
\DischargeRule{\Intro{\lif}}{x}
\UnaryInfC{$!B \lif !C$}
\DisplayProof
\quad\text{ or }\quad
\bottomAlignProof
\AxiomC{}
\RightLabel{$\delta_1$}
\RightLabel{$\delta_1\prime$}
\DeduceC{$!C$}
\RightLabel{\Intro{\lif}}
\UnaryInfC{$!B \lif !C$}
Expand Down
Loading
Loading