Wiles's proof of Fermat's Last Theorem
Wiles's proof of Fermat's Last Theorem is a proof by British mathematician Andrew Wiles of a special case of the modularity theorem for elliptic curves. Together with Ribet's theorem, it provides a proof for Fermat's Last Theorem. Both Fermat's Last Theorem and the modularity theorem were almost universally considered inaccessible to proof by contemporaneous mathematicians, meaning that they were believed to be impossible to prove using current knowledge.^{[1]}^{:203–205, 223, 226}
Wiles first announced his proof on Wednesday 23 June 1993 at a lecture in Cambridge entitled "Modular Forms, Elliptic Curves and Galois Representations".^{[2]} However, in September 1993 the proof was found to contain an error. One year later on Monday 19 September 1994, in what he would call "the most important moment of [his] working life", Wiles stumbled upon a revelation that allowed him to correct the proof to the satisfaction of the mathematical community. The corrected proof was published in 1995.^{[3]}
Wiles' proof uses many techniques from algebraic geometry and number theory, and has many ramifications in these branches of mathematics. It also uses standard constructions of modern algebraic geometry, such as the category of schemes and Iwasawa theory, and other 20thcentury techniques which were not available to Fermat.
Together, the two papers which contain the proof are 129 pages long,^{[4]}^{[5]} and consumed over seven years of Wiles's research time. John Coates described the proof as one of the highest achievements of number theory, and John Conway called it the proof of the [20th] century.^{[6]} Wiles' path to proving Fermat's Last Theorem, by way of proving the modularity theorem for the special case of semistable elliptic curves, established powerful modularity lifting techniques and opened up entire new approaches to numerous other problems. For solving Fermat's Last Theorem, he was knighted, and received other honours such as the 2016 Abel Prize. When announcing that Wiles had won the Abel Prize, the Norwegian Academy of Science and Letters described his achievement as a "stunning proof".^{[3]}
Contents
Precursors to Wiles' proof
Fermat's Last Theorem and progress prior to 1980
Fermat's Last Theorem, formulated in 1637, states that no three distinct positive integers a, b, and c can satisfy the equation
if n is an integer greater than two (n > 2).
Over time, this simple assertion became one of the most famous unproved claims in mathematics. Between its publication and Andrew Wiles' eventual solution over 350 years later, many mathematicians and amateurs attempted to prove this statement, either for all values of n > 2, or for specific cases. It spurred the development of entire new areas within number theory. Proofs were eventually found for all values of n up to around 4 million, first by hand, and later by computer. But no general proof was found that would be valid for all possible values of n, nor even a hint how such a proof could be undertaken.
The Taniyama–Shimura–Weil conjecture
Separately from anything related to Fermat's Last Theorem, in the 1950s and 1960s Japanese mathematician Goro Shimura, drawing on ideas posed by Yutaka Taniyama, conjectured that a connection might exist between elliptic curves and modular forms. These were mathematical objects with no known connection between them. Taniyama and Shimura posed the question whether, unknown to mathematicians, the two kinds of object were actually identical mathematical objects, just seen in different ways.
They conjectured that every rational elliptic curve is also modular. This became known as the Taniyama–Shimura conjecture. In the West, this conjecture became well known through a 1967 paper by André Weil, who gave conceptual evidence for it; thus, it is sometimes called the Taniyama–Shimura–Weil conjecture.
By around 1980, much evidence had been accumulated to form conjectures about elliptic curves, and many papers had been written which examined the consequences if the conjecture was true, but the actual conjecture itself was unproven and generally considered inaccessible  meaning that mathematicians believed a proof of the conjecture was probably impossible using current knowledge.
For decades, the conjecture remained an important but unsolved problem in mathematics. Around 50 years after first being proposed, the conjecture was finally proven and renamed the modularity theorem, largely as a result of Andrew Wiles' work described below.
Frey's curve
On yet another separate branch of development, in the late 1960s, Yves Hellegouarch came up with the idea of associating solutions (a,b,c) of Fermat's equation with a completely different mathematical object: an elliptic curve.^{[7]} The curve consists of all points in the plane whose coordinates (x, y) satisfy the relation
Such an elliptic curve would enjoy very special properties, which are due to the appearance of high powers of integers in its equation and the fact that a^{n} + b^{n} = c^{n} is an nth power as well.
In 1982–1985, Gerhard Frey called attention to the unusual properties of this same curve, now called a Frey curve. He showed that it was likely that the curve could link Fermat and Taniyama, since any counterexample to Fermat's Last Theorem would probably also imply that an elliptic curve existed that was not modular.
In plain English, Frey had shown that there were good reasons to believe that any set of numbers (a, b, c, n) capable of disproving Fermat's Last Theorem, could also (probably) be used to disprove the Taniyama–Shimura–Weil conjecture. Therefore, if the Taniyama–Shimura–Weil conjecture were true, no set of numbers capable of disproving Fermat could exist, so Fermat's Last Theorem would have to be true as well.
 (Mathematically, the conjecture says that each elliptic curve with rational coefficients can be constructed in an entirely different way, not by giving its equation but by using modular functions to parametrise coordinates x and y of the points on it. Thus, according to the conjecture, any elliptic curve over Q would have to be a modular elliptic curve, yet if a solution to Fermat's equation with nonzero a, b, c and n greater than 2 existed, the corresponding curve would not be modular, resulting in a contradiction.)
If the link identified by Frey could be proven, then in turn, it would mean that a proof or disproof of either of Fermat's Last Theorem or the Taniyama–Shimura–Weil conjecture would simultaneously prove or disprove the other.^{[8]}
Ribet's Theorem
To complete this link, it was necessary to show that Frey's intuition was correct: that a Frey curve, if it existed, could not be modular.
In 1985, JeanPierre Serre provided a partial proof that a Frey curve could not be modular. Serre did not provide a complete proof of his proposal; the missing part (which Serre had noticed early on^{[9]}^{:1}) became known as the epsilon conjecture or εconjecture (it is now known as Ribet's theorem). Serre's main interest was in an even more ambitious conjecture, Serre's conjecture on modular Galois representations, which would imply the Taniyama–Shimura–Weil conjecture. However his partial proof came close to confirming the link between Fermat and Taniyama.
In the summer of 1986, Ken Ribet succeeded in proving the epsilon conjecture, now known as Ribet's theorem. His article was published in 1990. In doing so, Ribet finally proved the link between the two theorems by confirming as Frey had suggested, that a proof of the Taniyama–Shimura–Weil conjecture for the kinds of elliptic curves Frey had identified, together with Ribet's theorem, would also prove Fermat's Last Theorem:
 In mathematical terms, Ribet's theorem showed that if the Galois representation associated with an elliptic curve has certain properties (which Frey's curve has), then that curve cannot be modular, in the sense that there cannot exist a modular form which gives rise to the same Galois representation.^{[10]}
Situation prior to Wiles' proof
Following the developments related to the Frey Curve, and its link to both Fermat and Taniyama, a proof of Fermat's Last Theorem would follow from a proof of the Taniyama–Shimura–Weil conjecture — or at least a proof of the conjecture for the kinds of elliptic curves that included Frey's equation (known as semistable elliptic curves).
 From Ribet's Theorem and the Frey Curve, any 4 numbers able to be used to disprove Fermat's Last Theorem could also be used to make a semistable elliptic curve ("Frey's curve") that could never be modular;
 But if the Taniyama–Shimura–Weil conjecture were also true for semistable elliptic curves, then by definition every Frey's curve that existed must be modular.
 The contradiction could have only one answer: if Ribet's Theorem and the Taniyama–Shimura–Weil conjecture for semistable curves were both true, then it would mean there could not be any solutions to Fermat's equation – because then there would be no Frey curves at all, meaning no contradictions would exist. This would finally prove Fermat's Last Theorem.
However, despite the progress made by Serre and Ribet, this approach to Fermat was widely considered unusable as well, since almost all mathematicians saw the Taniyama–Shimura–Weil conjecture itself as completely inaccessible to proof with current knowledge.^{[1]}^{:203–205, 223, 226} For example, Wiles's exsupervisor John Coates stated that it seemed "impossible to actually prove",^{[1]}^{:226} and Ken Ribet considered himself "one of the vast majority of people who believed [it] was completely inaccessible".^{[1]}^{:223}
Andrew Wiles
Hearing of Ribet's 1986 proof of the epsilon conjecture, English mathematician Andrew Wiles, who had studied elliptic curves and had a childhood fascination with Fermat, decided to begin working in secret towards a proof of the Taniyama–Shimura–Weil conjecture, since it was now professionally justifiable^{[11]} as well as because of the enticing goal of proving such a longstanding problem.
Ribet later commented that "Andrew Wiles was probably one of the few people on earth who had the audacity to dream that you can actually go and prove [it]." ^{[1]}^{:223}
Announcement and subsequent developments
Wiles initially presented his proof in 1993. It was finally accepted as correct, and published, in 1995, following the correction of a subtle error in one part of his original paper. His work was extended to a full proof of the modularity theorem over the following 6 years by others, who built on Wiles's work.
Announcement and final proof (1993–1995)
During 21–23 June 1993 Wiles announced and presented his proof of the Taniyama–Shimura conjecture for semistable elliptic curves, and hence of Fermat's Last Theorem, over the course of three lectures delivered at the Isaac Newton Institute for Mathematical Sciences in Cambridge, England.^{[2]} There was a relatively large amount of press coverage afterwards.^{[12]}
After the announcement, Nick Katz was appointed as one of the referees to review Wiles's manuscript. In the course of his review, he asked Wiles a series of clarifying questions that led Wiles to recognise that the proof contained a gap. There was an error in one critical portion of the proof which gave a bound for the order of a particular group: the Euler system used to extend Kolyvagin and Flach's method was incomplete. The error would not have rendered his work worthless – each part of Wiles's work was highly significant and innovative by itself, as were the many developments and techniques he had created in the course of his work, and only one part was affected.^{[1]}^{:289, 296–297} Without this part proved, however, there was no actual proof of Fermat's Last Theorem.
Wiles spent almost a year trying to repair his proof, initially by himself and then in collaboration with his former student Richard Taylor, without success.^{[13]}^{[14]}^{[15]} By the end of 1993, rumours had spread that under scrutiny, Wiles' proof had failed, but how seriously was not known. Mathematicians were beginning to pressure Wiles to disclose his work whether or not complete, so that the wider community could explore and use whatever he had managed to accomplish. But instead of being fixed, the problem, which had originally seemed minor, now seemed very significant, far more serious, and less easy to resolve.^{[16]}
Wiles states that on the morning of 19 September 1994, he was on the verge of giving up and was almost resigned to accepting that he had failed, and to publishing his work so that others could build on it and find the error. He states that he was having a final look to try and understand the fundamental reasons why his approach could not be made to work, when he had a sudden insight that the specific reason why the Kolyvagin–Flach approach would not work directly, also meant that his original attempts using Iwasawa theory could be made to work if he strengthened it using his experience gained from the Kolyvagin–Flach approach since then. Each was inadequate by itself, but fixing one approach with tools from the other would resolve the issue and produce a class number formula (CNF) valid for all cases that were not already proven by his refereed paper:^{[13]}^{[17]}^{[13]}
 "I was sitting at my desk examining the Kolyvagin–Flach method. It wasn’t that I believed I could make it work, but I thought that at least I could explain why it didn’t work. Suddenly I had this incredible revelation. I realised that, the Kolyvagin–Flach method wasn’t working, but it was all I needed to make my original Iwasawa theory work from three years earlier. So out of the ashes of Kolyvagin–Flach seemed to rise the true answer to the problem. It was so indescribably beautiful; it was so simple and so elegant. I couldn’t understand how I’d missed it and I just stared at it in disbelief for twenty minutes. Then during the day I walked around the department, and I’d keep coming back to my desk looking to see if it was still there. It was still there. I couldn’t contain myself, I was so excited. It was the most important moment of my working life. Nothing I ever do again will mean as much."
 — Andrew Wiles, as quoted by Simon Singh^{[18]}
On 6 October Wiles asked three colleagues (including Faltings) to review his new proof,^{[19]} and on 24 October 1994 Wiles submitted two manuscripts, "Modular elliptic curves and Fermat's Last Theorem"^{[4]} and "Ring theoretic properties of certain Hecke algebras",^{[5]} the second of which Wiles had written with Taylor and proved that certain conditions were met which were needed to justify the corrected step in the main paper.
The two papers were vetted and finally published as the entirety of the May 1995 issue of the Annals of Mathematics. The new proof was widely analysed, and became accepted as likely correct in its major components.^{[6]}^{[10]}^{[11]} These papers established the modularity theorem for semistable elliptic curves, the last step in proving Fermat's Last Theorem, 358 years after it was conjectured.
Subsequent developments
Fermat claimed to "...have discovered a truly marvelous proof of this, which this margin is too narrow to contain".^{[20]}^{[21]} Wiles's proof is very complex, and incorporates the work of so many other specialists that it was suggested in 1994 that only a small number of people were capable of fully understanding at that time all the details of what he had done.^{[2]}^{[22]} The complexity of Wiles's proof motivated a 10day conference at Boston University; the resulting book of conference proceedings aimed to make the full range of required topics accessible to graduate students in number theory.^{[9]}
As noted above, Wiles proved the Taniyama–Shimura–Weil conjecture for the special case of semistable elliptic curves, rather than for all elliptic curves. Over the following years, Christophe Breuil, Brian Conrad, Fred Diamond, and Richard Taylor (sometimes abbreviated as "BCDT") carried the work further, ultimately proving the Taniyama–Shimura–Weil conjecture for all elliptic curves in a 2001 paper.^{[23]} Now proved, the conjecture became known as the modularity theorem.
In 2005, Dutch computer scientist Jan Bergstra posed the problem of formalizing Wiles' proof in such a way that it could be verified by computer.^{[24]}
Summary of Wiles' proof
This section needs attention from an expert in Mathematics. The specific problem is: Newly added section: review required for technical accuracy.June 2017)
( 
Wiles used proof by contradiction, in which one assumes the opposite of what is to be proved, and show if that were true, it would create a contradiction. The contradiction shows that the assumption must have been incorrect.
The proof falls roughly in two parts. In the first part, Wiles proves a general result about "lifts", known as the "modularity lifting theorem". This first part allows him to prove results about elliptic curves by converting them to problems about Galois representations of elliptic curves. He then uses this result to prove that all semistable curves are modular, by proving that the Galois representations of these curves are modular, instead.
Outline proof  Comment  

Part 1: setting up the proof  
1  We start by assuming that Fermat's Last Theorem is incorrect. That would mean there is at least one nonzero solution (a, b, c, n) (with all numbers rational and n > 2 and prime) must exist to a^{n} + b^{n} = c^{n}.  
2 
Ribet's theorem (using Frey and Serre's work) shows that we can create a semistable elliptic curve E using the numbers (a, b, c, and n), which is never modular.
We will set up our proof by initially seeing what happens if Fermat's Last Theorem is incorrect, and showing (hopefully) that this would always lead to a contradiction. 
If we can prove that all such elliptic curves will be modular (meaning that they match a modular form), then we have our contradiction and have proved our assumption (that such a set of numbers exists) was wrong. If the assumption is wrong, that means no such numbers exist, which proves Fermat's Last Theorem is correct. 
3  Suppose that Fermat's Last Theorem is incorrect. This means a set of numbers (a, b, c, n) must exist that is a solution of Fermat's equation, and we can use the solution to create a Frey curve which is semistable and elliptic. So we assume that (somehow) we have found a solution and created such a curve (which we will call "E"), and see what happens.  
Part 2: the Modularity Lifting Theorem  
4  Galois representations of elliptic curves ρ(E, p) for any prime p > 3 have been studied by many mathematicians.
Wiles aims first of all to prove a result about these representations, that he will use later: that if a semistable elliptic curve E has a Galois representation ρ(E, p) that is modular, the elliptic curve itself must be modular. Proving this is helpful in two ways: it makes counting and matching easier, and, significantly, to prove the representation is modular, we would only have to prove it for one single prime number p, and we can do this using any prime that makes our work easy – it does not matter which prime we use. This is the most difficult part of the problem – technically it means proving that if the Galois representation ρ(E, p) is a modular form, so are all the other related Galois representations ρ(E, p^{∞}) for all powers of p.^{[3]} This is the socalled "modular lifting problem", and Wiles approached it using deformations.

To compare elliptic curves and modular forms directly is difficult. Past efforts to count and match elliptic curves and modular forms had all failed. But elliptic curves can be represented within Galois theory. Wiles realized that working with the representations of elliptic curves instead of the curves themselves would make counting and matching them to modular forms far easier. From this point on, the proof primarily aims to prove:
Together, these allow us to work with representations of curves rather than directly with elliptic curves themselves. Our original goal will have been transformed into proving the modularity of geometric Galois representations of semistable elliptic curves, instead. Wiles described this realization as a "key breakthrough". A Galois representation of an elliptic curves is G>GL(Z_{p}). To show that a geometric Galois representation of an elliptic curve is a modular form, we need to find a normalized eigenform whose eigenvalues (which are also its Fourier series coefficients) satisfy a congruence relationship for all but a finite number of primes. 
5  Wiles' initial strategy is to count and match using proof by induction and a Class Number Formula ("CNF"): an approach in which, once the hypothesis is proved for one elliptic curve, it can automatically be extended to be proven for all subsequent elliptic curves.  It was in this area that Wiles found difficulties, first with horizontal Iwasawa theory and later with his extension of Kolyvagin–Flach. Wiles' work extending Kolyvagin–Flach was mainly related to making Kolyvagin–Flach strong enough to prove the full CNF he would use. It later turned out that neither of these approaches by itself could produce a CNF able to cover all types of semistable elliptic curves, and the final piece of his proof in 1995 was to realize that he could succeed by strengthening Iwasawa theory with the techniques from Kolyvagin–Flach. 
6  At this point, the proof has shown a key point about Galois representations:
This is Wiles' lifting theorem (or modularity lifting theorem), a major and revolutionary accomplishment at the time. 
Crucially, this result does not just show that modular irreducible representations imply modular curves. It also means we can prove a representation is modular by using any prime number > 2 that we find easiest to use (because proving it for just one prime > 2 proves it for all primes > 2).
So we can try to prove all of our elliptic curves are modular by using one prime number as p  but if we do not succeed in proving this for all elliptic curves, perhaps we can prove the rest by choosing different prime numbers as 'p' for the difficult cases. The proof must cover the Galois representations of all semistable elliptic curves E, but for each individual curve, we only need to prove it is modular using one prime number p.) 
Part 3: Proving that all semistable elliptic curves are modular  
7  With the lifting theorem proved, we return to the original problem. We will categorize all semistable elliptic curves based on the reducibility of their Galois representations, and use the powerful lifting theorem on the results.
From above, it does not matter which prime is chosen for the representations. We can use any one prime number that is easiest. 3 is the smallest prime number more than 2, and some work has already been done on representations of elliptic curves using ρ(E,3), so choosing 3 as our prime number is a helpful starting point. Wiles found that it was easier to prove the representation was modular by choosing a prime p=3 in the cases where the representation ρ(E,3) is irreducible, but the proof when ρ(E,3) is reducible was easier to prove by choosing p = 5. So the proof splits in two at this point. 
The proof's use of both p=3 and p=5 below, is the socalled "3/5 switch" referred to in some descriptions of the proof, which Wiles noticed in a paper of Mazur's in 1993, although the trick itself dates back to the 19th century.
The switch between p=3 and p=5 has since opened a significant area of study in its own right (see Serre's modularity conjecture). 
8  If the Galois representation ρ(E,3) (i.e., using p = 3) is irreducible, then it was known from around 1980 that its Galois representation is also always modular.
Wiles' uses his modularity lifting theorem to make short work of this case:

Langlands and Tunnell proved this in two papers in the early 1980s. The proof is based on the fact that ρ(E,3) has the same symmetry group as the general quartic equation in one variable, which was one of the few general classes of diophantine equation known at that time to be modular.
This existing result for p=3 is crucial to Wiles' approach and is one reason for initially using p=3. 
9  So we now consider what happens if ρ(E,3) is reducible.
Wiles found that when the representation of an elliptic curve using p=3 is reducible, it was easier to work with p=5 and use his new lifting theorem to prove that ρ(E, 5) will always be modular, than to try and prove directly that ρ(E,3) itself is modular (remembering that we only need to prove it for one prime). 
5 is the next prime number after 3, and any prime number can be used, perhaps 5 will be an easier prime number to work with than 3? But it looks hopeless initially to prove that ρ(E, 5) is always modular, for much the same reason that the general quintic equation cannot be solved by radicals. So Wiles has to find a way around this. 
9.1  If ρ(E,3) and ρ(E,5) are both reducible, Wiles proved directly that ρ(E,5) must be modular.  
9.2  The last case is if ρ(E,3) is reducible and ρ(E,5) is irreducible.
Wiles showed that in this case, one could always find another semistable elliptic curve F such that the representation ρ(F,3) is irreducible and also the representations ρ(E,5) and ρ(F,5) are isomorphic (they have identical structures).


9.3  Therefore, if ρ(E,3) is reducible, we have proved that ρ(E,5) will always be modular. But if ρ(E,5) is modular, then the modularity lifting theorem shows that E itself is modular.  This step shows the real power of the modularity lifting theorem. 
Results  
10  We have now proved that whether or not ρ(E,3) is irreducible, E (which could be any semistable elliptic curve) will always be modular. This means that all semistable elliptic curves must be modular.
This proves:

We have our proof by contradiction, because we have proven that if Fermat's Last Theorem is incorrect, we could create an elliptic curve that cannot be modular (Ribet's Theorem) and must be modular (Wiles). As it cannot be both, the only answer is that no such curve exists. 
Mathematical detail of Wiles proof
Overview
Wiles opted to attempt to match elliptic curves to a countable set of modular forms. He found that this direct approach was not working, so he transformed the problem by instead matching the Galois representations of the elliptic curves to modular forms. Wiles denotes this matching (or mapping) that, more specifically, is a ring homomorphism:
is a deformation ring and is a Hecke ring.
Wiles had the insight that in many cases this ring homomorphism could be a ring isomorphism (Conjecture 2.16 in Chapter 2, §3 of the 1995 paper^{[4]}). He realised that the map between and is an isomorphism if and only if two abelian groups occurring in the theory are finite and have the same cardinality. This is sometimes referred to as the "numerical criterion". Given this result, Fermat's Last Theorem is reduced to the statement that two groups have the same order. Much of the text of the proof leads into topics and theorems related to ring theory and commutation theory. Wiles's goal was to verify that the map is an isomorphism and ultimately that . In treating deformations, Wiles defined four cases, with the flat deformation case requiring more effort to prove and treated in a separate article in the same volume entitled "Ringtheoretic properties of certain Hecke algebras".
Gerd Faltings, in his bulletin, gives the following commutative diagram (p. 745):
or ultimately that , indicating a complete intersection. Since Wiles could not show that directly, he did so through and via lifts.
In order to perform this matching, Wiles had to create a class number formula (CNF). He first attempted to use horizontal Iwasawa theory but that part of his work had an unresolved issue such that he could not create a CNF. At the end of the summer of 1991, he learned about an Euler system recently developed by Victor Kolyvagin and Matthias Flach that seemed "tailor made" for the inductive part of his proof, which could be used to create a CNF, and so Wiles set his Iwasawa work aside and began working to extend Kolyvagin and Flach's work instead, in order to create the CNF his proof would require.^{[25]} By the spring of 1993, his work had covered all but a few families of elliptic curves, and in early 1993, Wiles was confident enough of his nearing success to let one trusted colleague into his secret. Since his work relied extensively on using the Kolyvagin–Flach approach, which was new to mathematics and to Wiles, and which he had also extended, in January 1993 he asked his Princeton colleague, Nick Katz, to help him review his work for subtle errors. Their conclusion at the time was that the techniques Wiles used seemed to work correctly.^{[1]}^{:261–265}^{[26]}
Wiles' use of Kolyvagin–Flach would later be found to be the point of failure in the original proof submission, and he eventually had to revert to Iwasawa theory and a collaboration with Richard Taylor to fix it. In May 1993, while reading a paper by Mazur, Wiles had the insight that the 3/5 switch would resolve the final issues and would then cover all elliptic curves. (See Chapter 5 of the paper for this 3/5 switch.)
General approach and strategy
Given an elliptic curve E over the field Q of rational numbers , for every prime power , there exists a homomorphism from the absolute Galois group
to
the group of invertible 2 by 2 matrices whose entries are integers (). This is because , the points of E over , form an abelian group, on which acts; the subgroup of elements x such that is just , and an automorphism of this group is a matrix of the type described.
Less obvious is that given a modular form of a certain special type, a Hecke eigenform with eigenvalues in Q, one also gets a homomorphism from the absolute Galois group
This goes back to Eichler and Shimura. The idea is that the Galois group acts first on the modular curve on which the modular form is defined, thence on the Jacobian variety of the curve, and finally on the points of power order on that Jacobian. The resulting representation is not usually 2dimensional, but the Hecke operators cut out a 2dimensional piece. It is easy to demonstrate that these representations come from some elliptic curve but the converse is the difficult part to prove.
Instead of trying to go directly from the elliptic curve to the modular form, one can first pass to the () representation for some ℓ and n, and from that to the modular form. In the case ℓ = 3 and n = 1, results of the Langlands–Tunnell theorem show that the (mod 3) representation of any elliptic curve over Q comes from a modular form. The basic strategy is to use induction on n to show that this is true for ℓ = 3 and any n, that ultimately there is a single modular form that works for all n. To do this, one uses a counting argument, comparing the number of ways in which one can lift a () Galois representation to () and the number of ways in which one can lift a () modular form. An essential point is to impose a sufficient set of conditions on the Galois representation; otherwise, there will be too many lifts and most will not be modular. These conditions should be satisfied for the representations coming from modular forms and those coming from elliptic curves. If the original (mod 3) representation has an image which is too small, one runs into trouble with the lifting argument, and in this case, there is a final trick, which has since taken on a life of its own with the subsequent work on the Serre Modularity Conjecture. The idea involves the interplay between the (mod 3) and (mod 5) representations. (Again, see Chapter 5 of the Wiles paper for this 3/5 switch.)
Structure of Wiles's proof
In his 108page article published in 1995, Wiles divides the subject matter up into the following chapters (preceded here by page numbers):
 Introduction
 443
 Chapter 1
 455 1. Deformations of Galois representations
 472 2. Some computations of cohomology groups
 475 3. Some results on subgroups of GL_{2}(k)
 Chapter 2
 479 1. The Gorenstein property
 489 2. Congruences between Hecke rings
 503 3. The main conjectures
 Chapter 3
 517 Estimates for the Selmer group
 Chapter 4
 525 1. The ordinary CM case
 533 2. Calculation of η
 Chapter 5
 541 Application to elliptic curves
 Appendix
 545 Gorenstein rings and local complete intersections
Gerd Faltings subsequently provided some simplifications to the 1995 proof, primarily in switching from geometric constructions to rather simpler algebraic ones.^{[19]}^{[27]} The book of the Cornell conference also contained simplifications to the original proof.^{[9]}
Overviews available in the literature
Wiles's paper is over 100 pages long and often uses the specialised symbols and notations of group theory, algebraic geometry, commutative algebra, and Galois theory. The mathematicians who helped to lay the groundwork for Wiles often created new specialised concepts and technical jargon.
Among the introductory presentations are an email which Ribet sent in 1993;^{[28]}^{[29]} Hesselink's quick review of toplevel issues, which gives just the elementary algebra and avoids abstract algebra;^{[24]} or Daney's web page, which provides a set of his own notes and lists the current books available on the subject. Weston attempts to provide a handy map of some of the relationships between the subjects.^{[30]} F. Q. Gouvêa's 1994 article "A Marvelous Proof", which reviews some of the required topics, won a Lester R. Ford award from the Mathematical Association of America.^{[31]}^{[32]} Faltings' 5page technical bulletin on the matter is a quick and technical review of the proof for the nonspecialist.^{[33]} For those in search of a commercially available book to guide them, he recommended that those familiar with abstract algebra read Hellegouarch, then read the Cornell book,^{[9]} which is claimed to be accessible to "a graduate student in number theory". The Cornell book does not cover the entirety of the Wiles proof.^{[12]}
Notes
 ^ ^{a} ^{b} ^{c} ^{d} ^{e} ^{f} ^{g} Fermat's Last Theorem, Simon Singh, 1997, ISBN 1857025210
 ^ ^{a} ^{b} ^{c} Kolata, Gina (24 June 1993). "At Last, Shout of 'Eureka!' In AgeOld Math Mystery". The New York Times. Retrieved 21 January 2013.
 ^ ^{a} ^{b} ^{c} "The Abel Prize 2016". Norwegian Academy of Science and Letters. 2016. Retrieved 29 June 2017.
 ^ ^{a} ^{b} ^{c} Wiles, Andrew (1995). "Modular elliptic curves and Fermat's Last Theorem" (PDF). Annals of Mathematics. 141 (3): 443–551. CiteSeerX 10.1.1.169.9076. doi:10.2307/2118559. JSTOR 2118559. OCLC 37032255.
 ^ ^{a} ^{b} Taylor R, Wiles A (1995). "Ring theoretic properties of certain Hecke algebras". Annals of Mathematics. 141 (3): 553–572. CiteSeerX 10.1.1.128.531. doi:10.2307/2118560. JSTOR 2118560. OCLC 37032255. Archived from the original on 27 November 2001.
 ^ ^{a} ^{b} "NOVA – Transcripts – The Proof – PBS". PBS. September 2006. Retrieved 29 June 2017.
 ^ Hellegouarch, Yves (2001). Invitation to the Mathematics of Fermat–Wiles. Academic Press. ISBN 9780123392510.
 ^ Singh, pp. 194–198; Aczel, pp. 109–114.
 ^ ^{a} ^{b} ^{c} ^{d} G. Cornell, J. H. Silverman and G. Stevens, Modular forms and Fermat's Last Theorem, ISBN 0387946098
 ^ ^{a} ^{b} Daney, Charles (13 March 1996). "The Proof of Fermat's Last Theorem". Retrieved 20170629.
 ^ ^{a} ^{b} "Andrew Wiles on Solving Fermat". PBS. 1 November 2000. Retrieved 29 June 2017.
 ^ ^{a} ^{b} Buzzard, Kevin (22 February 1999). "Review of Modular forms and Fermat's Last Theorem, by G. Cornell, J. H. Silverman, and G. Stevens" (PDF). Bulletin of the American Mathematical Society. 36 (2): 261–266. doi:10.1090/S0273097999007788.
 ^ ^{a} ^{b} ^{c} Singh, pp. 269–277.
 ^ Kolata, Gina (19940628). "A Year Later, Snag Persists In Math Proof". The New York Times. ISSN 03624331. Retrieved 20170629.
 ^ Kolata, Gina (19940703). "June 26July 2; A Year Later Fermat's Puzzle Is Still Not Quite Q.E.D." The New York Times. ISSN 03624331. Retrieved 20170629.
 ^ Singh, pp. 175185.
 ^ Aczel, pp. 132–134.
 ^ Singh p.186187 (text condensed).
 ^ ^{a} ^{b} "Fermat's last theorem". MacTutor History of Mathematics. February 1996. Retrieved 29 June 2017.
 ^ Cornell, Gary; Silverman, Joseph H.; Stevens, Glenn (2013). Modular Forms and Fermat's Last Theorem (illustrated ed.). Springer Science & Business Media. p. 549. ISBN 9781461219743. Extract of page 549
 ^ O'Carroll, Eoin (20110817). "Why Pierre de Fermat is the patron saint of unfinished business". The Christian Science Monitor. ISSN 08827729. Retrieved 20170629.
 ^ Granville, Andrew. "History of Fermat's Last Theorem". Retrieved 29 June 2017.
 ^ Breuil, Christophe; Conrad, Brian; Diamond, Fred; Taylor, Richard (2001). "On the modularity of elliptic curves over 𝐐: Wild 3adic exercises". Journal of the American Mathematical Society. 14 (4): 843–939. doi:10.1090/S0894034701003708. ISSN 08940347.
 ^ ^{a} ^{b} Hesselink, Wim H. (3 April 2008). "Computer verification of Wiles' proof of Fermat's Last Theorem". www.cs.rug.nl. Retrieved 20170629.
 ^ Singh p.259262
 ^ Singh, pp. 239–243; Aczel, pp. 122–125.
 ^ Malek, Massoud (6 January 1996). "Fermat's Last Theorem". Retrieved 29 June 2017.
 ^ "sci.math FAQ: Wiles attack". www.faqs.org. Retrieved 20170629.
 ^ "Fermat's Last Theorem, a Theorem at Last" (PDF). FOCUS. August 1993. Retrieved 29 June 2017.
 ^ Weston, Tom. "Research Summary Topics". people.math.umass.edu. Retrieved 20170629.
 ^ Gouvêa, Fernando (1994). "A Marvelous Proof". American Mathematical Monthly. 101 (3): 203–222. doi:10.2307/2975598. JSTOR 2975598. Retrieved 29 June 2017.
 ^ "The Mathematical Association of America's Lester R. Ford Award". Retrieved 29 June 2017.
 ^ Faltings, Gerd (July 1995). "The Proof of Fermat's Last Theorem by R. Taylor and A. Wiles" (PDF). Notices of the American Mathematical Society. 42 (7): 743–746.
References
 Aczel, Amir (1 January 1997). Fermat's Last Theorem: Unlocking the Secret of an Ancient Mathematical Problem. ISBN 9781568580777. Zbl 0878.11003.
 John Coates (July 1996). "Wiles Receives NAS Award in Mathematics" (PDF). Notices of the AMS. 43 (7): 760–763. Zbl 1029.01513.
 Cornell, Gary (1 January 1998). Modular Forms and Fermat's Last Theorem. ISBN 9780387946092. Zbl 0878.11004. (Cornell, et al.)
 Daney, Charles (2003). "The Mathematics of Fermat's Last Theorem". Archived from the original on 3 August 2004. Retrieved 5 August 2004.
 Darmon, H. (9 September 2007). "Wiles' theorem and the arithmetic of elliptic curves" (PDF).
 Faltings, Gerd (July 1995). "The Proof of Fermat's Last Theorem by R. Taylor and A. Wiles" (PDF). Notices of the AMS. 42 (7): 743–746. ISSN 00029920. Zbl 1047.11510.
 Frey, Gerhard (1986). "Links between stable elliptic curves and certain diophantine equations". Ann. Univ. Sarav. Ser. Math. 1: 1–40. Zbl 0586.10010.
 Hellegouarch, Yves (1 January 2001). Invitation to the Mathematics of Fermat–Wiles. ISBN 9780123392510. Zbl 0887.11003. See review
 "The bluffer's guide to Fermat's Last Theorem". (collected by Lim LekHeng)
 Mozzochi, Charles (7 December 2000). The Fermat Diary. American Mathematical Society. ISBN 9780821826706. Zbl 0955.11002. See also Gouvêa, Fernando Q. (2001). "Review: Wiles's Proof, 1993–1995: The Fermat Diary by C. J. Mozzochi". American Scientist. 89 (3): 281–282. JSTOR 27857485.
 Mozzochi, Charles (6 July 2006). The Fermat Proof. Trafford Publishing. ISBN 9781412022033. Zbl 1104.11001.
 O'Connor, J. J.; Robertson, E. F. (1996). "Fermat's last theorem". Retrieved 5 August 2004.
 van der Poorten, Alfred (1 January 1996). Notes on Fermat's Last Theorem. ISBN 9780471062615. Zbl 0882.11001.
 Ribenboim, Paulo (1 January 2000). Fermat's Last Theorem for Amateurs. ISBN 9780387985084. Zbl 0920.11016.
 Ribet, Ken (1995). "Galois representations and modular forms" (PDF). Retrieved 20160317. Discusses various material which is related to the proof of Fermat's Last Theorem: elliptic curves, modular forms, Galois representations and their deformations, Frey's construction, and the conjectures of Serre and of Taniyama–Shimura.
 Singh, Simon (October 1998). Fermat's Enigma. New York: Anchor Books. ISBN 9780385493628. Zbl 0930.00002.
 Simon Singh "The Whole Story". Archived from the original on 10 May 2011. Edited version of ~2,000word essay published in Prometheus magazine, describing Andrew Wiles's successful journey.
 Richard Taylor and Andrew Wiles (May 1995). "Ringtheoretic properties of certain Hecke algebras" (PDF). Annals of Mathematics. 141 (3): 553–572. CiteSeerX 10.1.1.128.531. doi:10.2307/2118560. ISSN 0003486X. JSTOR 2118560. OCLC 37032255. Zbl 0823.11030.
 Wiles, Andrew (1995). "Modular elliptic curves and Fermat's Last Theorem" (PDF). Annals of Mathematics. 142 (3): 443–551. CiteSeerX 10.1.1.169.9076. doi:10.2307/2118559. ISSN 0003486X. JSTOR 2118559. OCLC 37032255. Zbl 0823.11029. See also this smaller and searchable PDF text version. (The larger PDF misquotes the volume number as 142.)
External links
 Weisstein, Eric W. "Fermat's Last Theorem". MathWorld.
 "The Proof". The title of one edition of the PBS television series NOVA discusses Andrew Wiles's effort to prove Fermat's Last Theorem that broadcast on BBC Horizon and UTV/Documentary as Fermat's Last Theorem (Adobe Flash) (subscription required)
 Wiles, Ribet, Shimura–Taniyama–Weil and Fermat's Last Theorem
 Are mathematicians finally satisfied with Andrew Wiles's proof of Fermat's Last Theorem? Why has this theorem been so difficult to prove?, Scientific American, 21 October 1999
Explanations of the proof (varying levels)
 Overview of Wiles proof, accessible to nonexperts, by Henri Darmon
 very short summary of the proof by Charles Daney
 140 page students workthrough of the proof, with exercises, by Nigel Boston