Skip to content

Commit e01e70b

Browse files
committed
Chapter 2 ready
1 parent 67d49d0 commit e01e70b

File tree

3 files changed

+57
-28
lines changed

3 files changed

+57
-28
lines changed

FLT/Basic/Reductions.lean

+3-1
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,9 @@ lemma of_not_FermatLastTheorem (h : ¬ FermatLastTheorem) : Nonempty (FreyPackag
374374

375375
/-- The elliptic curve associated to a Frey package. The conditions imposed
376376
upon a Frey package guarantee that the running hypotheses in
377-
Section 4.1 of [Serre] all hold. -/
377+
Section 4.1 of [Serre] all hold. We put the curve into the form where the
378+
equation is semistable at 2, rather than the usual `Y^2=X(X-a^p)(X+b^p)` form.
379+
The change of variables is `X=4x` and `Y=8y+4x`, and then divide through by 64. -/
378380
def FreyCurve (P : FreyPackage) : EllipticCurve ℚ := {
379381
a₁ := 1
380382
-- a₂ is (or should be) an integer because of the congruences assumed e.g. P.ha4

FLT/EllipticCurve/Torsion.lean

+24-10
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ could talk to David first. Note that he has already made substantial progress.
2020

2121
universe u
2222

23-
variable {K : Type u} [Field K] (E : EllipticCurve K)
23+
variable {k : Type u} [Field k] (E : EllipticCurve k)
2424

2525
open WeierstrassCurve
2626

27-
abbrev EllipticCurve.n_torsion (n : ℕ) : Type u := Submodule.torsionBy ℤ (E.toWeierstrassCurve ⟮K⟯) n
27+
abbrev EllipticCurve.n_torsion (n : ℕ) : Type u := Submodule.torsionBy ℤ (E.toWeierstrassCurve ⟮k⟯) n
2828

2929
--variable (n : ℕ) in
3030
--#synth AddCommGroup (E.n_torsion n)
@@ -42,19 +42,33 @@ theorem EllipticCurve.n_torsion_finite {n : ℕ} (hn : 0 < n) : Finite (E.n_tors
4242

4343
-- This theorem needs e.g. a theory of division polynomials. It's ongoing work of David Angdinata.
4444
-- Please do not work on it without talking to KB and David first.
45-
theorem EllipticCurve.n_torsion_card [IsSepClosed K] {n : ℕ} (hn : (n : K) ≠ 0) :
45+
theorem EllipticCurve.n_torsion_card [IsSepClosed k] {n : ℕ} (hn : (n : k) ≠ 0) :
4646
Nat.card (E.n_torsion n) = n^2 := sorry
4747

4848
-- I only need this if n is prime but there's no harm thinking about it in general I guess.
4949
-- It follows from the previous theorem using pure group theory (possibly including the
5050
-- structure theorem for finite abelian groups)
51-
theorem EllipticCurve.n_torsion_dimension [IsSepClosed K] {n : ℕ} (hn : (n : K) ≠ 0) :
51+
theorem EllipticCurve.n_torsion_dimension [IsSepClosed k] {n : ℕ} (hn : (n : k) ≠ 0) :
5252
∃ φ : E.n_torsion n ≃+ (ZMod n) × (ZMod n), True := sorry
5353

54-
-- We need this -- ask David?
55-
example (L M : Type u) [Field L] [Field M] [Algebra K L] [Algebra K M] (f : L →ₐ[K] M) :
56-
E.toWeierstrassCurve ⟮L⟯ →+ E.toWeierstrassCurve ⟮M⟯ := sorry
54+
-- This should be a straightforward but perhaps long unravelling of the definition
55+
/-- The map on points for an elliptic curve over `k` induced by a morphism of `k`-algebras
56+
is a group homomorphism. -/
57+
def EllipticCurve.Points.map {K L : Type u} [Field K] [Field L] [Algebra k K] [Algebra k L]
58+
(f : K →ₐ[k] L) : E.toWeierstrassCurve ⟮K⟯ →+ E.toWeierstrassCurve ⟮L⟯ := sorry
5759

58-
-- Once we have it, plus the id and comp lemmas for it, we can get an action of Gal(K-bar/K) on E(K-bar)[n]
59-
def EllipticCurve.mod_p_Galois_representation (n : ℕ) (L : Type u) [Field L] [Algebra K L] :
60-
Representation (ZMod n) (L ≃ₐ[K] L) (E.n_torsion n) := sorry
60+
lemma EllipticCurve.Points.map_id (K : Type u) [Field K] [Algebra k K] :
61+
EllipticCurve.Points.map E (AlgHom.id k K) = AddMonoidHom.id _ := sorry
62+
63+
lemma EllipticCurve.Points.map_comp (K L M : Type u) [Field K] [Field L] [Field M]
64+
[Algebra k K] [Algebra k L] [Algebra k M] (f : K →ₐ[k] L) (g : L →ₐ[k] M) :
65+
(EllipticCurve.Points.map E g).comp (EllipticCurve.Points.map E f) =
66+
EllipticCurve.Points.map E (g.comp f) := sorry
67+
68+
/-- The Galois action on the points of an elliptic curve. -/
69+
def EllipticCurve.galoisRepresentation (K : Type u) [Field K] [Algebra k K] :
70+
DistribMulAction (K ≃ₐ[k] K) (E.toWeierstrassCurve ⟮K⟯) := sorry
71+
72+
/-- The Galois action on the n-torsion points of an elliptic curve. -/
73+
def EllipticCurve.torsionGaloisRepresentation (n : ℕ) (K : Type u) [Field K] [Algebra k K] :
74+
Representation (ZMod n) (K ≃ₐ[k] K) (E.n_torsion n) := sorry

blueprint/src/chapter/ch02reductions.tex

+30-17
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ \section{Reduction to \texorpdfstring{$n\geq5$}{ngeq5} and prime}
3131
The proof has been formalised in Lean in the FLT-regular project \href{https://github.com/leanprover-community/flt-regular/blob/861b7df057140b45b8bb7d30d33426ffbbdda52b/FltRegular/FltThree/FltThree.lean#L698}{\underline{here}}. To get this node green, the proof (or another proof) needs to be upstreamed to mathlib. This is currently work in progress by a team from the Lean For the Curious Mathematician conference held in Luminy in March 2024.
3232
\end{proof}
3333

34-
\begin{corollary}\label{p_ge_5_counterexample_of_not_FermatLastTheorem}\lean{p_ge_5_counterexample_of_not_FermatLastTheorem}\leanok If there is a counterexample to Fermat's Last Theorem, then there is a counterexample $a^p+b^p=c^p$ with $p$ prime and $p\geq 5$.
34+
\begin{corollary}\label{FLT.p_ge_5_counterexample_of_not_FermatLastTheorem}\lean{FLT.p_ge_5_counterexample_of_not_FermatLastTheorem}\leanok If there is a counterexample to Fermat's Last Theorem, then there is a counterexample $a^p+b^p=c^p$ with $p$ prime and $p\geq 5$.
3535
\end{corollary}
3636
\begin{proof}\uses{fermatLastTheoremThree, FermatLastTheorem.of_odd_primes}\leanok Follows from the previous two lemmas.\end{proof}
3737

3838
\section{Frey packages}
3939

4040
For convenience we make the following definition.
4141

42-
\begin{definition}\label{FLT.Frey_package}\lean{FLT.FreyPackage}\leanok A \emph{Frey package} $(a,b,c,p)$ is three pairwise-coprime nonzero integers $a$, $b$, $c$, with $a\equiv3\pmod4$ and $b\equiv0\pmod2$, and a prime $p\geq5$, such that $a^p+b^p=c^p$.\end{definition}
42+
\begin{definition}\label{FLT.FreyPackage}\lean{FLT.FreyPackage}\leanok A \emph{Frey package} $(a,b,c,p)$ is three pairwise-coprime nonzero integers $a$, $b$, $c$, with $a\equiv3\pmod4$ and $b\equiv0\pmod2$, and a prime $p\geq5$, such that $a^p+b^p=c^p$.\end{definition}
4343

4444
Our next reduction is as follows:
4545

4646
\begin{lemma}\label{FLT.FreyPackage.of_not_FermatLastTheorem}\lean{FLT.FreyPackage.of_not_FermatLastTheorem}\leanok\discussion{19}
4747
If Fermat's Last Theorem is false, then there exists a Frey package.
4848
\end{lemma}
49-
\begin{proof}\uses{FLT.Frey_package, p_ge_5_counterexample_of_not_FermatLastTheorem} By Corollary \ref{p_ge_5_counterexample_of_not_FermatLastTheorem} we may assume that there is a counterexample $a^p+b^p=c^p$ with $p\geq 5$ and prime; we now build a Frey package from this data.
49+
\begin{proof}\uses{FLT.FreyPackage, FLT.p_ge_5_counterexample_of_not_FermatLastTheorem} By Corollary \ref{p_ge_5_counterexample_of_not_FermatLastTheorem} we may assume that there is a counterexample $a^p+b^p=c^p$ with $p\geq 5$ and prime; we now build a Frey package from this data.
5050

5151
If the greatest common divisor of $a,b,c$ is $d$ then $a^p+b^p=c^p$ implies $(a/d)^p+(b/d)^p=(c/d)^p$. Dividing through, we can thus assume that no prime divides all of $a,b,c$. Under this assumption we must have that $a,b,c$ are pairwise coprime, as if some prime divides two of the integers $a,b,c$ then by $a^p+b^p=c^p$ and unique factorization it must divide all three of them. In particular we may assume that not all of $a,b,c$ are even, and now reducing modulo~2 shows that precisely one of them must be even.
5252

@@ -57,15 +57,15 @@ \section{Frey packages}
5757

5858
\section{Galois representations and elliptic curves}\label{twopointfour}
5959

60-
To continue, we need some of the theory of elliptic curves over $\Q$. So let $f(X)$ denote any monic cubic polynomial with rational coefficients and whose three complex roots are distinct, and let us consider the equation $E:Y^2=f(X)$, which defines a curve in the $(X,Y)$ plane. This curve (or strictly speaking its projectivisation) is a so-called elliptic curve (or an elliptic curve over $\Q$ if we want to keep track of the field where the coefficients of $f(X)$ lie). More generally if $k$ is any field then there is a concept of an elliptic curve over $k$, again defined by a plane cubic curve $F(X,Y)=0$.
60+
To continue, we need some of the theory of elliptic curves over $\Q$. So let $f(X)$ denote any monic cubic polynomial with rational coefficients and whose three complex roots are distinct, and let us consider the equation $E:Y^2=f(X)$, which defines a curve in the $(X,Y)$ plane. This curve (or strictly speaking its projectivisation) is a so-called elliptic curve (or an elliptic curve over $\Q$ if we want to keep track of the field where the coefficients of $f(X)$ lie). More generally if $k$ is any field then there is a concept of an elliptic curve over $k$, again defined by a (slightly more general) plane cubic curve $F(X,Y)=0$.
6161

62-
If $E:Y^2=f(X)$ is as above, and if $K$ is any field of characteristic 0, then we write $E(K)$ for the set of solutions to $y^2=f(x)$ with $x,y\in K$, together with an additional ``point at infinity''. It is an extraordinary fact, and not at all obvious, that $E(K)$ naturally has the structure of an additive abelian group, with the point at infinity being the zero element (the identity). Fortunately this fact is already in {\tt mathlib}. We shall use $+$ to denote the group law. This group structure has the property that three distinct points $P,Q,R\in K^2$ which are in $E(K)$ will sum to zero if and only if they are collinear.
62+
If $E$ is an elliptic curve over a field $k$, and if $K$ is any field which is a $k$-algebra, then we write $E(K)$ for the set of solutions to $y^2=f(x)$ with $x,y\in K$, together with an additional ``point at infinity''. It is an extraordinary fact, and not at all obvious, that $E(K)$ naturally has the structure of an additive abelian group, with the point at infinity being the zero element (the identity). Fortunately this fact is already in {\tt mathlib}. We shall use $+$ to denote the group law. This group structure has the property that three distinct points $P,Q,R\in K^2$ which are in $E(K)$ will sum to zero if and only if they are collinear.
6363

6464
The group structure behaves well under change of field.
6565

66-
\begin{lemma}\label{EllipticCurve.Points.map}\lean{EllipticCurve.Points.map}\leanok If $E$ is an elliptic curve over a field $\Q$, and if $K$ and $L$ are two fields of characteristic zero and $f:K\to L$ is a field homomorphism, the map from $E(K)$ to $E(L)$ induced by $f$ is an additive group homomorphism.
66+
\begin{lemma}\label{EllipticCurve.Points.map}\lean{EllipticCurve.Points.map}\leanok If $E$ is an elliptic curve over a field $k$, and if $K$ and $L$ are two fields which are $k$-algebras, and if $f:K\to L$ is a $k$-algebra homomorphism, the map from $E(K)$ to $E(L)$ induced by $f$ is an additive group homomorphism.
6767
\end{lemma}
68-
\begin{proof} In fact a more general statement is true for elliptic curves over a general field and this is what should be proved. The proof is that the equations defining the group law are ratios of polynomials, and ratios of polynomials behave well under field homomorphisms.
68+
\begin{proof} The equations defining the group law are ratios of polynomials with coefficients in $k$, and such things behave well under $k$-algebra homomorphisms.
6969
\end{proof}
7070

7171
This construction is functorial (it sends the identity to the identity, and compositions to compositions).
@@ -78,50 +78,63 @@ \section{Galois representations and elliptic curves}\label{twopointfour}
7878
\end{proof}
7979

8080
\begin{lemma}\label{EllipticCurve.Points.map_comp}\lean{EllipticCurve.Points.map_comp}\uses{EllipticCurve.Points.map}
81-
If $K\to L\to M$ are fields of characteristic 0 then the group homomorphism $E(K)\to E(M)$
81+
If $K\to L\to M$ are $k$-algebra homomorphisms then the group homomorphism $E(K)\to E(M)$
8282
induced by the map $K\to M$ is the composite of the map $E(K)\to E(L)$ induced by $K\to L$
8383
and the map $E(L)\to E(M)$ induced by the map $L\to M$.
8484
\end{lemma}
8585
\begin{proof} Another easy calculation.
8686
\end{proof}
8787

88-
Thus if $f$ is an isomorphism of fields, the induced map $E(K)\to E(L)$ is an isomorphism of groups, with the inverse isomorphism being the map $E(L)\to E(K)$ induced by $f^{-1}$. This construction thus gives us an action of the multiplicative group $\Aut(K)$ of automorphisms of the field $K$ on the additive abelian group $E(K)$. In particular, if $\Qbar$ denotes an algebraic closure of the rationals (for example, the algebraic numbers in $\bbC$) and if $\GQ$ denotes the group of field isomorphisms $\Qbar\to\Qbar$, then for any elliptic curve $E$ over $\Q$ we have an action of $\GQ$ on the additive abelian group $E(\Qbar)$.
88+
Thus if $f K\to L$ is an isomorphism of fields, the induced map $E(K)\to E(L)$ is an isomorphism of groups, with the inverse isomorphism being the map $E(L)\to E(K)$ induced by $f^{-1}$. This construction thus gives us an action of the multiplicative group $\Aut_k(K)$ of automorphisms of the field $K$ on the additive abelian group $E(K)$.
89+
90+
\begin{definition}\label{EllipticCurve.galoisRepresentation}\lean{EllipticCurve.GaloisRepresentation}\uses{EllipticCurve.Points.map_id,EllipticCurve.Points.map_comp}
91+
If $E$ is an elliptic curve over a field $k$ and $K$ is a field and a $k$-algebra,
92+
then the group of $k$-automorphisms of $K$ acts on the additive abelian group $E(K)$.
93+
\end{definition}
94+
In particular, if $\Qbar$ denotes an algebraic closure of the rationals (for example, the algebraic numbers in $\bbC$) and if $\GQ$ denotes the group of field isomorphisms $\Qbar\to\Qbar$, then for any elliptic curve $E$ over $\Q$ we have an action of $\GQ$ on the additive abelian group $E(\Qbar)$.
8995

90-
We need a variant of this construction where we only consider the $n$-torsion of the curve, for $n$ a positive integer. Recall that if $A$ is any additive abelian group, and if $n$ is a positive integer, then we can consider the subgroup $A[n]$ of elements $a$ such that $na=0$. If a group~$G$ acts on $A$ via additive group isomorphisms, then there will be an induced action of~$G$ on $A[n]$. If furthermore $n=p$ is prime, then $A[p]$ is naturally a vector space over the field $\Z/p\Z$, and thus it inherits the stucture of a mod $p$ representation of $G$. Applying this to the above situation, we deduce that if $E$ is an elliptic curve over $\Q$ then $\GQ$ acts on $E(\Qbar)[p]$ and this is the \emph{mod $p$ Galois representation} attached to the curve $E$.
96+
We need a variant of this construction where we only consider the $n$-torsion of the curve, for $n$ a positive integer. Recall that if $A$ is any additive abelian group, and if $n$ is a positive integer, then we can consider the subgroup $A[n]$ of elements $a$ such that $na=0$. If a group~$G$ acts on $A$ via additive group isomorphisms, then there will be an induced action of~$G$ on $A[n]$.
97+
98+
\begin{definition}\label{EllipticCurve.torsionGaloisRepresentation}\lean{EllipticCurve.GaloisRepresentation}\uses{EllipticCurve.galoisRepresentation}
99+
If $E$ is an elliptic curve over a field $k$ and $K$ is a field and a $k$-algebra,
100+
and if $n$ is a natural number, hen the group of $k$-automorphisms of $K$ acts on the additive abelian group $E(K)[n]$ of $n$-torsion points on the curve.
101+
\end{definition}
102+
103+
If furthermore $n=p$ is prime, then $A[p]$ is naturally a vector space over the field $\Z/p\Z$, and thus it inherits the stucture of a mod $p$ representation of $G$. Applying this to the above situation, we deduce that if $E$ is an elliptic curve over $\Q$ then $\GQ$ acts on $E(\Qbar)[p]$ and this is the \emph{mod $p$ Galois representation} attached to the curve $E$.
91104

92105
In the next section we apply this theory to an elliptic curve coming from a counterexample to Fermat's Last theorem.
93106

94107
\section{The Frey curve}
95108

96-
\begin{definition}[Frey]\label{FLT.Frey_curve}\lean{FLT.FreyCurve}
109+
\begin{definition}[Frey]\label{FLT.FreyCurve}\lean{FLT.FreyCurve}\uses{FLT.FreyPackage}\discussion{21}
97110
Given a Frey package $(a,b,c,p)$, the corresponding \emph{Frey curve} (considered by Frey and, before him, Hellegouarch) is the elliptic curve $E$ defined by the equation $Y^2=X(X-a^p)(X+b^p).$\end{definition}
98111

99112
Note that the roots of the cubic $X(X-a^p)(X+b^p)$ are distinct because $a,b,c$ are nonzero and $a^p+b^p=c^p$.
100113

101-
\begin{definition}[mod $p$ Galois representation attached to a Frey package]\label{FLT.FreyCurve.mod_p_Galois_representation}\lean{FLT.FreyCurve.mod_p_Galois_representation}\uses{Frey_curve} Given a Frey package $(a,b,c,p)$ with corresponding Frey curve $E$, the mod $p$ Galois representation associated to this package is the representation of $\GQ$ on $E(\Qbar)[p].$\end{definition}
114+
\begin{definition}[mod $p$ Galois representation attached to a Frey package]\label{FLT.FreyCurve.mod_p_Galois_representation}\lean{FLT.FreyCurve.mod_p_Galois_representation}\uses{FLT.FreyCurve,EllipticCurve.torsionGaloisRepresentation} Given a Frey package $(a,b,c,p)$ with corresponding Frey curve $E$, the mod $p$ Galois representation associated to this package is the representation of $\GQ$ on $E(\Qbar)[p].$\end{definition}
102115

103116
Frey's observation is that this mod $p$ Galois representation has some very surprising properties. We will make this remark more explicit in the next chapter. Here we shall show how these properties can be used to finish the job.
104117

105118
\section{Reduction to two big theorems.}
106119

107120
Recall that a representation of a group $G$ on a vector space $W$ is said to be \emph{irreducible} if there are precisely two $G$-stable subspaces of $W$, namely $0$ and $W$. The representation is said to be \emph{reducible} otherwise.
108121

109-
Now say Fermat's Last Theorem is false, and hence by Lemma~\ref{Frey_package_of_FLT_counterex} a Frey package $(a,b,c,p)$ exists. Consider the mod $p$ representation of $\GQ$ coming from the $p$-torsion in the Frey curve $Y^2=X(x-a^p)(X+b^p)$ associated to the package. Let's call this representation $\rho$. Is it reducible or irreducible?
122+
Now say Fermat's Last Theorem is false, and hence by Lemma~\ref{FLT.FreyPackage.of_not_FermatLastTheorem} a Frey package $(a,b,c,p)$ exists. Consider the mod $p$ representation of $\GQ$ coming from the $p$-torsion in the Frey curve $Y^2=X(x-a^p)(X+b^p)$ associated to the package. Let's call this representation $\rho$. Is it reducible or irreducible?
110123

111-
\begin{theorem}[Mazur]\label{Mazur_on_Frey_curve}\lean{FLT.FreyCurve.Mazur_Frey}\uses{Frey_mod_p_Galois_representation}\leanok $\rho$ cannot be reducible.\end{theorem}
124+
\begin{theorem}[Mazur]\label{FLT.FreyCurve.Mazur_Frey}\lean{FLT.FreyCurve.Mazur_Frey}\uses{FLT.FreyCurve.mod_p_Galois_representation}\leanok $\rho$ cannot be reducible.\end{theorem}
112125
\begin{proof}\tangled This follows from a profound result of Mazur \cite{mazur-torsion} from 1979, namely the fact that the torsion subgroup of an elliptic curve over $\Q$ can have size at most~16. In fact a fair amount of work still needs to be done to deduce the theorem from Mazur's result. We will have more to say about this result later.
113126
\end{proof}
114127

115-
\begin{theorem}[Wiles,Taylor--Wiles, Ribet,\ldots]\label{Wiles_on_Frey_curve}\lean{FLT.FreyCurve.Wiles_Frey}\leanok $\rho$ cannot be irreducible either.\end{theorem}
128+
\begin{theorem}[Wiles,Taylor--Wiles, Ribet,\ldots]\label{FLT.FreyCurve.Wiles_Frey}\lean{FLT.FreyCurve.Wiles_Frey}\uses{FLT.FreyCurve.mod_p_Galois_representation}\leanok $\rho$ cannot be irreducible either.\end{theorem}
116129
\begin{proof}\uses{Frey_mod_p_Galois_representation}\tangled This is the main content of Wiles' magnum opus. We omit the argument for now, although later on in this project we will have a lot to say about a proof of this.
117130
\end{proof}
118131

119-
\begin{corollary}\label{no_Frey_package}\lean{FLT.Frey_package.false}\uses{Mazur_on_Frey_curve, Wiles_on_Frey_curve}\leanok There is no Frey package.\end{corollary}
132+
\begin{corollary}\label{FLT.Frey_package.false}\lean{FLT.Frey_package.false}\uses{FLT.FreyCurve.Mazur_Frey, FLT.FreyCurve.Wiles_Frey}\leanok There is no Frey package.\end{corollary}
120133
\begin{proof}\leanok Follows immediately from the previous two theorems~\ref{Mazur_on_Frey_curve} and~\ref{Wiles_on_Frey_curve}.\end{proof}
121134

122135
We deduce
123136

124-
\begin{corollary}\label{FLT}\lean{Wiles_Taylor_Wiles}\uses{no_Frey_package, Frey_package_of_FLT_counterex}\leanok Fermat's Last Theorem is true.\end{corollary}
137+
\begin{corollary}\label{FLT}\lean{Wiles_Taylor_Wiles}\uses{FLT.Frey_package.false, FLT.FreyPackage.of_not_FermatLastTheorem}\leanok Fermat's Last Theorem is true.\end{corollary}
125138
\begin{proof}\leanok
126139
Indeed, if Fermat's Last Theorem is false then there is a Frey package $(a,b,c,p)$ by~\ref{Frey_package_of_FLT_counterex}, contradicting Corollary~\ref{no_Frey_package}.
127140
\end{proof}

0 commit comments

Comments
 (0)