AM: Automated Mathematician Developed by Douglas Lenat
In 1976, Douglas Lenat at Stanford University completed AM (Automated Mathematician), a heuristic program that explored elementary mathematics by modifying and combining LISP-coded concepts, discovering properties such as prime numbers without being explicitly programmed to do so.

Background
By the mid-1970s, AI researchers working on reasoning systems faced a basic problem. A program could only do what it had been told to do. You wrote down rules, the program followed them, and it never went any further than the rules allowed. This made the systems brittle. They could answer questions about what they already knew, but they could not generate anything genuinely new.
The dominant approach to machine reasoning leaned heavily on logic and formal proof. Programs like resolution theorem-provers could check whether a statement followed from a set of axioms, but checking a proof and finding one are very different tasks. Discovery, the thing that makes mathematics interesting, was treated as something beyond the reach of computation. The question of whether a machine could form its own conjectures, without being told what to look for, had no convincing answer.
What researchers in the Stanford Heuristic Programming Project were exploring, under John McCarthy and Edward Feigenbaum, was whether rules of thumb, the kind of informal guidance a mathematician might use to decide which direction was worth exploring, could substitute for exhaustive search. The idea was promising but unproven. It needed a concrete system to test it.
What happened
Douglas Lenat, working towards his doctorate at Stanford University, built AM, the Automated Mathematician. The system started with about 115 elementary concepts from finite set theory, each represented as a chunk of LISP code. These were not mathematical facts stated as propositions. They were operations: things the program could actually run.
AM’s behaviour was driven by a set of around 250 heuristics. A heuristic, in this context, is a rule of thumb that says something like: if a function produces the same output from many different inputs, look more closely at that function. The heuristics guided AM in deciding which concepts were worth examining and how to modify or combine them to form new ones. AM did not follow a fixed proof strategy. It allocated its attention based on a running estimate of how interesting each direction seemed.
Working from those initial set-theoretic concepts, AM moved towards arithmetic. It found multiplication, then noticed that some numbers could only be divided evenly by themselves and by one. It had, in effect, rediscovered prime numbers. It went on to notice patterns that correspond to Goldbach’s conjecture and other well-known results. None of these were planted in the system. They emerged from the heuristics interacting with the initial concept base.
Lenat described the system and its results in his 1976 Stanford doctoral dissertation. The fuller published account came later, in a 1983 paper in the journal Artificial Intelligence (vol. 21, issues 1–2, pp. 31–59), co-authored with a retrospective analysis of how the heuristics had behaved. That paper made clear that AM’s success depended heavily on the richness already embedded in LISP’s representation of mathematical objects, a point that shaped how researchers read the result and set the terms for later debate about what exactly the heuristics had achieved.
Why it mattered
AM demonstrated that a program guided by heuristics rather than explicit rules could autonomously generate mathematical conjectures, providing early evidence that machine discovery was computationally tractable. It became a foundational reference for knowledge-based systems and meta-level reasoning, influencing subsequent work on heuristic search and automated scientific discovery. The design of AM, and later its successor EURISKO, anchored debates about the limits of heuristic programming that continued through the 1980s expert-systems era.
People
Organisations
Stanford University, Stanford Heuristic Programming Project
Sources
- Theory Formation by Heuristic Search: The Nature of Heuristics II, Background and Examples.Artificial Intelligence (Elsevier), vol. 21, issues 1–2, pp. 31–59.Primary source
- EURISKO: A Program That Learns New Heuristics and Domain Concepts, The Nature of Heuristics III.Artificial Intelligence (Elsevier), vol. 21, issues 1–2, pp. 61–98.Secondary
Cite this page
AI Achievements. (1976). AM: Automated Mathematician Developed by Douglas Lenat. Retrieved 2026-08-22, from https://achievements.ai/milestone/am-program-by-doug-lenat
@misc{achievements_am_program_by_doug_lenat,
title = {AM: Automated Mathematician Developed by Douglas Lenat},
author = {{AI Achievements}},
year = {1976},
url = {https://achievements.ai/milestone/am-program-by-doug-lenat}
}