The points of an elliptic curve form an abelian group
ProvedFamousTheorems.elliptic_curve_point_group_law_7bThe points of an elliptic curve form an abelian group. Let be a Weierstrass curve over a field and let be its nonsingular -points together with the point at infinity . The chord–tangent addition law on is associative and commutative, and every point has an inverse with . So is an abelian group with identity .
The group law is at the heart of the arithmetic of elliptic curves: the Mordell–Weil theorem, the Birch and Swinnerton-Dyer conjecture, elliptic curve cryptography and Lenstra's factorization method are all about this group. Commutativity is clear from the construction, but associativity is not; classical proofs use the Cayley–Bacharach theorem or long computations. Mathlib identifies the group of points with the class group of the coordinate ring.
Formalization note. The group structure is Mathlib's instance WeierstrassCurve.Affine.Point.instAddCommGroup, and the statement records the associativity, commutativity and inverse laws of the addition on W.Point. For an elliptic curve every point of the curve is nonsingular, so W.Point is the usual group . The addition, zero and negation are the explicit chord–tangent formulas defined in Mathlib, so the statement is about that concrete operation.
import Mathlib
namespace FamousTheorems
theorem elliptic_curve_point_group_law_7b {F : Type*} [Field F] [DecidableEq F] {W : WeierstrassCurve.Affine F} (P Q R : W.Point) :
P + Q + R = P + (Q + R) ∧ P + Q = Q + P ∧ P + -P = 0 := by sorry
end FamousTheorems