Natural Deduction

Muhammad Haris Rao


Trees

Definition: A (strict) partially ordered set is a pair $(S, <)$ where $S$ is a set and $<$ a binary relation on $S$ such that

A tree is a partially ordered set $(T, <)$ such that if $x \in S$, then $\{ y \in T \mid y < x \}$ is well-ordered with respect to $<$. For $x \in T$, we define $o(x)$ to be the order type of $\{ y \in T \mid y < x \}$. For ordinal number $\alpha$, the $\alpha$th level of $S$ is the set of elements $x$ of $T$ such that $\{ y \in T \mid y < x \}$ has order type $\alpha$. The elements of the 0th level are called the roots of $T$. The height of $T$ is $$ h(T) = \sup \{ o(x) + 1 \mid x \in T \} $$

If $\{ \left( \Pi_k, \text{<}_k \right) \}_{k = 1}^n$ are trees where $n \in \mathbb{Z}_{> 0}$ with $\{ \Pi_k \}_{k = 1}^n$ mutually disjoint, and $\varphi$ an arbitrary set, we define a new tree $(\Pi, < )$ with $\Pi = \bigcup_{k = 1}^n \Pi_k \cup \{ \varphi \}$ and denoted \begin{prooftree} \AxiomC{$\Pi_1 \,\,\,\,\,\,\,\,\,\, \Pi_2 \,\,\,\,\,\,\,\,\,\, \Pi_3 \,\,\,\,\,\,\,\,\,\, \cdots \,\,\,\,\,\,\,\,\,\, \Pi_n$} \UnaryInfC{$\varphi$} \end{prooftree} The order $<$ is defined so that $\varphi < x$ for all $x \in \bigcup_{k = 1}^n \Pi_k$, and for $x, y \in \bigcup_{k = 1}^n \Pi_k$, $x < y$ if and only if there is $k \in \{ 1, 2, \cdots, n \}$ such that $x, y \in \Pi_k$ and $x \text{<}_k y$. It is not hard to check that this will be a tree as has been claimed

While it really is necessary that the $\{ \Pi_k \}_{k = 1}^n$ be disjoint so that the above constrcution yields a tree, we will not shy away from applying this construction to arbitrary collections of trees. For this, simply make each of the trees disjoint by, for example, replacing each $x$ element of $\Pi_k$ by the ordered pair $(k, x)$ and reinterpret the order in the obvious way. This is analogous to the explicit construction of the disjoint union of sets.

Natural Deduction Using Proof Trees

We now move onto defining a proof tree. For the sequel, fix a first-order language $\mathcal{L}$. A proof tree $\Pi$ of height $n \in \omega_{> 0}$ is given by three pieces of information: a tree of height $n$, a set of $\mathcal{L}$-formulas called the premises of $\Pi$, and an $\mathcal{L}$-formula called the conclusion of $\Pi$.

A proof tree in the language $\mathcal{L}$ of height 1 is a triple determined consisting of a tree $( \{ \varphi \} , \emptyset )$, a set of premises $\{ \varphi \}$ and a conclusion $\varphi$ for some $\mathcal{L}$-formula $\varphi \in \tt{Form}(\mathcal{L})$. Such a tree is denoted \begin{prooftree} \AxiomC{$\varphi$} \end{prooftree}

Given a proof tree $\Pi$ of some height $n \in \omega_{> 0}$ with premises $\Sigma \subseteq \tt{Form}(\mathcal{L})$ and conclusion $\varphi \in \tt{Form}(\mathcal{L})$, we write it as \begin{prooftree} \AxiomC{$\Sigma$} \noLine \UnaryInfC{$\Pi$} \noLine \UnaryInfC{$\varphi$} \end{prooftree} to make the premises and conclusion clear.

After having defined proof trees of height at most $n \in \omega_{> 0}$, the proof trees of height $n + 1$ are defined in the following way:

Proofs of Common Argument Forms

Set Theoretic Examples

Theorem (Russel's Paradox): Let $\mathcal{L}$ be a first-order language. If $R$ is a relation symbol of $\mathcal{L}$ with arity $n_R = 2$ and $x, y \in \texttt{Var}$ are distinct variables, then $$ \exists x \forall y \left( \left( Ryx \to \neg Ryy \right) \wedge \left( \neg Ryy \to Ryx \right) \right) \vdash \bot $$

Proof.

\begin{prooftree} \AxiomC{$\exists x \forall y \left( \left( Ryx \to \neg Ryy \right) \wedge \left( \neg Ryy \to Ryx \right) \right)$} \AxiomC{$[\neg (Rxx \vee \neg Rxx)]^2$} \AxiomC{$[\neg (Rxx \vee \neg Rxx)]^2$} \AxiomC{$[Rxx]^1$} \RightLabel{$\scriptsize{\vee I}$} \UnaryInfC{$Rxx \vee \neg Rxx$} \RightLabel{$\scriptsize{\neg E}$} \BinaryInfC{$\bot$} \RightLabel{$\scriptsize{\neg I^1}$} \UnaryInfC{$\neg Rxx$} \RightLabel{$\scriptsize{\vee I}$} \UnaryInfC{$Rxx \vee \neg Rxx$} \RightLabel{$\scriptsize{\neg E}$} \BinaryInfC{$\bot$} \RightLabel{$\scriptsize{\neg I^2}$} \UnaryInfC{$\neg \neg (Rxx \vee \neg Rxx)$} \RightLabel{$\scriptsize{DNE}$} \UnaryInfC{$Rxx \vee \neg Rxx$} \AxiomC{$[Rxx]^3$} \AxiomC{$[Rxx]^3$} \AxiomC{$[\forall y \left( \left( Ryx \to \neg Ryy \right) \wedge \left( \neg Ryy \to Ryx \right) \right)]^5$} \RightLabel{$\scriptsize{\forall E}$} \UnaryInfC{$\left( Rxx \to \neg Rxx \right) \wedge \left( \neg Rxx \to Rxx \right)$} \RightLabel{$\scriptsize{\wedge E}$} \UnaryInfC{$Rxx \to \neg Rxx$} \RightLabel{$\scriptsize{\to E}$} \BinaryInfC{$\neg Rxx$} \RightLabel{$\scriptsize{\neg E}$} \BinaryInfC{$\bot$} \AxiomC{$[\neg Rxx]^4$} \AxiomC{$[\neg Rxx]^4$} \AxiomC{$[\forall y \left( \left( Ryx \to \neg Ryy \right) \wedge \left( \neg Ryy \to Ryx \right) \right)]^5$} \RightLabel{$\scriptsize{\forall E}$} \UnaryInfC{$\left( Rxx \to \neg Rxx \right) \wedge \left( \neg Rxx \to Rxx \right)$} \RightLabel{$\scriptsize{\wedge E}$} \UnaryInfC{$\neg Rxx \to Rxx$} \RightLabel{$\scriptsize{\to E}$} \BinaryInfC{$Rxx$} \RightLabel{$\scriptsize{\neg E}$} \BinaryInfC{$\bot$} \RightLabel{$\scriptsize{\vee E^{3, 4}}$} \TrinaryInfC{$\bot$} \RightLabel{$\scriptsize{\exists E^5}$} \BinaryInfC{$\bot$} \end{prooftree} $$\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\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,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,$$

$\space$$\blacksquare$

Let $\mathcal{L}_{\text{Set}}$ be the language of set theory consisting of a single relation symbol $\in$ with arity $n_\in = 2$. If $\varphi \in \texttt{Form}\left(\mathcal{L}_{\text{Set}} \right)$ with $\text{fv}(\varphi) = \{ y \}$ and $x \in \texttt{Var}$ is distinct from $y$, then the naïve comprehension principle allows us to take as an axiom $$ \exists x \forall y \left( (y \in x \to \varphi) \wedge (\varphi \to y \in x) \right) $$ Russel's paradox says that this leads to contradictions. For if we take $\varphi$ to be the formula $y \notin y$, then the theorem above tells us that $$ \exists x \forall y \left( (y \in x \to y \notin y) \wedge (y \notin y \to y \in x) \right) \vdash \bot $$ Therefore, accepting the naïve comprehension principle leads to an inconsistent set of axioms.

The $ZF$ axioms of set theory contains the sentance $$\forall x \exists z \forall y \left( \left( y \in z \to \left( y \in x \wedge y \notin y \right) \right) \wedge \left( \left( y \in x \wedge y \notin y \right) \to y \in z \right) \right)$$

Theorem: There is no set of all sets. That is, $$ ZF \vdash \neg \exists x \forall y \left( y \in x \right) $$

Proof.

\begin{prooftree} \AxiomC{$[\exists x \forall y (y \in x)]^7$} \AxiomC{$\forall x \exists z \forall y \left( \left( y \in z \to \left( y \in x \wedge y \notin y \right) \right) \wedge \left( \left( y \in x \wedge y \notin y \right) \to y \in z \right) \right)$} \RightLabel{$\scriptsize{\forall E}$} \UnaryInfC{$\exists z \forall y \left( \left( y \in z \to \left( y \in x \wedge y \notin y \right) \right) \wedge \left( \left( y \in x \wedge y \notin y \right) \to y \in z \right) \right)$} \AxiomC{$[\neg (z \in z \vee z \notin z)]^2$} \AxiomC{$[\neg (z \in z \vee z \notin z)]^2$} \AxiomC{$[z \in z]^1$} \RightLabel{$\scriptsize{\vee I}$} \UnaryInfC{$z \in z \vee z \notin z$} \RightLabel{$\scriptsize{\neg E}$} \BinaryInfC{$\bot$} \RightLabel{$\scriptsize{\neg I^1}$} \UnaryInfC{$z \notin z$} \RightLabel{$\scriptsize{\vee I}$} \UnaryInfC{$z \in z \vee z \notin z$} \RightLabel{$\scriptsize{\neg E}$} \BinaryInfC{$\bot$} \RightLabel{$\scriptsize{\neg I^2}$} \UnaryInfC{$\neg \neg (z \in z \vee z \notin z)$} \RightLabel{$\scriptsize{DNE}$} \UnaryInfC{$z \in z \vee z \notin z$} \AxiomC{$[z \in z]^3$} \AxiomC{$[z \in z]^3$} \AxiomC{$[\forall y \left( \left( y \in z \to \left( y \in x \wedge y \notin y \right) \right) \wedge \left( \left( y \in x \wedge y \notin y \right) \to y \in z \right) \right)]^5$} \RightLabel{$\scriptsize{\forall E}$} \UnaryInfC{$\left( z \in z \to \left( z \in x \wedge z \notin z \right) \right) \wedge \left( \left( z \in x \wedge z \notin z \right) \to z \in z \right)$} \RightLabel{$\scriptsize{\wedge E}$} \UnaryInfC{$z \in z \to \left( z \in x \wedge z \notin z \right)$} \RightLabel{$\scriptsize{\to E}$} \BinaryInfC{$z \in x \wedge z \notin z$} \RightLabel{$\scriptsize{\wedge E}$} \UnaryInfC{$z \notin z$} \RightLabel{$\scriptsize{\neg E}$} \BinaryInfC{$\bot$} \AxiomC{$[z \notin z]^4$} \AxiomC{$[z \notin z]^4$} \AxiomC{$[\forall y (y \in x)]^6$} \RightLabel{$\scriptsize{\forall E}$} \UnaryInfC{$z \in x$} \RightLabel{$\scriptsize{\wedge I}$} \BinaryInfC{$z \in x \wedge z \notin z$} \AxiomC{$[\forall y \left( \left( y \in z \to \left( y \in x \wedge y \notin y \right) \right) \wedge \left( \left( y \in x \wedge y \notin y \right) \to y \in z \right) \right)]^5$} \RightLabel{$\scriptsize{\forall E}$} \UnaryInfC{$\left( z \in z \to \left( z \in x \wedge z \notin z \right) \right) \wedge \left( \left( z \in x \wedge z \notin z \right) \to z \in z \right)$} \RightLabel{$\scriptsize{\wedge E}$} \UnaryInfC{$\left( z \in x \wedge z \notin z \right) \to z \in z$} \RightLabel{$\scriptsize{\to E}$} \BinaryInfC{$z \in z$} \RightLabel{$\scriptsize{\neg E}$} \BinaryInfC{$\bot$} \RightLabel{$\scriptsize{\vee E^{3, 4}}$} \TrinaryInfC{$\bot$} \RightLabel{$\scriptsize{\exists E^5}$} \BinaryInfC{$\bot$} \RightLabel{$\scriptsize{\exists E^6}$} \BinaryInfC{$\bot$} \RightLabel{$\scriptsize{\neg E^7}$} \UnaryInfC{$\neg \exists x \forall y (y \in x)$} \end{prooftree} $$\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,\,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