Wu Wenjun and Mechanical Theorem Proving
Abstract
Wu Wenjun (1919–2017) was a topologist whose name was already attached to the Wu classes and Wu formulas when the Cultural Revolution sent him to a Beijing computer factory. There he met computers for the first time, and he also began reading ancient Chinese mathematics, which expressed its results as step-by-step procedures rather than axioms and proofs. At the end of 1976 he set out to prove geometry theorems mechanically. Working by hand over the Spring Festival of 1977, he found a method that turns a theorem of elementary geometry into polynomial equations and checks it by algebraic elimination. “Wu’s method” revived a field that had made little progress since the 1950s, earned him the Herbrand Award for automated deduction in 1997, and made him one of the first two winners of China’s State Supreme Science and Technology Award.
From Shanghai to Paris
Wu Wenjun (Wen-Tsün Wu in older Western spellings) was born in Shanghai on 12 May 1919. He took his degree in mathematics at Chiao Tung University in 1940, but the war with Japan scattered the university, and for the next five years he taught at middle schools with no chance to do research. In 1946 he met Shiing-Shen Chern, who was building the Institute of Mathematics of the Academia Sinica. “This meeting with Chern was decisive for the future of my career in mathematics,” Wu later wrote. Chern took him on as a research assistant and taught him the new theory of fibre bundles and characteristic classes.
In 1947 Wu went to France on a Sino-French exchange scholarship. He studied in Strasbourg under Charles Ehresmann and completed his doctorate in 1949, then moved to Paris to work with Henri Cartan. In the first months of 1950, while his friend René Thom proved the topological invariance of the Stiefel–Whitney classes, Wu found the classes and formulas that now carry his name. They became standard results of algebraic topology.
He returned to China in 1951, taught at Peking University, and joined the Academia Sinica in 1953. His work on characteristic classes and on the embedding of polyhedra won him one of the three first prizes in the national natural science awards of 1956, and in 1957, aged 38, he was elected to the Chinese Academy of Sciences as its youngest member.
The Factory and the Old Books
When the Cultural Revolution began in 1966, intellectuals were sent to do manual work. Wu was sent to the Beijing No. 1 Radio Factory, which built computers. “I was initially struck by the power of the computer,” he recalled. In the same years he spent about a year studying ancient Chinese mathematics, from the Nine Chapters on the Mathematical Art to the equation-solving methods of Zhu Shijie in 1303. What struck him there was a style: Chinese mathematics had no axioms and no theorems in the Euclidean sense, but it had shu, rules that solved whole classes of problems mechanically. “In this sense our ancient mathematics may be considered as a kind of computer mathematics,” he wrote.
The two influences met at the end of 1976, when Wu tried to find a mechanical way of proving geometry theorems.
The Method
Computers had attacked geometry before. Geometry theorem proving was one of the first problems tried when artificial intelligence began in the 1950s, starting with Herbert Gelernter and his colleagues, whose program reasoned forward from known facts the way a student does. It handled simple theorems, and the field then saw little progress for about twenty years.
Wu went the other way, back to Descartes. Place the figure in a coordinate system and every hypothesis of the theorem (“these three points lie on a line”, “this point is the midpoint of that segment”) becomes a polynomial equation, and so does the conclusion. The question is then whether the conclusion polynomial vanishes wherever the hypothesis polynomials do. Wu borrowed from Joseph Ritt’s Differential Algebra (1950) a way of putting the hypotheses into triangular form, a “characteristic set” in which each new equation introduces one new variable. The conclusion is then divided by these polynomials one after another (pseudo-division). If the final remainder is zero, the theorem holds, apart from degenerate cases such as a triangle collapsing into a line, which the method lists explicitly as side conditions.
There was no computer available to him. During the Spring Festival of 1977 Wu worked through the first examples with pencil and paper, a process that took two months and involved polynomials with hundreds of terms. The first theorem he proved this way was Feuerbach’s theorem, which states that the nine-point circle of a triangle touches its incircle and its three excircles. He published the method that year in the journal 《中国科学》 (Scientia Sinica) as “初等几何判定问题与机械化证明” (“The decision problem for elementary geometry and mechanical proof”); the English version, “On the Decision Problem and the Mechanization of Theorem-Proving in Elementary Geometry,” followed in 1978.
Learning to Program at Sixty
Later he proved Simson’s theorem on a Changcheng (Great Wall) 203 computer built at the same Beijing No. 1 Radio Factory. The machine had no algebra software, and programs had to be written for its own instruction set.
In January 1979 Wu flew to the Institute for Advanced Study in Princeton with foreign currency approved by the Academy’s leadership to buy a computer for the work (accounts give US$20,000 or US$25,000). On the same trip he visited the logician Wang Hao at Rockefeller University, whose program on an IBM 704 had proved several hundred of the logic theorems of Principia Mathematica in the late 1950s and who had written to Wu about his method in April 1978. That year, at sixty, Wu began learning to program, first BASIC, then ALGOL, then Fortran. Between 1980 and 1983 he wrote his first geometry prover in Fortran 77 on Hewlett-Packard machines, an HP 9835A and an HP 1000. It proved hard theorems such as Feuerbach’s and Morley’s and found several new ones. Western computer algebra systems were out of reach, so Wu and his students wrote their own routines for big integers and multivariate polynomials.
Austin and the World
The method spread through a student. Chou Shang-Ching had attended Wu’s course on geometry theorem proving at the Graduate School of the Chinese Academy of Sciences in 1978 and in 1981 went to the University of Texas at Austin, where two research groups led the field of automated theorem proving. When he mentioned Wu’s work to Robert Boyer, Woody Bledsoe asked him to collect the papers. Wu sent two, signed for Bledsoe, and Austin made close to a hundred photocopies for colleagues around the world. Chou built a prover in Pascal and then in Macsyma on Lisp machines (see Computer Algebra Systems and The Lisp Machine Era), presented “Proving Geometry Theorems Using Wu’s Method” at a 1983 meeting in Colorado, and eventually proved about 600 nontrivial theorems with it. Two of Wu’s papers appeared in the conference volume, Automated Theorem Proving: After 25 Years (1984). Chou’s introduction in the Journal of Automated Reasoning in 1988 and his book Mechanical Geometry Theorem Proving made the method standard, and geometry turned into one of the few areas where machine proofs routinely beat human effort.
In 1979 Wu had already proposed a broader “Program of Mathematics Mechanization”: cover as much of mathematics as possible with domains small enough to mechanize, and apply the methods to engineering. Combining Zhu Shijie’s elimination with Ritt’s differential algebra, he extended the characteristic-set method into a general way of solving systems of algebraic and differential equations, applied to robotics, computer-aided geometric design, and computer vision. His book on the geometry method appeared in Chinese in 1984 and in English as Mechanical Theorem Proving in Geometries in 1994. In 1990 the Academy funded a Mathematics Mechanization Research Center in Beijing for his group, which later became a key laboratory.
Limits
Wu’s method decides statements whose hypotheses and conclusion are all equalities. The 1977 paper explicitly left out theorems involving “betweenness”, the order of points on a line, and inequalities need other techniques. Its proofs are also pages of polynomial arithmetic that confirm a theorem without explaining it; Chinese and Western researchers have spent decades since on methods, among them Chou’s own later work, that produce proofs a human can read. In 2024 the method returned as a baseline against DeepMind’s AlphaGeometry (see Demis Hassabis and DeepMind): on 30 olympiad geometry problems, Wu’s method alone solved 15, combined with classical synthetic methods it solved 21 on a CPU-only laptop, and combined with AlphaGeometry the two solved 27.
Honours
The CADE Herbrand Award for Distinguished Contributions to Automated Reasoning came in 1997. On 19 February 2001 Wu and the rice breeder Yuan Longping received the first State Supreme Science and Technology Award, the award for 2000; in his speech Premier Zhu Rongji credited Wu with applying computers to theorem proving and to solving nonlinear systems of equations. In 2006 he shared the Shaw Prize in Mathematical Sciences with David Mumford “for his contributions to the new interdisciplinary field of mathematics mechanization”. Wu died in Beijing on 7 May 2017, five days before his 98th birthday. For machine proof in other parts of mathematics, see Computer-Assisted Proof.
📚 Sources
- O’Connor, J. J., and E. F. Robertson: “Wen-Tsun Wu”, MacTutor History of Mathematics (birth and death, Chiao Tung degree 1940, Chern quote, France 1947, Ehresmann, doctorate 1949, Cartan, Wu classes 1950, return 1951 and 1953, 1956 prize, the factory and the “power of the computer” quote, 1977 method, Chinese book 1984 and English edition, Herbrand Award 1997, first State Supreme award, Shaw Prize 2006)
- Gao, Xiao-Shan: “Wen-Tsun Wu’s Academic Career”, ACM Communications in Computer Algebra 40(2), 2006, pp. 60–64 (PDF at AMSS) (school teaching during the war, Strasbourg and Paris, Thom, 1956 prize, factory of analogue and hybrid computers, a year of study of ancient mathematics, the start at the end of 1976, Gelernter and twenty years of slow progress, Chou in Austin, the 1979 Program of Mathematics Mechanization, Ritt and Zhu Shijie, MMRC 1990, Herbrand Award 1997)
- Wu Wen-tsun: “Some Developments of Chinese Mathematics in the Computer Age”, AMSS (PDF) (Nine Chapters, shu as algorithms, Zhu Shijie 1303, “a kind of computer mathematics” quote, end of 1976, MMRC 1990)
- Wu Wenjun and Gao Xiaoshan: “Mathematics mechanization and applications after thirty years”, Frontiers of Computer Science in China 1(1), 2007, pp. 1–8 (start around 1976, first English paper 1978, the 1979 program and its wording, Ritt’s characteristic sets)
- Wu Wen-tsun: “On the Decision Problem and the Mechanization of Theorem-Proving in Elementary Geometry”, in Automated Theorem Proving: After 25 Years, Contemporary Mathematics 29, AMS, 1984 (reprint of the 1978 Scientia Sinica paper; the Chinese original is 吴文俊: “初等几何判定问题与机械化证明”, 《中国科学》 1977年第6期)
- "“人民科学家”国家荣誉称号获得者吴文俊", Qiushi (求是) 2021/06 (1956 first-class national natural science prize, election to the Academy the following year as its youngest member)
- Wang, Hao: “Toward Mechanical Mathematics”, IBM Journal of Research and Development 4(1), 1960, pp. 2–22 (machine proofs of the Principia Mathematica theorems on the IBM 704)
- Ritt, Joseph Fels: Differential Algebra, AMS Colloquium Publications 33, 1950
- Wu Wen-tsun: Mechanical Theorem Proving in Geometries, Springer, 1994
- Chou, Shang-Ching: “An introduction to Wu’s method for mechanical theorem proving in geometry”, Journal of Automated Reasoning 4, 1988
- Chou, Shang-Ching: Mechanical Geometry Theorem Proving, Reidel, 1988
- Chou, S.-C., X.-S. Gao, Z.-J. Liu, D.-K. Wang, and D. Wang: “Geometric Theorem Provers and Algebraic Equations Solvers”, chapter 20 of Mathematics Mechanization and Applications (PDF at MMRC) (no computer in the late 1970s, pencil-and-paper examples with polynomials of hundreds of terms, the China-Prover in Fortran 77 on the HP 9835A and HP 1000 in 1980–1983, Feuerbach and Morley, Chou’s Pascal and Macsyma prover and about 600 theorems, no access to Western algebra systems)
- 林军、岑峰: “他推开了中国人工智能走向世界的大门”, The Paper (澎湃), 2023 (Beijing No. 1 Radio Factory, Spring Festival 1977 and two months of hand calculation, Feuerbach as the first theorem, Simson’s theorem on the Changcheng 203, January 1979 trip with US$25,000, visit to Wang Hao, Chou in Austin from 1981, Boyer and Bledsoe, the signed papers and nearly a hundred photocopies, the 1983 meeting in Colorado and Contemporary Mathematics 29); the same text by the same authors on Tencent Cloud
- 纪念吴文俊先生, The Paper (澎湃), May 2017 (death on 7 May 2017, Spring Festival 1977 and hand calculation, the radio factory, Chou in 1978, Wang Hao’s letter of 10 April 1978, about US$20,000 for a computer, learning BASIC, ALGOL, and Fortran at sixty, Herbrand Award 1997)
- Zhu Rongji: “推进科技创新 造就杰出人才”, speech at the National Science and Technology Awards Conference, 19 February 2001, Gazette of the State Council (Wu and Yuan Longping as first recipients, the citation for computer proof and equation solving)
- “The Shaw Prize in Mathematical Sciences”, MacTutor History of Mathematics (2006 prize shared with David Mumford, citation)
- Zou Yu, Peng Xicheng, and Rao Yongsheng: “基于吴方法的几何定理证明的恒等式方法” (An identity method for proving geometry theorems based on Wu’s method), Scientia Sinica Mathematica 51, 2021, pp. 289–300 (Wu’s method decides equality-type propositions; its proofs are usually not regarded as readable; Chou’s readable-proof methods)
- Sinha, Shiven, et al.: “Wu’s Method can Boost Symbolic AI to Rival Silver Medalists and AlphaGeometry to Outperform Gold Medalists at IMO Geometry”, arXiv:2404.06405, 2024 (15 of 30 problems for Wu’s method alone, 21 with synthetic methods on a CPU-only laptop, 27 combined with AlphaGeometry)
- Image: HP 9835A foto3.jpg by Piergiovanna Grossi (CC BY-SA 4.0), via Wikimedia Commons