2 自然演绎
2.1 Fitch 式自然演绎
-
一个 \(\text{Fitch}\) 式自然演绎的实例如下所示
\[ \newcommand{\fitch}[1]{\begin{array}{rlr}#1\end{array}} \newcommand{\fcol}[1]{\begin{array}{r}#1\end{array}} \newcommand{\scol}[1]{\begin{array}{l}#1\end{array}} \newcommand{\tcol}[1]{\begin{array}{l}#1\end{array}} \newcommand{\rootcol}[1]{\, \, \begin{array}{l}#1\end{array}} \newcommand{\subcol}[1]{\, \, \begin{array}{|l}#1\end{array}} \newcommand{\startsub}{\\[-0.29em]} \newcommand{\endsub}{\startsub} \newcommand{\fendl}{\\[0.044em]} \newcommand{\offset}{\rule{0pt}{1em}} \fitch{ \fcol{ \startsub \offset 1 \\ 2 \\ 3 \\ 4 \\ 5 \\ 6 \\ 7 \\ 8 \\ 9 \\ 10 \\ } \quad \scol{ \rootcol{ \startsub \subcol{ \alpha \to \beta \startsub \hline \subcol{ \beta \to \gamma \startsub \hline \subcol{ \alpha \\ \hline \alpha \to \beta \\ \beta \\ \beta \to \gamma \\ \gamma } \endsub \alpha \to \gamma } \endsub (\beta \to \gamma) \to (\alpha \to \gamma) } \endsub (\alpha \to \beta) \to (\beta \to \gamma) \to (\alpha \to \gamma) } } \qquad \tcol{ \startsub \text{Hyp} \\ \text{Hyp} \\ \text{Hyp} \\ \text{Reit: 1} \\ \to \text{E: 3, 4} \\ \text{Reit: 2} \\ \to \text{E: 5, 6} \\ \to \text{I: 3-7} \\ \to \text{I: 2-8} \\ \to \text{I: 1-9} \\ } } \]- 左侧的数字是推理的步骤
- 中间是证明,若临时引入一个假设,则对应构造出一个子证明
- 右侧为推理依据的记号
不引起混乱时,左右两侧的记号可省略
-
直觉主义命题逻辑的 \(\text{Fitch}\) 式自然演绎系统 \(\mathbf{FJ}\)
- 结构规则
- 重复规则(\(\text{Reit}\)):同一级子证明中可重复该步骤之前的公式和上一级子证明中的公式
- 前件规则(\(\text{Pre}\)):在任何需要的地方可引入推理前提
- 假设规则(\(\text{Hyp}\)):在任何需要的地方可临时引入假设,从而引入新的子证明;子证明结束时,临时引入的假设被撤销
-
联结词规则
-
合取引入规则
\[ \fitch{ \fcol{ m \\ \vdots \\ n \\ \vdots \\ k \\ } \quad \scol{ \rootcol{ \alpha \\ \vdots \\ \beta \\ \vdots \\ \alpha \wedge \beta \\ } } \qquad \tcol{ \\ \phantom{\vdots} \\ \\ \phantom{\vdots} \\ \wedge \text{I}: m, n \\ } } \] -
合取消去规则
\[ \fitch{ \fcol{ m \\ \vdots \\ n \\ } \quad \scol{ \rootcol{ \alpha \wedge \beta \\ \vdots \\ \alpha \\ } } \qquad \tcol{ \\ \phantom{\vdots} \\ \wedge \text{E}: m \\ } } \qquad \textsf{ 与 } \qquad \fitch{ \fcol{ m \\ \vdots \\ n \\ } \quad \scol{ \rootcol{ \alpha \wedge \beta \\ \vdots \\ \beta \\ } } \qquad \tcol{ \\ \phantom{\vdots} \\ \wedge \text{E}: m \\ } } \] -
析取引入规则
\[ \fitch{ \fcol{ m \\ \vdots \\ n \\ } \quad \scol{ \rootcol{ \alpha \\ \vdots \\ \alpha \vee \beta \\ } } \qquad \tcol{ \\ \phantom{\vdots} \\ \vee \text{I}: m \\ } } \qquad \textsf{ 与 } \qquad \fitch{ \fcol{ m \\ \vdots \\ n \\ } \quad \scol{ \rootcol{ \beta \\ \vdots \\ \alpha \vee \beta \\ } } \qquad \tcol{ \\ \phantom{\vdots} \\ \vee \text{I}: m \\ } } \] -
析取消去规则
\[ \fitch{ \fcol{ m \\ m + 1 \\ \vdots \\ n \\ \offset n + 1 \\ \vdots \\ k \\ k + 1 \\ } \quad \scol{ \rootcol{ \alpha \vee \beta \startsub \subcol{ \alpha \\ \hline \vdots \\ \gamma } \startsub \subcol{ \beta \\ \hline \vdots \\ \gamma } \endsub \gamma } } \qquad \tcol{ \\ \\ \phantom{\vdots} \\ \\ \\ \phantom{\vdots} \\ \\ \vee \text{E}: m, (m + 1) \text{-} n, (n + 1) \text{-} k \\ } } \] -
蕴含引入规则
\[ \fitch{ \fcol{ \offset m \\ \offset \vdots \\ n \\ n + 1 \\ } \quad \scol{ \subcol{ \alpha \\ \hline \vdots \\ \beta } \endsub \alpha \to \beta } \qquad \tcol{ \text{Hyp} \\ \phantom{\vdots} \\ \\ \to \text{I}: m, n \\ } } \] -
蕴含消去规则
\[ \fitch{ \fcol{ m \\ \vdots \\ n \\ \vdots \\ k \\ } \quad \scol{ \rootcol{ \alpha \to \beta \\ \vdots \\ \alpha \\ \vdots \\ \beta \\ } } \qquad \tcol{ \\ \phantom{\vdots} \\ \\ \phantom{\vdots} \\ \to \text{E}: m, n \\ } } \] -
恒假消去规则
\[ \fitch{ \fcol{ m \\ \vdots \\ n \\ } \quad \scol{ \rootcol{ \bot \\ \vdots \\ \alpha \\ } } \qquad \tcol{ \\ \phantom{\vdots} \\ \bot \text{E}: m \\ } } \]
-
- 结构规则
-
经典命题逻辑的 \(\text{Fitch}\) 式自然演绎系统 \(\mathbf{FK}\) 从 \(\mathbf{FJ}\) 增加否定消去规则得来
\[ \fitch{ \fcol{ \offset m \\ \vdots \\ n \\ n + 1 \\ } \quad \scol{ \subcol{ \neg \alpha \\ \vdots \\ \bot } \endsub \alpha } \qquad \tcol{ \text{Hyp} \\ \phantom{\vdots} \\ \\ \neg \text{E}: m\text{-}n \\ } } \]
2.2 Gentzen 式自然演绎
-
直觉主义命题逻辑的 \(\text{Gentzen}\) 式自然演绎系统 \(\mathbf{NJ}\)
\[ \displaylines{ \begin{prooftree} \AxiomC{$\alpha_1$} \AxiomC{$\alpha_2$} \RightLabel{ $(\wedge\text{I})$} \BinaryInfC{$\alpha_1 \wedge \alpha_2$} \end{prooftree} \quad \begin{prooftree} \AxiomC{$\alpha_1 \wedge \alpha_2$} \RightLabel{ $(\wedge\text{E})$} \UnaryInfC{$\alpha_1$} \end{prooftree} \quad \begin{prooftree} \AxiomC{$\alpha_1 \wedge \alpha_2$} \RightLabel{ $(\wedge\text{E})$} \UnaryInfC{$\alpha_2$} \end{prooftree} \\[0.5em] \begin{prooftree} \AxiomC{$\alpha_1$} \RightLabel{ $(\vee\text{I})$} \UnaryInfC{$\alpha_1 \vee \alpha_2$} \end{prooftree} \quad \begin{prooftree} \AxiomC{$\alpha_2$} \RightLabel{ $(\vee\text{I})$} \UnaryInfC{$\alpha_1 \vee \alpha_2$} \end{prooftree} \quad \begin{prooftree} \AxiomC{$\alpha_1 \vee \alpha_2$} \AxiomC{$\begin{array}{c} [\alpha_1]^{m} \\ \vdots \\ \beta \end{array}$} \AxiomC{$\begin{array}{c} [\alpha_2]^{n} \\ \vdots \\ \beta \end{array}$} \RightLabel{ $(\vee\text{E}^{mn})$} \TrinaryInfC{$\beta$} \end{prooftree} \\[1em] \begin{prooftree} \AxiomC{$\begin{array}{c} [\alpha_1]^{n} \\ \vdots \\ \alpha_2 \end{array}$} \RightLabel{ $(\to\text{I}^{n})$} \UnaryInfC{$\alpha_1 \to \alpha_2$} \end{prooftree} \quad \begin{prooftree} \AxiomC{$\alpha_1 \to \alpha_2$} \AxiomC{$\alpha_1$} \RightLabel{ $(\to\text{E})$} \BinaryInfC{$\alpha_2$} \end{prooftree} \quad \begin{prooftree} \AxiomC{$\bot$} \RightLabel{ $(\bot\text{E})$} \UnaryInfC{$\alpha$} \end{prooftree} } \]其中 \([\alpha]^{n}\) 表示最终将被撤销的临时假设.称 \(\text{E}\) 规则含联结词的前提为大前提,其他前提为小前提
- 在 \(\mathbf{NJ}\) 中的推导是由公式组成的有穷树结构 \(\mathcal D\),记所有推导的集合为 \(\mathbf{X}_{J}\)
- 由单个公式形成的单节点数结构属于 \(\mathbf{X}_{J}\)
- 从子节点运用 \(\mathbf{NJ}\) 的 \(9\) 条推理规则得到的推导
- 用 \(\mathcal D, \mathcal E\) 表示推导,记号 \(\begin{array}{c} \beta \\ \mathcal D \\ \alpha \end{array}\) 表示 \(\mathcal D\) 是从 \(\beta\) 到 \(\alpha\) 的推导,\(\begin{array}{c} \mathcal D \\ \alpha \end{array}\) 表示 \(\mathcal D\) 是以 \(\alpha\) 为根节点的推导
- 一个推导 \(\mathcal{D}\) 的高度是其中极大分枝的最大长度,记为 \(|\mathcal{D}|\),单节点推导的高度为 \(0\)
- 对任意公式集 \(\Gamma \cup \{\alpha\}\),若存在从 \(\Gamma\) 中有穷多个公式到 \(\alpha\) 的推导,则称在 \(\mathbf{NJ}\) 中 \(\alpha\) 从 \(\Gamma\) 可推导,记作 \(\Gamma \vdash_{\mathbf{NJ}} \alpha\)
- 若 \(\varnothing \vdash_{\mathbf{NJ}} \alpha\),则称公式 \(\alpha\) 在 \(\mathbf{NJ}\) 中可证,记作 \(\vdash_{\mathbf{NJ}} \alpha\)
- 对任意公式集 \(\Gamma \cup\{\alpha, \beta\}\)
- \(\Gamma \vdash_{\mathbf{HJ}} \alpha\) 当且仅当 \(\Gamma \vdash_{\mathbf{NJ}} \alpha\),特别地,\(\vdash_{\mathbf{HJ}} \alpha\) 当且仅当 \(\vdash_{\mathbf{NJ}} \alpha\)
- \(\alpha, \Gamma \vdash_{\mathbf{NJ}} \beta\) 当且仅当 \(\Gamma \vdash_{\mathbf{NJ}} \alpha \rightarrow \beta\)
- 在 \(\mathbf{NJ}\) 中的推导是由公式组成的有穷树结构 \(\mathcal D\),记所有推导的集合为 \(\mathbf{X}_{J}\)
-
经典命题逻辑的 \(\text{Gentzen}\) 式自然演绎系统 \(\mathbf{NK}\) 从 \(\mathbf{NJ}\) 增加反证规则得来
\[ \begin{prooftree} \AxiomC{$\begin{array}{c} [\neg \alpha_1]^{n} \\ \vdots \\ \bot \end{array}$} \RightLabel{ ($\text{RAA}^{n}$)} \UnaryInfC{$\alpha$} \end{prooftree} \]- 在 \(\mathbf{NJ}\) 中所有推导的集合 \(\mathbf{X}_{K}\) 是在 \(\mathbf{X}_{J}\) 基础上对反证规则封闭的集合
- 对任意公式集 \(\Gamma \cup \{\alpha\}\),若存在从 \(\Gamma\) 中有穷多个公式到 \(\alpha\) 的推导,则称在 \(\mathbf{NK}\) 中 \(\alpha\) 从 \(\Gamma\) 可推导,记作 \(\Gamma \vdash_{\mathbf{NK}} \alpha\)
- 若 \(\varnothing \vdash_{\mathbf{NK}} \alpha\),则称公式 \(\alpha\) 在 \(\mathbf{NK}\) 中可证,记作 \(\vdash_{\mathbf{NK}} \alpha\)
- 对任意公式集 \(\Gamma \cup\{\alpha, \beta\}\)
- \(\Gamma \vdash_{\mathbf{HK}} \alpha\) 当且仅当 \(\Gamma \vdash_{\mathbf{NK}} \alpha\),特别地,\(\vdash_{\mathbf{HK}} \alpha\) 当且仅当 \(\vdash_{\mathbf{NK}} \alpha\)
- \(\alpha, \Gamma \vdash_{\mathbf{NK}} \beta\) 当且仅当 \(\Gamma \vdash_{\mathbf{NK}} \alpha \rightarrow \beta\)
- 若 \(\Gamma \vdash_{\mathbf{NJ}} \alpha\),则 \(\Gamma \vdash_{\mathbf{NK}} \alpha\),特别地,若 \(\vdash_{\mathbf{NJ}} \alpha\),则 \(\vdash_{\mathbf{NK}} \alpha\)
- 在 \(\mathbf{NJ}\) 中所有推导的集合 \(\mathbf{X}_{K}\) 是在 \(\mathbf{X}_{J}\) 基础上对反证规则封闭的集合
-
在推导 \(\mathcal{D}\) 中,若公式 \(\alpha\) 的某一次出现既是引入规则的结论,又是消去规则的大前提,则称其为切割公式
- 令 \(\mathbf{NK}^{*}\) 是从 \(\mathbf{NK}\) 去掉规则 \(\vee\text{I}\) 和 \(\vee\text{E}\) 而得到的自然演绎,则对任意公式集 \(\Gamma \cup \{\alpha\}\),\(\Gamma \vdash_{\mathbf{NK}} \alpha\) 当且仅当 \(\Gamma \vdash_{\mathbf{NK}^{*}} \alpha\)
- 令 \(\mathbf{NK}^{\circ}\) 是将 \(\mathbf{NK}^{*}\) 中 \(\bot\) 与 \(\text{RAA}\) 规则的结论限制为原子公式而得到的自然演绎
- 对任意公式集 \(\Gamma \cup \{\alpha\}\),\(\Gamma \vdash_{\mathbf{NK}^{*}} \alpha\) 当且仅当 \(\Gamma \vdash_{\mathbf{NK}^{\circ}} \alpha\)
- 记号 \(\mathcal{D} \rightsquigarrow_1 \mathcal{D}^{\prime}\) 表示推导 \(\mathcal{D}\) 经过单步变换转化为 \(\mathcal{D}^{\prime}\),称 \(\mathbf{NK}^{\circ}\) 中的一个变换串为一个归约序列
- 称推导 \(\mathcal{D}\) 为既约推导(或正规推导)当且仅当不存在推导 \(\mathcal{D}^{\prime}\) 使得 \(\mathcal{D} \rightsquigarrow_1 \mathcal{D}^{\prime}\)
- 记 \(\mathcal{D} \rightsquigarrow \mathcal{D}^{\prime}\) 为 \(\mathcal{D}\) 经过有穷多步变换转化为 \(\mathcal{D}^{\prime}\);记 \(\mathcal{D} \rightarrow \mathcal{D}^{\prime}\) 为 \(\mathcal{D} \rightsquigarrow \mathcal{D}^{\prime}\) 或 \(\mathcal{D}=\mathcal{D}^{\prime}\)
- 正规化定理:在 \(\mathbf{NK}\) 中每个推导都可转化为正规推导
- 子公式性质:令 \(\mathcal{D}\) 是在 \(\mathbf{NK}^{\circ}\) 中从 \(\Gamma\) 到 \(\alpha\) 的正规推导,对 \(\mathcal{D}\) 中出现的每个公式 \(\beta\),若 \(\beta\) 不是被 \(\text{RAA}\) 撤销的公式或被 \(\text{RAA}\) 撤销假设的直接结论 \(\bot\),则 \(\beta\) 是 \(\Gamma, \alpha\) 中某个公式的子公式
- 令 \(\mathbf{NJ}^{\circ}\) 是将 \(\mathbf{NJ}\) 中的 \(\bot\) 规则的结论限制为原子公式而得到的自然演绎
- 对任意公式集 \(\Gamma \cup \{\alpha\}\),\(\Gamma \vdash_{\mathbf{NJ}} \alpha\) 当且仅当 \(\Gamma \vdash_{\mathbf{NJ}^{\circ}} \alpha\)
- 正规化定理:在 \(\mathbf{NJ}\) 中每个推导都可转化为正规推导
- 子公式性质:令 \(\mathcal{D}\) 是在 \(\mathbf{NJ}\) 中从 \(\Gamma\) 到 \(\alpha\) 的正规推导,对 \(\mathcal{D}\) 中出现的每个公式 \(\beta\) 都是 \(\Gamma, \alpha\) 中某个公式的子公式