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$.