图灵,那个苹果
Turing, That Apple
一、三个苹果
有三个苹果,常被人放在一起讲。
一个属于牛顿:果实落下,一个关于天与地的问题被重新提出。那不是一下砸出万有引力定律的魔法。另一个属于今天的电脑标志,缺了一口;设计者说,那一口是为了让人认出苹果,不是向图灵致敬。
第三个在图灵死后的房间里。床边有一个吃了一部分的苹果。死因是氰化物中毒,但苹果没有接受检验。我们不能一面承认不知道,一面又在开头替他写下“咬了一口,然后死去”。
传说喜欢把一生收拢成一个形状。苹果很容易画在纪念海报上,纸带、逻辑、漫长的协作和一场刑事审判,却很难同时画进去。
阿兰·图灵曾帮助人们理解计算,也参与了战时密码破译。后来,国家因他与男人的性关系给他定罪,要求他接受激素处置。这个反差令人愤怒,但他的权利不需要靠战争贡献来换取。
哪怕他没有发明过什么,没有帮助过任何国家,也不应因此受到迫害。带着这一点再看那个苹果,我们才没有把一个人重新压缩成一张有用的天才证书。
二、纸带
1936年,图灵写下《论可计算数及其在判定问题上的应用》。这篇论文讨论的机器,不是一台摆在桌上的设备。它是一种把“按规则计算”说明白的办法。
想象一条可以不断延伸的纸带,分成格子。格子里有符号,读写头查看当前一格,写入符号,再向左或向右移动。机器只有有限的状态和规则,下一步做什么,由眼前的符号与状态决定。
纸带并非必须只写零和一;那是熟悉的简化画法。关键是局部、明确、可重复的步骤。机器不会突然凭灵感跳过规则,也不需要理解自己正在算的数对人有什么意义。
更惊人的一步是通用机器:把另一台机器的规则编码,交给它读取,它便能模拟那台机器。为了做另一件事,不一定得从头造另一种机器;可以更换写进去的说明。
这里要分清一个证明与一个论题。通用机器能够模拟这些形式化的机器,是数学结果;凡是有效的机械计算都能由这样的模型表达,则属于丘奇—图灵论题,不是已经证明世界里所有过程都等于一台纸带机。
巴赫让少量材料长出复杂的音乐,牛顿用数学联系天体与落物。图灵则把计算拆到很少的动作,让我们终于能够问清楚:这样的动作,究竟能走到哪里?
三、停机
所谓判定问题,精确地说,是能否用一个机械程序判定任意一阶逻辑公式是否普遍有效。它与希尔伯特对数学方法的期待相关,却不等于把全世界一切问题交给一台机器,就都能得到真或假的答案。
图灵在1936年的论文中给出否定结果;丘奇也在同年独立得到相关结论。今天最常用的入口,是停机问题:能否有一个程序,总能判断任何程序在指定输入上,最终会停止还是永远运行?
设想有这样一位永不出错的裁判。我们再写一个程序:裁判若说它会停,它就故意一直运行;裁判若说它不会停,它就立刻停止。让裁判面对这个程序在相应自指输入上的表现,两种回答都会被反过来。
这不是电脑不够快,也不是纸带不够长。它表明,在这个明确规定的计算框架里,不存在对所有程序与输入都有效的停机判定器。图灵原文的论证形式与今天教科书的讲法不完全相同,不能把现代版本冒充逐字复述。
很多具体程序仍然能够判断是否停止。有些受限制的问题也有可靠算法。“没有万能判定器”并不是“任何东西都算不出来”,更不是“人类直觉永远胜过机器”的证明。
边界之所以有力量,正在于它划得精确。越过这一步,把它变成关于人生、社会与宇宙的万能口号,反而会抹掉图灵真正做成的工作。
四、战争
1939年,图灵进入布莱切利庄园的战时工作。恩尼格玛看起来像一套组合多得难以想象的锁。破译者的任务不是对着复杂感叹,而是找出哪些可能实际上不可能。
一个字母不会被加密成它自己,报文里可能出现某些惯用语,机器的接线必须前后一致。这些条件可以互相约束。Bombe的工作,是利用这样的逻辑关系筛掉大量不可能的设置,而不是神奇地听懂德军每一句话。
这不是孤独天才独自赢得的一场战争。波兰数学家在战前的突破与分享至关重要;图灵提出英国Bombe的重要设计,戈登·韦尔奇曼作出关键改进,工程师把方案造出来,操作人员日复一日使它运转。
还需要截收报文、语言分析、缴获材料、海上行动,以及把情报变成有效决策的人。机器之间连着人,人的工作之间也连着漫长而容易被省略的等待。
这项协作对战争极为重要。但“至少缩短两年、确定拯救多少百万人”是反事实估计,不是可以直接清点的史实。我们不必拿一个精确数字,来换取对贡献的承认。
战后,图灵参与国家物理实验室的计算机工作,后来到曼彻斯特。他并非从秘密庄园直接退回剑桥,等着悲剧降临。还有设计、争论、程序,还有没有做完的问题。
五、模仿游戏
1950年,他发表《计算机器与智能》。机器能不能思考?这个问题很容易把谈话锁在定义里:先定义思考,再争论什么算真正的思考,然后又回到定义。
图灵换了一个入口。通过文字交流,让询问者判断对面是谁;再考察机器能否在这种对话中表现得使判断困难。论文从一个人与人的模仿游戏展开,后来才引入机器,不是只给出一句“骗过人就有灵魂”的口号。
这样做的锋利之处,是要求我们交代自己的标准。你凭什么说同事在理解,而机器只是在机械回应?如果判断所依据的表现接近,你是否仅仅因为知道材料不同,就提前宣布结果?
但通过一项交谈测试,不等于已经证明意识存在,也不自动赋予道德地位。测试条件、时间、询问方式和表现范围都会影响结论。人在一次交谈中分辨不出来,更不等于两者在一切方面相同。
与休谟的比较可以帮助读者:我们常从能够观察到的事情,走向一个比观察本身更大的判断。不过,休谟并没有删掉一切因果知识,图灵也没有宣布思考只是骗局。比较是一座便桥,不是两套思想相同的证明。
问题因此更具体了:你看见了什么?据此推到了哪里?还有哪些事没有被测试?他没有替后来的人工智能讨论封口,而是把争论带到可以互相检查的地方。
六、他和哥德尔
哥德尔在1931年发表不完备定理,图灵的工作在1936年。不是同一年,也不是把完全相同的一句话各证明了一次。
对一致、有效公理化且能表达足够算术的理论,哥德尔式结果揭示其证明能力的限制。图灵的不可判定性则针对一般算法能否解决指定的一类问题。两者深刻相连,但前提、对象与结论不能混写。
可以暂用一个读者容易抓住的对照:哥德尔让人看见某套证明规则不能穷尽算术,图灵让人看见没有一套通用程序能够把所有停机问题处理完。随后还得记住,这个对照不是正式定义。
也不宜把一个人叫作只会仰望的柏拉图主义者,把另一个人叫作只会动手的工程师。哥德尔的证明包含极精细的构造,图灵的机器首先是抽象数学。两个人都在用创造性的工作,让限制显形。
限制不意味着停止研究。不能获得一个万能答案,仍然可以发明许多有用的程序、证明许多定理,并弄清楚每种方法适用于什么地方。
知道工具不能做一切,与认为工具什么都不能做,差得很远。图灵的一生没有停在否定结果旁边;他继续设计可以工作、可以交给别人使用的东西。
七、他和苏格拉底
把图灵放到苏格拉底身边,可以听见一种相近的追问:你说自己知道,那么你是怎样判断的?
苏格拉底会拿一个定义去碰具体的人和事,看它在哪里失灵。图灵则给关于机器智能的争论安排一种对话实验,让某些轻易说出口的排除标准面对检验。
他们并非同一种方法。苏格拉底的伦理问答不是统计测试,模仿游戏也不是只为把人送到“什么都不知道”的空地。图灵还提出了建设性的研究方向,包括学习机器的设想。
共同之处,是不让一个熟悉的词替我们完成全部思考。说“那只是机器”,还得说明“只是”究竟排除了什么;说“这就是人”,也不能只剩一套功能指标。
这时,图灵自己的经历使问题变得刺痛。一个社会愿意从他能做的工作里确认价值,却又从他爱谁来剥夺他的生活。国家读得懂密码的用处,却拒绝尊重密码学家的私人生活。
这里的人格尊严不是停机定理的推论。没有哪条数学定理需要先替他担保。一个人不能被还原为贡献清单,是我们面对这段历史时应当守住的起点。
八、被判刑的人
1952年,图灵因家中失窃报警,调查牵出了他与阿诺德·默里的性关系。当年3月定罪时,他三十九岁,不是四十一岁。英国当时的法律把男性之间的某些自愿性行为规定为犯罪。
“严重猥亵”这一罪名,也曾用于迫害王尔德。图灵接受了附带激素治疗条件的缓刑,而不是监禁。把它叫作选择,需要同时说出:两条路都是国家强加的,不是一个自由病人的治疗决定。
这种处置通常被称作化学阉割,伤害了他的身体,也侵犯了自主权。他失去了继续参与秘密密码工作的资格,却仍留在曼彻斯特从事研究。不能把他最后的岁月写成一个从此没有朋友、没有行动、只等着死亡的人。
司马迁为继续写作承受酷刑的故事,会使中文读者想到类似的残酷交换。但时代、刑罚和个人处境不同。我们不能因此断言研究是图灵接受处置的唯一动机,更不能赞美一个制度逼出的“坚强选择”。
他的形态发生研究在定罪前已经开始,1952年发表重要论文,并在之后继续推进。花纹怎样从反应与扩散中出现?植物的形状怎样生长?这些问题并不是受罚以后才突然找到的安慰。
他仍会工作、往来、开玩笑。这不能减轻迫害,也提醒我们不要替死者写一张未经证实的心理诊断。一个人受到伤害之后,仍然比那份伤害记录更大。
九、那个苹果
1954年6月8日,图灵被发现死于家中,死亡日期记为6月7日,四十一岁。氰化物中毒得到确认,验尸调查裁定为自杀;母亲则相信是实验导致的意外。苹果未经检验,具体过程不能被当成已证实的事实来复演。
承认这一点,不是在否认官方裁定,更不是替迫害开脱。只是拒绝用一段完美的悲剧镜头,填满证据留下的空白。他最后怎样想,不能由我们凭叙事需要决定。
2009年,英国政府道歉;2013年,他获身后皇家赦免;2021年,印有他肖像的五十英镑纸币发行。公共记忆终于改变了方向,但这些事没有把他失去的岁月还回来。
而且,纠正不应只给最有名的那一个。没有破解密码、没有肖像上钞票的人,也同样不应因自愿的亲密关系受到刑罚。
在这个系列想象的桥头,图灵站在众人旁边。休谟收起双陆棋,克尔凯郭尔转过身,叔本华的狗走过来。我们不再安排他当众咬下一个有毒的苹果。这不是史实,也不是理解他的必要代价。
不妨让他手里拿一张写满符号的纸。他想说一件还没有说完的事;有人给他腾出位置。这个虚构画面不能补偿历史,却至少不再次把他只写成死亡的象征。
他不只是社会终于承认的功臣,也不是一条关于“天才必然悲惨”的寓言。他是一个本来应该能够继续工作、恋爱、变老的人。
苹果有没有沾上氰化物,我们不知道。他不在了。知道这两句话之间的区别,是记住他时也应有的诚实。
注释
计算论部分区分通用性定理、丘奇—图灵论题、停机问题与一阶逻辑判定问题;对角论证采用面向读者的现代说明,不冒充1936年原文。哥德尔比较不是不同定理的等同,也不是从数学直接推出伦理。
战争贡献属于集体工作;1952年定罪时为三十九岁,形态发生研究先于定罪。死因、验尸裁定与苹果是否有毒是不同层次的证据;结尾不复演未经证实的死亡过程。桥头是文学想象。
I. Three Apples
Three apples are often made to carry a history.
One belongs to Newton: a falling fruit, a question joining earth and sky. It was not a magical blow that delivered the law of gravitation. Another belongs to a computer company's logo, with a bite that its designer says helps identify the fruit, not commemorate Turing.
The third was in Turing's room after his death. An apple had been partly eaten. Cyanide poisoning was established, but the apple was not tested. We cannot acknowledge that uncertainty and then begin our story by confidently describing a fatal bite.
Legends draw a life into one memorable shape. An apple fits on a commemorative poster. A paper tape, a logical argument, years of collective work, and a criminal prosecution are harder to put in the same frame.
Alan Turing helped explain computation and contributed to wartime codebreaking. His country later convicted him for a sexual relationship with a man and subjected him to hormone treatment. The contrast is appalling, but his rights did not need to be purchased with wartime service.
Had he invented nothing and helped no nation, the persecution would still have been wrong. Unless we remember that, our tribute risks reducing him once again to a certificate of useful genius.
II. The Tape
In 1936 Turing wrote On Computable Numbers, with an Application to the Entscheidungsproblem. Its machine was not a device on a desk. It was a way of making calculation by rules precise enough to investigate.
Imagine a tape that can keep extending, divided into squares bearing symbols. A head reads the current square, writes, and moves left or right. A finite collection of states and rules determines the next action from what is presently being read.
The symbols need not be just zeros and ones; that is a familiar simplified picture. What matters is the local, explicit, repeatable step. The machine does not skip a rule through inspiration. It need not understand what its calculation means to us.
Then comes universality. Encode the rules of another such machine and give that description to a universal machine: it can simulate the other. Doing a different job need not require building a fundamentally different device. Change the instructions.
A theorem and a thesis must be distinguished here. The simulation of these formal machines is a mathematical result. The identification of all effective mechanical calculation with such models is the Church–Turing thesis, not a proof that every process in the universe is a tape machine.
Bach makes elaborate music from limited materials; Newton relates falling bodies to the heavens. Turing reduces calculation to a few actions so that a new question can finally be asked precisely: how far can those actions go?
III. Halting
The decision problem, stated carefully, asks for a mechanical procedure deciding whether any first-order logical formula is universally valid. It belongs to Hilbert's larger ambitions for mathematics, but is not simply a request for a machine to answer every imaginable question.
Turing's 1936 paper gives a negative result; Church independently obtains a related result that year. Today's most accessible route is the halting problem: could one program always decide whether any given program, on a specified input, eventually stops?
Suppose there were an infallible judge. Build a contrary program: if the judge predicts that it stops, it runs forever; if the judge predicts endless running, it stops. Arrange the appropriate self-reference, and either answer given by the judge is overturned.
This is not a shortage of speed or tape. Within the specified computational framework, no halting decider works for every program and input. The argument in Turing's original paper is not identical to the modern textbook presentation; the latter is an explanation, not a transcription.
We can still establish whether many particular programs halt. Restricted classes of problems can have reliable algorithms. No universal decider does not mean nothing is computable, and it does not prove that human intuition must always outperform machines.
The boundary matters because it is exact. Turning it into an all-purpose slogan about life, society, or the universe would erase the precision that made the achievement possible.
IV. War
In 1939 Turing joined the wartime work at Bletchley Park. Enigma resembled a lock with an overwhelming number of possible arrangements. The task was not to admire that complexity but to discover which apparent possibilities could not actually occur.
A letter could not encrypt as itself. A message might contain a predictable phrase. Connections had to remain consistent. These constraints could work together: the Bombe rejected large numbers of impossible settings rather than magically understanding every German message.
It was not a war won by a solitary genius. Polish mathematicians' prewar breakthroughs and their sharing of results were indispensable. Turing supplied crucial British Bombe design ideas, Gordon Welchman made a major improvement, engineers built the equipment, and operators kept it working.
Intercepts, linguistic analysis, captured material, naval operations, and the people who turned intelligence into decisions also mattered. Machines depended on people. People's tasks depended on one another, across stretches of repetitive work that a heroic montage easily leaves out.
The contribution was enormous. Claims that it shortened the war by a precise number of years and saved a precise number of lives are counterfactual estimates, not totals anyone can count directly. Recognition does not require pretending otherwise.
After the war Turing worked on computing at the National Physical Laboratory and later at Manchester. He did not simply return to Cambridge from a secret estate and wait for tragedy. There were designs, disagreements, programs, and questions still unfinished.
V. The Imitation Game
His 1950 paper Computing Machinery and Intelligence begins with whether machines can think. That question can imprison a discussion inside definitions: define thinking, argue over what truly qualifies, and then return to the definition.
Turing changes the approach. Through written exchanges, an interrogator tries to identify interlocutors; the question becomes how a machine might perform in such an exchange. The paper starts with an imitation game between people before introducing a machine. It does not merely proclaim that deception proves a soul.
The sharp move is to ask us to explain our standards. Why does a colleague's response count as understanding while a machine's counts as mere mechanism? If the evidence in conversation is comparable, are we rejecting one participant in advance because we know its material?
Passing a conversational test, however, does not establish consciousness or automatically confer moral status. Duration, conditions, questions, and the range of performance affect what can be concluded. Indistinguishability in one exchange does not establish identity in every respect.
Hume offers a useful comparison: we often move from something observable to a judgment larger than the observation. But Hume did not abolish all causal knowledge, and Turing did not declare thinking a fraud. A comparison is a footbridge, not proof that two philosophies are identical.
What did you observe? What did you infer? What remains untested? Turing did not end the argument for future generations. He moved parts of it into a space where people could inspect one another's claims.
VI. Turing and Gödel
Gödel published the incompleteness theorems in 1931; Turing's paper followed in 1936. They did not work in the same year or prove exactly the same statement twice.
For consistent, effectively axiomatized theories strong enough to express adequate arithmetic, Gödelian results disclose limits of proof. Turing's undecidability concerns whether general algorithms can solve specified classes of problems. The connections are profound, but the assumptions, objects, and conclusions must not be mixed.
For orientation, one might say that Gödel shows why certain proof rules cannot exhaust arithmetic, while Turing shows why no general program settles every halting question. That comparison helps a reader get started; it is not a formal definition.
Nor should Gödel become a Platonist who merely gazes beyond a boundary, while Turing becomes an engineer who merely builds. Gödel's proofs require intricate construction. Turing's machine begins as abstract mathematics. Both make limitations visible through creative work.
A limitation is not a command to cease research. Without a universal answer, we can still devise useful programs, prove theorems, and learn which methods fit which problems. The distinction between impossible in general and possible here is itself productive.
Knowing a tool cannot do everything is far from believing it can do nothing. Turing did not settle beside his negative result. He kept designing things that could work and that other people could use.
VII. With Socrates
Place Turing beside Socrates and a related question becomes audible: you say you know, but how are you making that judgment?
Socrates tests a definition against people and cases, looking for the point where it fails. Turing sets up a conversational experiment in which apparently obvious exclusions of machine intelligence have to face examination.
These are not the same method. Socratic ethical questioning is not a statistical test. The imitation game is not designed merely to leave everybody knowing nothing. Turing also proposes constructive research possibilities, including machines that learn.
What they share is resistance to letting a familiar word complete the thinking. Calling something only a machine requires explaining what only excludes. Calling something a person must not become merely the recognition of a performance profile.
Here Turing's own life makes the issue hurt. A society was willing to recognise value in the work he could perform, while using the identity of his sexual partner to restrict his life. It understood the usefulness of codebreaking and failed to respect the codebreaker's private existence.
His dignity is not a consequence of the halting theorem. No mathematical result must first vouch for him. A person cannot be reduced to a list of contributions: that is where our ethical reading of the history should begin.
VIII. The Conviction
In 1952 Turing reported a burglary, and the investigation brought his sexual relationship with Arnold Murray to police attention. At his conviction in March he was thirty-nine, not forty-one. The law then criminalised certain consensual sexual acts between men.
The charge of gross indecency had also been used against Oscar Wilde. Turing accepted probation conditional on hormone treatment rather than imprisonment. Calling this a choice requires adding that both options were imposed by the state, not offered to a freely consenting patient.
The treatment, commonly called chemical castration, injured his body and violated his autonomy. He lost access to secret cryptographic work but retained his Manchester research position. His remaining years should not be written as a period without friends, activity, or anything but approaching death.
Chinese readers may recall Sima Qian enduring punishment while trying to continue his historical writing. The circumstances, penalties, and people differ. We cannot make research Turing's sole proven motive, still less celebrate the noble choice extracted by a coercive institution.
His work on morphogenesis had begun before the conviction. An important paper appeared in 1952, and the investigation continued afterward. How could reaction and diffusion produce patterns? How did living shapes develop? These questions were not consolations invented only after punishment.
He continued working, meeting people, and joking. That does not diminish the persecution. It warns us against writing an unverified psychological diagnosis for the dead. A harmed person remains larger than the record of what was done to him.
IX. That Apple
Turing was found dead at home on 8 June 1954; his death is dated 7 June. He was forty-one. Cyanide poisoning was confirmed and the inquest returned a verdict of suicide. His mother believed an experiment had caused an accident. The untested apple cannot supply a verified reconstruction of the act.
Acknowledging this does not erase the official verdict or excuse the persecution. It refuses to fill gaps in evidence with a perfectly composed tragic shot. What he finally thought cannot be settled by what our narrative needs.
The British government apologised in 2009. A posthumous royal pardon followed in 2013. In 2021 his portrait appeared on the fifty-pound note. Public remembrance had changed direction, but none of these acts returned the years he lost.
Redress should not be reserved for the most famous man. Those who never broke a code or appeared on a banknote should not have been punished for consensual intimacy either.
At the imaginary bridge of this series, Turing stands among the others. Hume puts away his backgammon; Kierkegaard turns; Schopenhauer's dog approaches. We will not make Turing bite a poisoned apple before an audience. It is neither established history nor the price of understanding him.
Let him hold a sheet covered in symbols instead. There is something he has not finished saying, and somebody makes room. The invented scene cannot repair history, but at least it does not turn him once more into nothing but a symbol of death.
He was not only a national asset finally recognised, or a fable in which genius must be miserable. He was someone who should have been able to keep working, loving, and growing older.
We do not know whether the apple contained cyanide. We know that he is gone. Remembering the difference is part of remembering him honestly.
Notes
The account distinguishes universality, the Church–Turing thesis, halting, and first-order validity. The diagonal argument uses a modern explanatory presentation, not a transcription of the 1936 paper. The Gödel comparison neither equates different theorems nor derives ethics from mathematics.
Codebreaking was collective work. Turing was thirty-nine at conviction, and morphogenesis preceded it. Cause of death, inquest verdict, and the untested apple are distinct evidential questions. The bridge is an invented scene, not a reconstruction of his death.
- Turing: On Computable Numbers, archive B/12
- Turing: Computing Machinery and Intelligence (1950)
- National Museum of Computing: Turing–Welchman Bombe
- Andrew Hodges: Turing, 1952–1954, with archival links
- Interview with Apple logo designer Rob Janoff
- UK government: posthumous pardon, 2013
- Bank of England: Turing banknote, 2021