Proof (deduction theorem)
$T \vdash (ϕ \Rightarrow ψ)$ $\implies$ $T\cup \set{ϕ} \vdash ψ$
Let $D$ be a $T$-proof of $ϕ\Rightarrow ψ$. Clearly $D$ is a $(T \cup \set{ϕ})$-proof. Then $$ \begin{align*} Dϕψ \end{align*} $$ is a $(T\cup \set{ϕ})$-proof of $ψ$: $ϕ$ is by hypothesis $A_{T \cup \set{ϕ}}$, and $ψ$ is by modus ponens $C$ using $ϕ\Rightarrow ψ$ inside $D$ and $ϕ$.
$T \cup \set{ϕ} \vdash ψ$ $\implies$ $T\vdash (ϕ \Rightarrow ψ)$
Suppose $D = ϕ_0 ϕ_1 \ldots ϕ_n$ is a $T\cup \set{ϕ}$-proof of $ψ$. We will show by induction that $T \vdash (ϕ \Rightarrow ϕ_i)$ for all $i$.
Suppose $T \vdash (ϕ\Rightarrow ϕ_j)$ for all $j<i$. Consider the condition that $ϕ_i$ satisfies in the $T\cup \set{ϕ}$-proof $D$.
-
If $ϕ_i\in T$ or $ϕ_i$ is an axiom, then we have a $T$-proof of $T\vdash (ϕ\Rightarrow ϕ_i)$:
-
$(ϕ_i \Rightarrow (ϕ \Rightarrow ϕ_i))$ (axiom of type 1)
-
$ϕ_i$ ($ϕ_i\in T$ or $ϕ_i$ is an axiom)
-
$(ϕ \Rightarrow ϕ_i)$ (modus ponens with 0 and 1)
-
-
If $ϕ_i = ϕ$, the following is a proof of $\emptyset\vdash (ϕ \Rightarrow ϕ)$:
-
$(ϕ \Rightarrow ({\color{yellow}(ϕ\Rightarrow ϕ)} \Rightarrow ϕ))$ (axiom of type 1)
-
$\bigl(\bigl(ϕ \Rightarrow ({\color{yellow}(ϕ\Rightarrow ϕ)} \Rightarrow ϕ)\bigr) \Rightarrow \bigl((ϕ \Rightarrow {\color{yellow}(ϕ\Rightarrow ϕ)}) \Rightarrow (ϕ \Rightarrow ϕ)\bigr)\bigr)$ (axiom of type 2)
-
$((ϕ \Rightarrow {\color{yellow}(ϕ\Rightarrow ϕ)}) \Rightarrow (ϕ \Rightarrow ϕ))$ (modus ponens with 0 and 1)
-
$(ϕ \Rightarrow {\color{yellow}(ϕ\Rightarrow ϕ)})$ (axiom of type 1)
-
$(ϕ \Rightarrow ϕ)$ (modus ponens with 2 and 3)
-
-
If there exists $j,k<i$ such that $ϕ_j = (ϕ_k \Rightarrow ϕ_i)$, then by induction hypothesis $T \vdash (ϕ \Rightarrow (ϕ_k \Rightarrow ϕ_i))$ and $T \vdash (ϕ \Rightarrow ϕ_k)$. Here is a $(T\cup \set{(ϕ \Rightarrow (ϕ_k \Rightarrow ϕ_i)), (ϕ \Rightarrow ϕ_k)})$-proof of $ϕ \Rightarrow ϕ_i$:
-
$\bigl(\bigl(ϕ \Rightarrow (ϕ_k \Rightarrow ϕ_i)\bigr) \Rightarrow \bigl((ϕ \Rightarrow ϕ_k) \Rightarrow (ϕ \Rightarrow ϕ_i)\bigr)\bigr)$ (axiom of type 2)
-
$(ϕ \Rightarrow (ϕ_k \Rightarrow ϕ_i))$ (hypothesis)
-
$((ϕ \Rightarrow ϕ_k) \Rightarrow (ϕ \Rightarrow ϕ_i))$ (modus ponens with 0 and 1)
-
$(ϕ \Rightarrow ϕ_k)$ (hypothesis)
-
$(ϕ \Rightarrow ϕ_i)$ (modus ponens with 2 and 3)
So $T \vdash (ϕ \Rightarrow ϕ_i)$ by the lemma on lemmas.
-