In essence the problem was that there was no guarantee that the Kolyvagin–Flach method worked as Wiles had intended. It was supposed to extend the proof from the first element of all elliptic equations and modular forms to cover all the elements, providing the toppling mechanism from one domino to the next. Originally the Kolyvagin–Flach method only worked under particularly constrained circumstances, but Wiles believed he had adapted and strengthened it sufficiently to work for all his needs. According to Katz this was not necessarily the case, and the effects were dramatic and devastating.

  The error did not necessarily mean that Wiles’s work was beyond salvation, but it did mean that he would have to strengthen his proof. The absolutism of mathematics demanded that Wiles demonstrate beyond all doubt that his method worked for every element of every E-series and M-series.

  The Carpet Fitter

  When Katz realised the significance of the error which he had spotted, he began to ask himself how he had missed it in the spring when Wiles had lectured to him with the sole purpose of identifying any mistakes. ‘I think the answer is that there’s a real tension when you’re listening to a lecture between understanding everything and letting the lecturer get on with it. If you interrupt every second – I don’t understand this or I don’t understand that – then the guy never gets to explain anything and you don’t get anywhere. On the other hand if you never interrupt you just sort of get lost and you’re nodding your head politely, but you’re not really checking anything. There’s this real tension between asking too many questions and asking too few, and obviously by the end of those lectures, which is where this problem slipped through, I had erred on the side of too few questions.’

  Only a few weeks earlier, newspapers around the globe had dubbed Wiles the most brilliant mathematician in the world, and after 350 years of frustration number theorists believed that they had at last got the better of Pierre de Fermat. Now Wiles was faced with the humiliation of having to admit that he had made a mistake. Before confessing to the error he decided to try and make a concerted effort to fill in the gap. ‘I couldn’t give up. I was obsessed by this problem and I still believed that the Kolyvagin–Flach method just needed a little tinkering. I just needed to modify it in some small way and then it would work just fine. I decided to go straight back into my old mode and completely shut myself off from the outside world. I had to focus again but this time under much more difficult circumstances. For a long time I would think that the fix was just round the corner, that I was just missing something simple and it would all just fit into place the next day. Of course it could have happened that way, but as time went by it seemed that the problem just became more intransigent.’

  The hope was that he could fix the mistake before the mathematical community was aware that a mistake even existed. Wiles’s wife, who had already witnessed the seven years of effort that had gone into the original proof, now had to watch her husband’s agonising struggle with an error that could destroy everything. Wiles remembers her optimism: ‘In September Nada said to me that the only thing she wanted for her birthday was a correct proof. Her birthday is on 6 October. I had only two weeks to deliver the proof, and I failed.’

  For Nick Katz, too, this was a tense period: ‘By October the only people who knew about the error were myself, Illusie, the other referees of other chapters and Andrew – in principle that was all. My attitude was that as a referee I was supposed to act in confidentiality. I certainly didn’t feel that it was my business to discuss this matter with anyone except Andrew, so I just didn’t say a word about it. I think externally he appeared normal but at this point he was keeping a secret from the world, and I think he must have been pretty uncomfortable about it. Andrew’s attitude was that with just another day he would solve it, but as the fall went on, and no manuscript was available, rumours started circulating that there was a problem.’

  In particular, Ken Ribet, another of the referees, began to feel the pressure of keeping the secret: ‘For some completely accidental reason I became known as the “Fermat Information Service”. There was an initial article in the New York Times, where Andrew asked me to speak to the reporter in his place, and the article said, ‘Ribet who is acting as a spokesperson for Andrew Wiles …’, or something to that effect. After that I became a magnet for all kinds of interest in Fermat’s Last Theorem, both from inside and outside the mathematics community. People were calling from the press, from all around the world in fact, and also I gave a very large number of lectures over a period of two or three months. In these lectures I stressed what a magnificent achievement this was and I outlined the proof and I talked about the parts that I knew best, but after a while people started getting impatient and began asking awkward questions.

  ‘You see Wiles had made this very public announcement, but no one outside of the very small group of referees had seen a copy of the manuscript. So mathematicians were waiting for this manuscript that Andrew had promised a few weeks after the initial announcement in June. People said, “Okay, well this theorem has been announced – we’d like to see what’s going on. What’s he doing? Why don’t we hear anything?” People were a little upset that they were being held in ignorance and they simply wanted to know what was going on. Then things got even worse because slowly this cloud gathered over the proof and people kept telling me about these rumours, which claimed there was a gap in chapter 3. They’d ask me what I knew about it, and I just didn’t know what to say.’

  With Wiles and the referees denying any knowledge of a gap, or at the very least refusing to comment, speculation began to run wild. In desperation mathematicians began sending e-mails to each other in the hope of getting to the bottom of the mystery.

  In every tea-room of every mathematics department the gossip surrounding Wiles’s proof escalated every day. In response to the rumours and the speculative e-mails some mathematicians tried to return a sense of calm to the community.

  Despite the calls for calm, the e-mails continued unabated. As well as discussing the putative error, mathematicians were now arguing over the ethics of pre-empting the referees’ announcement.

  While the furore over his elusive proof was increasing, Wiles did his best to ignore the controversy and speculation. ‘I really shut myself off because I didn’t want to know what people were saying about me. I just went into seclusion but periodically my colleague Peter Sarnak would say to me, “You know that there’s a storm out there.” I’d listen, but, for myself, I really just wanted to cut myself off completely, just to focus completely on the problem.’

  Peter Sarnak had joined the Princeton Mathematics Department at the same time as Wiles, and over the years they had become close friends. During this intense period of turmoil Sarnak was one of the few people in whom Wiles would confide. ‘Well, I never knew the exact details, but it was clear that he was trying to overcome this one serious issue. But every time he would fix this one part of the calculation, it would cause some other difficulty in another part of the proof. It was like he was trying to put a carpet in a room where the carpet might be bigger than the room. So Andrew could fit the carpet in any one corner, only to find that it would pop up in another corner. Whether you could or could not fit the carpet in the room was not something he was able to decide. Mind you, even with the error, Andrew had made a giant step. Before him there was no one who had any approach to the Taniyama–Shimura conjecture, but now everybody got really excited because he showed us so many new ideas. They were fundamental, new things that nobody had considered before. So even if it couldn’t be fixed this was a very major advance – but of course Fermat would still be unsolved.’

  Eventually Wiles realised that he could not maintain his silence forever. The solution to the mistake was not just round the corner, and it was time to put an end to the speculation. After an autumn of dismal failure he sent the following e-mail to the mathematical bulletin board:

  Few were convinced by Wiles’s optimism. Almost six months had passed without the err
or being corrected, and there was no reason to think anything would change in the next six months. In any case, if he really could ‘finish this in the near future’, then why bother issuing the e-mail? Why not just maintain the silence for a few more weeks and then release the finished manuscript? The February lecture course which he mentioned in his e-mail failed to give any of the promised detail, and the mathematical community suspected that Wiles was just trying to buy himself extra time.

  The newspapers leapt on the story once again and mathematicians were reminded of Miyaoka’s failed proof in 1988. History was repeating itself. Number theorists were now waiting for the next e-mail which would explain why the proof was irretrievably flawed. A handful of mathematicians had expressed doubts over the proof back in the summer, and now their pessimism seemed to have been justified. One story claims that Professor Alan Baker at the University of Cambridge offered to bet one hundred bottles of wine against a single bottle that the proof would be shown to be invalid within a year. Baker denies the anecdote, but proudly admits to having expressed a ‘healthy scepticism’.

  Less than six months after his lecture at the Newton Institute Wiles’s proof was in tatters. The pleasure, passion and hope that carried him through the years of secret calculations were replaced with embarrassment and despair. He recalls how his childhood dream had become a nightmare: ‘The first seven years that I worked on this problem I enjoyed the private combat. No matter how hard it had been, no matter how insurmountable things seemed, I was engaged in my favourite problem. It was my childhood passion, I just couldn’t put it down, I didn’t want to leave it for a moment. Then I’d spoken about it publicly, and in speaking about it there was actually a certain sense of loss. It was a very mixed emotion. It was wonderful to see other people reacting to the proof, to see how the arguments could completely change the whole direction of mathematics, but at the same time I’d lost that personal quest. It was now open to the world and I no longer had this private dream which I was fulfilling. And then, after there was a problem with it, there were dozens, hundreds, thousands of people who wanted to distract me. Doing maths in that kind of rather overexposed way is certainly not my style and I didn’t at all enjoy this very public way of doing it.’

  Number theorists around the world empathised with Wiles’s position. Ken Ribet had himself been through the same nightmare eight years earlier when he tried to prove the link between the Taniyama–Shimura conjecture and Fermat’s Last Theorem. ‘I was giving a lecture about the proof at the Mathematical Sciences Research Institute in Berkeley and someone from the audience said, “Well, wait a minute, how do you know that such and such is true?” I responded immediately giving my reason and they said, “Well that doesn’t apply in this situation.” I had an immediate terror. I kind of broke out into a sweat and I was very upset about it. Then I realised that there was only one possibility for justifying this, which was to go back to the fundamental work on the subject and see exactly how it was done in a similar situation. I looked in the relevant paper and I saw that the method did indeed apply in my case, and within a day or two I had the thing all fixed up. In my next lecture I was able to give the justification. But you always live with this fear that if you announce something important, a fundamental mistake can be discovered.

  ‘When you find an error in a manuscript it can go two ways. Sometimes there’s an immediate confidence and the proof can be resurrected with little difficulty. And sometimes there’s the opposite. It’s very disquieting, there’s a sinking feeling when you realise that you’ve made a fundamental error and there’s no way to repair it. It’s possible that when a hole develops the theorem really just falls apart completely, because the more you try to patch it the more trouble you get into. But in Wiles’s case each chapter of the proof was a significant article in its own right. The manuscript was seven years’ work, it was basically several important papers pieced together and each one of the papers has a great deal of interest. The error occurred in one of the papers, in chapter 3, but even if you take out chapter 3 what remained was absolutely wonderful.’

  But without chapter 3 there was no proof of the Taniyama–Shimura conjecture and therefore no proof of Fermat’s Last Theorem. There was a sense of frustration in the mathematical community that the proof behind two great problems was in jeopardy. Moreover, after six months of waiting still nobody, beyond Wiles and the referees, had access to the manuscript. There was a growing clamour for more openness, so everyone could see for themselves the details of the error. The hope was that somebody somewhere might see something that Wiles had missed, and conjure up a calculation to fix the gap in the proof. Some mathematicians claimed that the proof was too valuable to be left in the hands of just one man. Number theorists had become the butt of jibes from other mathematicians, who sarcastically questioned whether or not they understood the concept of proof. What should have been the proudest moment in the history of mathematics was turning into a joke.

  Despite the pressure Wiles refused to release the manuscript. After seven years of devoted effort he was not ready to sit back and watch someone else complete the proof and steal the glory. The person who proves Fermat’s Last Theorem is not the person that puts in the most work, it’s the person who delivers the final and complete proof. Wiles knew that once the manuscript was published in its flawed state he would immediately be swamped by questions and demands for clarification from would-be gap-fixers, and these distractions would destroy his own hopes of mending the proof while giving others vital clues.

  Wiles attempted to return to the same state of isolation which had allowed him to create the original proof, and reverted to his habit of studying intensely in his attic. Occasionally he would wander down by the Princeton lake, as he had done in the past. The joggers, cyclists and rowers who had previously passed him by with a brief wave now stopped and asked him whether there was any progress with the gap. Wiles had appeared on front pages around the world, he had been featured in People magazine and he had even been interviewed on CNN. The previous summer Wiles had become the world’s first mathematical celebrity, and already his image was tarnished.

  Meanwhile back in the mathematics department the gossip continued. Princeton mathematician Professor John H. Conway remembers the atmosphere in the department’s tea-room: ‘We’d gather for tea at 3 o’clock and make a rush for the cookies. Sometimes we’d discuss mathematical problems, sometimes we’d discuss the O.J. Simpson trial, and sometimes we’d discuss Andrew’s progress. Because nobody actually liked to come out and ask him how he’s getting on with the proof, we were behaving a little bit like Kremlinologists. So somebody would say: “I saw Andrew this morning” – “Did he smile?” – “Well, yes, but he didn’t look too happy.” We could only gauge his feelings by his face.’

  The Nightmare E-mail

  As winter deepened, hopes of a breakthrough faded, and more mathematicians argued that it was Wiles’s duty to release the manuscript. The rumours continued and one newspaper article claimed that Wiles had given up and that the proof had irrevocably collapsed. Although this was an exaggeration, it was certainly true that Wiles had exhausted dozens of approaches which might have circumvented the error and he could see no other potential routes to a solution.

  Wiles admitted to Peter Sarnak that the situation was getting desperate and that he was on the point of accepting defeat. Sarnak suggested that part of the difficulty was that Wiles had nobody he could trust on a day-to-day basis; there was nobody he could bounce ideas off or who could inspire him to explore more lateral approaches. He suggested that Wiles took somebody into his confidence and try once more to fill the gap. Wiles needed somebody who was an expert in manipulating the Kolyvagm—Flach method and who could also keep the details of the problem secret. After giving the matter prolonged thought, he decided to invite Richard Taylor, a Cambridge lecturer, to Princeton to work alongside him.

  Taylor was one of the referees responsible for verifying the proof and a former student of Wiles, and a
s such he could be doubly trusted. The previous year he had been in the audience at the Isaac Newton Institute watching his former supervisor present the proof of the century. Now it was his job to help rescue the flawed proof.

  By January Wiles, with the help of Taylor, was once again tirelessly exploring the Kolyvagin–Flach method, trying to find a way out of the problem. Occasionally after days of effort they would enter new territory, but inevitably they would find themselves back where they started. Having ventured further than ever before and failing over and over again, they both realised that they were in the heart of an unimaginably vast labyrinth. Their deepest fear was that the labyrinth was infinite and without exit, and that they would be doomed to wander aimlessly and endlessly.

  Then in the spring of 1994, just when it looked as though things could not get any worse, the following e-mail hit computer screens around the world:

  Noam Elkies was the Harvard professor who back in 1988 had found a counter-example to Euler’s conjecture, thereby proving that it was false:

  Now he had apparently discovered a counter-example to Fermat’s Last Theorem, proving that it too was false. This was a tragic blow for Wiles – the reason he could not fix the proof was that the so-called error was a direct result of the falsity of the Last Theorem. It was an even greater blow for the mathematical community at large, because if Fermat’s Last Theorem was false, then Frey had already shown that this would lead to an elliptic equation which was not modular, a direct contradiction to the Taniyama-Shimura conjecture. Elkies had not only found a counter-example to Fermat, he had indirectly found a counter-example to Taniyama–Shimura.