Seven Years for One Proof
Andrew Wiles, Fermat's Last Theorem and the intelligence to discover that being wrong is not the end
Some problems surrender their answers in minutes. Others require days, months, or years of careful work. Then there are problems that survive entire generations, passing from one brilliant mind to another while the world around them changes beyond recognition. Fermat's Last Theorem belonged to that extraordinary category. For more than three centuries, mathematicians attempted to prove a statement that appeared simple enough for a schoolchild to understand but resisted some of the greatest mathematical minds in history. During those centuries, empires rose and fell, scientific revolutions transformed civilization, steam engines changed transportation, electricity illuminated cities, human beings learned to fly, and computers emerged as instruments of calculation and discovery. Through it all, the theorem remained unresolved. Its persistence revealed something profound about human intelligence: understanding a question is not the same as possessing the knowledge required to answer it.
The story began in seventeenth-century France with Pierre de Fermat, a mathematician whose observations helped shape the development of number theory. In the margin of a mathematical text, Fermat recorded a claim concerning an equation that looked deceptively familiar. When three positive whole numbers are arranged in the relationship x^n + y^n = z^n, solutions exist when the exponent n equals 2. The familiar example is 3² + 4² = 5², where 9 and 16 combine to produce 25. But Fermat claimed that no such positive whole-number solutions exist when the exponent is greater than 2. He also suggested that he possessed a remarkable proof, although the margin of the book was too small to contain it. Whether Fermat actually had a valid general proof remains unknown. What is certain is that his brief statement created a challenge that would outlive him by centuries. A mathematical question had been placed before the world, and generations of mathematicians would discover that a simple statement can conceal an extraordinarily difficult truth.
The centuries that followed were not centuries of empty failure. Mathematicians made important advances while attempting to solve the problem, even when the complete proof remained beyond their reach. Leonhard Euler established a significant result for the exponent 3. Sophie Germain developed methods that advanced the understanding of entire classes of possible solutions. Ernst Kummer created powerful mathematical techniques while investigating obstacles connected to the theorem. Each contribution extended the boundaries of mathematical knowledge, yet none completed the general proof. This is one of the remarkable features of serious intellectual work. A failed attempt to solve one problem may produce methods that solve many others. Research does not always progress by moving directly toward a final answer. Sometimes it advances through discoveries made along roads that ultimately prove insufficient for the original destination.
For a young Andrew Wiles, however, Fermat's Last Theorem was not initially a story about centuries of mathematical research. It was a mystery he could understand. As a boy, Wiles encountered the theorem and became fascinated by the contrast between the simplicity of its statement and the difficulty of its proof. He did not need advanced mathematical training to understand what Fermat had claimed. Yet the greatest mathematicians of previous generations had been unable to establish that the claim was true in every case. That contradiction between an accessible question and an inaccessible answer captured his imagination. As Wiles continued his education and eventually became a professional mathematician, the childhood problem remained with him. It was an intellectual ambition that had begun long before he possessed the technical knowledge necessary to approach it.
The eventual breakthrough did not come from staring at Fermat's equation and searching for a clever manipulation of its numbers. It emerged from a connection between mathematical worlds that appeared, at first, to be far removed from the original problem. Researchers had been studying elliptic curves, mathematical objects described by certain algebraic equations, and modular forms, highly structured functions possessing remarkable patterns of symmetry. These subjects belonged to different areas of mathematics, yet a major conjecture associated with Yutaka Taniyama and Goro Shimura proposed that a deep relationship connected them. The conjecture suggested that elliptic curves of a particular kind were linked to modular forms. To an outsider, this might have seemed like an abstract question concerning mathematical structures with little connection to an equation written in a seventeenth-century margin. But in advanced mathematics, the most powerful discoveries often occur when seemingly unrelated subjects turn out to describe different aspects of the same underlying reality.
During the 1980s, Gerhard Frey identified a remarkable possible connection between Fermat's Last Theorem and the developing theory of elliptic curves. Imagine, for a moment, that Fermat had been wrong. Suppose positive whole numbers existed that satisfied his equation for an exponent greater than 2. From such a hypothetical solution, mathematicians could construct a special elliptic curve with unusual properties. Frey recognized that this curve appeared to conflict with the expected relationship between elliptic curves and modular forms. Jean-Pierre Serre developed the implications further, and Kenneth Ribet subsequently proved the crucial mathematical connection. The result changed the nature of the centuries-old problem. If the relevant part of the Taniyama–Shimura conjecture could be established, the hypothetical curve arising from a counterexample to Fermat's theorem could not exist. The ancient equation had become connected to a modern conjecture through a rigorous chain of reasoning.
For Andrew Wiles, that connection opened a door that had not existed when he first encountered the theorem as a child. He no longer needed to prove Fermat's Last Theorem by attacking the equation directly. Instead, he could attempt to establish enough of the modularity conjecture to make a counterexample impossible. This was an extraordinary change in perspective. The original problem had survived centuries of direct attack, but the mathematics surrounding it had evolved until another route became available. What once appeared to be an isolated question in number theory was now part of a larger mathematical landscape. Wiles recognized the opportunity and began the work that would define his career.
Beginning in the second half of the 1980s, Wiles devoted roughly seven years to the problem, working largely in secrecy while continuing his professional mathematical life. He understood that an undertaking of such magnitude required sustained concentration. Publicly announcing that he was attempting to solve Fermat's Last Theorem could have brought constant questions, speculation, and distractions. Instead, he worked privately, developing arguments, testing mathematical structures, confronting obstacles, and searching for ways to establish the required connection between elliptic curves and modular forms. The popular image of Wiles working in his proverbial attic captures something important about those years, although the actual work involved a vast body of accumulated mathematics. Every step depended upon concepts developed by generations of researchers, and every promising idea had to withstand the unforgiving standards of mathematical reasoning.
Seven years of work did not guarantee that an eighth year would contain a solution. There was no promise that the methods Wiles was developing would ultimately succeed. He could spend years building an argument only to discover that a crucial step could not be justified. This is the uncertainty that accompanies research at the boundaries of human knowledge. The investigator does not know in advance whether the problem is solvable using the tools available, whether a hidden connection remains undiscovered, or whether the entire approach will eventually collapse. Wiles continued because he believed the path was worth pursuing, but belief alone could not establish the theorem. The mathematics itself would have to carry the proof.
In June 1993, Wiles delivered a series of lectures at the Isaac Newton Institute in Cambridge, England, concerning elliptic curves and modular forms. As the lectures progressed, the significance of his work became increasingly clear. By the final lecture on June 23, the audience understood that Wiles was presenting a result with consequences far beyond the immediate subject of his presentation. He had established enough of the modularity conjecture for semistable elliptic curves to imply Fermat's Last Theorem. After more than three hundred years, one of mathematics' most famous unsolved problems appeared to have been conquered. News of the achievement spread rapidly. The mathematical community recognized the extraordinary importance of the announcement, and the wider public encountered the story of a mathematician who had pursued a childhood fascination for seven years and apparently achieved what generations before him could not.
Then came the part of the story that gives this chapter its deepest meaning. The proof was examined. Other mathematicians studied the argument, questioned its steps, and attempted to establish that every necessary conclusion followed from valid reasoning. During that process, a serious gap was discovered in a critical part of the work. This was not a typographical error or a missing reference. It was a mathematical problem that threatened the completeness of the proof itself. By December 1993, Wiles publicly acknowledged that an unresolved difficulty remained. The announcement that had seemed to close a centuries-old mystery was no longer sufficient. The mathematical community had to wait, and Wiles had to confront the possibility that the achievement to which he had devoted seven years might remain unfinished.
Consider the human weight of that discovery. Wiles had worked privately for years, emerged before an audience of mathematicians, and presented an argument that appeared to settle one of the most celebrated problems in history. The announcement had brought extraordinary attention, yet the proof could not be accepted merely because its author was brilliant, its conclusion was desirable, or its development had required enormous personal sacrifice. Mathematics does not establish truth through reputation, effort, applause, or confidence. It establishes truth through arguments that withstand scrutiny. The gap therefore mattered more than the excitement surrounding the announcement. Verification had not insulted Wiles or diminished the seriousness of his work. It had identified the precise place where the achievement remained incomplete.
This distinction reaches far beyond mathematics. When an engineer inspects a bridge and discovers a structural weakness, the inspection is not an attack upon the bridge. When software fails a carefully designed test, the test has not destroyed the value of the software. When an artificial-intelligence system produces a convincing answer that cannot survive verification, the verification process has not made intelligence useless. It has exposed a difference between what appears to be correct and what has actually been established. Human beings often become attached to their conclusions because they have invested time, energy, reputation, and emotion in producing them. But truth does not become stronger because the person presenting it has worked hard. The willingness to examine a result critically, especially when the result is celebrated, is one of the foundations of trustworthy knowledge.
Wiles now faced a different kind of challenge from the one he had faced during his years of secret research. He was no longer trying simply to discover a route toward the theorem. He had to repair a specific weakness within a large and sophisticated argument while knowing that the mathematical world was waiting for an answer. Eventually, he enlisted the help of Richard Taylor, a mathematician who had previously been his student. Together they explored possible repairs, reconsidered techniques, and examined approaches that might resolve the difficulty. The repair period lasted roughly another year after the 1993 announcement, rather than another six or seven years as some retellings might suggest. Nevertheless, the difficulty was formidable. Months of additional work did not immediately produce the missing argument, and by 1994 the problem remained unresolved.
The breakthrough came through a change in how Wiles understood the relationship between methods he had already investigated. As the repair effort continued, he reached a point where he was attempting to understand why one of the approaches that had failed could not be made to work. What appeared to be an exercise in accepting defeat became an opportunity to reconsider the problem from another direction. Wiles recognized that the obstruction in one approach could be connected to the strengths of another. Ideas that had previously seemed unable to complete the proof could be combined in a way that overcame the difficulty. The path forward did not require discarding everything he had learned. It required seeing a relationship between pieces of knowledge that had already been developed.
In September 1994, the decisive repair was achieved. The corrected work was ultimately presented in two mathematical papers, one written by Wiles and another jointly by Richard Taylor and Wiles, both published in 1995. The proof established the required modularity result for semistable elliptic curves, and Fermat's Last Theorem followed. A problem that had survived for more than three centuries had finally received a valid proof accepted by the mathematical community. Yet the achievement was larger than the resolution of an ancient equation. The methods and results contributed to the broader understanding of elliptic curves, modular forms, and the deep connections that link different areas of number theory. The final answer had emerged from a mathematical framework far richer than the problem that originally inspired the search.
For readers unfamiliar with advanced number theory, the essential lesson does not require mastering the technical definitions of elliptic curves or modular forms. It requires understanding the structure of the discovery. Mathematicians had developed two apparently different mathematical landscapes. A conjecture proposed a deep connection between them. Frey, Serre, and Ribet established that a hypothetical counterexample to Fermat's Last Theorem would create a contradiction with the relevant modularity relationship. Wiles then proved enough of that relationship to eliminate the possibility of such a counterexample. The ancient problem was resolved through a modern connection that Fermat himself could not have known in its later mathematical form. Sometimes the answer to a difficult question lies not within the question as originally framed, but within a larger system that reveals why the question has the answer it does.
This history belongs in a book about artificial intelligence because it illustrates the difference between producing an answer and establishing that an answer is correct. A mathematical statement may appear true after thousands or even billions of successful numerical tests. A computer may search enormous collections of examples without finding a counterexample. A statistical model may assign overwhelming confidence to a conclusion. None of those achievements automatically constitutes a mathematical proof. A proof must establish its conclusion through a valid chain of reasoning. The distinction matters increasingly as artificial-intelligence systems become capable of producing sophisticated mathematical explanations, plausible arguments, and persuasive language. An AI system may generate an answer that looks complete to a casual reader while containing a subtle error that only careful checking reveals. The appearance of intelligence is not a substitute for the verification of its results.
The development of automated theorem proving and formal verification offers another dimension to this relationship. Computers can assist mathematicians by searching for proof steps, checking formal deductions, and verifying that arguments conform to explicitly defined logical rules. Such systems do not make mathematical truth a matter of machine confidence. Instead, they can provide additional tools for examining whether a claimed conclusion follows from stated assumptions. There is an important difference between a system that generates a persuasive explanation and a system that checks a formally specified proof. The first may be useful for exploring ideas, but the second can test whether a sequence of deductions satisfies precise logical requirements. These approaches can complement one another, provided the assumptions, formalization, and verification process are themselves handled carefully.
Wiles's experience also reveals why verification must remain independent of admiration. A result can come from an exceptionally talented researcher and still contain a mistake. An artificial-intelligence system can produce thousands of useful answers and still generate a dangerous falsehood in a consequential setting. A model can sound certain without possessing a reliable basis for certainty. The proper response is neither to reject intelligence because it can fail nor to accept its conclusions because it has succeeded before. The proper response is to build systems in which claims can be examined, uncertainties can be identified, errors can be corrected, and important decisions can be supported by evidence appropriate to their consequences. Trustworthy intelligence requires more than the ability to produce answers. It requires a disciplined relationship with the possibility of being wrong.
There is another lesson in the seven years Wiles devoted to the theorem. Persistence is not simply the act of repeating the same unsuccessful procedure until the world changes. Serious persistence involves learning from failure, questioning assumptions, exploring different representations, borrowing methods from other fields, returning to abandoned ideas, and recognizing when another mind may help uncover what one person has missed. Wiles did not solve the problem through determination alone. He combined determination with accumulated mathematical knowledge, technical invention, critical examination, and eventually collaboration. His work demonstrates that intelligence grows when effort is joined to learning. Repetition without adaptation may produce exhaustion. Persistence informed by evidence can produce discovery.
Although Andrew Wiles rightly stands at the center of the achievement, the proof was never the work of one mind operating independently of history. Fermat posed the challenge. Euler, Sophie Germain, Kummer, and many others developed important mathematical ideas while investigating it. Taniyama and Shimura helped establish the conjectural connection that would eventually transform the problem. Frey recognized the significance of a hypothetical counterexample. Serre developed the argument, and Ribet proved the crucial implication. Richard Taylor helped Wiles complete the repair when the first announced proof encountered its serious gap. Each contribution belonged to a larger inheritance of knowledge. The final proof depended upon generations of researchers whose discoveries became the foundation for work they could not necessarily foresee.
That inheritance offers a useful way to think about modern artificial intelligence. Learning systems are built upon knowledge accumulated through human investigation, language, mathematics, engineering, and scientific experimentation. Their capabilities depend upon architectures, training methods, computational resources, and data shaped by countless earlier contributions. Even when a machine identifies an unexpected pattern or proposes a new solution, it operates within a system made possible by prior work. Intelligence, whether expressed through human research or computational methods, rarely begins from nothing. It builds upon what came before, combines ideas, tests possibilities, and sometimes discovers relationships that were previously hidden. The question is not simply how much knowledge a system can accumulate, but how reliably it can distinguish useful conclusions from unsupported ones.
The story of Wiles therefore challenges a common misunderstanding about mistakes. His historical achievement did not become meaningful because his first public announcement was free of error. It was not. A weakness existed, the weakness was discovered, and the mathematical community refused to treat an incomplete argument as a completed proof. Wiles confronted the difficulty, worked with another mathematician, and eventually produced the repair that made the result valid. The error did not erase the seven years of research. It identified the boundary between a powerful but unfinished argument and a proof that could withstand mathematical scrutiny. Without that boundary being exposed, the work might have remained celebrated without being complete.
For humanity, the implications extend into the age of increasingly capable artificial intelligence. We are building systems that can generate explanations, assist scientific research, write software, analyze information, and propose solutions to problems that would once have demanded substantial human effort. Their usefulness will depend not only on the speed or sophistication of their outputs, but on the standards by which those outputs are examined. In mathematics, a proof must withstand rigorous checking. In software, a system must survive testing. In engineering, a design must meet the demands of the physical world. In medicine and other consequential fields, claims require evidence, appropriate expertise, and safeguards proportionate to the risks. Intelligence becomes more valuable when it operates within processes that can identify and correct its mistakes.
The deeper achievement of Andrew Wiles was not merely that he solved Fermat's Last Theorem after seven years of work. It was that he continued to pursue the truth when the answer he had publicly presented proved incomplete. He did not have the luxury of declaring the problem solved simply because he believed he had solved it. The proof had to be repaired, and the repair had to be examined. That distinction separates confidence from knowledge and ambition from verified achievement. It is a distinction that human beings have spent centuries developing through mathematics, science, and engineering, and one that must remain central as artificial intelligence becomes increasingly powerful.
A machine may one day help discover a theorem that has resisted human mathematicians for centuries. It may identify a connection that no researcher previously recognized, suggest a new method, or assist in constructing a proof of extraordinary complexity. Such achievements would be important advances in the history of intelligence. But the essential question would remain the same one that confronted Andrew Wiles after his announcement in 1993: can the result withstand verification? The answer cannot depend solely upon the machine's confidence, its reputation, or the excitement surrounding the discovery. It must depend upon whether the reasoning holds.
Andrew Wiles began with a question that had survived more than three hundred years. He devoted seven years to pursuing an answer, discovered that his celebrated proof contained a serious gap, and continued until the argument was complete. His journey reminds us that the discovery of an error is not necessarily the defeat of intelligence. Sometimes it is the moment when intelligence becomes more disciplined, more precise, and more capable of reaching the truth. The greatest minds are not those who never encounter mistakes. They are those willing to discover where their understanding fails and continue the work required to make it stronger.
Being wrong is not always the end of the work. Sometimes discovering exactly where we are wrong is the beginning of the breakthrough.