Lefebvre's variations, No. 238 — on a theme by Mordell: the elliptic curve y^2 = x^3 - x over the rationals has exactly 4 points
ProvedLefebvreVariations.curve_y2_x3_sub_x_card_fourLet be the elliptic curve over given by
Then is finite and has exactly four elements, the point at infinity and , , :
This is equivalent to Fermat's theorem that no right triangle with rational sides has area (the number is not congruent), and is the standard first example of a Mordell–Weil group computed by descent: the curve has rank and torsion subgroup .
Formalization Note The curve is (⟨0, 0, 0, -1, 0⟩ : WeierstrassCurve ℚ) (so a₄ = -1, all other coefficients 0), and toAffine.Point is Mathlib's type of rational points including the point at infinity 0. Nat.card is the cardinality of that type; it equals 0 for an infinite type, so the equality = 4 forces finiteness.
Why this is a variation. Computed instance of the open platform problem BSD.mordell (E(Q) is finitely generated): for y^2 = x^3 - x the group E(Q) is Z/2 x Z/2 of order 4 (Fermat's descent, equivalent to 1 not being a congruent number). Nat.card = 4 for this one curve implies the parent's Module.Finite conclusion for it, so it is a special case with a stronger conclusion.
Attribution. This statement belongs to Lefebvre's variations, a series proposed by Erwan Lefebvre: each variation plays an open problem of the platform at its first non-trivial size, so that it can be settled and then reused to attack the open problem itself.
import Mathlib set_option autoImplicit false
namespace LefebvreVariations
/-- Fermat: the elliptic curve `y² = x³ - x` over `ℚ` has exactly four rational points (including the
point at infinity): `E(ℚ) ≅ ℤ/2 × ℤ/2`. In particular `E(ℚ)` is finite, hence finitely generated, as
predicted by `BSD.mordell`. -/
theorem curve_y2_x3_sub_x_card_four :
Nat.card ((⟨0, 0, 0, -1, 0⟩ : WeierstrassCurve ℚ).toAffine.Point) = 4 := by
sorry
end LefebvreVariations