The areas / V28. Algebraic geometry
Mathlib.AlgebraicGeometry.EllipticCurve.Affine.Point
144 declarations. Mathlib docs Β· Source
Nonsingular points and the group law in affine coordinates
Let W be a Weierstrass curve over a field F given by a Weierstrass equation W(X, Y) = 0 in
affine coordinates. The type of nonsingular points in affine coordinates is an inductive, consisting
of the unique point at infinity π and nonsingular affine points (x, y). It can be endowed with a
group law, with π as the identity nonsingular point, which is uniquely determined by the formulae
in Mathlib/AlgebraicGeometry/EllipticCurve/Affine/Formula.lean.
With this description, there is an addition-preserving injection from the nonsingular points to the
ideal class group of the affine coordinate ring F[W] := F[X, Y] / β¨W(X, Y)β©. This is given by
mapping π to the trivial ideal class and a nonsingular affine point (x, y) to the ideal class of
the invertible ideal β¨X - x, Y - yβ©. Proving that this is well-defined and preserves addition
reduces to equalities of ideals checked in WeierstrassCurve.Affine.CoordinateRing.XYIdeal_neg_mul
and in WeierstrassCurve.Affine.CoordinateRing.XYIdeal_mul_XYIdeal via explicit ideal computations.
Now F[W] is a free rank two F[X]-algebra with basis {1, Y}, so every element of F[W] is of
the form p + qY for some p, q in F[X], and there is an algebra norm N : F[W] β F[X].
Injectivity can then be shown by computing the degree of such a norm N(p + qY) in two different
ways, which is done in WeierstrassCurve.Affine.CoordinateRing.degree_norm_smul_basis and in the
auxiliary lemmas in the proof of WeierstrassCurve.Affine.Point.instAddCommGroup.
This file defines the group law on nonsingular points in affine coordinates.
Main definitions
WeierstrassCurve.Affine.CoordinateRing: the affine coordinate ringF[W].WeierstrassCurve.Affine.CoordinateRing.basis: the power basis ofF[W]overF[X].WeierstrassCurve.Affine.Point: a nonsingular point in affine coordinates.WeierstrassCurve.Affine.Point.neg: the negation of a nonsingular point in affine coordinates.WeierstrassCurve.Affine.Point.add: the addition of a nonsingular point in affine coordinates.
Main statements
WeierstrassCurve.Affine.CoordinateRing.instIsDomainCoordinateRing: the affine coordinate ring of a Weierstrass curve is an integral domain.WeierstrassCurve.Affine.CoordinateRing.degree_norm_smul_basis: the degree of the norm of an element in the affine coordinate ring in terms of its power basis.WeierstrassCurve.Affine.Point.instAddCommGroup: the type of nonsingular points in affine coordinates forms an abelian group under addition.
References
- [J Silverman, The Arithmetic of Elliptic Curves][silverman2009]
- https://drops.dagstuhl.de/storage/00lipics/lipics-vol268-itp2023/LIPIcs.ITP.2023.6/LIPIcs.ITP.2023.6.pdf
Tags
elliptic curve, affine, point, group law, class group
The affine coordinate ring
Ideals in the affine coordinate ring
Norms on the affine coordinate ring
Nonsingular points in affine coordinates
Group law in affine coordinates
Maps and base changes
The x-coordinate map to βΒΉ
We define the map from points on an affine Weierstrass curve over R to the projective line
by producing a coordinate vector in Fin 2 β R that represents the projective point.
theorem WeierstrassCurve.Affine.Point.some.inj E1 #
β {R : Type r} {inst : CommRing R} {W' : WeierstrassCurve.Affine R} {x y : R} {h : W'.Nonsingular x y} {x_1 y_1 : R}
{h_1 : W'.Nonsingular x_1 y_1},
WeierstrassCurve.Affine.Point.some x y h = WeierstrassCurve.Affine.Point.some x_1 y_1 h_1 β x = x_1 β§ y = y_1
theorem WeierstrassCurve.Affine.CoordinateRing.XYIdeal'.congr_simp E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} {x x_1 : F} (e_x : x = x_1) {y y_1 : F} (e_y : y = y_1)
(h : W.Nonsingular x y),
WeierstrassCurve.Affine.CoordinateRing.XYIdeal' h = WeierstrassCurve.Affine.CoordinateRing.XYIdeal' β―
theorem WeierstrassCurve.Affine.Point.add.match_1.congr_eq_2 E1 #
β {F : Type u_1} [inst : Field F] {W : WeierstrassCurve.Affine F} (motive : W.Point β W.Point β Sort u_2)
(x x_1 : W.Point) (h_1 : (P : W.Point) β motive WeierstrassCurve.Affine.Point.zero P)
(h_2 : (P : W.Point) β motive P WeierstrassCurve.Affine.Point.zero)
(h_3 :
(xβ yβ : F) β
(hβ : W.Nonsingular xβ yβ) β
(xβ yβ : F) β
(hβ : W.Nonsingular xβ yβ) β
motive (WeierstrassCurve.Affine.Point.some xβ yβ hβ) (WeierstrassCurve.Affine.Point.some xβ yβ hβ))
(P : W.Point),
x = P β
x_1 = WeierstrassCurve.Affine.Point.zero β
(P = WeierstrassCurve.Affine.Point.zero β False) β
(match x, x_1 with
| WeierstrassCurve.Affine.Point.zero, P => h_1 P
| P, WeierstrassCurve.Affine.Point.zero => h_2 P
| WeierstrassCurve.Affine.Point.some xβ yβ hβ, WeierstrassCurve.Affine.Point.some xβ yβ hβ =>
h_3 xβ yβ hβ xβ yβ hβ) β
h_2 P
theorem WeierstrassCurve.Affine.Point.add.match_1.congr_eq_1 E1 #
β {F : Type u_1} [inst : Field F] {W : WeierstrassCurve.Affine F} (motive : W.Point β W.Point β Sort u_2)
(x x_1 : W.Point) (h_1 : (P : W.Point) β motive WeierstrassCurve.Affine.Point.zero P)
(h_2 : (P : W.Point) β motive P WeierstrassCurve.Affine.Point.zero)
(h_3 :
(xβ yβ : F) β
(hβ : W.Nonsingular xβ yβ) β
(xβ yβ : F) β
(hβ : W.Nonsingular xβ yβ) β
motive (WeierstrassCurve.Affine.Point.some xβ yβ hβ) (WeierstrassCurve.Affine.Point.some xβ yβ hβ))
(P : W.Point),
x = WeierstrassCurve.Affine.Point.zero β
x_1 = P β
(match x, x_1 with
| WeierstrassCurve.Affine.Point.zero, P => h_1 P
| P, WeierstrassCurve.Affine.Point.zero => h_2 P
| WeierstrassCurve.Affine.Point.some xβ yβ hβ, WeierstrassCurve.Affine.Point.some xβ yβ hβ =>
h_3 xβ yβ hβ xβ yβ hβ) β
h_1 P
theorem WeierstrassCurve.Affine.Point.neg.match_1.congr_eq_2 E1 #
β {R : Type u_1} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (motive : W'.Point β Sort u_2) (x : W'.Point)
(h_1 : Unit β motive WeierstrassCurve.Affine.Point.zero)
(h_2 : (x y : R) β (h : W'.Nonsingular x y) β motive (WeierstrassCurve.Affine.Point.some x y h)) (x_1 y : R)
(h : W'.Nonsingular x_1 y),
x = WeierstrassCurve.Affine.Point.some x_1 y h β
(match x with
| WeierstrassCurve.Affine.Point.zero => h_1 ()
| WeierstrassCurve.Affine.Point.some x y h => h_2 x y h) β
h_2 x_1 y h
theorem AdjoinRoot.powerBasis'.congr_simp E1 #
β {R : Type u_1} [inst : CommRing R] {g : Polynomial R} (hg : g.Monic),
AdjoinRoot.powerBasis' hg = AdjoinRoot.powerBasis' hg
theorem WeierstrassCurve.Affine.Point.add.match_1.congr_eq_3 E1 #
β {F : Type u_1} [inst : Field F] {W : WeierstrassCurve.Affine F} (motive : W.Point β W.Point β Sort u_2)
(x x_1 : W.Point) (h_1 : (P : W.Point) β motive WeierstrassCurve.Affine.Point.zero P)
(h_2 : (P : W.Point) β motive P WeierstrassCurve.Affine.Point.zero)
(h_3 :
(xβ yβ : F) β
(hβ : W.Nonsingular xβ yβ) β
(xβ yβ : F) β
(hβ : W.Nonsingular xβ yβ) β
motive (WeierstrassCurve.Affine.Point.some xβ yβ hβ) (WeierstrassCurve.Affine.Point.some xβ yβ hβ))
(xβ yβ : F) (hβ : W.Nonsingular xβ yβ) (xβ yβ : F) (hβ : W.Nonsingular xβ yβ),
x = WeierstrassCurve.Affine.Point.some xβ yβ hβ β
x_1 = WeierstrassCurve.Affine.Point.some xβ yβ hβ β
(match x, x_1 with
| WeierstrassCurve.Affine.Point.zero, P => h_1 P
| P, WeierstrassCurve.Affine.Point.zero => h_2 P
| WeierstrassCurve.Affine.Point.some xβ yβ hβ, WeierstrassCurve.Affine.Point.some xβ yβ hβ =>
h_3 xβ yβ hβ xβ yβ hβ) β
h_3 xβ yβ hβ xβ yβ hβ
abbrev WeierstrassCurve.Affine.Point.ctorElimType E1 #
{R : Type r} β
[inst : CommRing R] β
{W' : WeierstrassCurve.Affine R} β {motive : W'.Point β Sort u} β β β Sort (max 1 u (imax (r + 1) (r + 1) u))
theorem WeierstrassCurve.Affine.Point.some.injEq E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (x y : R) (h : W'.Nonsingular x y) (x_1 y_1 : R)
(h_1 : W'.Nonsingular x_1 y_1),
(WeierstrassCurve.Affine.Point.some x y h = WeierstrassCurve.Affine.Point.some x_1 y_1 h_1) = (x = x_1 β§ y = y_1)
def WeierstrassCurve.Affine.Point.ctorIdx E1 #
{R : Type r} β {inst : CommRing R} β {W' : WeierstrassCurve.Affine R} β W'.Point β β
theorem WeierstrassCurve.Affine.Point.neg.match_1.congr_eq_1 E1 #
β {R : Type u_1} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (motive : W'.Point β Sort u_2) (x : W'.Point)
(h_1 : Unit β motive WeierstrassCurve.Affine.Point.zero)
(h_2 : (x y : R) β (h : W'.Nonsingular x y) β motive (WeierstrassCurve.Affine.Point.some x y h)),
x = WeierstrassCurve.Affine.Point.zero β
(match x with
| WeierstrassCurve.Affine.Point.zero => h_1 ()
| WeierstrassCurve.Affine.Point.some x y h => h_2 x y h) β
h_1 ()
theorem WeierstrassCurve.Affine.Point.mk.congr_simp E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [inst_1 : Nontrivial R]
[inst_2 : WeierstrassCurve.IsElliptic W'] {x x_1 : R} (e_x : x = x_1) {y y_1 : R} (e_y : y = y_1)
(h : W'.Equation x y), WeierstrassCurve.Affine.Point.mk h = WeierstrassCurve.Affine.Point.mk β―
theorem WeierstrassCurve.Affine.Point.some.congr_simp E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (x x_1 : R) (e_x : x = x_1) (y y_1 : R)
(e_y : y = y_1) (h : W'.Nonsingular x y),
WeierstrassCurve.Affine.Point.some x y h = WeierstrassCurve.Affine.Point.some x_1 y_1 β―
abbrev WeierstrassCurve.Affine.CoordinateRing E3 #
{R : Type r} β [CommRing R] β WeierstrassCurve.Affine R β Type r
The affine coordinate ring R[W] := R[X, Y] / β¨W(X, Y)β© of a Weierstrass curve W.
abbrev WeierstrassCurve.Affine.FunctionField E1 #
{R : Type r} β [CommRing R] β WeierstrassCurve.Affine R β Type r
The function field R(W) := Frac(R[W]) of a Weierstrass curve W.
instance WeierstrassCurve.Affine.CoordinateRing.instAlgebra E0 #
{R : Type r} β [inst : CommRing R] β {W' : WeierstrassCurve.Affine R} β Algebra R W'.CoordinateRing
instance WeierstrassCurve.Affine.CoordinateRing.instAlgebraPolynomial E0 #
{R : Type r} β [inst : CommRing R] β {W' : WeierstrassCurve.Affine R} β Algebra (Polynomial R) W'.CoordinateRing
instance WeierstrassCurve.Affine.CoordinateRing.instIsScalarTowerPolynomial E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R}, IsScalarTower R (Polynomial R) W'.CoordinateRing
instance WeierstrassCurve.Affine.CoordinateRing.instSubsingleton E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [Subsingleton R], Subsingleton W'.CoordinateRing
abbrev WeierstrassCurve.Affine.CoordinateRing.mk E1 #
{R : Type r} β [inst : CommRing R] β (W' : WeierstrassCurve.Affine R) β Polynomial (Polynomial R) β+* W'.CoordinateRing
The natural ring homomorphism mapping R[X][Y] to R[W].
def WeierstrassCurve.Affine.CoordinateRing.basis E3 #
{R : Type r} β
[inst : CommRing R] β (W' : WeierstrassCurve.Affine R) β Module.Basis (Fin 2) (Polynomial R) W'.CoordinateRing
The power basis {1, Y} for R[W] over R[X].
theorem WeierstrassCurve.Affine.CoordinateRing.basis_apply E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (n : Fin 2),
(WeierstrassCurve.Affine.CoordinateRing.basis W') n = (AdjoinRoot.powerBasis' β―).gen ^ βn
theorem WeierstrassCurve.Affine.CoordinateRing.basis_zero E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R},
(WeierstrassCurve.Affine.CoordinateRing.basis W') 0 = 1
theorem WeierstrassCurve.Affine.CoordinateRing.basis_one E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R},
(WeierstrassCurve.Affine.CoordinateRing.basis W') 1 = (WeierstrassCurve.Affine.CoordinateRing.mk W') Polynomial.X
theorem WeierstrassCurve.Affine.CoordinateRing.coe_basis E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R},
β(WeierstrassCurve.Affine.CoordinateRing.basis W') = ![1, (WeierstrassCurve.Affine.CoordinateRing.mk W') Polynomial.X]
instance WeierstrassCurve.Affine.CoordinateRing.instFreePolynomial E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R}, Module.Free (Polynomial R) W'.CoordinateRing
instance WeierstrassCurve.Affine.CoordinateRing.instFree E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R}, Module.Free R W'.CoordinateRing
instance WeierstrassCurve.Affine.CoordinateRing.instNontrivial E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [Nontrivial R], Nontrivial W'.CoordinateRing
instance WeierstrassCurve.Affine.CoordinateRing.instFaithfulSMulPolynomial E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R}, FaithfulSMul (Polynomial R) W'.CoordinateRing
instance WeierstrassCurve.Affine.CoordinateRing.instFaithfulSMul E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R}, FaithfulSMul R W'.CoordinateRing
theorem WeierstrassCurve.Affine.CoordinateRing.smul E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (x : Polynomial R) (y : W'.CoordinateRing),
x β’ y = (WeierstrassCurve.Affine.CoordinateRing.mk W') (Polynomial.C x) * y
theorem WeierstrassCurve.Affine.CoordinateRing.smul_basis_eq_zero E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} {p q : Polynomial R},
p β’ 1 + q β’ (WeierstrassCurve.Affine.CoordinateRing.mk W') Polynomial.X = 0 β p = 0 β§ q = 0
theorem WeierstrassCurve.Affine.CoordinateRing.exists_smul_basis_eq E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (x : W'.CoordinateRing),
β p q, p β’ 1 + q β’ (WeierstrassCurve.Affine.CoordinateRing.mk W') Polynomial.X = x
theorem WeierstrassCurve.Affine.CoordinateRing.smul_basis_mul_C E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (y p q : Polynomial R),
(p β’ 1 + q β’ (WeierstrassCurve.Affine.CoordinateRing.mk W') Polynomial.X) *
(WeierstrassCurve.Affine.CoordinateRing.mk W') (Polynomial.C y) =
(p * y) β’ 1 + (q * y) β’ (WeierstrassCurve.Affine.CoordinateRing.mk W') Polynomial.X
theorem WeierstrassCurve.Affine.CoordinateRing.smul_basis_mul_Y E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (p q : Polynomial R),
(p β’ 1 + q β’ (WeierstrassCurve.Affine.CoordinateRing.mk W') Polynomial.X) *
(WeierstrassCurve.Affine.CoordinateRing.mk W') Polynomial.X =
(q *
(Polynomial.X ^ 3 + Polynomial.C W'.aβ * Polynomial.X ^ 2 + Polynomial.C W'.aβ * Polynomial.X +
Polynomial.C W'.aβ)) β’
1 +
(p - q * (Polynomial.C W'.aβ * Polynomial.X + Polynomial.C W'.aβ)) β’
(WeierstrassCurve.Affine.CoordinateRing.mk W') Polynomial.X
def WeierstrassCurve.Affine.CoordinateRing.map E1 #
{R : Type r} β
{S : Type s} β
[inst : CommRing R] β
[inst_1 : CommRing S] β
(W' : WeierstrassCurve.Affine R) β (f : R β+* S) β W'.CoordinateRing β+* (W'.map f).CoordinateRing
The ring homomorphism R[W] β+* S[W.map f] induced by a ring homomorphism f : R β+* S.
theorem WeierstrassCurve.Affine.CoordinateRing.map_mk E0 #
β {R : Type r} {S : Type s} [inst : CommRing R] [inst_1 : CommRing S] {W' : WeierstrassCurve.Affine R} (f : R β+* S)
(x : Polynomial (Polynomial R)),
(WeierstrassCurve.Affine.CoordinateRing.map W' f) ((WeierstrassCurve.Affine.CoordinateRing.mk W') x) =
(WeierstrassCurve.Affine.CoordinateRing.mk (W'.map f)) (Polynomial.map (Polynomial.mapRingHom f) x)
theorem WeierstrassCurve.Affine.CoordinateRing.map_smul E0 #
β {R : Type r} {S : Type s} [inst : CommRing R] [inst_1 : CommRing S] {W' : WeierstrassCurve.Affine R} (f : R β+* S)
(x : Polynomial R) (y : W'.CoordinateRing),
(WeierstrassCurve.Affine.CoordinateRing.map W' f) (x β’ y) =
Polynomial.map f x β’ (WeierstrassCurve.Affine.CoordinateRing.map W' f) y
theorem WeierstrassCurve.Affine.CoordinateRing.map_injective E0 #
β {R : Type r} {S : Type s} [inst : CommRing R] [inst_1 : CommRing S] {W' : WeierstrassCurve.Affine R} {f : R β+* S},
Function.Injective βf β Function.Injective β(WeierstrassCurve.Affine.CoordinateRing.map W' f)
instance WeierstrassCurve.Affine.CoordinateRing.instIsDomain E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [IsDomain R], IsDomain W'.CoordinateRing
def WeierstrassCurve.Affine.CoordinateRing.XClass E1 #
{R : Type r} β [inst : CommRing R] β (W' : WeierstrassCurve.Affine R) β R β W'.CoordinateRing
The class of the element X - x in R[W] for some x in R.
theorem WeierstrassCurve.Affine.CoordinateRing.XClass_ne_zero E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [Nontrivial R] (x : R),
WeierstrassCurve.Affine.CoordinateRing.XClass W' x β 0
def WeierstrassCurve.Affine.CoordinateRing.YClass E1 #
{R : Type r} β [inst : CommRing R] β (W' : WeierstrassCurve.Affine R) β Polynomial R β W'.CoordinateRing
The class of the element Y - y(X) in R[W] for some y(X) in R[X].
theorem WeierstrassCurve.Affine.CoordinateRing.YClass_ne_zero E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [Nontrivial R] (y : Polynomial R),
WeierstrassCurve.Affine.CoordinateRing.YClass W' y β 0
theorem WeierstrassCurve.Affine.CoordinateRing.C_addPolynomial E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (x y β : R),
(WeierstrassCurve.Affine.CoordinateRing.mk W') (Polynomial.C (W'.addPolynomial x y β)) =
(WeierstrassCurve.Affine.CoordinateRing.mk W')
((Polynomial.X - Polynomial.C (WeierstrassCurve.Affine.linePolynomial x y β)) *
(W'.negPolynomial - Polynomial.C (WeierstrassCurve.Affine.linePolynomial x y β)))
theorem WeierstrassCurve.Affine.CoordinateRing.C_addPolynomial_slope E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xβ xβ yβ yβ : F},
W.Equation xβ yβ β
W.Equation xβ yβ β
Β¬(xβ = xβ β§ yβ = W.negY xβ yβ) β
(WeierstrassCurve.Affine.CoordinateRing.mk W) (Polynomial.C (W.addPolynomial xβ yβ (W.slope xβ xβ yβ yβ))) =
-(WeierstrassCurve.Affine.CoordinateRing.XClass W xβ * WeierstrassCurve.Affine.CoordinateRing.XClass W xβ *
WeierstrassCurve.Affine.CoordinateRing.XClass W (W.addX xβ xβ (W.slope xβ xβ yβ yβ)))
def WeierstrassCurve.Affine.CoordinateRing.XIdeal E1 #
{R : Type r} β [inst : CommRing R] β (W' : WeierstrassCurve.Affine R) β R β Ideal W'.CoordinateRing
The ideal β¨X - xβ© of R[W] for some x in R.
def WeierstrassCurve.Affine.CoordinateRing.YIdeal E1 #
{R : Type r} β [inst : CommRing R] β (W' : WeierstrassCurve.Affine R) β Polynomial R β Ideal W'.CoordinateRing
The ideal β¨Y - y(X)β© of R[W] for some y(X) in R[X].
def WeierstrassCurve.Affine.CoordinateRing.XYIdeal E1 #
{R : Type r} β [inst : CommRing R] β (W' : WeierstrassCurve.Affine R) β R β Polynomial R β Ideal W'.CoordinateRing
The ideal β¨X - x, Y - y(X)β© of R[W] for some x in R and y(X) in R[X].
def WeierstrassCurve.Affine.CoordinateRing.quotientXYIdealEquiv E1 #
{R : Type r} β
[inst : CommRing R] β
{W' : WeierstrassCurve.Affine R} β
{x : R} β
{y : Polynomial R} β
Polynomial.eval x (Polynomial.eval y W'.polynomial) = 0 β
(W'.CoordinateRing β§Έ WeierstrassCurve.Affine.CoordinateRing.XYIdeal W' x y) ββ[R] R
The R-algebra isomorphism from R[W] / β¨X - x, Y - y(X)β© to R obtained by evaluation at
some y(X) in R[X] and at some x in R provided that W(x, y(x)) = 0.
theorem WeierstrassCurve.Affine.CoordinateRing.XYIdeal_add_eq E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (xβ xβ yβ β : R),
WeierstrassCurve.Affine.CoordinateRing.XYIdeal W' (W'.addX xβ xβ β) (Polynomial.C (W'.addY xβ xβ yβ β)) =
Ideal.span
{(WeierstrassCurve.Affine.CoordinateRing.mk W')
(W'.negPolynomial - Polynomial.C (WeierstrassCurve.Affine.linePolynomial xβ yβ β))} β
WeierstrassCurve.Affine.CoordinateRing.XIdeal W' (W'.addX xβ xβ β)
theorem WeierstrassCurve.Affine.CoordinateRing.XYIdeal_eqβ E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (x y β : R),
WeierstrassCurve.Affine.CoordinateRing.XYIdeal W' x (Polynomial.C y) =
WeierstrassCurve.Affine.CoordinateRing.XYIdeal W' x (WeierstrassCurve.Affine.linePolynomial x y β)
theorem WeierstrassCurve.Affine.CoordinateRing.XYIdeal_eqβ E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xβ xβ yβ yβ : F},
W.Equation xβ yβ β
W.Equation xβ yβ β
Β¬(xβ = xβ β§ yβ = W.negY xβ yβ) β
WeierstrassCurve.Affine.CoordinateRing.XYIdeal W xβ (Polynomial.C yβ) =
WeierstrassCurve.Affine.CoordinateRing.XYIdeal W xβ
(WeierstrassCurve.Affine.linePolynomial xβ yβ (W.slope xβ xβ yβ yβ))
theorem WeierstrassCurve.Affine.CoordinateRing.XYIdeal_neg_mul E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} {x y : F},
W.Nonsingular x y β
WeierstrassCurve.Affine.CoordinateRing.XYIdeal W x (Polynomial.C (W.negY x y)) *
WeierstrassCurve.Affine.CoordinateRing.XYIdeal W x (Polynomial.C y) =
WeierstrassCurve.Affine.CoordinateRing.XIdeal W x
theorem WeierstrassCurve.Affine.CoordinateRing.XYIdeal_mul_XYIdeal E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xβ xβ yβ yβ : F},
W.Equation xβ yβ β
W.Equation xβ yβ β
Β¬(xβ = xβ β§ yβ = W.negY xβ yβ) β
WeierstrassCurve.Affine.CoordinateRing.XIdeal W (W.addX xβ xβ (W.slope xβ xβ yβ yβ)) *
(WeierstrassCurve.Affine.CoordinateRing.XYIdeal W xβ (Polynomial.C yβ) *
WeierstrassCurve.Affine.CoordinateRing.XYIdeal W xβ (Polynomial.C yβ)) =
WeierstrassCurve.Affine.CoordinateRing.YIdeal W
(WeierstrassCurve.Affine.linePolynomial xβ yβ (W.slope xβ xβ yβ yβ)) *
WeierstrassCurve.Affine.CoordinateRing.XYIdeal W (W.addX xβ xβ (W.slope xβ xβ yβ yβ))
(Polynomial.C (W.addY xβ xβ yβ (W.slope xβ xβ yβ yβ)))
def WeierstrassCurve.Affine.CoordinateRing.XYIdeal' E1 #
{F : Type u} β
[inst : Field F] β
{W : WeierstrassCurve.Affine F} β
{x y : F} β W.Nonsingular x y β (FractionalIdeal (nonZeroDivisors W.CoordinateRing) W.FunctionField)Λ£
The non-zero fractional ideal β¨X - x, Y - yβ© of F(W) for some x and y in F.
theorem WeierstrassCurve.Affine.CoordinateRing.XYIdeal'_eq E0 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} {x y : F} (h : W.Nonsingular x y),
β(WeierstrassCurve.Affine.CoordinateRing.XYIdeal' h) =
β(WeierstrassCurve.Affine.CoordinateRing.XYIdeal W x (Polynomial.C y))
theorem WeierstrassCurve.Affine.CoordinateRing.mk_XYIdeal'_neg_mul E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} {x y : F} (h : W.Nonsingular x y),
(ClassGroup.mk W.FunctionField) (WeierstrassCurve.Affine.CoordinateRing.XYIdeal' β―) *
(ClassGroup.mk W.FunctionField) (WeierstrassCurve.Affine.CoordinateRing.XYIdeal' h) =
1
theorem WeierstrassCurve.Affine.CoordinateRing.mk_XYIdeal'_mul_mk_XYIdeal' E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xβ xβ yβ yβ : F}
(hβ : W.Nonsingular xβ yβ) (hβ : W.Nonsingular xβ yβ) (hxy : Β¬(xβ = xβ β§ yβ = W.negY xβ yβ)),
(ClassGroup.mk W.FunctionField) (WeierstrassCurve.Affine.CoordinateRing.XYIdeal' hβ) *
(ClassGroup.mk W.FunctionField) (WeierstrassCurve.Affine.CoordinateRing.XYIdeal' hβ) =
(ClassGroup.mk W.FunctionField) (WeierstrassCurve.Affine.CoordinateRing.XYIdeal' β―)
theorem WeierstrassCurve.Affine.CoordinateRing.norm_smul_basis E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (p q : Polynomial R),
(Algebra.norm (Polynomial R)) (p β’ 1 + q β’ (WeierstrassCurve.Affine.CoordinateRing.mk W') Polynomial.X) =
p ^ 2 - p * q * (Polynomial.C W'.aβ * Polynomial.X + Polynomial.C W'.aβ) -
q ^ 2 *
(Polynomial.X ^ 3 + Polynomial.C W'.aβ * Polynomial.X ^ 2 + Polynomial.C W'.aβ * Polynomial.X +
Polynomial.C W'.aβ)
theorem WeierstrassCurve.Affine.CoordinateRing.coe_norm_smul_basis E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (p q : Polynomial R),
(AdjoinRoot.of W'.polynomial)
((Algebra.norm (Polynomial R)) (p β’ 1 + q β’ (WeierstrassCurve.Affine.CoordinateRing.mk W') Polynomial.X)) =
(WeierstrassCurve.Affine.CoordinateRing.mk W')
((Polynomial.C p + Polynomial.C q * Polynomial.X) *
(Polynomial.C p +
Polynomial.C q * (-Polynomial.X - Polynomial.C (Polynomial.C W'.aβ * Polynomial.X + Polynomial.C W'.aβ))))
theorem WeierstrassCurve.Affine.CoordinateRing.degree_norm_smul_basis E3 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [IsDomain R] (p q : Polynomial R),
((Algebra.norm (Polynomial R)) (p β’ 1 + q β’ (WeierstrassCurve.Affine.CoordinateRing.mk W') Polynomial.X)).degree =
max (2 β’ p.degree) (2 β’ q.degree + 3)
theorem WeierstrassCurve.Affine.CoordinateRing.degree_norm_ne_one E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [IsDomain R] (x : W'.CoordinateRing),
((Algebra.norm (Polynomial R)) x).degree β 1
theorem WeierstrassCurve.Affine.CoordinateRing.natDegree_norm_ne_one E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [IsDomain R] (x : W'.CoordinateRing),
((Algebra.norm (Polynomial R)) x).natDegree β 1
inductive WeierstrassCurve.Affine.Point E3 #
{R : Type r} β [CommRing R] β WeierstrassCurve.Affine R β Type r
A nonsingular point on a Weierstrass curve W in affine coordinates. This is either the unique
point at infinity WeierstrassCurve.Affine.Point.zero or a nonsingular affine point
WeierstrassCurve.Affine.Point.some (x, y) satisfying the Weierstrass equation of W.
ctor WeierstrassCurve.Affine.Point.zero E0 #
{R : Type r} β [inst : CommRing R] β {W' : WeierstrassCurve.Affine R} β W'.Point
ctor WeierstrassCurve.Affine.Point.some E0 #
{R : Type r} β [inst : CommRing R] β {W' : WeierstrassCurve.Affine R} β (x y : R) β W'.Nonsingular x y β W'.Point
def WeierstrassCurve.Affine.instDecidableEqPoint.decEq E1 #
{R : Type u_1} β
{inst : CommRing R} β {W' : WeierstrassCurve.Affine R} β [DecidableEq R] β (x x_1 : W'.Point) β Decidable (x = x_1)
instance WeierstrassCurve.Affine.instDecidableEqPoint E0 #
{R : Type u_1} β {inst : CommRing R} β {W' : WeierstrassCurve.Affine R} β [DecidableEq R] β DecidableEq W'.Point
def WeierstrassCurve.Affine.nonsingularPointEquivSubtype E1 #
{R : Type r} β
[inst : CommRing R] β
{W' : WeierstrassCurve.Affine R} β
{p : W'.Point β Prop} β
p WeierstrassCurve.Affine.Point.zero β
{ P // p P } β
WithZero { xy // β (h : W'.Nonsingular xy.1 xy.2), p (WeierstrassCurve.Affine.Point.some xy.1 xy.2 h) }
The equivalence between the nonsingular points on a Weierstrass curve W in affine coordinates
satisfying a predicate and the set of pairs β¨x, yβ© satisfying W.Nonsingular x y with zero.
theorem WeierstrassCurve.Affine.nonsingularPointEquivSubtype_zero E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} {p : W'.Point β Prop}
(p0 : p WeierstrassCurve.Affine.Point.zero),
(WeierstrassCurve.Affine.nonsingularPointEquivSubtype p0) β¨WeierstrassCurve.Affine.Point.zero, p0β© = none
theorem WeierstrassCurve.Affine.nonsingularPointEquivSubtype_some E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} {x y : R} {h : W'.Nonsingular x y}
{p : W'.Point β Prop} (p0 : p WeierstrassCurve.Affine.Point.zero) (ph : p (WeierstrassCurve.Affine.Point.some x y h)),
(WeierstrassCurve.Affine.nonsingularPointEquivSubtype p0) β¨WeierstrassCurve.Affine.Point.some x y h, phβ© =
some β¨(x, y), β―β©
theorem WeierstrassCurve.Affine.nonsingularPointEquivSubtype_symm_none E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} {p : W'.Point β Prop}
(p0 : p WeierstrassCurve.Affine.Point.zero),
(WeierstrassCurve.Affine.nonsingularPointEquivSubtype p0).symm none = β¨WeierstrassCurve.Affine.Point.zero, p0β©
theorem WeierstrassCurve.Affine.nonsingularPointEquivSubtype_symm_some E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} {x y : R} {h : W'.Nonsingular x y}
{p : W'.Point β Prop} (p0 : p WeierstrassCurve.Affine.Point.zero) (ph : p (WeierstrassCurve.Affine.Point.some x y h)),
(WeierstrassCurve.Affine.nonsingularPointEquivSubtype p0).symm (some β¨(x, y), β―β©) =
β¨WeierstrassCurve.Affine.Point.some x y h, phβ©
def WeierstrassCurve.Affine.nonsingularPointEquiv E1 #
{R : Type r} β
[inst : CommRing R] β (W' : WeierstrassCurve.Affine R) β W'.Point β WithZero { xy // W'.Nonsingular xy.1 xy.2 }
The equivalence between the nonsingular points on a Weierstrass curve W in affine coordinates
and the set of pairs β¨x, yβ© satisfying W.Nonsingular x y with zero.
theorem WeierstrassCurve.Affine.nonsingularPointEquiv_zero E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R},
W'.nonsingularPointEquiv WeierstrassCurve.Affine.Point.zero = none
theorem WeierstrassCurve.Affine.nonsingularPointEquiv_some E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} {x y : R} (h : W'.Nonsingular x y),
W'.nonsingularPointEquiv (WeierstrassCurve.Affine.Point.some x y h) = some β¨(x, y), hβ©
theorem WeierstrassCurve.Affine.nonsingularPointEquiv_symm_none E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R},
W'.nonsingularPointEquiv.symm none = WeierstrassCurve.Affine.Point.zero
theorem WeierstrassCurve.Affine.nonsingularPointEquiv_symm_some E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} {x y : R} (h : W'.Nonsingular x y),
W'.nonsingularPointEquiv.symm (some β¨(x, y), hβ©) = WeierstrassCurve.Affine.Point.some x y h
def WeierstrassCurve.Affine.Point.mk E1 #
{R : Type r} β
[inst : CommRing R] β
{W' : WeierstrassCurve.Affine R} β
[Nontrivial R] β [WeierstrassCurve.IsElliptic W'] β {x y : R} β W'.Equation x y β W'.Point
A point on an elliptic curve W over R.
def WeierstrassCurve.Affine.pointEquivSubtype E1 #
{R : Type r} β
[inst : CommRing R] β
{W' : WeierstrassCurve.Affine R} β
[inst_1 : Nontrivial R] β
[inst_2 : WeierstrassCurve.IsElliptic W'] β
{p : W'.Point β Prop} β
p WeierstrassCurve.Affine.Point.zero β
{ P // p P } β WithZero { xy // β (h : W'.Equation xy.1 xy.2), p (WeierstrassCurve.Affine.Point.mk h) }
The equivalence between the points on an elliptic curve W in affine coordinates satisfying a
predicate and the set of pairs β¨x, yβ© satisfying W.Equation x y with zero.
theorem WeierstrassCurve.Affine.pointEquivSubtype_zero E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [inst_1 : Nontrivial R]
[inst_2 : WeierstrassCurve.IsElliptic W'] {p : W'.Point β Prop} (p0 : p WeierstrassCurve.Affine.Point.zero),
(WeierstrassCurve.Affine.pointEquivSubtype p0) β¨WeierstrassCurve.Affine.Point.zero, p0β© = none
theorem WeierstrassCurve.Affine.pointEquivSubtype_some E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [inst_1 : Nontrivial R]
[inst_2 : WeierstrassCurve.IsElliptic W'] {x y : R} {h : W'.Equation x y} {p : W'.Point β Prop}
(p0 : p WeierstrassCurve.Affine.Point.zero) (ph : p (WeierstrassCurve.Affine.Point.mk h)),
(WeierstrassCurve.Affine.pointEquivSubtype p0) β¨WeierstrassCurve.Affine.Point.mk h, phβ© = some β¨(x, y), β―β©
theorem WeierstrassCurve.Affine.pointEquivSubtype_symm_none E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [inst_1 : Nontrivial R]
[inst_2 : WeierstrassCurve.IsElliptic W'] {p : W'.Point β Prop} (p0 : p WeierstrassCurve.Affine.Point.zero),
(WeierstrassCurve.Affine.pointEquivSubtype p0).symm none = β¨WeierstrassCurve.Affine.Point.zero, p0β©
theorem WeierstrassCurve.Affine.pointEquivSubtype_symm_some E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [inst_1 : Nontrivial R]
[inst_2 : WeierstrassCurve.IsElliptic W'] {x y : R} {h : W'.Equation x y} {p : W'.Point β Prop}
(p0 : p WeierstrassCurve.Affine.Point.zero) (ph : p (WeierstrassCurve.Affine.Point.mk h)),
(WeierstrassCurve.Affine.pointEquivSubtype p0).symm (some β¨(x, y), β―β©) = β¨WeierstrassCurve.Affine.Point.mk h, phβ©
def WeierstrassCurve.Affine.pointEquiv E1 #
{R : Type r} β
[inst : CommRing R] β
(W' : WeierstrassCurve.Affine R) β
[Nontrivial R] β [WeierstrassCurve.IsElliptic W'] β W'.Point β WithZero { xy // W'.Equation xy.1 xy.2 }
The equivalence between the rational points on an elliptic curve E and the set of pairs
β¨x, yβ© satisfying E.Equation x y with zero.
theorem WeierstrassCurve.Affine.pointEquiv_zero E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [inst_1 : Nontrivial R]
[inst_2 : WeierstrassCurve.IsElliptic W'], W'.pointEquiv WeierstrassCurve.Affine.Point.zero = none
theorem WeierstrassCurve.Affine.pointEquiv_some E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [inst_1 : Nontrivial R]
[inst_2 : WeierstrassCurve.IsElliptic W'] {x y : R} (h : W'.Equation x y),
W'.pointEquiv (WeierstrassCurve.Affine.Point.mk h) = some β¨(x, y), hβ©
theorem WeierstrassCurve.Affine.pointEquiv_symm_none E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [inst_1 : Nontrivial R]
[inst_2 : WeierstrassCurve.IsElliptic W'], W'.pointEquiv.symm none = WeierstrassCurve.Affine.Point.zero
theorem WeierstrassCurve.Affine.pointEquiv_symm_some E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [inst_1 : Nontrivial R]
[inst_2 : WeierstrassCurve.IsElliptic W'] {x y : R} (h : W'.Equation x y),
W'.pointEquiv.symm (some β¨(x, y), hβ©) = WeierstrassCurve.Affine.Point.mk h
instance WeierstrassCurve.Affine.Point.instInhabited E0 #
{R : Type r} β [inst : CommRing R] β {W' : WeierstrassCurve.Affine R} β Inhabited W'.Point
instance WeierstrassCurve.Affine.Point.instZero E0 #
{R : Type r} β [inst : CommRing R] β {W' : WeierstrassCurve.Affine R} β Zero W'.Point
theorem WeierstrassCurve.Affine.Point.zero_def E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R}, 0 = WeierstrassCurve.Affine.Point.zero
theorem WeierstrassCurve.Affine.Point.some_ne_zero E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} {x y : R} (h : W'.Nonsingular x y),
WeierstrassCurve.Affine.Point.some x y h β 0
def WeierstrassCurve.Affine.Point.neg E3 #
{R : Type r} β [inst : CommRing R] β {W' : WeierstrassCurve.Affine R} β W'.Point β W'.Point
The negation of a nonsingular point on a Weierstrass curve in affine coordinates.
Given a nonsingular point P in affine coordinates, use -P instead of neg P.
instance WeierstrassCurve.Affine.Point.instNeg E0 #
{R : Type r} β [inst : CommRing R] β {W' : WeierstrassCurve.Affine R} β Neg W'.Point
theorem WeierstrassCurve.Affine.Point.neg_def E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (P : W'.Point), -P = P.neg
theorem WeierstrassCurve.Affine.Point.neg_zero E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R}, -0 = 0
theorem WeierstrassCurve.Affine.Point.neg_some E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} {x y : R} (h : W'.Nonsingular x y),
-WeierstrassCurve.Affine.Point.some x y h = WeierstrassCurve.Affine.Point.some x (W'.negY x y) β―
instance WeierstrassCurve.Affine.Point.instInvolutiveNeg E0 #
{R : Type r} β [inst : CommRing R] β {W' : WeierstrassCurve.Affine R} β InvolutiveNeg W'.Point
theorem WeierstrassCurve.Affine.Point.X_eq_iff E0 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} {xβ yβ xβ yβ : F} {hβ : W.Nonsingular xβ yβ}
{hβ : W.Nonsingular xβ yβ},
xβ = xβ β
WeierstrassCurve.Affine.Point.some xβ yβ hβ = WeierstrassCurve.Affine.Point.some xβ yβ hβ β¨
WeierstrassCurve.Affine.Point.some xβ yβ hβ = -WeierstrassCurve.Affine.Point.some xβ yβ hβ
def WeierstrassCurve.Affine.Point.add E3 #
{F : Type u} β [inst : Field F] β {W : WeierstrassCurve.Affine F} β [DecidableEq F] β W.Point β W.Point β W.Point
The addition of two nonsingular points on a Weierstrass curve in affine coordinates.
Given two nonsingular points P and Q in affine coordinates, use P + Q instead of add P Q.
instance WeierstrassCurve.Affine.Point.instAdd E0 #
{F : Type u} β [inst : Field F] β {W : WeierstrassCurve.Affine F} β [DecidableEq F] β Add W.Point
instance WeierstrassCurve.Affine.Point.instAddZeroClass E0 #
{F : Type u} β [inst : Field F] β {W : WeierstrassCurve.Affine F} β [DecidableEq F] β AddZeroClass W.Point
theorem WeierstrassCurve.Affine.Point.add_def E0 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] (P Q : W.Point),
P + Q = P.add Q
theorem WeierstrassCurve.Affine.Point.add_some E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xβ xβ yβ yβ : F}
(hxy : Β¬(xβ = xβ β§ yβ = W.negY xβ yβ)) {hβ : W.Nonsingular xβ yβ} {hβ : W.Nonsingular xβ yβ},
WeierstrassCurve.Affine.Point.some xβ yβ hβ + WeierstrassCurve.Affine.Point.some xβ yβ hβ =
WeierstrassCurve.Affine.Point.some (W.addX xβ xβ (W.slope xβ xβ yβ yβ)) (W.addY xβ xβ yβ (W.slope xβ xβ yβ yβ)) β―
theorem WeierstrassCurve.Affine.Point.add_of_Y_eq E0 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xβ xβ yβ yβ : F}
{hβ : W.Nonsingular xβ yβ} {hβ : W.Nonsingular xβ yβ},
xβ = xβ β
yβ = W.negY xβ yβ β WeierstrassCurve.Affine.Point.some xβ yβ hβ + WeierstrassCurve.Affine.Point.some xβ yβ hβ = 0
theorem WeierstrassCurve.Affine.Point.add_self_of_Y_eq E0 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xβ yβ : F}
{hβ : W.Nonsingular xβ yβ},
yβ = W.negY xβ yβ β WeierstrassCurve.Affine.Point.some xβ yβ hβ + WeierstrassCurve.Affine.Point.some xβ yβ hβ = 0
theorem WeierstrassCurve.Affine.Point.add_of_Y_ne E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xβ xβ yβ yβ : F}
{hβ : W.Nonsingular xβ yβ} {hβ : W.Nonsingular xβ yβ} (hy : yβ β W.negY xβ yβ),
WeierstrassCurve.Affine.Point.some xβ yβ hβ + WeierstrassCurve.Affine.Point.some xβ yβ hβ =
WeierstrassCurve.Affine.Point.some (W.addX xβ xβ (W.slope xβ xβ yβ yβ)) (W.addY xβ xβ yβ (W.slope xβ xβ yβ yβ)) β―
theorem WeierstrassCurve.Affine.Point.add_of_Y_ne' E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xβ xβ yβ yβ : F}
{hβ : W.Nonsingular xβ yβ} {hβ : W.Nonsingular xβ yβ} (hy : yβ β W.negY xβ yβ),
WeierstrassCurve.Affine.Point.some xβ yβ hβ + WeierstrassCurve.Affine.Point.some xβ yβ hβ =
-WeierstrassCurve.Affine.Point.some (W.addX xβ xβ (W.slope xβ xβ yβ yβ)) (W.negAddY xβ xβ yβ (W.slope xβ xβ yβ yβ))
β―
theorem WeierstrassCurve.Affine.Point.add_self_of_Y_ne E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xβ yβ : F}
{hβ : W.Nonsingular xβ yβ} (hy : yβ β W.negY xβ yβ),
WeierstrassCurve.Affine.Point.some xβ yβ hβ + WeierstrassCurve.Affine.Point.some xβ yβ hβ =
WeierstrassCurve.Affine.Point.some (W.addX xβ xβ (W.slope xβ xβ yβ yβ)) (W.addY xβ xβ yβ (W.slope xβ xβ yβ yβ)) β―
theorem WeierstrassCurve.Affine.Point.add_self_of_Y_ne' E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xβ yβ : F}
{hβ : W.Nonsingular xβ yβ} (hy : yβ β W.negY xβ yβ),
WeierstrassCurve.Affine.Point.some xβ yβ hβ + WeierstrassCurve.Affine.Point.some xβ yβ hβ =
-WeierstrassCurve.Affine.Point.some (W.addX xβ xβ (W.slope xβ xβ yβ yβ)) (W.negAddY xβ xβ yβ (W.slope xβ xβ yβ yβ))
β―
theorem WeierstrassCurve.Affine.Point.add_of_X_ne E0 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xβ xβ yβ yβ : F}
{hβ : W.Nonsingular xβ yβ} {hβ : W.Nonsingular xβ yβ} (hx : xβ β xβ),
WeierstrassCurve.Affine.Point.some xβ yβ hβ + WeierstrassCurve.Affine.Point.some xβ yβ hβ =
WeierstrassCurve.Affine.Point.some (W.addX xβ xβ (W.slope xβ xβ yβ yβ)) (W.addY xβ xβ yβ (W.slope xβ xβ yβ yβ)) β―
theorem WeierstrassCurve.Affine.Point.add_of_X_ne' E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xβ xβ yβ yβ : F}
{hβ : W.Nonsingular xβ yβ} {hβ : W.Nonsingular xβ yβ} (hx : xβ β xβ),
WeierstrassCurve.Affine.Point.some xβ yβ hβ + WeierstrassCurve.Affine.Point.some xβ yβ hβ =
-WeierstrassCurve.Affine.Point.some (W.addX xβ xβ (W.slope xβ xβ yβ yβ)) (W.negAddY xβ xβ yβ (W.slope xβ xβ yβ yβ))
β―
theorem WeierstrassCurve.Affine.Point.isRoot_twoTorsionPolynomial_of_add_self E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {x y : F}
(h : W.Nonsingular x y),
WeierstrassCurve.Affine.Point.some x y h + WeierstrassCurve.Affine.Point.some x y h = 0 β
(WeierstrassCurve.twoTorsionPolynomial W).toPoly.IsRoot x
A nonzero affine 2-torsion point some x y h of W (that is, P + P = 0) has X-coordinate
a root of W.twoTorsionPolynomial.
theorem WeierstrassCurve.Affine.Point.isRoot_twoTorsionPolynomial_iff E0 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F],
NeZero 2 β
WeierstrassCurve.Ξ W β 0 β
β (x : F),
(WeierstrassCurve.twoTorsionPolynomial W).toPoly.IsRoot x β
β y,
β (h : W.Nonsingular x y),
WeierstrassCurve.Affine.Point.some x y h + WeierstrassCurve.Affine.Point.some x y h = 0
x is a root of the 2-torsion polynomial of a Weierstrass curve of characteristic
different from 2 with nonzero discriminant if and only if it is the X-coordinate of a nonzero
affine 2-torsion point.
def WeierstrassCurve.Affine.Point.toClass E1 #
{F : Type u} β
[inst : Field F] β
{W : WeierstrassCurve.Affine F} β [inst_1 : DecidableEq F] β W.Point β+ Additive (ClassGroup W.CoordinateRing)
The group homomorphism mapping a nonsingular affine point (x, y) of a Weierstrass curve W to
the class of the non-zero fractional ideal β¨X - x, Y - yβ© in the ideal class group of F[W].
theorem WeierstrassCurve.Affine.Point.toClass_apply E0 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] (P : W.Point),
WeierstrassCurve.Affine.Point.toClass P =
match P with
| WeierstrassCurve.Affine.Point.zero => 0
| WeierstrassCurve.Affine.Point.some x y h =>
Additive.ofMul ((ClassGroup.mk W.FunctionField) (WeierstrassCurve.Affine.CoordinateRing.XYIdeal' h))
theorem WeierstrassCurve.Affine.Point.toClass_zero E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F],
WeierstrassCurve.Affine.Point.toClass 0 = 0
theorem WeierstrassCurve.Affine.Point.toClass_some E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {x y : F}
(h : W.Nonsingular x y),
WeierstrassCurve.Affine.Point.toClass (WeierstrassCurve.Affine.Point.some x y h) =
(ClassGroup.mk W.FunctionField) (WeierstrassCurve.Affine.CoordinateRing.XYIdeal' h)
theorem WeierstrassCurve.Affine.Point.toClass_eq_zero E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] (P : W.Point),
WeierstrassCurve.Affine.Point.toClass P = 0 β P = 0
theorem WeierstrassCurve.Affine.Point.toClass_injective E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F],
Function.Injective βWeierstrassCurve.Affine.Point.toClass
instance WeierstrassCurve.Affine.Point.instAddCommSemigroup E0 #
{F : Type u} β [inst : Field F] β {W : WeierstrassCurve.Affine F} β [DecidableEq F] β AddCommSemigroup W.Point
instance WeierstrassCurve.Affine.Point.instAddCommGroup E3 #
{F : Type u} β [inst : Field F] β {W : WeierstrassCurve.Affine F} β [DecidableEq F] β AddCommGroup W.Point
def WeierstrassCurve.Affine.Point.map E1 #
{R : Type r} β
{S : Type s} β
{F : Type u} β
{K : Type v} β
[inst : CommRing R] β
[inst_1 : CommRing S] β
[inst_2 : Field F] β
[inst_3 : Field K] β
{W' : WeierstrassCurve.Affine R} β
[inst_4 : DecidableEq F] β
[inst_5 : DecidableEq K] β
[inst_6 : Algebra R S] β
[inst_7 : Algebra R F] β
[inst_8 : Algebra S F] β
[IsScalarTower R S F] β
[inst_10 : Algebra R K] β
[inst_11 : Algebra S K] β
[IsScalarTower R S K] β
(F ββ[S] K) β (W'.baseChange F).Point β+ (W'.baseChange K).Point
The group homomorphism on nonsingular points induced by an algebra homomorphism f : F ββ[S] K,
where W is defined over a subring of a ring S, and F and K are field extensions of S.
theorem WeierstrassCurve.Affine.Point.map_zero E0 #
β {R : Type r} {S : Type s} {F : Type u} {K : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Field F]
[inst_3 : Field K] {W' : WeierstrassCurve.Affine R} [inst_4 : DecidableEq F] [inst_5 : DecidableEq K]
[inst_6 : Algebra R S] [inst_7 : Algebra R F] [inst_8 : Algebra S F] [inst_9 : IsScalarTower R S F]
[inst_10 : Algebra R K] [inst_11 : Algebra S K] [inst_12 : IsScalarTower R S K] (f : F ββ[S] K),
(WeierstrassCurve.Affine.Point.map f) 0 = 0
theorem WeierstrassCurve.Affine.Point.map_some E0 #
β {R : Type r} {S : Type s} {F : Type u} {K : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Field F]
[inst_3 : Field K] {W' : WeierstrassCurve.Affine R} [inst_4 : DecidableEq F] [inst_5 : DecidableEq K]
[inst_6 : Algebra R S] [inst_7 : Algebra R F] [inst_8 : Algebra S F] [inst_9 : IsScalarTower R S F]
[inst_10 : Algebra R K] [inst_11 : Algebra S K] [inst_12 : IsScalarTower R S K] (f : F ββ[S] K) {x y : F}
(h : (W'.baseChange F).Nonsingular x y),
(WeierstrassCurve.Affine.Point.map f) (WeierstrassCurve.Affine.Point.some x y h) =
WeierstrassCurve.Affine.Point.some (f x) (f y) β―
theorem WeierstrassCurve.Affine.Point.map_id E0 #
β {R : Type r} {F : Type u} [inst : CommRing R] [inst_1 : Field F] {W' : WeierstrassCurve.Affine R}
[inst_2 : DecidableEq F] [inst_3 : Algebra R F] (P : (W'.baseChange F).Point),
(WeierstrassCurve.Affine.Point.map (Algebra.ofId F F)) P = P
theorem WeierstrassCurve.Affine.Point.map_map E0 #
β {R : Type r} {S : Type s} {F : Type u} {K : Type v} {L : Type w} [inst : CommRing R] [inst_1 : CommRing S]
[inst_2 : Field F] [inst_3 : Field K] [inst_4 : Field L] {W' : WeierstrassCurve.Affine R} [inst_5 : DecidableEq F]
[inst_6 : DecidableEq K] [inst_7 : DecidableEq L] [inst_8 : Algebra R S] [inst_9 : Algebra R F]
[inst_10 : Algebra S F] [inst_11 : IsScalarTower R S F] [inst_12 : Algebra R K] [inst_13 : Algebra S K]
[inst_14 : IsScalarTower R S K] [inst_15 : Algebra R L] [inst_16 : Algebra S L] [inst_17 : IsScalarTower R S L]
(f : F ββ[S] K) (g : K ββ[S] L) (P : (W'.baseChange F).Point),
(WeierstrassCurve.Affine.Point.map g) ((WeierstrassCurve.Affine.Point.map f) P) =
(WeierstrassCurve.Affine.Point.map (g.comp f)) P
theorem WeierstrassCurve.Affine.Point.map_injective E0 #
β {R : Type r} {S : Type s} {F : Type u} {K : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : Field F]
[inst_3 : Field K] {W' : WeierstrassCurve.Affine R} [inst_4 : DecidableEq F] [inst_5 : DecidableEq K]
[inst_6 : Algebra R S] [inst_7 : Algebra R F] [inst_8 : Algebra S F] [inst_9 : IsScalarTower R S F]
[inst_10 : Algebra R K] [inst_11 : Algebra S K] [inst_12 : IsScalarTower R S K] (f : F ββ[S] K),
Function.Injective β(WeierstrassCurve.Affine.Point.map f)
abbrev WeierstrassCurve.Affine.Point.baseChange E1 #
{R : Type r} β
(F : Type u) β
(K : Type v) β
[inst : CommRing R] β
[inst_1 : Field F] β
[inst_2 : Field K] β
{W' : WeierstrassCurve.Affine R} β
[inst_3 : DecidableEq F] β
[inst_4 : DecidableEq K] β
[inst_5 : Algebra R F] β
[inst_6 : Algebra R K] β
[inst_7 : Algebra F K] β
[IsScalarTower R F K] β (W'.baseChange F).Point β+ (W'.baseChange K).Point
The group homomorphism on nonsingular points induced by the base change from F to K, where
W is defined over a subring of a ring S, and F and K are field extensions of S.
theorem WeierstrassCurve.Affine.Point.map_baseChange E0 #
β {R : Type r} {F : Type u} {K : Type v} {L : Type w} [inst : CommRing R] [inst_1 : Field F] [inst_2 : Field K]
[inst_3 : Field L] {W' : WeierstrassCurve.Affine R} [inst_4 : DecidableEq F] [inst_5 : DecidableEq K]
[inst_6 : DecidableEq L] [inst_7 : Algebra R F] [inst_8 : Algebra R K] [inst_9 : Algebra R L] [inst_10 : Algebra F K]
[inst_11 : IsScalarTower R F K] [inst_12 : Algebra F L] [inst_13 : IsScalarTower R F L] (f : K ββ[F] L)
(P : (W'.baseChange F).Point),
(WeierstrassCurve.Affine.Point.map f) ((WeierstrassCurve.Affine.Point.baseChange F K) P) =
(WeierstrassCurve.Affine.Point.baseChange F L) P
def WeierstrassCurve.Affine.Point.xRep E1 #
{R : Type r} β [inst : CommRing R] β {W' : WeierstrassCurve.Affine R} β W'.Point β Fin 2 β R
This map sends a point P on a Weierstrass curve W' in affine coordinates
to a representative of its image on βΒΉ under the x-coordinate map.
We take ![1, 0] for the point at infinity and ![x, 1],
where x is the x-coordinate of P, for an affine point.
We define it in the general setting of a commutative base ring, even though the definition of points in this setting is not really correct. For Weierstrass curves over fields, this gives the correct notion.
theorem WeierstrassCurve.Affine.Point.xRep_zero E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R}, WeierstrassCurve.Affine.Point.xRep 0 = ![1, 0]
theorem WeierstrassCurve.Affine.Point.xRep_some E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} {x y : R} (h : W'.Nonsingular x y),
(WeierstrassCurve.Affine.Point.some x y h).xRep = ![x, 1]
theorem WeierstrassCurve.Affine.Point.xRep_ne_zero E1 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} [Nontrivial R] (P : W'.Point), P.xRep β 0
theorem WeierstrassCurve.Affine.Point.xRep_neg E0 #
β {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Affine R} (P : W'.Point), (-P).xRep = P.xRep
theorem WeierstrassCurve.Affine.Point.xRep_eq_xRep_iff E0 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} {P Q : W.Point}, P.xRep = Q.xRep β P = Q β¨ P = -Q
theorem WeierstrassCurve.Affine.Point.xRep_add_self_of_Y_ne E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {x y : F}
(h : W.Nonsingular x y),
y β W.negY x y β
(WeierstrassCurve.Affine.Point.some x y h + WeierstrassCurve.Affine.Point.some x y h).xRep =
![(x ^ 4 - WeierstrassCurve.bβ W * x ^ 2 - 2 * WeierstrassCurve.bβ W * x - WeierstrassCurve.bβ W) /
(4 * x ^ 3 + WeierstrassCurve.bβ W * x ^ 2 + 2 * WeierstrassCurve.bβ W * x + WeierstrassCurve.bβ W),
1]
We give an explicit expression for xRep of P + P when 2*P β 0.
theorem WeierstrassCurve.Affine.Point.xRep_add_self_of_Y_eq E0 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {x y : F}
(h : W.Nonsingular x y),
y = W.negY x y β (WeierstrassCurve.Affine.Point.some x y h + WeierstrassCurve.Affine.Point.some x y h).xRep = ![1, 0]
We give an explicit expression for xRep of P + P when P β 0 and 2*P = 0.
theorem WeierstrassCurve.Affine.Point.xRep_add_of_X_ne E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xP yP xQ yQ : F}
(hP : W.Nonsingular xP yP) (hQ : W.Nonsingular xQ yQ),
xP β xQ β
(WeierstrassCurve.Affine.Point.some xP yP hP + WeierstrassCurve.Affine.Point.some xQ yQ hQ).xRep =
![((yP - yQ) ^ 2 + W.aβ * (yP - yQ) * (xP - xQ) - (W.aβ + xP + xQ) * (xP - xQ) ^ 2) / (xP - xQ) ^ 2, 1]
We give an explicit expression for xRep of P + Q when P β Β±Q.
theorem WeierstrassCurve.Affine.Point.xRep_sub_of_X_ne E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} [inst_1 : DecidableEq F] {xP yP xQ yQ : F}
(hP : W.Nonsingular xP yP) (hQ : W.Nonsingular xQ yQ),
xP β xQ β
(WeierstrassCurve.Affine.Point.some xP yP hP - WeierstrassCurve.Affine.Point.some xQ yQ hQ).xRep =
![((yP + yQ + W.aβ * xQ + W.aβ) ^ 2 + W.aβ * (yP + yQ + W.aβ * xQ + W.aβ) * (xP - xQ) -
(W.aβ + xP + xQ) * (xP - xQ) ^ 2) /
(xP - xQ) ^ 2,
1]
We give an explicit expression for xRep of P - Q when P β Β±Q.
theorem WeierstrassCurve.Affine.finite_preimage_xRep E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} (x : F), {P | P.xRep = ![x, 1]}.Finite
theorem WeierstrassCurve.Affine.finite_preimage_xRep0 E1 #
β {F : Type u} [inst : Field F] {W : WeierstrassCurve.Affine F} (x : F), {P | P.xRep 0 = x}.Finite