Skip to content

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.

HP 9835A
An HP 9835A desktop computer, the model on which Wu wrote his first geometry prover in the early 1980s. Image: Piergiovanna Grossi, CC BY-SA 4.0, via Wikimedia Commons.

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