# 判定问题

判定问题是一种计算任务：对每一个可能的输入，根据该输入是否具有某种性质，要求输出“真”或“假”。<sup>[1](http://www.oxfordreference.com/viewbydoi/10.1093/oi/authority.20110803095705786)</sup> 它所提出的问题是：是否存在一种有效的计算程序（即算法），能够判定一个参数化陈述的每一个实例的真假——肯定的解答在于给出这样的算法，从而使问题成为可判定的；而如果不存在这样的算法，该问题就是不可判定的或不可解的。<sup>[2](https://encyclopediaofmath.org/wiki/Decision_problem)</sup>

| 关键事实 | 详情 |
|---|---|
| 定义 | 对每个输入，根据其是否具有给定性质输出“真”或“假”；判定程序是一种在每个输入上都停机并返回正确答案的算法。<sup>[1](http://www.oxfordreference.com/viewbydoi/10.1093/oi/authority.20110803095705786)</sup><sup> • </sup><sup>[3](https://mathworld.wolfram.com/DecisionProblem.html)</sup> |
| 形式设定 | 在计算复杂性理论中，输入是固定有限字母表上的有限字。<sup>[3](https://mathworld.wolfram.com/DecisionProblem.html)</sup> |
| 半可判定性 | 有些不可解问题存在半判定程序，它能正确输出“真”，但在本应输出“假”的情形下不终止；需要输出“真”的输入构成一个递归可枚举集合，但未必是递归的。<sup>[1](http://www.oxfordreference.com/viewbydoi/10.1093/oi/authority.20110803095705786)</sup> |
| 里程碑式的否定结果 | 丘奇定理（1936）：一阶逻辑的有效公式集不是有效可判定的。<sup>[4](https://www.rep.routledge.com/articles/thematic/churchs-theorem-and-the-decision-problem/v-1/sections/y003aentry)</sup> |
| 里程碑年份 | 希尔伯特-阿克曼表述 1928；哥德尔不完全性 1931；丘奇与图灵的否定性解答 1936–37；波斯特的半群字问题 1947；希尔伯特第十问题解决 1970。<sup>[5](https://plato.stanford.edu/entries/church-turing/decision-problem.html)</sup><sup> • </sup><sup>[6](https://www.cl.cam.ac.uk/teaching/1314/CompTheory/lectures/lecture-1.pdf)</sup><sup> • </sup><sup>[7](https://plato.stanford.edu/Entries/computational-complexity/)</sup> |
| 复杂性类 | 多项式时间可判定的类 P 可以被形式地证明与某些其他类（如 EXP）不同；P 是否真包含于 NP 是一个著名猜想，常被视为理论计算机科学中最根本的问题。<sup>[7](https://plato.stanford.edu/Entries/computational-complexity/)</sup> |

## 形式定义

判定问题要求对每个输入给出是或否的答案。在计算复杂性理论中，输入是固定有限字母表上的有限字，判定程序是一种在每个输入上都停机并返回正确答案的算法。<sup>[3](https://mathworld.wolfram.com/DecisionProblem.html)</sup> 在每种情形下都能产生正确判定的算法称为判定程序；存在这种算法的问题称为可判定的或可解的。<sup>[1](http://www.oxfordreference.com/viewbydoi/10.1093/oi/authority.20110803095705786)</sup><sup> • </sup><sup>[2](https://encyclopediaofmath.org/wiki/Decision_problem)</sup>

这个定义处于两个极端之间。可解的例子包括：判定一个给定的整数是否为素数，以及判定一个整系数多项式是否有实根。<sup>[2](https://encyclopediaofmath.org/wiki/Decision_problem)</sup> 不可解的例子包括：判定一个有效给出的实数是否为零、希尔伯特第十问题（整系数多变量多项式是否有整数根）、一阶谓词演算公式有效性的判定问题，以及群的字问题。<sup>[2](https://encyclopediaofmath.org/wiki/Decision_problem)</sup>

**半可判定性。** 有些不可解问题仍然拥有半判定程序，即一种算法，它能正确输出“真”，但在本应输出“假”的情形下不终止。等价地说，需要输出“真”的那些输入构成一个递归可枚举集合，但未必是递归集合。<sup>[1](http://www.oxfordreference.com/viewbydoi/10.1093/oi/authority.20110803095705786)</sup>

整个事业只有在有效计算程序的概念被恰当地形式化之后才有意义，正如在算法理论中所做的那样。<sup>[2](https://encyclopediaofmath.org/wiki/Decision_problem)</sup>

## 可判定性、停机问题与丘奇-图灵论题

停机问题问的是：给定程序在给定输入上运行最终是否停机。它是一个判定问题，而图灵和丘奇的工作表明它是不可判定的：不存在能对所有实例都正确判定它的算法。<sup>[6](https://www.cl.cam.ac.uk/teaching/1314/CompTheory/lectures/lecture-1.pdf)</sup>

要对任何判定问题给出否定性解答，都需要对“有效可计算”函数作出精确刻画。许多不同的候选答案都刻画了同一类数论函数，即部分递归函数；如今，递归性（等价地，图灵可计算性）被视为有效可计算性的精确数学对应物。<sup>[8](https://www.rep.routledge.com/articles/thematic/computability-theory/v-1/sections/undecidable-problems)</sup> 丘奇和图灵各自独立贡献的不仅是不可判定性证明，还有对“有效可解问题”（即可由算法求解的问题）的这一数学定义。<sup>[4](https://www.rep.routledge.com/articles/thematic/churchs-theorem-and-the-decision-problem/v-1/sections/y003aentry)</sup>

**丘奇-图灵论题。** 根据丘奇-图灵论题，凡可计算的函数都是图灵可计算的。<sup>[9](https://human.libretexts.org/Bookshelves/Philosophy/Logic_and_Reasoning/Sets_Logic_Computation_(Zach)/03%3A_III-_Turing_Machines/3.02%3A_Undecidability/3.2.04%3A_The_Decision_Problem)</sup> 在该论题下，一个问题若其特征函数是非递归的，则它是有效不可判定的，停机问题和半群的字问题即属此类。<sup>[7](https://plato.stanford.edu/Entries/computational-complexity/)</sup> 一阶逻辑的不可判定性证明表明：不存在一台图灵机，能在每个一阶语句上停机并根据有效性输出 1 或 0；如果有效性函数在某种意义上有效可计算，它就会是图灵可计算的，而事实并非如此。<sup>[9](https://human.libretexts.org/Bookshelves/Philosophy/Logic_and_Reasoning/Sets_Logic_Computation_(Zach)/03%3A_III-_Turing_Machines/3.02%3A_Undecidability/3.2.04%3A_The_Decision_Problem)</sup>

这些观念是理想化的，因为计算不受时间或空间的限制；对计算机科学而言，“可行性”概念对于挑出递归函数中其值真正可被计算的那一部分至关重要。<sup>[8](https://www.rep.routledge.com/articles/thematic/computability-theory/v-1/sections/undecidable-problems)</sup> 有效可计算性的精确刻画对于哥德尔不完全性定理的一般表述，以及对于诸如希尔伯特第十问题之类问题的有效不可解性，也是必需的。<sup>[8](https://www.rep.routledge.com/articles/thematic/computability-theory/v-1/sections/undecidable-problems)</sup> 哥德尔 1931 年的不完全性定理已经在希尔伯特所期望的算术一致性证明道路上设置了出人意料的新障碍。<sup>[5](https://plato.stanford.edu/entries/church-turing/decision-problem.html)</sup>

## 不可判定问题与归约

在 1936 年发表的一项结果中，丘奇表明一阶逻辑对于有效性没有有效的判定程序，这意味着不存在任何方法或算法来判定其公式中哪些是有效的。<sup>[4](https://www.rep.routledge.com/articles/thematic/churchs-theorem-and-the-decision-problem/v-1/sections/y003aentry)</sup> 图灵在 1936 年表明“希尔伯特判定问题不可能有解”，而丘奇用两页的证明断定，狭义函数演算的判定问题的一般情形是不可解的。<sup>[5](https://plato.stanford.edu/entries/church-turing/decision-problem.html)</sup> 判定问题（Entscheidungsproblem）是德语“判定问题”之意，它问的是：是否存在一种算法，能够判定一个特定公理系统中的任意表达式是否有证明。<sup>[3](https://mathworld.wolfram.com/DecisionProblem.html)</sup> 希尔伯特和阿克曼曾在 1928 年表述道：一旦知道了某种通过有限多次操作来判定给定逻辑表达式是否普遍有效或可满足的程序，该问题就算解决了。<sup>[5](https://plato.stanford.edu/entries/church-turing/decision-problem.html)</sup>

**归约。** 丘奇的证明展示了一个不可判定的组合问题 P，表明 P 可在一阶逻辑中表示，并得出结论：如果一阶逻辑是可判定的，那么 P 也会是可判定的。<sup>[4](https://www.rep.routledge.com/articles/thematic/churchs-theorem-and-the-decision-problem/v-1/sections/y003aentry)</sup> 本着同样的精神，判定问题的不可判定性通过将停机问题的实例 (A, D) 编码为算术语句 Φ<sub>A,D</sub> 而得以完成，其性质是：Φ<sub>A,D</sub> 可证明当且仅当 A(D) 停机。<sup>[6](https://www.cl.cam.ac.uk/teaching/1314/CompTheory/lectures/lecture-1.pdf)</sup>

随后又出现了其他里程碑式的不可判定问题。半群的字问题由波斯特于 1947 年证明为不可判定。<sup>[7](https://plato.stanford.edu/Entries/computational-complexity/)</sup> 希尔伯特第十问题于 1900 年提出，直到 1970 年才得到解决，当时马蒂亚谢维奇、罗宾逊、戴维斯和普特南通过从停机问题归约而证明其不可判定；后来，琼斯和马蒂亚谢维奇（《符号逻辑杂志》49, 1984）给出了一个更简单的证明，使用了明斯基和兰贝克的寄存器机。<sup>[6](https://www.cl.cam.ac.uk/teaching/1314/CompTheory/lectures/lecture-1.pdf)</sup> 图灵和丘奇还表明，二阶函数演算不可能有判定方法，因为它包含一阶演算作为其片段。<sup>[5](https://plato.stanford.edu/entries/church-turing/decision-problem.html)</sup>

## 可判定片段与经典判定问题

这些否定性的一般结果与丰富的可判定受限情形理论并存。逻辑有效性对于命题逻辑是可解的，其中真值表的构造就是一种判定程序；但根据丘奇 1936 年的定理，对于谓词逻辑则不是。<sup>[1](http://www.oxfordreference.com/viewbydoi/10.1093/oi/authority.20110803095705786)</sup> 在一阶逻辑内部，贝尔奈斯和舍恩芬克尔于 1928 年表明，对于至多含两个个体变元的公式存在判定方法；贝曼于 1922 年证明二阶函数演算的一元片段是可判定的；哥德尔于 1933 年发表了一篇关于受限片段判定问题的论文；拉姆齐于 1930 年为某一量词前缀类设计了一种判定方法。<sup>[5](https://plato.stanford.edu/entries/church-turing/decision-problem.html)</sup>

对这些情形的系统研究被称为经典判定问题。埃贡·伯尔格、埃里希·格雷德尔和尤里·古列维奇合著的专著《经典判定问题》提供了可解与不可解标准情形的完整分类、可解情形的复杂性分析、归约方法的详细处理，以及可解情形的模型论分析，并特别强调了该问题在计算机科学中的作用。<sup>[10](https://pages.di.unipi.it/borger/decpblbook.html)</sup>

## 以数字看

| 年份 | 结果 |
|---|---|
| 1900 | 希尔伯特提出关于多项式整数根的第十问题。<sup>[6](https://www.cl.cam.ac.uk/teaching/1314/CompTheory/lectures/lecture-1.pdf)</sup> |
| 1922 | 贝曼证明二阶函数演算的一元片段可判定。<sup>[5](https://plato.stanford.edu/entries/church-turing/decision-problem.html)</sup> |
| 1928 | 希尔伯特和阿克曼表述判定问题；贝尔奈斯和舍恩芬克尔给出两变元情形的判定方法。<sup>[5](https://plato.stanford.edu/entries/church-turing/decision-problem.html)</sup> |
| 1931 | 哥德尔不完全性定理阻碍了希尔伯特的一致性纲领。<sup>[5](https://plato.stanford.edu/entries/church-turing/decision-problem.html)</sup> |
| 1936–37 | 丘奇和图灵对判定问题给出否定性回答；丘奇定理于 1936 年发表。<sup>[7](https://plato.stanford.edu/Entries/computational-complexity/)</sup><sup> • </sup><sup>[4](https://www.rep.routledge.com/articles/thematic/churchs-theorem-and-the-decision-problem/v-1/sections/y003aentry)</sup> |
| 1947 | 波斯特证明半群的字问题不可判定。<sup>[7](https://plato.stanford.edu/Entries/computational-complexity/)</sup> |
| 1970 | 马蒂亚谢维奇、罗宾逊、戴维斯和普特南否定地解决希尔伯特第十问题。<sup>[6](https://www.cl.cam.ac.uk/teaching/1314/CompTheory/lectures/lecture-1.pdf)</sup> |
| 1971–72 | 库克（1971）和卡普（1972）引入多项式时间图灵归约和多一归约。<sup>[7](https://plato.stanford.edu/Entries/computational-complexity/)</sup> |

关于类包含关系：P 可以被形式地证明与某些其他类（如 EXP）不同；而 P 真包含于 NP（写作 P ⊊ NP）这一猜想，常被视为整个理论计算机科学中最根本的问题。<sup>[7](https://plato.stanford.edu/Entries/computational-complexity/)</sup>

## 与相关问题类和复杂性类的比较

判定问题对每个输入只返回真或假。<sup>[1](http://www.oxfordreference.com/viewbydoi/10.1093/oi/authority.20110803095705786)</sup> 在可计算性理论中，不可判定性取决于特征函数，即把每个输入映射为 1 或 0 的函数；根据丘奇-图灵论题，一个问题恰在其特征函数为非递归时是有效不可判定的。<sup>[7](https://plato.stanford.edu/Entries/computational-complexity/)</sup>

一旦一个问题已知为可判定，复杂性理论便会细化效率问题。类 P 由那些可由图灵机在与输入规模的某个多项式成正比的步数内解决的问题组成；NP 由那些可由非确定性图灵机在多项式时间内判定的问题组成。<sup>[7](https://plato.stanford.edu/Entries/computational-complexity/)</sup> 这在单纯的可判定性之上又加了一层：可计算性理论中的概念是理想化的，不施加任何时间或空间限制，而“可行性”是计算机科学中用来指称递归函数中其值真正可被确定的那一部分子类的概念。<sup>[8](https://www.rep.routledge.com/articles/thematic/computability-theory/v-1/sections/undecidable-problems)</sup> 复杂性理论从可计算性理论借用了归约概念，产生了多项式时间多一归约（也称卡普归约，Karp 1972）和多项式时间图灵归约（也称库克归约，Cook 1971）。<sup>[7](https://plato.stanford.edu/Entries/computational-complexity/)</sup>

## 应用与实际意义

可判定与不可判定情形的分类具有直接的实际价值。有效性对命题逻辑是可判定的，但对谓词逻辑则不是；在一阶逻辑内部，存在可判定的受限情形，如贝尔奈斯-舍恩芬克尔两变元情形和一元片段。<sup>[1](http://www.oxfordreference.com/viewbydoi/10.1093/oi/authority.20110803095705786)</sup><sup> • </sup><sup>[5](https://plato.stanford.edu/entries/church-turing/decision-problem.html)</sup> 经典判定问题中可解与不可解标准情形的完整分类，连同可解情形的复杂性分析，都得到了呈现，并特别强调了该问题在计算机科学中的作用。<sup>[10](https://pages.di.unipi.it/borger/decpblbook.html)</sup> 可行性概念刻画了哪些递归函数的值能够在资源限制内真正被确定，它指导着可判定性理论的这一实际应用。<sup>[8](https://www.rep.routledge.com/articles/thematic/computability-theory/v-1/sections/undecidable-problems)</sup>

关于图灵对判定问题的否定性解答究竟应定年为 1936 年（他的论文发表并声称该问题“不可能有解”的那一年）还是 1937 年（后来一些文献在提及同一著作和停机问题时所用的年份），各来源说法不一。<sup>[5](https://plato.stanford.edu/entries/church-turing/decision-problem.html)</sup><sup> • </sup><sup>[7](https://plato.stanford.edu/Entries/computational-complexity/)</sup>

## References

1. [Decision problem, A Dictionary of Computing, Oxford Reference](http://www.oxfordreference.com/viewbydoi/10.1093/oi/authority.20110803095705786)
2. [Decision problem, Encyclopedia of Mathematics](https://encyclopediaofmath.org/wiki/Decision_problem)
3. [Decision Problem, Wolfram MathWorld](https://mathworld.wolfram.com/DecisionProblem.html)
4. [Church's theorem and the decision problem, Routledge Encyclopedia of Philosophy](https://www.rep.routledge.com/articles/thematic/churchs-theorem-and-the-decision-problem/v-1/sections/y003aentry)
5. [The Church–Turing Thesis: The Rise and Fall of the Entscheidungsproblem, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/entries/church-turing/decision-problem.html)
6. [Computation Theory, Lecture 1, University of Cambridge](https://www.cl.cam.ac.uk/teaching/1314/CompTheory/lectures/lecture-1.pdf)
7. [Computational Complexity Theory, Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/Entries/computational-complexity/)
8. [Computability Theory: Undecidable Problems, Routledge Encyclopedia of Philosophy](https://www.rep.routledge.com/articles/thematic/computability-theory/v-1/sections/undecidable-problems)
9. [The Decision Problem, in Richard Zach, Sets, Logic, Computation (LibreTexts)](https://human.libretexts.org/Bookshelves/Philosophy/Logic_and_Reasoning/Sets_Logic_Computation_(Zach)/03%3A_III-_Turing_Machines/3.02%3A_Undecidability/3.2.04%3A_The_Decision_Problem)
10. [Egon Börger, Erich Grädel, Yuri Gurevich, The Classical Decision Problem (Springer)](https://pages.di.unipi.it/borger/decpblbook.html)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 25, 2026 · Edited: Sep 30, 2026; Oct 25, 2026 · Last review: Oct 25, 2026*

Topic: 物质世界与数学 › 数学与统计学 › 逻辑与离散数学 › General discrete mathematics and discrete structures › Computability theory › Undecidability results and applications

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/decision-problem

English original: https://www.edgepedia.org/decision-problem
