自然演绎
Natural deduction
证明逐行说明一个结论如何根据规则从前提得到。
概念与边界
自然演绎通常为联结词提供引入和消去规则。条件证明暂设 P,推得 Q 后解除假设,得到 P → Q。解除假设并不意味着已证明 P。
每行都应注明所依赖的行与假设范围。子证明内得到的命题不能随意移到外层,否则会把临时条件误当成无条件事实。
The concept and its limits
Natural deduction typically supplies introduction and elimination rules for connectives. A conditional proof assumes P, derives Q, and discharges the assumption to obtain P → Q. It does not thereby establish P.
Each line should identify its dependencies and assumption scope. Moving a statement out of a subproof without permission turns a temporary assumption into an unconditional fact.
把概念用起来
从 P ∧ Q 得 P:合取消去。要证明 P → P,可暂设 P,在子证明中重申 P,再用条件引入解除该假设。
Working through an example
From P ∧ Q infer P by conjunction elimination. To prove P → P, assume P, reiterate it within the subproof, and discharge the assumption by conditional introduction.
证明中的每一行在做什么
一份自然演绎证明记录命题及其依赖。前提是在本次论证中接受的起点;临时假设用于考察某种条件下能推出什么;其余各行必须由已列出的规则得到。不能把“看起来合理”写成推导依据。
引入规则说明怎样得到以某联结词为主运算符的式子,消去规则说明已有这种式子时能得到什么。规则适用于整个式子的结构。例如由 P ∧ Q 可以得到 P;由 R ∨ (P ∧ Q) 却不能直接得到 P,因为外层是析取。
What each proof line does
A natural deduction proof records formulas and their dependencies. Premises are the starting assumptions of the argument. Temporary assumptions explore what follows under a condition. Every other line must follow by a specified rule; seeming plausible is not a proof justification.
Introduction rules establish formulas with a given main connective. Elimination rules use formulas already having that connective. The outer structure matters: P follows from P ∧ Q, but not directly from R ∨ (P ∧ Q), whose main connective is disjunction.
Section sources: forall x, chapter 17: formal proofs and connective rules ↗
常用规则及其限制
下表中的 P、Q、R 代表任意适当的公式。省略的步骤仍须满足当前证明系统的规则。尤其不要把合取消去的做法移植到析取上。
| 规则 | 允许的步骤 | 检查点 |
|---|---|---|
| 合取引入/消去 | P,Q ⟹ P ∧ Q;P ∧ Q ⟹ P;也可得 Q | 两项都要有依据;只能拆外层合取。 |
| 条件消去 | P → Q,P ⟹ Q | Q 不能反过来给出 P。 |
| 条件引入 | 暂设 P 推得 Q,解除假设后得 P → Q | 解除后不能继续直接引用子证明内的行。 |
| 析取消去 | P ∨ Q;从 P 与从 Q 分别得到同一 R,才得 R | 必须处理所有分支,不能挑喜欢的一项。 |
| 否定引入 | 暂设 P 推出矛盾,解除后得 ¬P | 矛盾必须由当前允许的依赖得到。 |
Common rules and their restrictions
P, Q, and R below stand for arbitrary suitable formulas. Omitted steps must still satisfy the chosen system. In particular, the treatment of conjunction cannot simply be transferred to disjunction.
| Rule | Permitted step | Restriction |
|---|---|---|
| Conjunction introduction/elimination | P, Q ⟹ P ∧ Q; P ∧ Q ⟹ either conjunct | Both conjuncts need support; eliminate the outer conjunction. |
| Conditional elimination | P → Q, P ⟹ Q | Q does not license inferring P. |
| Conditional introduction | Assume P, derive Q, discharge P to infer P → Q | Closed subproof lines are no longer directly available. |
| Disjunction elimination | P ∨ Q; derive the same R from each disjunct, then infer R | Cover both branches; do not select a preferred disjunct. |
| Negation introduction | Assume P, derive a contradiction, discharge P to infer ¬P | The contradiction must use only permitted dependencies. |
Section sources: forall x, chapter 17: sections 17.3–17.8 ↗
一个完整的条件证明
设 P 表示申请获准,Q 表示系统发出许可,R 表示设备可以启用。以下是原创教学形式化:接受 P → Q 与 Q → R,证明 P → (Q ∧ R)。
第 3 行只是暂时接受 P。第 6 行仍依赖这项假设;第 7 行用条件引入把依赖写进结论。我们没有证明申请已经获准,也没有无条件证明设备可以启用。
| 行 | 命题与假设范围 | 依据 |
|---|---|---|
| 1 | 前提 | |
| 2 | 前提 | |
| 3 | 临时假设 | |
| 4 | 条件消去,1、3 | |
| 5 | 条件消去,2、4 | |
| 6 | 合取引入,4、5 | |
| 7 | 条件引入,3–6 |
A complete conditional proof
Let P mean an application is approved, Q that the system issues a permit, and R that equipment may be activated. This original teaching formalization derives P → (Q ∧ R) from P → Q and Q → R.
Line 3 temporarily assumes P. Line 6 still depends on that assumption; line 7 records the dependency in a conditional. We have not established that approval actually occurred or that activation is unconditionally permitted.
| Line | Formula and scope | Justification |
|---|---|---|
| 1 | Premise | |
| 2 | Premise | |
| 3 | Temporary assumption | |
| 4 | Conditional elimination, 1, 3 | |
| 5 | Conditional elimination, 2, 4 | |
| 6 | Conjunction introduction, 4, 5 | |
| 7 | Conditional introduction, 3–6 |
Section sources: forall x, chapter 18: proof construction ↗
为什么假设范围不能省略
若在子证明内暂设 P,再得到 P,这只能帮助证明 P → P。子证明关闭后把内部的 P 抄到外层,就会允许从没有任何相关前提出发“证明”任意 P。这个错误不在字母真假,而在失去了依赖。
检查证明时,从有疑问的行向上追踪:它引用哪些行?那些行是否仍在开放范围内?如果引用一个完整子证明,所用规则是否允许解除它?证明中的竖线或缩进承担这一检查功能,不是排版装饰。
Why assumption scope matters
Assuming P and reiterating P inside a subproof helps establish P → P. Copying that internal P into the outer proof after the subproof closes would let us “prove” any P without relevant premises. The defect is a lost dependency, irrespective of the letter’s actual truth.
Trace a doubtful line backward. Which lines does it cite? Are they still in an open scope? If it cites a whole subproof, does the rule permit discharging it? Indentation or vertical lines make these dependencies inspectable.
Section sources: forall x, chapter 17: section 17.5: subproof scope ↗
自己构造证明
先在纸上写前提、目标和允许使用的规则,再打开答案。答案给出一条路径,不排除其他合法推导。
独立练习 1
由 (A ∧ B) → C、A、B 证明 C。为什么不能直接把 A 与第一个前提做条件消去?
查看答案与推理过程
先用 A 与 B 合取引入得到 A ∧ B,再与第一个前提做条件消去得到 C。前件是整个 A ∧ B,只有 A 不够。
独立练习 2
仅以 S 为前提,证明 T → (S ∧ T)。最终结论是否意味着 T 为真?
查看答案与推理过程
暂设 T;在子证明内使用仍开放的前提 S,与 T 合成 S ∧ T;解除 T,得到目标条件句。T 仍没有被证明。
Build a proof yourself
Write the premises, goal, and available rules before opening the answer. Each solution gives one route; other legitimate derivations may exist.
Independent exercise 1
Derive C from (A ∧ B) → C, A, and B. Why can A not immediately be combined with the conditional?
Show answer and reasoning
Introduce A ∧ B from A and B, then eliminate the conditional to obtain C. Its antecedent is the whole conjunction; A alone is insufficient.
Independent exercise 2
From S alone, prove T → (S ∧ T). Does the result establish T?
Show answer and reasoning
Assume T. Use the still-open premise S to introduce S ∧ T within the subproof. Discharge T to obtain the conditional. T itself has not been established.
Section sources: forall x, chapter 17: conditional and conjunction introduction ↗
检查你的理解
问:在假设下证明结论,能否删除假设直接保留结论?答:不能,必须按相应规则处理依赖。
Check your understanding
Question: Can a conclusion proved under an assumption simply be kept after deleting the assumption? Answer: No. Its dependencies must be handled by a valid rule.
参考文献
- forall x: Calgary ↗P. D. Magnus, Tim Button, Robert Trueman, Richard Zach et al. · 相关章节版本、许可与查阅范围