The areas / V28. Algebraic geometry
Mathlib.AlgebraicGeometry.EllipticCurve.Projective.Formula
134 declarations. Mathlib docs · Source
Negation and addition formulae for nonsingular points in projective coordinates
Let W be a Weierstrass curve over a field F. The nonsingular projective points on W can be
given negation and addition operations defined by an analogue of the secant-and-tangent process in
Mathlib/AlgebraicGeometry/EllipticCurve/Affine/Formula.lean, but the polynomials involved are
homogeneous, so any instances of division become multiplication in the Z-coordinate. Most
computational proofs are immediate from their analogous proofs for affine coordinates.
This file defines polynomials associated to negation, doubling, and addition of projective point
representatives. The group operations and the group law on actual nonsingular projective points will
be defined in Mathlib/AlgebraicGeometry/EllipticCurve/Projective/Point.lean.
Main definitions
WeierstrassCurve.Projective.negY: theY-coordinate of-P.WeierstrassCurve.Projective.dblZ: theZ-coordinate of2 • P.WeierstrassCurve.Projective.dblX: theX-coordinate of2 • P.WeierstrassCurve.Projective.negDblY: theY-coordinate of-(2 • P).WeierstrassCurve.Projective.dblY: theY-coordinate of2 • P.WeierstrassCurve.Projective.addZ: theZ-coordinate ofP + Q.WeierstrassCurve.Projective.addX: theX-coordinate ofP + Q.WeierstrassCurve.Projective.negAddY: theY-coordinate of-(P + Q).WeierstrassCurve.Projective.addY: theY-coordinate ofP + Q.
Implementation notes
The definitions of WeierstrassCurve.Projective.dblX, WeierstrassCurve.Projective.negDblY,
WeierstrassCurve.Projective.addZ, WeierstrassCurve.Projective.addX, and
WeierstrassCurve.Projective.negAddY are given explicitly by large polynomials that are homogeneous
of degree 4. Clearing the denominators of their corresponding affine rational functions in
Mathlib/AlgebraicGeometry/EllipticCurve/Affine/Formula.lean would give polynomials that are
homogeneous of degrees 5, 6, 6, 8, and 8 respectively, so their actual definitions are off
by powers of certain polynomial factors that are homogeneous of degree 1 or 2. These factors
divide their corresponding affine polynomials only modulo the homogeneous Weierstrass equation, so
their large quotient polynomials are calculated explicitly in a computer algebra system. All of this
is done to ensure that the definitions of both WeierstrassCurve.Projective.dblXYZ and
WeierstrassCurve.Projective.addXYZ are homogeneous of degree 4.
Whenever possible, all changes to documentation and naming of definitions and theorems should be
mirrored in Mathlib/AlgebraicGeometry/EllipticCurve/Jacobian/Formula.lean.
References
[J Silverman, The Arithmetic of Elliptic Curves][silverman2009]
Tags
elliptic curve, projective, negation, doubling, addition, group law
Negation formulae in projective coordinates
Doubling formulae in projective coordinates
Addition formulae in projective coordinates
Maps and base changes
def WeierstrassCurve.Projective.negY E3 #
{R : Type r} → [CommRing R] → WeierstrassCurve.Projective R → (Fin 3 → R) → R
The Y-coordinate of a representative of -P for a projective point representative P on a
Weierstrass curve.
theorem WeierstrassCurve.Projective.negY_eq E0 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (X Y Z : R),
W'.negY ![X, Y, Z] = -Y - W'.a₁ * X - W'.a₃ * Z
theorem WeierstrassCurve.Projective.negY_smul E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R) (u : R),
W'.negY (u • P) = u * W'.negY P
theorem WeierstrassCurve.Projective.negY_of_Z_eq_zero E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P : Fin 3 → R},
W'.Equation P → P 2 = 0 → W'.negY P = -P 1
theorem WeierstrassCurve.Projective.negY_of_Z_ne_zero E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F},
P 2 ≠ 0 → W.negY P / P 2 = W.toAffine.negY (P 0 / P 2) (P 1 / P 2)
theorem WeierstrassCurve.Projective.Y_sub_Y_mul_Y_sub_negY E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P Q : Fin 3 → R},
W'.Equation P →
W'.Equation Q → P 0 * Q 2 = Q 0 * P 2 → P 2 * Q 2 * (P 1 * Q 2 - Q 1 * P 2) * (P 1 * Q 2 - W'.negY Q * P 2) = 0
theorem WeierstrassCurve.Projective.Y_eq_of_Y_ne E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P →
W'.Equation Q → P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 ≠ Q 1 * P 2 → P 1 * Q 2 = W'.negY Q * P 2
theorem WeierstrassCurve.Projective.Y_eq_of_Y_ne' E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P →
W'.Equation Q → P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 ≠ W'.negY Q * P 2 → P 1 * Q 2 = Q 1 * P 2
theorem WeierstrassCurve.Projective.Y_eq_iff' E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
P 2 ≠ 0 → Q 2 ≠ 0 → (P 1 * Q 2 = W.negY Q * P 2 ↔ P 1 / P 2 = W.toAffine.negY (Q 0 / Q 2) (Q 1 / Q 2))
theorem WeierstrassCurve.Projective.Y_sub_Y_add_Y_sub_negY E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P Q : Fin 3 → R},
P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 - Q 1 * P 2 + (P 1 * Q 2 - W'.negY Q * P 2) = (P 1 - W'.negY P) * Q 2
theorem WeierstrassCurve.Projective.Y_ne_negY_of_Y_ne E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P → W'.Equation Q → P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 ≠ Q 1 * P 2 → P 1 ≠ W'.negY P
theorem WeierstrassCurve.Projective.Y_ne_negY_of_Y_ne' E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P →
W'.Equation Q → P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 ≠ W'.negY Q * P 2 → P 1 ≠ W'.negY P
theorem WeierstrassCurve.Projective.Y_eq_negY_of_Y_eq E0 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 = Q 1 * P 2 → P 1 * Q 2 = W'.negY Q * P 2 → P 1 = W'.negY P
theorem WeierstrassCurve.Projective.nonsingular_iff_of_Y_eq_negY E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F},
P 2 ≠ 0 → P 1 = W.negY P → (W.Nonsingular P ↔ W.Equation P ∧ (MvPolynomial.eval P) W.polynomialX ≠ 0)
def WeierstrassCurve.Projective.dblU E1 #
{F : Type u} → [Field F] → WeierstrassCurve.Projective F → (Fin 3 → F) → F
The unit associated to a representative of 2 • P for a projective point representative P on
a Weierstrass curve W that is 2-torsion.
More specifically, the unit u such that W.add P P = u • ![0, 1, 0] where P = W.neg P.
theorem WeierstrassCurve.Projective.dblU_eq E0 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} (P : Fin 3 → F),
W.dblU P = (W.a₁ * P 1 * P 2 - (3 * P 0 ^ 2 + 2 * W.a₂ * P 0 * P 2 + W.a₄ * P 2 ^ 2)) ^ 3 / P 2 ^ 2
theorem WeierstrassCurve.Projective.dblU_smul E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} (P : Fin 3 → F) (u : F),
W.dblU (u • P) = u ^ 4 * W.dblU P
theorem WeierstrassCurve.Projective.dblU_of_Z_eq_zero E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F}, P 2 = 0 → W.dblU P = 0
theorem WeierstrassCurve.Projective.dblU_ne_zero_of_Y_eq E0 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
W.Nonsingular P →
P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 = Q 1 * P 2 → P 1 * Q 2 = W.negY Q * P 2 → W.dblU P ≠ 0
theorem WeierstrassCurve.Projective.isUnit_dblU_of_Y_eq E0 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
W.Nonsingular P →
P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 = Q 1 * P 2 → P 1 * Q 2 = W.negY Q * P 2 → IsUnit (W.dblU P)
def WeierstrassCurve.Projective.dblZ E3 #
{R : Type r} → [CommRing R] → WeierstrassCurve.Projective R → (Fin 3 → R) → R
The Z-coordinate of a representative of 2 • P for a projective point representative P on a
Weierstrass curve.
theorem WeierstrassCurve.Projective.dblZ_smul E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R) (u : R),
W'.dblZ (u • P) = u ^ 4 * W'.dblZ P
theorem WeierstrassCurve.Projective.dblZ_of_Z_eq_zero E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P : Fin 3 → R}, P 2 = 0 → W'.dblZ P = 0
theorem WeierstrassCurve.Projective.dblZ_of_Y_eq E0 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 = Q 1 * P 2 → P 1 * Q 2 = W'.negY Q * P 2 → W'.dblZ P = 0
theorem WeierstrassCurve.Projective.dblZ_ne_zero_of_Y_ne E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P → W'.Equation Q → P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 ≠ Q 1 * P 2 → W'.dblZ P ≠ 0
theorem WeierstrassCurve.Projective.isUnit_dblZ_of_Y_ne E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
W.Equation P → W.Equation Q → P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 ≠ Q 1 * P 2 → IsUnit (W.dblZ P)
theorem WeierstrassCurve.Projective.dblZ_ne_zero_of_Y_ne' E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P →
W'.Equation Q → P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 ≠ W'.negY Q * P 2 → W'.dblZ P ≠ 0
theorem WeierstrassCurve.Projective.isUnit_dblZ_of_Y_ne' E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
W.Equation P →
W.Equation Q → P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 ≠ W.negY Q * P 2 → IsUnit (W.dblZ P)
def WeierstrassCurve.Projective.dblX E3 #
{R : Type r} → [CommRing R] → WeierstrassCurve.Projective R → (Fin 3 → R) → R
The X-coordinate of a representative of 2 • P for a projective point representative P on a
Weierstrass curve.
theorem WeierstrassCurve.Projective.dblX_eq' E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P : Fin 3 → R},
W'.Equation P →
W'.dblX P * P 2 =
((MvPolynomial.eval P) W'.polynomialX ^ 2 -
W'.a₁ * (MvPolynomial.eval P) W'.polynomialX * P 2 * (P 1 - W'.negY P) -
W'.a₂ * P 2 ^ 2 * (P 1 - W'.negY P) ^ 2 -
2 * P 0 * P 2 * (P 1 - W'.negY P) ^ 2) *
(P 1 - W'.negY P)
theorem WeierstrassCurve.Projective.dblX_eq E0 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F},
W.Equation P →
P 2 ≠ 0 →
W.dblX P =
((MvPolynomial.eval P) W.polynomialX ^ 2 - W.a₁ * (MvPolynomial.eval P) W.polynomialX * P 2 * (P 1 - W.negY P) -
W.a₂ * P 2 ^ 2 * (P 1 - W.negY P) ^ 2 -
2 * P 0 * P 2 * (P 1 - W.negY P) ^ 2) *
(P 1 - W.negY P) /
P 2
theorem WeierstrassCurve.Projective.dblX_smul E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R) (u : R),
W'.dblX (u • P) = u ^ 4 * W'.dblX P
theorem WeierstrassCurve.Projective.dblX_of_Z_eq_zero E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P : Fin 3 → R},
W'.Equation P → P 2 = 0 → W'.dblX P = 0
theorem WeierstrassCurve.Projective.dblX_of_Y_eq E0 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P →
P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 = Q 1 * P 2 → P 1 * Q 2 = W'.negY Q * P 2 → W'.dblX P = 0
theorem WeierstrassCurve.Projective.dblX_of_Z_ne_zero E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} [inst_1 : DecidableEq F] {P Q : Fin 3 → F},
W.Equation P →
W.Equation Q →
P 2 ≠ 0 →
Q 2 ≠ 0 →
P 0 * Q 2 = Q 0 * P 2 →
P 1 * Q 2 ≠ W.negY Q * P 2 →
W.dblX P / W.dblZ P =
W.toAffine.addX (P 0 / P 2) (Q 0 / Q 2)
(W.toAffine.slope (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2) (Q 1 / Q 2))
def WeierstrassCurve.Projective.negDblY E3 #
{R : Type r} → [CommRing R] → WeierstrassCurve.Projective R → (Fin 3 → R) → R
The Y-coordinate of a representative of -(2 • P) for a projective point representative P
on a Weierstrass curve.
theorem WeierstrassCurve.Projective.negDblY_eq' E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P : Fin 3 → R},
W'.Equation P →
W'.negDblY P * P 2 ^ 2 =
-(MvPolynomial.eval P) W'.polynomialX *
((MvPolynomial.eval P) W'.polynomialX ^ 2 -
W'.a₁ * (MvPolynomial.eval P) W'.polynomialX * P 2 * (P 1 - W'.negY P) -
W'.a₂ * P 2 ^ 2 * (P 1 - W'.negY P) ^ 2 -
2 * P 0 * P 2 * (P 1 - W'.negY P) ^ 2 -
P 0 * P 2 * (P 1 - W'.negY P) ^ 2) +
P 1 * P 2 ^ 2 * (P 1 - W'.negY P) ^ 3
theorem WeierstrassCurve.Projective.negDblY_eq E0 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F},
W.Equation P →
P 2 ≠ 0 →
W.negDblY P =
(-(MvPolynomial.eval P) W.polynomialX *
((MvPolynomial.eval P) W.polynomialX ^ 2 -
W.a₁ * (MvPolynomial.eval P) W.polynomialX * P 2 * (P 1 - W.negY P) -
W.a₂ * P 2 ^ 2 * (P 1 - W.negY P) ^ 2 -
2 * P 0 * P 2 * (P 1 - W.negY P) ^ 2 -
P 0 * P 2 * (P 1 - W.negY P) ^ 2) +
P 1 * P 2 ^ 2 * (P 1 - W.negY P) ^ 3) /
P 2 ^ 2
theorem WeierstrassCurve.Projective.negDblY_smul E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R) (u : R),
W'.negDblY (u • P) = u ^ 4 * W'.negDblY P
theorem WeierstrassCurve.Projective.negDblY_of_Z_eq_zero E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P : Fin 3 → R},
W'.Equation P → P 2 = 0 → W'.negDblY P = -P 1 ^ 4
theorem WeierstrassCurve.Projective.negDblY_of_Y_eq' E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P →
Q 2 ≠ 0 →
P 0 * Q 2 = Q 0 * P 2 →
P 1 * Q 2 = Q 1 * P 2 →
P 1 * Q 2 = W'.negY Q * P 2 → W'.negDblY P * P 2 ^ 2 = -(MvPolynomial.eval P) W'.polynomialX ^ 3
theorem WeierstrassCurve.Projective.negDblY_of_Y_eq E0 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
W.Equation P →
P 2 ≠ 0 →
Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 = Q 1 * P 2 → P 1 * Q 2 = W.negY Q * P 2 → W.negDblY P = -W.dblU P
theorem WeierstrassCurve.Projective.negDblY_of_Z_ne_zero E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} [inst_1 : DecidableEq F] {P Q : Fin 3 → F},
W.Equation P →
W.Equation Q →
P 2 ≠ 0 →
Q 2 ≠ 0 →
P 0 * Q 2 = Q 0 * P 2 →
P 1 * Q 2 ≠ W.negY Q * P 2 →
W.negDblY P / W.dblZ P =
W.toAffine.negAddY (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2)
(W.toAffine.slope (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2) (Q 1 / Q 2))
def WeierstrassCurve.Projective.dblY E3 #
{R : Type r} → [CommRing R] → WeierstrassCurve.Projective R → (Fin 3 → R) → R
The Y-coordinate of a representative of 2 • P for a projective point representative P on a
Weierstrass curve.
theorem WeierstrassCurve.Projective.dblY_smul E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R) (u : R),
W'.dblY (u • P) = u ^ 4 * W'.dblY P
theorem WeierstrassCurve.Projective.dblY_of_Z_eq_zero E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P : Fin 3 → R},
W'.Equation P → P 2 = 0 → W'.dblY P = P 1 ^ 4
theorem WeierstrassCurve.Projective.dblY_of_Y_eq' E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P →
P 2 ≠ 0 →
Q 2 ≠ 0 →
P 0 * Q 2 = Q 0 * P 2 →
P 1 * Q 2 = Q 1 * P 2 →
P 1 * Q 2 = W'.negY Q * P 2 → W'.dblY P * P 2 ^ 2 = (MvPolynomial.eval P) W'.polynomialX ^ 3
theorem WeierstrassCurve.Projective.dblY_of_Y_eq E0 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
W.Equation P →
P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 = Q 1 * P 2 → P 1 * Q 2 = W.negY Q * P 2 → W.dblY P = W.dblU P
theorem WeierstrassCurve.Projective.dblY_of_Z_ne_zero E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} [inst_1 : DecidableEq F] {P Q : Fin 3 → F},
W.Equation P →
W.Equation Q →
P 2 ≠ 0 →
Q 2 ≠ 0 →
P 0 * Q 2 = Q 0 * P 2 →
P 1 * Q 2 ≠ W.negY Q * P 2 →
W.dblY P / W.dblZ P =
W.toAffine.addY (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2)
(W.toAffine.slope (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2) (Q 1 / Q 2))
def WeierstrassCurve.Projective.dblXYZ E1 #
{R : Type r} → [CommRing R] → WeierstrassCurve.Projective R → (Fin 3 → R) → Fin 3 → R
The coordinates of a representative of 2 • P for a projective point representative P on a
Weierstrass curve.
theorem WeierstrassCurve.Projective.dblXYZ_X E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.dblXYZ P 0 = W'.dblX P
theorem WeierstrassCurve.Projective.dblXYZ_Y E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.dblXYZ P 1 = W'.dblY P
theorem WeierstrassCurve.Projective.dblXYZ_Z E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.dblXYZ P 2 = W'.dblZ P
theorem WeierstrassCurve.Projective.dblXYZ_smul E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R) (u : R),
W'.dblXYZ (u • P) = u ^ 4 • W'.dblXYZ P
theorem WeierstrassCurve.Projective.dblXYZ_of_Z_eq_zero E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P : Fin 3 → R},
W'.Equation P → P 2 = 0 → W'.dblXYZ P = P 1 ^ 4 • ![0, 1, 0]
theorem WeierstrassCurve.Projective.dblXYZ_of_Y_eq E0 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
W.Equation P →
P 2 ≠ 0 →
Q 2 ≠ 0 →
P 0 * Q 2 = Q 0 * P 2 → P 1 * Q 2 = Q 1 * P 2 → P 1 * Q 2 = W.negY Q * P 2 → W.dblXYZ P = W.dblU P • ![0, 1, 0]
theorem WeierstrassCurve.Projective.dblXYZ_of_Z_ne_zero E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} [inst_1 : DecidableEq F] {P Q : Fin 3 → F},
W.Equation P →
W.Equation Q →
P 2 ≠ 0 →
Q 2 ≠ 0 →
P 0 * Q 2 = Q 0 * P 2 →
P 1 * Q 2 ≠ W.negY Q * P 2 →
W.dblXYZ P =
W.dblZ P •
![W.toAffine.addX (P 0 / P 2) (Q 0 / Q 2)
(W.toAffine.slope (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2) (Q 1 / Q 2)),
W.toAffine.addY (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2)
(W.toAffine.slope (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2) (Q 1 / Q 2)),
1]
def WeierstrassCurve.Projective.addU E1 #
{F : Type u} → [Field F] → (Fin 3 → F) → (Fin 3 → F) → F
The unit associated to a representative of P + Q for two projective point representatives P
and Q on a Weierstrass curve W that are not 2-torsion.
More specifically, the unit u such that W.add P Q = u • ![0, 1, 0] where P x / P z = Q x / Q z
but P ≠ W.neg P.
theorem WeierstrassCurve.Projective.addU_smul E1 #
∀ {F : Type u} [inst : Field F] (P Q : Fin 3 → F) (u v : F),
WeierstrassCurve.Projective.addU (u • P) (v • Q) = (u * v) ^ 2 * WeierstrassCurve.Projective.addU P Q
theorem WeierstrassCurve.Projective.addU_of_Z_eq_zero_left E1 #
∀ {F : Type u} [inst : Field F] {P Q : Fin 3 → F}, P 2 = 0 → WeierstrassCurve.Projective.addU P Q = 0
theorem WeierstrassCurve.Projective.addU_of_Z_eq_zero_right E1 #
∀ {F : Type u} [inst : Field F] {P Q : Fin 3 → F}, Q 2 = 0 → WeierstrassCurve.Projective.addU P Q = 0
theorem WeierstrassCurve.Projective.addU_ne_zero_of_Y_ne E1 #
∀ {F : Type u} [inst : Field F] {P Q : Fin 3 → F},
P 2 ≠ 0 → Q 2 ≠ 0 → P 1 * Q 2 ≠ Q 1 * P 2 → WeierstrassCurve.Projective.addU P Q ≠ 0
theorem WeierstrassCurve.Projective.isUnit_addU_of_Y_ne E1 #
∀ {F : Type u} [inst : Field F] {P Q : Fin 3 → F},
P 2 ≠ 0 → Q 2 ≠ 0 → P 1 * Q 2 ≠ Q 1 * P 2 → IsUnit (WeierstrassCurve.Projective.addU P Q)
def WeierstrassCurve.Projective.addZ E3 #
{R : Type r} → [CommRing R] → WeierstrassCurve.Projective R → (Fin 3 → R) → (Fin 3 → R) → R
The Z-coordinate of a representative of P + Q for two distinct projective point
representatives P and Q on a Weierstrass curve.
If the representatives of P and Q are equal, then this returns the value 0.
theorem WeierstrassCurve.Projective.addZ_eq' E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P Q : Fin 3 → R},
W'.Equation P → W'.Equation Q → W'.addZ P Q * (P 2 * Q 2) = (P 0 * Q 2 - Q 0 * P 2) ^ 3
theorem WeierstrassCurve.Projective.addZ_eq E0 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
W.Equation P → W.Equation Q → P 2 ≠ 0 → Q 2 ≠ 0 → W.addZ P Q = (P 0 * Q 2 - Q 0 * P 2) ^ 3 / (P 2 * Q 2)
theorem WeierstrassCurve.Projective.addZ_smul E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P Q : Fin 3 → R) (u v : R),
W'.addZ (u • P) (v • Q) = (u * v) ^ 2 * W'.addZ P Q
theorem WeierstrassCurve.Projective.addZ_self E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.addZ P P = 0
theorem WeierstrassCurve.Projective.addZ_of_Z_eq_zero_left E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P → P 2 = 0 → W'.addZ P Q = P 1 ^ 2 * Q 2 * Q 2
theorem WeierstrassCurve.Projective.addZ_of_Z_eq_zero_right E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation Q → Q 2 = 0 → W'.addZ P Q = -(Q 1 ^ 2 * P 2) * P 2
theorem WeierstrassCurve.Projective.addZ_of_X_eq E0 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P → W'.Equation Q → P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → W'.addZ P Q = 0
theorem WeierstrassCurve.Projective.addZ_ne_zero_of_X_ne E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P → W'.Equation Q → P 0 * Q 2 ≠ Q 0 * P 2 → W'.addZ P Q ≠ 0
theorem WeierstrassCurve.Projective.isUnit_addZ_of_X_ne E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
W.Equation P → W.Equation Q → P 0 * Q 2 ≠ Q 0 * P 2 → IsUnit (W.addZ P Q)
def WeierstrassCurve.Projective.addX E3 #
{R : Type r} → [CommRing R] → WeierstrassCurve.Projective R → (Fin 3 → R) → (Fin 3 → R) → R
The X-coordinate of a representative of P + Q for two distinct projective point
representatives P and Q on a Weierstrass curve.
If the representatives of P and Q are equal, then this returns the value 0.
theorem WeierstrassCurve.Projective.addX_eq' E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P Q : Fin 3 → R},
W'.Equation P →
W'.Equation Q →
W'.addX P Q * (P 2 * Q 2) ^ 2 =
((P 1 * Q 2 - Q 1 * P 2) ^ 2 * P 2 * Q 2 +
W'.a₁ * (P 1 * Q 2 - Q 1 * P 2) * P 2 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) -
W'.a₂ * P 2 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 2 -
P 0 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 2 -
Q 0 * P 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 2) *
(P 0 * Q 2 - Q 0 * P 2)
theorem WeierstrassCurve.Projective.addX_eq E0 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
W.Equation P →
W.Equation Q →
P 2 ≠ 0 →
Q 2 ≠ 0 →
W.addX P Q =
((P 1 * Q 2 - Q 1 * P 2) ^ 2 * P 2 * Q 2 +
W.a₁ * (P 1 * Q 2 - Q 1 * P 2) * P 2 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) -
W.a₂ * P 2 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 2 -
P 0 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 2 -
Q 0 * P 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 2) *
(P 0 * Q 2 - Q 0 * P 2) /
(P 2 * Q 2) ^ 2
theorem WeierstrassCurve.Projective.addX_smul E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P Q : Fin 3 → R) (u v : R),
W'.addX (u • P) (v • Q) = (u * v) ^ 2 * W'.addX P Q
theorem WeierstrassCurve.Projective.addX_self E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.addX P P = 0
theorem WeierstrassCurve.Projective.addX_of_Z_eq_zero_left E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P → P 2 = 0 → W'.addX P Q = P 1 ^ 2 * Q 2 * Q 0
theorem WeierstrassCurve.Projective.addX_of_Z_eq_zero_right E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation Q → Q 2 = 0 → W'.addX P Q = -(Q 1 ^ 2 * P 2) * P 0
theorem WeierstrassCurve.Projective.addX_of_X_eq E0 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P → W'.Equation Q → P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → W'.addX P Q = 0
theorem WeierstrassCurve.Projective.addX_of_Z_ne_zero E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} [inst_1 : DecidableEq F] {P Q : Fin 3 → F},
W.Equation P →
W.Equation Q →
P 2 ≠ 0 →
Q 2 ≠ 0 →
P 0 * Q 2 ≠ Q 0 * P 2 →
W.addX P Q / W.addZ P Q =
W.toAffine.addX (P 0 / P 2) (Q 0 / Q 2) (W.toAffine.slope (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2) (Q 1 / Q 2))
def WeierstrassCurve.Projective.negAddY E3 #
{R : Type r} → [CommRing R] → WeierstrassCurve.Projective R → (Fin 3 → R) → (Fin 3 → R) → R
The Y-coordinate of a representative of -(P + Q) for two distinct projective point
representatives P and Q on a Weierstrass curve.
If the representatives of P and Q are equal, then this returns the value 0.
theorem WeierstrassCurve.Projective.negAddY_eq' E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P Q : Fin 3 → R},
W'.Equation P →
W'.Equation Q →
W'.negAddY P Q * (P 2 * Q 2) ^ 2 =
(P 1 * Q 2 - Q 1 * P 2) *
((P 1 * Q 2 - Q 1 * P 2) ^ 2 * P 2 * Q 2 +
W'.a₁ * (P 1 * Q 2 - Q 1 * P 2) * P 2 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) -
W'.a₂ * P 2 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 2 -
P 0 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 2 -
Q 0 * P 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 2 -
P 0 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 2) +
P 1 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 3
theorem WeierstrassCurve.Projective.negAddY_eq E0 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
W.Equation P →
W.Equation Q →
P 2 ≠ 0 →
Q 2 ≠ 0 →
W.negAddY P Q =
((P 1 * Q 2 - Q 1 * P 2) *
((P 1 * Q 2 - Q 1 * P 2) ^ 2 * P 2 * Q 2 +
W.a₁ * (P 1 * Q 2 - Q 1 * P 2) * P 2 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) -
W.a₂ * P 2 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 2 -
P 0 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 2 -
Q 0 * P 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 2 -
P 0 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 2) +
P 1 * Q 2 * (P 0 * Q 2 - Q 0 * P 2) ^ 3) /
(P 2 * Q 2) ^ 2
theorem WeierstrassCurve.Projective.negAddY_smul E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P Q : Fin 3 → R) (u v : R),
W'.negAddY (u • P) (v • Q) = (u * v) ^ 2 * W'.negAddY P Q
theorem WeierstrassCurve.Projective.negAddY_self E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.negAddY P P = 0
theorem WeierstrassCurve.Projective.negAddY_of_Z_eq_zero_left E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P → P 2 = 0 → W'.negAddY P Q = P 1 ^ 2 * Q 2 * W'.negY Q
theorem WeierstrassCurve.Projective.negAddY_of_Z_eq_zero_right E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation Q → Q 2 = 0 → W'.negAddY P Q = -(Q 1 ^ 2 * P 2) * W'.negY P
theorem WeierstrassCurve.Projective.negAddY_of_X_eq' E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P Q : Fin 3 → R},
W'.Equation P →
W'.Equation Q → P 0 * Q 2 = Q 0 * P 2 → W'.negAddY P Q * (P 2 * Q 2) ^ 2 = (P 1 * Q 2 - Q 1 * P 2) ^ 3 * (P 2 * Q 2)
theorem WeierstrassCurve.Projective.negAddY_of_X_eq E0 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
W.Equation P →
W.Equation Q → P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → W.negAddY P Q = -WeierstrassCurve.Projective.addU P Q
theorem WeierstrassCurve.Projective.negAddY_of_Z_ne_zero E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} [inst_1 : DecidableEq F] {P Q : Fin 3 → F},
W.Equation P →
W.Equation Q →
P 2 ≠ 0 →
Q 2 ≠ 0 →
P 0 * Q 2 ≠ Q 0 * P 2 →
W.negAddY P Q / W.addZ P Q =
W.toAffine.negAddY (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2)
(W.toAffine.slope (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2) (Q 1 / Q 2))
def WeierstrassCurve.Projective.addY E3 #
{R : Type r} → [CommRing R] → WeierstrassCurve.Projective R → (Fin 3 → R) → (Fin 3 → R) → R
The Y-coordinate of a representative of P + Q for two distinct projective point
representatives P and Q on a Weierstrass curve.
If the representatives of P and Q are equal, then this returns the value 0.
theorem WeierstrassCurve.Projective.addY_smul E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P Q : Fin 3 → R) (u v : R),
W'.addY (u • P) (v • Q) = (u * v) ^ 2 * W'.addY P Q
theorem WeierstrassCurve.Projective.addY_self E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.addY P P = 0
theorem WeierstrassCurve.Projective.addY_of_Z_eq_zero_left E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P → P 2 = 0 → W'.addY P Q = P 1 ^ 2 * Q 2 * Q 1
theorem WeierstrassCurve.Projective.addY_of_Z_eq_zero_right E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation Q → Q 2 = 0 → W'.addY P Q = -(Q 1 ^ 2 * P 2) * P 1
theorem WeierstrassCurve.Projective.addY_of_X_eq' E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P →
W'.Equation Q →
P 0 * Q 2 = Q 0 * P 2 → W'.addY P Q * (P 2 * Q 2) ^ 3 = -(P 1 * Q 2 - Q 1 * P 2) ^ 3 * (P 2 * Q 2) ^ 2
theorem WeierstrassCurve.Projective.addY_of_X_eq E0 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
W.Equation P →
W.Equation Q → P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → W.addY P Q = WeierstrassCurve.Projective.addU P Q
theorem WeierstrassCurve.Projective.addY_of_Z_ne_zero E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} [inst_1 : DecidableEq F] {P Q : Fin 3 → F},
W.Equation P →
W.Equation Q →
P 2 ≠ 0 →
Q 2 ≠ 0 →
P 0 * Q 2 ≠ Q 0 * P 2 →
W.addY P Q / W.addZ P Q =
W.toAffine.addY (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2)
(W.toAffine.slope (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2) (Q 1 / Q 2))
def WeierstrassCurve.Projective.addXYZ E1 #
{R : Type r} → [CommRing R] → WeierstrassCurve.Projective R → (Fin 3 → R) → (Fin 3 → R) → Fin 3 → R
The coordinates of a representative of P + Q for two distinct projective point representatives
P and Q on a Weierstrass curve.
If the representatives of P and Q are equal, then this returns the value ![0, 0, 0].
theorem WeierstrassCurve.Projective.addXYZ_X E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P Q : Fin 3 → R), W'.addXYZ P Q 0 = W'.addX P Q
theorem WeierstrassCurve.Projective.addXYZ_Y E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P Q : Fin 3 → R), W'.addXYZ P Q 1 = W'.addY P Q
theorem WeierstrassCurve.Projective.addXYZ_Z E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P Q : Fin 3 → R), W'.addXYZ P Q 2 = W'.addZ P Q
theorem WeierstrassCurve.Projective.addXYZ_smul E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P Q : Fin 3 → R) (u v : R),
W'.addXYZ (u • P) (v • Q) = (u * v) ^ 2 • W'.addXYZ P Q
theorem WeierstrassCurve.Projective.addXYZ_self E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.addXYZ P P = ![0, 0, 0]
theorem WeierstrassCurve.Projective.addXYZ_of_Z_eq_zero_left E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation P → P 2 = 0 → W'.addXYZ P Q = (P 1 ^ 2 * Q 2) • Q
theorem WeierstrassCurve.Projective.addXYZ_of_Z_eq_zero_right E1 #
∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [NoZeroDivisors R] {P Q : Fin 3 → R},
W'.Equation Q → Q 2 = 0 → W'.addXYZ P Q = -(Q 1 ^ 2 * P 2) • P
theorem WeierstrassCurve.Projective.addXYZ_of_X_eq E0 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
W.Equation P →
W.Equation Q →
P 2 ≠ 0 → Q 2 ≠ 0 → P 0 * Q 2 = Q 0 * P 2 → W.addXYZ P Q = WeierstrassCurve.Projective.addU P Q • ![0, 1, 0]
theorem WeierstrassCurve.Projective.addXYZ_of_Z_ne_zero E1 #
∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} [inst_1 : DecidableEq F] {P Q : Fin 3 → F},
W.Equation P →
W.Equation Q →
P 2 ≠ 0 →
Q 2 ≠ 0 →
P 0 * Q 2 ≠ Q 0 * P 2 →
W.addXYZ P Q =
W.addZ P Q •
![W.toAffine.addX (P 0 / P 2) (Q 0 / Q 2)
(W.toAffine.slope (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2) (Q 1 / Q 2)),
W.toAffine.addY (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2)
(W.toAffine.slope (P 0 / P 2) (Q 0 / Q 2) (P 1 / P 2) (Q 1 / Q 2)),
1]
theorem WeierstrassCurve.Projective.map_negY E0 #
∀ {R : Type r} {S : Type s} [inst : CommRing R] [inst_1 : CommRing S] {W' : WeierstrassCurve.Projective R} (f : R →+* S)
(P : Fin 3 → R), (W'.map f).negY (⇑f ∘ P) = f (W'.negY P)
theorem WeierstrassCurve.Projective.map_dblU E0 #
∀ {F : Type u} {K : Type v} [inst : Field F] [inst_1 : Field K] {W : WeierstrassCurve.Projective F} (f : F →+* K)
(P : Fin 3 → F), (W.map f).dblU (⇑f ∘ P) = f (W.dblU P)
theorem WeierstrassCurve.Projective.map_dblZ E0 #
∀ {R : Type r} {S : Type s} [inst : CommRing R] [inst_1 : CommRing S] {W' : WeierstrassCurve.Projective R} (f : R →+* S)
(P : Fin 3 → R), (W'.map f).dblZ (⇑f ∘ P) = f (W'.dblZ P)
theorem WeierstrassCurve.Projective.map_dblX E0 #
∀ {R : Type r} {S : Type s} [inst : CommRing R] [inst_1 : CommRing S] {W' : WeierstrassCurve.Projective R} (f : R →+* S)
(P : Fin 3 → R), (W'.map f).dblX (⇑f ∘ P) = f (W'.dblX P)
theorem WeierstrassCurve.Projective.map_negDblY E0 #
∀ {R : Type r} {S : Type s} [inst : CommRing R] [inst_1 : CommRing S] {W' : WeierstrassCurve.Projective R} (f : R →+* S)
(P : Fin 3 → R), (W'.map f).negDblY (⇑f ∘ P) = f (W'.negDblY P)
theorem WeierstrassCurve.Projective.map_dblY E0 #
∀ {R : Type r} {S : Type s} [inst : CommRing R] [inst_1 : CommRing S] {W' : WeierstrassCurve.Projective R} (f : R →+* S)
(P : Fin 3 → R), (W'.map f).dblY (⇑f ∘ P) = f (W'.dblY P)
theorem WeierstrassCurve.Projective.map_dblXYZ E0 #
∀ {R : Type r} {S : Type s} [inst : CommRing R] [inst_1 : CommRing S] {W' : WeierstrassCurve.Projective R} (f : R →+* S)
(P : Fin 3 → R), (W'.map f).dblXYZ (⇑f ∘ P) = ⇑f ∘ W'.dblXYZ P
theorem WeierstrassCurve.Projective.map_addU E0 #
∀ {F : Type u} {K : Type v} [inst : Field F] [inst_1 : Field K] (f : F →+* K) (P Q : Fin 3 → F),
WeierstrassCurve.Projective.addU (⇑f ∘ P) (⇑f ∘ Q) = f (WeierstrassCurve.Projective.addU P Q)
theorem WeierstrassCurve.Projective.map_addZ E0 #
∀ {R : Type r} {S : Type s} [inst : CommRing R] [inst_1 : CommRing S] {W' : WeierstrassCurve.Projective R} (f : R →+* S)
(P Q : Fin 3 → R), (W'.map f).addZ (⇑f ∘ P) (⇑f ∘ Q) = f (W'.addZ P Q)
theorem WeierstrassCurve.Projective.map_addX E0 #
∀ {R : Type r} {S : Type s} [inst : CommRing R] [inst_1 : CommRing S] {W' : WeierstrassCurve.Projective R} (f : R →+* S)
(P Q : Fin 3 → R), (W'.map f).addX (⇑f ∘ P) (⇑f ∘ Q) = f (W'.addX P Q)
theorem WeierstrassCurve.Projective.map_negAddY E0 #
∀ {R : Type r} {S : Type s} [inst : CommRing R] [inst_1 : CommRing S] {W' : WeierstrassCurve.Projective R} (f : R →+* S)
(P Q : Fin 3 → R), (W'.map f).negAddY (⇑f ∘ P) (⇑f ∘ Q) = f (W'.negAddY P Q)
theorem WeierstrassCurve.Projective.map_addY E0 #
∀ {R : Type r} {S : Type s} [inst : CommRing R] [inst_1 : CommRing S] {W' : WeierstrassCurve.Projective R} (f : R →+* S)
(P Q : Fin 3 → R), (W'.map f).addY (⇑f ∘ P) (⇑f ∘ Q) = f (W'.addY P Q)
theorem WeierstrassCurve.Projective.map_addXYZ E0 #
∀ {R : Type r} {S : Type s} [inst : CommRing R] [inst_1 : CommRing S] {W' : WeierstrassCurve.Projective R} (f : R →+* S)
(P Q : Fin 3 → R), (W'.map f).addXYZ (⇑f ∘ P) (⇑f ∘ Q) = ⇑f ∘ W'.addXYZ P Q
theorem WeierstrassCurve.Projective.baseChange_negY E1 #
∀ {R : Type r} {S : Type s} {A : Type u} {B : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing A]
[inst_3 : CommRing B] {W' : WeierstrassCurve.Projective R} [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) (P : Fin 3 → A), (W'.baseChange B).negY (⇑f ∘ P) = f ((W'.baseChange A).negY P)
theorem WeierstrassCurve.Projective.baseChange_dblU 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.Projective R} [inst_4 : Algebra R S] [inst_5 : Algebra R F]
[inst_6 : Algebra S F] [IsScalarTower R S F] [inst_8 : Algebra R K] [inst_9 : Algebra S K] [IsScalarTower R S K]
(f : F →ₐ[S] K) (P : Fin 3 → F), (W'.baseChange K).dblU (⇑f ∘ P) = f ((W'.baseChange F).dblU P)
theorem WeierstrassCurve.Projective.baseChange_dblZ E1 #
∀ {R : Type r} {S : Type s} {A : Type u} {B : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing A]
[inst_3 : CommRing B] {W' : WeierstrassCurve.Projective R} [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) (P : Fin 3 → A), (W'.baseChange B).dblZ (⇑f ∘ P) = f ((W'.baseChange A).dblZ P)
theorem WeierstrassCurve.Projective.baseChange_dblX E1 #
∀ {R : Type r} {S : Type s} {A : Type u} {B : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing A]
[inst_3 : CommRing B] {W' : WeierstrassCurve.Projective R} [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) (P : Fin 3 → A), (W'.baseChange B).dblX (⇑f ∘ P) = f ((W'.baseChange A).dblX P)
theorem WeierstrassCurve.Projective.baseChange_negDblY E1 #
∀ {R : Type r} {S : Type s} {A : Type u} {B : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing A]
[inst_3 : CommRing B] {W' : WeierstrassCurve.Projective R} [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) (P : Fin 3 → A), (W'.baseChange B).negDblY (⇑f ∘ P) = f ((W'.baseChange A).negDblY P)
theorem WeierstrassCurve.Projective.baseChange_dblY E1 #
∀ {R : Type r} {S : Type s} {A : Type u} {B : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing A]
[inst_3 : CommRing B] {W' : WeierstrassCurve.Projective R} [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) (P : Fin 3 → A), (W'.baseChange B).dblY (⇑f ∘ P) = f ((W'.baseChange A).dblY P)
theorem WeierstrassCurve.Projective.baseChange_dblXYZ E1 #
∀ {R : Type r} {S : Type s} {A : Type u} {B : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing A]
[inst_3 : CommRing B] {W' : WeierstrassCurve.Projective R} [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) (P : Fin 3 → A), (W'.baseChange B).dblXYZ (⇑f ∘ P) = ⇑f ∘ (W'.baseChange A).dblXYZ P
theorem WeierstrassCurve.Projective.baseChange_addX E1 #
∀ {R : Type r} {S : Type s} {A : Type u} {B : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing A]
[inst_3 : CommRing B] {W' : WeierstrassCurve.Projective R} [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) (P Q : Fin 3 → A), (W'.baseChange B).addX (⇑f ∘ P) (⇑f ∘ Q) = f ((W'.baseChange A).addX P Q)
theorem WeierstrassCurve.Projective.baseChange_negAddY E1 #
∀ {R : Type r} {S : Type s} {A : Type u} {B : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing A]
[inst_3 : CommRing B] {W' : WeierstrassCurve.Projective R} [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) (P Q : Fin 3 → A), (W'.baseChange B).negAddY (⇑f ∘ P) (⇑f ∘ Q) = f ((W'.baseChange A).negAddY P Q)
theorem WeierstrassCurve.Projective.baseChange_addY E1 #
∀ {R : Type r} {S : Type s} {A : Type u} {B : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing A]
[inst_3 : CommRing B] {W' : WeierstrassCurve.Projective R} [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) (P Q : Fin 3 → A), (W'.baseChange B).addY (⇑f ∘ P) (⇑f ∘ Q) = f ((W'.baseChange A).addY P Q)
theorem WeierstrassCurve.Projective.baseChange_addXYZ E1 #
∀ {R : Type r} {S : Type s} {A : Type u} {B : Type v} [inst : CommRing R] [inst_1 : CommRing S] [inst_2 : CommRing A]
[inst_3 : CommRing B] {W' : WeierstrassCurve.Projective R} [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) (P Q : Fin 3 → A), (W'.baseChange B).addXYZ (⇑f ∘ P) (⇑f ∘ Q) = ⇑f ∘ (W'.baseChange A).addXYZ P Q