# 回溯分析

**回溯分析**（Retrograde analysis）是[国际象棋排局](https://www.edgepedia.org/zh/chess-problem)的一种类型，解题者要推断的不是局面的未来走向，而是它的历史：最后一步棋是什么，哪些棋子被吃掉或升变，轮到哪一方走棋，或者根据先前的着法，是否还存在易位或吃过路兵之类的特殊权利。<sup>[1](https://www.janko.at/Retros/index.htm)</sup><sup> • </sup><sup>[2](https://mindzug.com/en/glossary/retrograde-analysis)</sup> 传统棋题只关心局面的后续演变，回溯题则只关心局面的过往历史，解题所需的演绎方法也不同于常规国际象棋程序所用者。<sup>[3](https://www.sciencedirect.com/science/chapter/edited-volume/pii/B9780080268989500139)</sup>

| 关键事实 | 详情 |
|---|---|
| 核心任务 | 推断局面的过去：最后一步、吃子、升变、轮到谁走，或尚存的易位权与吃过路兵权<sup>[2](https://mindzug.com/en/glossary/retrograde-analysis)</sup><sup> • </sup><sup>[3](https://www.sciencedirect.com/science/chapter/edited-volume/pii/B9780080268989500139)</sup> |
| 合法性原则 | 一个局面若能经由一串合法着法从初始摆法到达——无论这串着法多么古怪——即为合法；合法性是该类型的核心要素<sup>[1](https://www.janko.at/Retros/index.htm)</sup> |
| 有名称的惯例 | 回溯策略（RS）、事后（AP）与部分回溯分析（PRA）三项惯例，用于在历史未给出时裁定易位权与吃过路兵权<sup>[4](https://www.chess.com/blog/Rocky64/chess-problem-conventions-re-castling-and-capturing-en-passant)</sup> |
| 证明对局 | 一个子类型，要求找出达到图示局面的、指定长度的唯一对局；最早的例子出自萨姆·洛伊德，时在19世纪90年代；最早的无多解例子出自T. R. 道森，1913年<sup>[5](https://math.mit.edu/~rstan/chess/spg.pdf)</sup> |
| 复杂度 | 在推广的n×n棋盘上，判定一个局面是否可达是PSPACE完全的（Brunner、Demaine、Hendrickson与Wellman，ISAAC 2020）<sup>[6](https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ISAAC.2020.17)</sup> |
| 计算机应用 | 同一术语也指用于构建残局表库、求解跳棋与Ostle等游戏的后向计算<sup>[7](https://chessrank.org/blog/syzygy-endgame-tablebases)</sup><sup> • </sup><sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC10557503/)</sup> |
| 里程碑式发表 | 1907年萨姆·洛伊德一则棋题在《德意志象棋杂志》上的重新发表，促成了这门艺术的大发展<sup>[9](https://www.uschess.org/index.php?Itemid=500&id=8985&lang=en&option=com_content&task=view)</sup> |

## 回溯题问的是什么

一道排局必须呈现一个合法局面，即对局过程中可能因一串合法着法而出现的局面，但产生图示局面的历史并不给出。回溯题正是利用这一空白。题目可能问最后一步棋是什么，问身份不明的棋子各是什么颜色，问某个棋子必定走过多少步，或者问过去必定存在过哪些局面。<sup>[2](https://mindzug.com/en/glossary/retrograde-analysis)</sup><sup> • </sup><sup>[10](https://theproblemist.org/trd/trd-retop.html)</sup> 典型的解题过程是解题者以[苏格拉底式对话](https://www.edgepedia.org/zh/socratic-dialogue)的形式提出一连串问题，直至答案浮现——专家系统文献正是这样描述人类解题的。<sup>[11](https://www.sciencedirect.com/science/article/pii/S0020737388800403)</sup>

推理往往就是排除不可能的情况。在“回溯分析角”的一个例子里，一王被一车一后双将，只可能有一种解释：最后一步是兵吃子升变为车并将军，这又依次确定了另外几个棋子的颜色。<sup>[1](https://www.janko.at/Retros/index.htm)</sup> 回溯题也可能附带常规的将杀任务，例如两步杀，而主要内容在于解释局面的历史。<sup>[1](https://www.janko.at/Retros/index.htm)</sup>

## 易位、吃过路兵与各项惯例

有两种特殊着法与其他着法不同：它们的合法性不仅取决于当前局面，还取决于先前的着法——易位要求王与车都不曾移动，吃过路兵则要求被吃的兵刚刚前进两格。<sup>[4](https://www.chess.com/blog/Rocky64/chess-problem-conventions-re-castling-and-capturing-en-passant)</sup> 由于排局不给出历史，就需要惯例来裁定这类着法是否允许。按吃过路兵惯例，只有当能证明某兵在上一步刚前进两格时，才可以吃过路兵；而回溯分析可用来推断最后一步是否确为双步前进。<sup>[12](https://www.janko.at/Retros/Glossary/EnPassant.htm)</sup>

有三项具名惯例处理这些情形：回溯策略（RS）、事后（AP）与部分回溯分析（PRA）。<sup>[4](https://www.chess.com/blog/Rocky64/chess-problem-conventions-re-castling-and-capturing-en-passant)</sup> PRA意指必须考虑对局历史才能得出答案，它按易位与吃过路兵惯例下着法权利的所有可能组合，把局面拆成相互依赖的若干部分。<sup>[13](https://www.accademiadelproblema.org/archivio/RIVISTE/Estero/Handbook%20of%20Chess%20Composition/Handbook%20of%20Chess%20Composition%20%202013.pdf)</sup> 这些规则适用于各类排局，但它们是许多回溯分析题的基础。<sup>[4](https://www.chess.com/blog/Rocky64/chess-problem-conventions-re-castling-and-capturing-en-passant)</sup>

## 证明对局

证明对局要求解题者找出一局指定步数的对局，达到给定局面；题目要成立，这局棋必须唯一。<sup>[5](https://math.mit.edu/~rstan/chess/spg.pdf)</sup> 通常指定步数取最小可能值，此时该对局称为最短证明对局；证明对局与其他回溯题的区别恰恰在于这一长度限制，它扩大了复杂主题的发挥空间。<sup>[5](https://math.mit.edu/~rstan/chess/spg.pdf)</sup>

这一类型的历史，从萨姆·洛伊德19世纪90年代的最早例子（带有多解）开始，经T. R. 道森1913年首个无多解的证明对局，到米歇尔·卡约20世纪80年代初的开创性工作。<sup>[5](https://math.mit.edu/~rstan/chess/spg.pdf)</sup> 反复出现的主题包括“节拍”，即一方必须精确浪费若干步，以及弗罗尔金主题，即多次吃掉已升变的棋子。<sup>[5](https://math.mit.edu/~rstan/chess/spg.pdf)</sup>

## 该类型的历史

在回溯分析中，人们研究棋盘上的一个局面如何能经由完全合法的着法从标准初始摆法到达，追问诸如哪一方走了最近一步、此前几步是什么、某些棋子的何种位移不可避免之类的问题。核心人物T. R. 道森于1915年出版了一部题为《回溯分析》的集子，收录他自己的68道题。<sup>[10](https://theproblemist.org/trd/trd-retop.html)</sup> 在该类型前史中常被提及的较早里程碑，是亨利·洛夫戴1845年发表于《棋手纪事》的“印度题”。<sup>[14](https://www.janko.at/Retros/Articles/The-First-Portents.htm)</sup> 1907年萨姆·洛伊德的作品在《德意志象棋杂志》上重新发表，被认为推动了回溯分析艺术的广泛发展。<sup>[9](https://www.uschess.org/index.php?Itemid=500&id=8985&lang=en&option=com_content&task=view)</sup> 雷蒙德·斯穆里安那本以[夏洛克·福尔摩斯](https://www.edgepedia.org/zh/sherlock-holmes)为主角的棋谜书，让许多后来的解题者认识了回溯分析，甚至启发了早期的计算机求解工作。<sup>[1](https://www.janko.at/Retros/index.htm)</sup><sup> • </sup><sup>[15](https://journals.sagepub.com/doi/pdf/10.3233/ICG-1981-4307?download=true)</sup>

## 计算机求解

回溯题的程序所需的演绎方法，与在后续着法上向前搜索的常规国际象棋程序完全不同。<sup>[3](https://www.sciencedirect.com/science/chapter/edited-volume/pii/B9780080268989500139)</sup> 一个名为RETRO的专家系统由B. E. P. 阿尔登与M. A. 布拉默于1988年在《国际人机研究杂志》上给出定义，它用类框架表示法确定解题所需提出的问题；它并非能解出所有可以想见的回溯分析题，但其方法被设计成具有普遍适用性。<sup>[11](https://www.sciencedirect.com/science/article/pii/S0020737388800403)</sup> 同一对作者的一个相关程序曾在1981年的一次计算机象棋会议上发表，其思路取自斯穆里安的书。<sup>[15](https://journals.sagepub.com/doi/pdf/10.3233/ICG-1981-4307?download=true)</sup>

在计算机象棋以及更广义的游戏求解中，回溯分析还有第二层算法含义：从已解出的局面向后计算。残局表库就是这样构建的：遍历给定棋子组合所能形成的每一个合法局面，并确定双方完美着法下的结果。<sup>[7](https://chessrank.org/blog/syzygy-endgame-tablebases)</sup><sup> • </sup><sup>[2](https://mindzug.com/en/glossary/retrograde-analysis)</sup> 这一技术与汤普森1986年的工作相关，是用于求解跳棋的算法之一，也被用来强解棋盘游戏Ostle，确认其初始局面为和棋。<sup>[8](https://pmc.ncbi.nlm.nih.gov/articles/PMC10557503/)</sup>

## 复杂度

当国际象棋推广到n×n棋盘时，回溯问题的理论难度很高。一个回溯问题问的是某局面能否从自然的起始局面到达，即它是否有效、合法或可达；现实中的回溯题大多只问这样一串着法中的最后几步，而所研究的判定问题触及的是指数长着法序列的存在性。Brunner、Demaine、Hendrickson与Wellman在一篇于ISAAC 2020上发表的论文中，通过从益智游戏“地铁 shuffle”的一个变体归约，证明了该问题是PSPACE完全的。<sup>[6](https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ISAAC.2020.17)</sup> 同一篇论文还证明了助杀题的PSPACE完全性——助杀是国际象棋的合作形式，双方合力将一方将死。<sup>[6](https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ISAAC.2020.17)</sup>

## References

1. [The Retrograde Analysis Corner, Otto Janko](https://www.janko.at/Retros/index.htm)
2. [Retrograde Analysis in Chess: Definition, MindZug glossary](https://mindzug.com/en/glossary/retrograde-analysis)
3. [Development of a Program for Solving Retrograde Analysis Chess Problems, Advances in Computer Chess (Pergamon, 1982)](https://www.sciencedirect.com/science/chapter/edited-volume/pii/B9780080268989500139)
4. [Chess problem conventions re castling and capturing en passant, Chess.com](https://www.chess.com/blog/Rocky64/chess-problem-conventions-re-castling-and-capturing-en-passant)
5. [Noam D. Elkies and Richard P. Stanley, Chess and Mathematics (proof games section)](https://math.mit.edu/~rstan/chess/spg.pdf)
6. [Josh Brunner, Erik D. Demaine, Dylan Hendrickson, Julian Wellman, Complexity of Retrograde and Helpmate Chess Problems, ISAAC 2020 (LIPIcs vol. 181)](https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ISAAC.2020.17)
7. [Board Analysis now uses Syzygy endgame tablebases, ChessRank.org](https://chessrank.org/blog/syzygy-endgame-tablebases)
8. [Strongly solved Ostle, PeerJ Computer Science (2023)](https://pmc.ncbi.nlm.nih.gov/articles/PMC10557503/)
9. [Problem Potpourri, United States Chess Federation](https://www.uschess.org/index.php?Itemid=500&id=8985&lang=en&option=com_content&task=view)
10. [T. R. Dawson: Retro-Opposition, The Problemist](https://theproblemist.org/trd/trd-retop.html)
11. [B. E. P. Alden and M. A. Bramer, An expert system for solving retrograde-analysis chess problems, International Journal of Man-Machine Studies 29(2), 1988](https://www.sciencedirect.com/science/article/pii/S0020737388800403)
12. [En Passant Capture, Retrograde Analysis Corner glossary](https://www.janko.at/Retros/Glossary/EnPassant.htm)
13. [Hannu Harkola, Handbook of Chess Composition, 6th edition, 2013](https://www.accademiadelproblema.org/archivio/RIVISTE/Estero/Handbook%20of%20Chess%20Composition/Handbook%20of%20Chess%20Composition%20%202013.pdf)
14. [Nikita Plaksin, The First Portents, Retrograde Analysis Corner (2010)](https://www.janko.at/Retros/Articles/The-First-Portents.htm)
15. [Progress in Computer Chess, ICCA Newsletter, December 1981](https://journals.sagepub.com/doi/pdf/10.3233/ICG-1981-4307?download=true)

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

Topic: 体育、游戏与休闲 › 棋牌与益智游戏 › 国际象棋 › Chess organizations, computing, and variants › Chess problems and composition

Copyright 2026 Edgepedia

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

Source: https://www.edgepedia.org/zh/retrograde-analysis

English original: https://www.edgepedia.org/retrograde-analysis
