The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V28. Algebraic geometry

Mathlib.AlgebraicGeometry.EllipticCurve.Affine.Basic

50 declarations. Mathlib docs · Source

Weierstrass equations and the nonsingular condition in affine coordinates

Let W be a Weierstrass curve over a commutative ring R with coefficients aᵢ. An affine point on W is a tuple (x, y) of elements in R satisfying the Weierstrass equation W(X, Y) = 0 in affine coordinates, where W(X, Y) := Y² + a₁XY + a₃Y - (X³ + a₂X² + a₄X + a₆). It is nonsingular if its partial derivatives W_X(x, y) and W_Y(x, y) do not vanish simultaneously.

This file defines polynomials associated to Weierstrass equations and the nonsingular condition in affine coordinates. The group law on the actual type of nonsingular points in affine coordinates will be defined in Mathlib/AlgebraicGeometry/EllipticCurve/Affine/Point.lean, based on the formulae for group operations in Mathlib/AlgebraicGeometry/EllipticCurve/Affine/Formula.lean.

Main definitions

  • WeierstrassCurve.Affine.Equation: the Weierstrass equation in affine coordinates.
  • WeierstrassCurve.Affine.Nonsingular: the nonsingular condition in affine coordinates.

Main statements

  • WeierstrassCurve.Affine.equation_iff_nonsingular: an elliptic curve in affine coordinates is nonsingular at every point.

Implementation notes

All definitions and lemmas for Weierstrass curves in affine coordinates live in the namespace WeierstrassCurve.Affine to distinguish them from those in other coordinates. This is simply an abbreviation for WeierstrassCurve that can be converted using WeierstrassCurve.toAffine.

References

[J Silverman, The Arithmetic of Elliptic Curves][silverman2009]

Tags

elliptic curve, affine, Weierstrass equation, nonsingular

Affine coordinates

Weierstrass equations in affine coordinates

The nonsingular condition in affine coordinates

Maps and base changes

abbrev WeierstrassCurve.Affine E1 #

Type r → Type r

An abbreviation for a Weierstrass curve in affine coordinates.

abbrev WeierstrassCurve.toAffine E1 #

{R : Type r} → WeierstrassCurve R → WeierstrassCurve.Affine R

The conversion from a Weierstrass curve to affine coordinates.

def WeierstrassCurve.Affine.polynomial E1 #

{R : Type r} → [inst : CommRing R] → WeierstrassCurve.Affine R → Polynomial (Polynomial R)

The polynomial W(X, Y) := Y² + a₁XY + a₃Y - (X³ + a₂X² + a₄X + a₆) associated to a Weierstrass curve W over a ring R in affine coordinates.

For ease of polynomial manipulation, this is represented as a term of type R[X][X], where the inner variable represents X and the outer variable represents Y. For clarity, the alternative notations Y and R[X][Y] are provided in the Polynomial.Bivariate scope to represent the outer variable and the bivariate polynomial ring R[X][X] respectively.

theorem WeierstrassCurve.Affine.polynomial_eq E0 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R},
  W.polynomial =
    { a := 0, b := 1, c := { a := 0, b := 0, c := W.a₁, d := W.a₃ }.toPoly,
        d := { a := -1, b := -W.a₂, c := -W.a₄, d := -W.a₆ }.toPoly }.toPoly

theorem WeierstrassCurve.Affine.polynomial_ne_zero E1 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} [Nontrivial R], W.polynomial ≠ 0

theorem WeierstrassCurve.Affine.degree_polynomial E0 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} [Nontrivial R], W.polynomial.degree = 2

theorem WeierstrassCurve.Affine.natDegree_polynomial E0 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} [Nontrivial R], W.polynomial.natDegree = 2

theorem WeierstrassCurve.Affine.monic_polynomial E1 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R}, W.polynomial.Monic

theorem WeierstrassCurve.Affine.irreducible_polynomial E1 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} [IsDomain R], Irreducible W.polynomial

theorem WeierstrassCurve.Affine.evalEval_polynomial E1 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} (x y : R),
  Polynomial.evalEval x y W.polynomial = y ^ 2 + W.a₁ * x * y + W.a₃ * y - (x ^ 3 + W.a₂ * x ^ 2 + W.a₄ * x + W.a₆)

theorem WeierstrassCurve.Affine.evalEval_polynomial_zero E0 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R}, Polynomial.evalEval 0 0 W.polynomial = -W.a₆

def WeierstrassCurve.Affine.Equation E3 #

{R : Type r} → [CommRing R] → WeierstrassCurve.Affine R → R → R → Prop

The proposition that an affine point (x, y) lies in a Weierstrass curve W.

In other words, it satisfies the Weierstrass equation W(X, Y) = 0.

theorem WeierstrassCurve.Affine.equation_iff' E1 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} (x y : R),
  W.Equation x y ↔ y ^ 2 + W.a₁ * x * y + W.a₃ * y - (x ^ 3 + W.a₂ * x ^ 2 + W.a₄ * x + W.a₆) = 0

theorem WeierstrassCurve.Affine.equation_iff E0 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} (x y : R),
  W.Equation x y ↔ y ^ 2 + W.a₁ * x * y + W.a₃ * y = x ^ 3 + W.a₂ * x ^ 2 + W.a₄ * x + W.a₆

theorem WeierstrassCurve.Affine.equation_zero E0 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R}, W.Equation 0 0 ↔ W.a₆ = 0

theorem WeierstrassCurve.Affine.equation_iff_variableChange E1 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} (x y : R),
  W.Equation x y ↔ (WeierstrassCurve.toAffine ({ u := 1, r := x, s := 0, t := y } • W)).Equation 0 0

def WeierstrassCurve.Affine.polynomialX E1 #

{R : Type r} → [inst : CommRing R] → WeierstrassCurve.Affine R → Polynomial (Polynomial R)

The partial derivative W_X(X, Y) with respect to X of the polynomial W(X, Y) associated to a Weierstrass curve W in affine coordinates.

theorem WeierstrassCurve.Affine.evalEval_polynomialX E1 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} (x y : R),
  Polynomial.evalEval x y W.polynomialX = W.a₁ * y - (3 * x ^ 2 + 2 * W.a₂ * x + W.a₄)

theorem WeierstrassCurve.Affine.evalEval_polynomialX_zero E0 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R}, Polynomial.evalEval 0 0 W.polynomialX = -W.a₄

def WeierstrassCurve.Affine.polynomialY E1 #

{R : Type r} → [inst : CommRing R] → WeierstrassCurve.Affine R → Polynomial (Polynomial R)

The partial derivative W_Y(X, Y) with respect to Y of the polynomial W(X, Y) associated to a Weierstrass curve W in affine coordinates.

theorem WeierstrassCurve.Affine.evalEval_polynomialY E1 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} (x y : R),
  Polynomial.evalEval x y W.polynomialY = 2 * y + W.a₁ * x + W.a₃

theorem WeierstrassCurve.Affine.evalEval_polynomialY_zero E0 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R}, Polynomial.evalEval 0 0 W.polynomialY = W.a₃

def WeierstrassCurve.Affine.Nonsingular E3 #

{R : Type r} → [CommRing R] → WeierstrassCurve.Affine R → R → R → Prop

The proposition that an affine point (x, y) on a Weierstrass curve W is nonsingular.

In other words, either W_X(x, y) ≠ 0 or W_Y(x, y) ≠ 0.

Note that this definition is only mathematically accurate for fields.

theorem WeierstrassCurve.Affine.nonsingular_iff' E1 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} (x y : R),
  W.Nonsingular x y ↔ W.Equation x y ∧ (W.a₁ * y - (3 * x ^ 2 + 2 * W.a₂ * x + W.a₄) ≠ 0 ∨ 2 * y + W.a₁ * x + W.a₃ ≠ 0)

theorem WeierstrassCurve.Affine.nonsingular_iff E0 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} (x y : R),
  W.Nonsingular x y ↔ W.Equation x y ∧ (W.a₁ * y ≠ 3 * x ^ 2 + 2 * W.a₂ * x + W.a₄ ∨ y ≠ -y - W.a₁ * x - W.a₃)

theorem WeierstrassCurve.Affine.nonsingular_zero E0 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R}, W.Nonsingular 0 0 ↔ W.a₆ = 0 ∧ (W.a₃ ≠ 0 ∨ W.a₄ ≠ 0)

theorem WeierstrassCurve.Affine.nonsingular_iff_variableChange E1 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} (x y : R),
  W.Nonsingular x y ↔ (WeierstrassCurve.toAffine ({ u := 1, r := x, s := 0, t := y } • W)).Nonsingular 0 0

theorem WeierstrassCurve.Affine.equation_iff_nonsingular_of_Δ_ne_zero E1 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} {x y : R},
  WeierstrassCurve.Δ W ≠ 0 → (W.Equation x y ↔ W.Nonsingular x y)

theorem WeierstrassCurve.Affine.equation_iff_nonsingular E3 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} [Nontrivial R] [WeierstrassCurve.IsElliptic W]
  {x y : R}, W.Equation x y ↔ W.Nonsingular x y

abbrev WeierstrassCurve.Affine.map E1 #

{R : Type r} →
  [inst : CommRing R] →
    WeierstrassCurve.Affine R → {S : Type s} → [inst_1 : CommRing S] → (R →+* S) → WeierstrassCurve.Affine S

The Weierstrass curve in affine coordinates mapped over a ring homomorphism f : R →+* S.

abbrev WeierstrassCurve.Affine.baseChange E1 #

{R : Type r} →
  [inst : CommRing R] →
    WeierstrassCurve.Affine R → (S : Type s) → [inst_1 : CommRing S] → [Algebra R S] → WeierstrassCurve.Affine S

The Weierstrass curve in affine coordinates base changed to an algebra S over R.

theorem WeierstrassCurve.Affine.baseChange_a₄ E0 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) (S : Type s) [inst_1 : CommRing S]
  [inst_2 : Algebra R S], (W.baseChange S).a₄ = (algebraMap R S) W.a₄

theorem WeierstrassCurve.Affine.baseChange_a₆ E0 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) (S : Type s) [inst_1 : CommRing S]
  [inst_2 : Algebra R S], (W.baseChange S).a₆ = (algebraMap R S) W.a₆

theorem WeierstrassCurve.Affine.baseChange_a₃ E0 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) (S : Type s) [inst_1 : CommRing S]
  [inst_2 : Algebra R S], (W.baseChange S).a₃ = (algebraMap R S) W.a₃

theorem WeierstrassCurve.Affine.baseChange_a₁ E0 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) (S : Type s) [inst_1 : CommRing S]
  [inst_2 : Algebra R S], (W.baseChange S).a₁ = (algebraMap R S) W.a₁

theorem WeierstrassCurve.Affine.baseChange_a₂ E0 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) (S : Type s) [inst_1 : CommRing S]
  [inst_2 : Algebra R S], (W.baseChange S).a₂ = (algebraMap R S) W.a₂

def WeierstrassCurve.Affine.«term_⁄_» E1 #

Lean.TrailingParserDescr

The notation \textf for WeierstrassCurve.Affine.baseChange W S.

theorem WeierstrassCurve.Affine.map_polynomial E0 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) {S : Type s} [inst_1 : CommRing S] (f : R →+* S),
  (W.map f).polynomial = Polynomial.map (Polynomial.mapRingHom f) W.polynomial

theorem WeierstrassCurve.Affine.Equation.map E1 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} {S : Type s} [inst_1 : CommRing S] (f : R →+* S)
  {x y : R}, W.Equation x y → (W.map f).Equation (f x) (f y)

theorem WeierstrassCurve.Affine.map_equation E0 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) {S : Type s} [inst_1 : CommRing S] {f : R →+* S},
  Function.Injective ⇑f → ∀ (x y : R), (W.map f).Equation (f x) (f y) ↔ W.Equation x y

theorem WeierstrassCurve.Affine.map_polynomialX E0 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) {S : Type s} [inst_1 : CommRing S] (f : R →+* S),
  (W.map f).polynomialX = Polynomial.map (Polynomial.mapRingHom f) W.polynomialX

theorem WeierstrassCurve.Affine.map_polynomialY E0 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) {S : Type s} [inst_1 : CommRing S] (f : R →+* S),
  (W.map f).polynomialY = Polynomial.map (Polynomial.mapRingHom f) W.polynomialY

theorem WeierstrassCurve.Affine.map_nonsingular E0 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) {S : Type s} [inst_1 : CommRing S] {f : R →+* S},
  Function.Injective ⇑f → ∀ (x y : R), (W.map f).Nonsingular (f x) (f y) ↔ W.Nonsingular x y

theorem WeierstrassCurve.Affine.map_baseChange E0 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) {S : Type s} [inst_1 : CommRing S] {A : Type u}
  [inst_2 : CommRing A] {B : Type v} [inst_3 : CommRing B] [inst_4 : Algebra R S] [inst_5 : Algebra R A]
  [inst_6 : Algebra S A] [IsScalarTower R S A] [inst_8 : Algebra R B] [inst_9 : Algebra S B] [IsScalarTower R S B]
  (f : A →ₐ[S] B), (W.baseChange A).map ↑f = W.baseChange B

theorem WeierstrassCurve.Affine.baseChange_polynomial E1 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) {S : Type s} [inst_1 : CommRing S] {A : Type u}
  [inst_2 : CommRing A] {B : Type v} [inst_3 : CommRing B] [inst_4 : Algebra R S] [inst_5 : Algebra R A]
  [inst_6 : Algebra S A] [IsScalarTower R S A] [inst_8 : Algebra R B] [inst_9 : Algebra S B] [IsScalarTower R S B]
  (f : A →ₐ[S] B), (W.baseChange B).polynomial = Polynomial.map (Polynomial.mapRingHom ↑f) (W.baseChange A).polynomial

theorem WeierstrassCurve.Affine.Equation.baseChange E1 #

∀ {R : Type r} [inst : CommRing R] {W : WeierstrassCurve.Affine R} {S : Type s} [inst_1 : CommRing S] {A : Type u}
  [inst_2 : CommRing A] {B : Type v} [inst_3 : CommRing B] [inst_4 : Algebra R S] [inst_5 : Algebra R A]
  [inst_6 : Algebra S A] [IsScalarTower R S A] [inst_8 : Algebra R B] [inst_9 : Algebra S B] [IsScalarTower R S B]
  (f : A →ₐ[S] B) {x y : A}, (W.baseChange A).Equation x y → (W.baseChange B).Equation (f x) (f y)

theorem WeierstrassCurve.Affine.baseChange_equation E1 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) {S : Type s} [inst_1 : CommRing S] {A : Type u}
  [inst_2 : CommRing A] {B : Type v} [inst_3 : CommRing B] [inst_4 : Algebra R S] [inst_5 : Algebra R A]
  [inst_6 : Algebra S A] [IsScalarTower R S A] [inst_8 : Algebra R B] [inst_9 : Algebra S B] [IsScalarTower R S B]
  {f : A →ₐ[S] B},
  Function.Injective ⇑f → ∀ (x y : A), (W.baseChange B).Equation (f x) (f y) ↔ (W.baseChange A).Equation x y

theorem WeierstrassCurve.Affine.baseChange_polynomialX E1 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) {S : Type s} [inst_1 : CommRing S] {A : Type u}
  [inst_2 : CommRing A] {B : Type v} [inst_3 : CommRing B] [inst_4 : Algebra R S] [inst_5 : Algebra R A]
  [inst_6 : Algebra S A] [IsScalarTower R S A] [inst_8 : Algebra R B] [inst_9 : Algebra S B] [IsScalarTower R S B]
  (f : A →ₐ[S] B), (W.baseChange B).polynomialX = Polynomial.map (Polynomial.mapRingHom ↑f) (W.baseChange A).polynomialX

theorem WeierstrassCurve.Affine.baseChange_polynomialY E1 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) {S : Type s} [inst_1 : CommRing S] {A : Type u}
  [inst_2 : CommRing A] {B : Type v} [inst_3 : CommRing B] [inst_4 : Algebra R S] [inst_5 : Algebra R A]
  [inst_6 : Algebra S A] [IsScalarTower R S A] [inst_8 : Algebra R B] [inst_9 : Algebra S B] [IsScalarTower R S B]
  (f : A →ₐ[S] B), (W.baseChange B).polynomialY = Polynomial.map (Polynomial.mapRingHom ↑f) (W.baseChange A).polynomialY

theorem WeierstrassCurve.Affine.baseChange_nonsingular E1 #

∀ {R : Type r} [inst : CommRing R] (W : WeierstrassCurve.Affine R) {S : Type s} [inst_1 : CommRing S] {A : Type u}
  [inst_2 : CommRing A] {B : Type v} [inst_3 : CommRing B] [inst_4 : Algebra R S] [inst_5 : Algebra R A]
  [inst_6 : Algebra S A] [IsScalarTower R S A] [inst_8 : Algebra R B] [inst_9 : Algebra S B] [IsScalarTower R S B]
  {f : A →ₐ[S] B},
  Function.Injective ⇑f → ∀ (x y : A), (W.baseChange B).Nonsingular (f x) (f y) ↔ (W.baseChange A).Nonsingular x y