Documentation

Atlas.EllipticCurves.code.FermatsLastTheorem

@[reducible, inline]
noncomputable abbrev Qbar :

The algebraic closure of ℚ inside ℂ, viewed as an intermediate field. This provides a concrete model of ℚ̄ sitting inside ℂ.

Instances For
    @[reducible, inline]

    The absolute Galois group of ℚ, realized as the group of ℚ-algebra automorphisms of Qbar.

    Instances For
      @[reducible, inline]
      abbrev GaloisRepMod (ℓ : ℕ) :

      A mod-ℓ Galois representation is a group homomorphism from the absolute Galois group of ℚ to GL₂(ℤ/ℓℤ).

      Instances For

        A specific element of the absolute Galois group of ℚ realizing complex conjugation on Qbar ⊆ ℂ.

        Instances For
          def GaloisRepMod.IsOdd {ℓ : ℕ} (ρ : GaloisRepMod ℓ) :

          A mod-ℓ Galois representation ρ is odd if det(ρ(c)) = -1, where c is complex conjugation.

          Instances For

            A mod-ℓ Galois representation is irreducible if no nonzero vector v ∈ (ℤ/ℓℤ)² is simultaneously an eigenvector of every ρ(g).

            Instances For
              noncomputable def frobeniusElement (p : ℕ) (hp : Nat.Prime p) :

              An element of the absolute Galois group realizing a Frobenius at the prime p.

              Instances For

                A mod-ℓ Galois representation ρ is modular if there exists a cusp form f of some weight k and level Γ₁(N), with integer Fourier coefficients a(n), such that for every prime p not dividing ℓN the trace of ρ(Frob_p) equals a(p) mod ℓ.

                Instances For
                  @[reducible, inline]

                  An elliptic curve over ℚ: a Weierstrass curve in affine form together with a proof that it satisfies the elliptic (nonsingular) condition.

                  Instances For

                    The minimal discriminant of an elliptic curve over ℚ: the discriminant of a global minimal Weierstrass model.

                    Instances For

                      The minimal discriminant of an elliptic curve over ℚ is nonzero (consequence of nonsingularity of the global minimal model).

                      noncomputable def FLT.conductor (E : EllipticCurveOverQ) :

                      The conductor of an elliptic curve over ℚ, defined here as the radical of the absolute value of the minimal discriminant.

                      Instances For

                        The conductor of any elliptic curve over ℚ is strictly positive.

                        An elliptic curve over ℚ is semistable if it has no additive reduction at any prime — equivalently, all bad reduction is multiplicative.

                        Instances For

                          An elliptic curve over ℚ is semistable iff its conductor is squarefree.

                          E admits a rational cyclic n-isogeny: there is a ℚ-rational isogeny from E whose kernel is cyclic of order n.

                          Instances For

                            If E/ℚ admits a rational cyclic 15-isogeny then its conductor is not squarefree.

                            An elliptic curve admitting a rational cyclic 15-isogeny cannot be semistable. This follows from squarefree-conductor characterization of semistability.

                            A semistable elliptic curve over ℚ admits no rational cyclic 15-isogeny.

                            noncomputable def FLT.galoisRepMod_of_EC (E : EllipticCurveOverQ) (ℓ : ℕ) [Fact (Nat.Prime ℓ)] :

                            The mod-ℓ Galois representation attached to an elliptic curve E/ℚ, obtained from the Galois action on the ℓ-torsion E[ℓ].

                            Instances For

                              The mod-ℓ representation attached to an elliptic curve E/ℚ is irreducible.

                              Instances For

                                The mod-ℓ representation attached to an elliptic curve E/ℚ is modular.

                                Instances For
                                  noncomputable def FLT.LSeriesCoeff (E : EllipticCurveOverQ) :
                                  ℕ → ℤ

                                  The Dirichlet coefficients a_n of the L-series of E/ℚ.

                                  Instances For
                                    structure FLT.Weight2Newform (N : ℕ) :

                                    A weight-2 newform of level N, specified by its Fourier coefficients: normalized so that a₁ = 1, multiplicative on coprime indices, and satisfying the standard Hecke recursion at primes p ∤ N.

                                    Instances For

                                      The mod-ℓ representation of E/ℚ is modular of a prescribed weight and level: there is a weight-2 newform of the given level matching tr ρ(Frob_p) at primes p ∤ ℓ · level.

                                      Instances For

                                        The ℓ-adic Galois representation attached to E/ℚ is modular: there is a weight-2 newform of level equal to the conductor whose Fourier coefficients match a_p(E) at primes p ∤ ℓ · conductor.

                                        Instances For

                                          E/ℚ is a modular elliptic curve: there is a weight-2 newform of level the conductor of E whose Fourier coefficients equal the L-series coefficients of E for every n ≥ 1.

                                          Instances For

                                            Taylor–Wiles modularity lifting: if E/ℚ is semistable and its mod-ℓ representation is modular, then its ℓ-adic representation is modular and E itself is a modular elliptic curve.

                                            noncomputable def FLT.ribetLevelDivisor (E : EllipticCurveOverQ) (ℓ : ℕ) :

                                            Ribet's level-lowering divisor: the product over primes p ∥ N(E) of those p at which the mod-ℓ representation is unramified, i.e. ℓ ∣ v_p(Δ_E).

                                            Instances For

                                              The Ribet level divisor divides the conductor of E.

                                              The Ribet level divisor is strictly positive.

                                              noncomputable def FLT.ribetLoweredLevel (E : EllipticCurveOverQ) (ℓ : ℕ) [Fact (Nat.Prime ℓ)] :

                                              The level produced by Ribet's level-lowering theorem: the conductor of E divided by the Ribet level divisor, as a positive natural number.

                                              Instances For

                                                Ribet's level-lowering theorem: if E/ℚ is modular and the mod-ℓ representation is irreducible, then the mod-ℓ representation is modular of weight 2 and level equal to the Ribet-lowered level.

                                                The Langlands–Tunnell theorem: if the mod-3 representation of E/ℚ is irreducible, then it is modular.

                                                noncomputable def FLT.freyCurve (a b c : ℤ) (ℓ : ℕ) [Fact (Nat.Prime ℓ)] :

                                                The Frey curve y² = x(x - aᵉ)(x + bᵉ) associated to a putative counterexample aᵉ + bᵉ = cᵉ to Fermat's Last Theorem at prime exponent ℓ.

                                                Instances For
                                                  theorem FLT.freyCurve_isSemistable (a b c : ℤ) (ℓ : ℕ) [Fact (Nat.Prime ℓ)] (hflt : a ^ ℓ + b ^ ℓ = c ^ ℓ) (hcoprime : a.gcd ↑(b.gcd c) = 1) :

                                                  The Frey curve attached to a coprime Fermat triple is semistable.

                                                  theorem FLT.mazur_isogeny_theorem (E : EllipticCurveOverQ) (ℓ : ℕ) [Fact (Nat.Prime ℓ)] (hℓ : ℓ > 163) :

                                                  Mazur's isogeny theorem: for primes ℓ > 163, no elliptic curve over ℚ admits a rational cyclic ℓ-isogeny.

                                                  If the mod-ℓ Galois representation of E/ℚ is reducible, then E admits a rational cyclic ℓ-isogeny (coming from a Galois-stable line in E[ℓ]).

                                                  theorem FLT.freyCurve_modLRep_irreducible (a b c : ℤ) (ℓ : ℕ) [Fact (Nat.Prime ℓ)] (_hflt : a ^ ℓ + b ^ ℓ = c ^ ℓ) (hℓ_large : ℓ > 163) :

                                                  The mod-ℓ representation of the Frey curve is irreducible (for ℓ > 163), combining Mazur's isogeny theorem with the reducibility–isogeny correspondence.

                                                  theorem FLT.freyCurve_ribetLoweredLevel_eq_two (a b c : ℤ) (ℓ : ℕ) [Fact (Nat.Prime ℓ)] (hflt : a ^ ℓ + b ^ ℓ = c ^ ℓ) (hℓ_large : ℓ > 163) :
                                                  ribetLoweredLevel (freyCurve a b c ℓ) ℓ = ⟨2, ⋯⟩

                                                  For the Frey curve attached to a Fermat triple, Ribet's level-lowering produces level 2.

                                                  There is no weight-2, level-2 cuspform: the space S_2(Γ₀(2)) is zero, so no elliptic curve has a mod-ℓ representation modular of weight 2 and level 2.

                                                  theorem FLT.freyCurve_not_modular (a b c : ℤ) (ℓ : ℕ) [Fact (Nat.Prime ℓ)] (hflt : a ^ ℓ + b ^ ℓ = c ^ ℓ) (hℓ_large : ℓ > 163) :

                                                  The Frey curve attached to a Fermat triple is not modular: combining Ribet's level-lowering with the nonexistence of weight-2, level-2 newforms.

                                                  3 is a prime number. Provided as a Fact for use as a typeclass parameter.

                                                  5 is a prime number. Provided as a Fact for use as a typeclass parameter.

                                                  The mod-ℓ representations of two elliptic curves E, E' over ℚ are isomorphic (at the level of traces): for every g in the absolute Galois group, tr ρ_E(g) = tr ρ_{E'}(g).

                                                  Instances For

                                                    If the mod-ℓ representations of E and E' are isomorphic and E's mod-ℓ representation is modular, then so is E''s.

                                                    For a semistable E/ℚ whose mod-3 representation is reducible, the mod-5 representation is irreducible. (Used in the 3-5 trick.)

                                                    If E/ℚ is a modular elliptic curve, then for any prime ℓ the mod-ℓ representation of E is also modular.

                                                    Wiles's 3-5 trick: given a semistable E/ℚ whose mod-5 representation is irreducible, there exists a semistable E'/ℚ whose mod-3 representation is irreducible and whose mod-5 representation is isomorphic to that of E.

                                                    Wiles's modularity theorem for semistable elliptic curves: every semistable elliptic curve over ℚ is modular. Proof uses Langlands–Tunnell at the prime 3 together with Wiles's 3-5 trick when the mod-3 representation is reducible.

                                                    Wiles's modularity theorem for semistable elliptic curves (Theorem 25.8), restated.

                                                    theorem FLT.freyCurve_coprimality_reduction (a b c : ℤ) (p : ℕ) [Fact (Nat.Prime p)] (heq : a ^ p + b ^ p = c ^ p) (ha : a ≠ 0) (hb : b ≠ 0) (hc : c ≠ 0) :
                                                    a.gcd ↑(b.gcd c) = 1

                                                    For a Fermat-like triple aᵖ + bᵖ = cᵖ with a, b, c all nonzero, the entries can be assumed pairwise coprime: gcd(a, gcd(b, c)) = 1.

                                                    theorem FLT.flt_for_prime_gt_163 (p : ℕ) [Fact (Nat.Prime p)] (hp_large : p > 163) :

                                                    Fermat's Last Theorem for prime exponent p > 163, deduced via the Frey curve: its semistability and Wiles's modularity contradict its non-modularity.

                                                    theorem FLT.flt_for_small_odd_primes (p : ℕ) (hp : Nat.Prime p) (hp_odd : Odd p) (hp_ge5 : p ≥ 5) (hp_le163 : p ≤ 163) :

                                                    Fermat's Last Theorem for odd primes p in the range 5 ≤ p ≤ 163, handled by the classical (pre-Wiles) techniques.

                                                    theorem FLT.flt_for_odd_prime (p : ℕ) (hp : Nat.Prime p) (hp_odd : Odd p) :

                                                    Fermat's Last Theorem for any odd prime exponent p, combining the case p = 3 (fermatLastTheoremThree), the small-prime range, and the large-prime case from Wiles/Ribet.

                                                    theorem FLT.fermats_last_theorem_cor_25_9 (n : ℕ) :
                                                    n > 2 → ∀ (x y z : ℤ), x ^ n + y ^ n = z ^ n → x * y * z = 0

                                                    Corollary 25.9 (Fermat's Last Theorem): for every n > 2, the equation xⁿ + yⁿ = zⁿ has no integer solutions with xyz ≠ 0.

                                                    @[reducible, inline]

                                                    Convenience abbreviation for FLT.EllipticCurveOverQ, the type of elliptic curves over ℚ.

                                                    Instances For

                                                      The conductor of an elliptic curve over ℚ, re-exported from the FLT namespace.

                                                      Instances For

                                                        The minimal discriminant of an elliptic curve over ℚ, re-exported from FLT.

                                                        Instances For

                                                          The conductor of any elliptic curve over ℚ is strictly positive (re-export).

                                                          An elliptic curve over ℚ is semistable, re-exported from FLT.

                                                          Instances For

                                                            Re-export: semistability is equivalent to the conductor being squarefree.

                                                            theorem serre_modularity_conjecture (ℓ : ℕ) [Fact (Nat.Prime ℓ)] (ρ : GaloisRepMod ℓ) (hodd : ρ.IsOdd) (hirr : ρ.IsIrreducible) :

                                                            Serre's modularity conjecture (now a theorem of Khare–Wintenberger): every odd, irreducible mod-ℓ Galois representation of Gal(ℚ̄/ℚ) arises from a modular form.