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.Projective.Point

97 declarations. Mathlib docs · Source

Nonsingular points and the group law in projective coordinates

Let W be a Weierstrass curve over a field F. The nonsingular projective points of W can be endowed with a group law, which is uniquely determined by the formulae in Mathlib/AlgebraicGeometry/EllipticCurve/Projective/Formula.lean and follows from an equivalence with the nonsingular points in affine coordinates.

This file defines the group law on nonsingular projective points.

Main definitions

  • WeierstrassCurve.Projective.neg: the negation of a point representative.
  • WeierstrassCurve.Projective.negMap: the negation of a point class.
  • WeierstrassCurve.Projective.add: the addition of two point representatives.
  • WeierstrassCurve.Projective.addMap: the addition of two point classes.
  • WeierstrassCurve.Projective.Point: a nonsingular projective point.
  • WeierstrassCurve.Projective.Point.neg: the negation of a nonsingular projective point.
  • WeierstrassCurve.Projective.Point.add: the addition of two nonsingular projective points.
  • WeierstrassCurve.Projective.Point.toAffineAddEquiv: the equivalence between the type of nonsingular projective points with the type of nonsingular points in affine coordinates.

Main statements

  • WeierstrassCurve.Projective.nonsingular_neg: negation preserves the nonsingular condition.
  • WeierstrassCurve.Projective.nonsingular_add: addition preserves the nonsingular condition.
  • WeierstrassCurve.Projective.Point.instAddCommGroup: the type of nonsingular projective points forms an abelian group under addition.

Implementation notes

Note that W(X, Y, Z) and its partial derivatives are independent of the point representative, and the nonsingularity condition already implies (x, y, z) ≠ (0, 0, 0), so a nonsingular projective point on W can be given by [x : y : z] and the nonsingular condition on any representative.

A nonsingular projective point representative can be converted to a nonsingular point in affine coordinates using WeierstrassCurve.Projective.Point.toAffine, which lifts to a map on nonsingular projective points using WeierstrassCurve.Projective.Point.toAffineLift. Conversely, a nonsingular point in affine coordinates can be converted to a nonsingular projective point using WeierstrassCurve.Projective.Point.fromAffine or WeierstrassCurve.Affine.Point.toProjective.

Whenever possible, all changes to documentation and naming of definitions and theorems should be mirrored in Mathlib/AlgebraicGeometry/EllipticCurve/Jacobian/Point.lean.

References

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

Tags

elliptic curve, projective, point, group law

Negation on projective point representatives

Addition on projective point representatives

Nonsingular projective points

Equivalence between projective and affine coordinates

Maps and base changes

theorem WeierstrassCurve.Projective.Point.mk.injEq E0 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R}
  {point : WeierstrassCurve.Projective.PointClass R} (nonsingular : W'.NonsingularLift point)
  (point_1 : WeierstrassCurve.Projective.PointClass R) (nonsingular_1 : W'.NonsingularLift point_1),
  ({ point := point, nonsingular := nonsingular } = { point := point_1, nonsingular := nonsingular_1 }) =
    (point = point_1)

def WeierstrassCurve.Projective.Point.ctorIdx E1 #

{R : Type r} → {inst : CommRing R} → {W' : WeierstrassCurve.Projective R} → W'.Point → ℕ

theorem WeierstrassCurve.Projective.Point.mk.inj E1 #

∀ {R : Type r} {inst : CommRing R} {W' : WeierstrassCurve.Projective R}
  {point : WeierstrassCurve.Projective.PointClass R} {nonsingular : W'.NonsingularLift point}
  {point_1 : WeierstrassCurve.Projective.PointClass R} {nonsingular_1 : W'.NonsingularLift point_1},
  { point := point, nonsingular := nonsingular } = { point := point_1, nonsingular := nonsingular_1 } → point = point_1

def WeierstrassCurve.Projective.neg E3 #

{R : Type r} → [CommRing R] → WeierstrassCurve.Projective R → (Fin 3 → R) → Fin 3 → R

The negation of a projective point representative on a Weierstrass curve.

theorem WeierstrassCurve.Projective.neg_X E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.neg P 0 = P 0

theorem WeierstrassCurve.Projective.neg_Y E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.neg P 1 = W'.negY P

theorem WeierstrassCurve.Projective.neg_Z E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.neg P 2 = P 2

theorem WeierstrassCurve.Projective.neg_smul E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R) (u : R),
  W'.neg (u • P) = u • W'.neg P

theorem WeierstrassCurve.Projective.neg_smul_equiv E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R) {u : R},
  IsUnit u → W'.neg (u • P) ≈ W'.neg P

theorem WeierstrassCurve.Projective.neg_equiv E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P Q : Fin 3 → R}, P ≈ Q → W'.neg P ≈ W'.neg Q

theorem WeierstrassCurve.Projective.neg_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'.neg P = -P 1 • ![0, 1, 0]

theorem WeierstrassCurve.Projective.neg_of_Z_ne_zero E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F},
  P 2 ≠ 0 → W.neg P = P 2 • ![P 0 / P 2, W.toAffine.negY (P 0 / P 2) (P 1 / P 2), 1]

theorem WeierstrassCurve.Projective.nonsingular_neg E3 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F},
  W.Nonsingular P → W.Nonsingular (W.neg P)

theorem WeierstrassCurve.Projective.addZ_neg E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.addZ P (W'.neg P) = 0

theorem WeierstrassCurve.Projective.addX_neg E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.addX P (W'.neg P) = 0

theorem WeierstrassCurve.Projective.negAddY_neg E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P : Fin 3 → R},
  W'.Equation P → W'.negAddY P (W'.neg P) = W'.dblZ P

theorem WeierstrassCurve.Projective.addY_neg E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P : Fin 3 → R},
  W'.Equation P → W'.addY P (W'.neg P) = -W'.dblZ P

theorem WeierstrassCurve.Projective.addXYZ_neg E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P : Fin 3 → R},
  W'.Equation P → W'.addXYZ P (W'.neg P) = -W'.dblZ P • ![0, 1, 0]

def WeierstrassCurve.Projective.negMap E3 #

{R : Type r} →
  [inst : CommRing R] →
    WeierstrassCurve.Projective R → WeierstrassCurve.Projective.PointClass R → WeierstrassCurve.Projective.PointClass R

The negation of a projective point class on a Weierstrass curve W.

If P is a projective point representative on W, then W.negMap ⟦P⟧ is definitionally equivalent to W.neg P.

theorem WeierstrassCurve.Projective.negMap_eq E0 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.negMap ⟦P⟧ = ⟦W'.neg P⟧

theorem WeierstrassCurve.Projective.negMap_of_Z_eq_zero E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F},
  W.Nonsingular P → P 2 = 0 → W.negMap ⟦P⟧ = ⟦![0, 1, 0]⟧

theorem WeierstrassCurve.Projective.negMap_of_Z_ne_zero E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F},
  P 2 ≠ 0 → W.negMap ⟦P⟧ = ⟦![P 0 / P 2, W.toAffine.negY (P 0 / P 2) (P 1 / P 2), 1]⟧

theorem WeierstrassCurve.Projective.nonsingularLift_negMap E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : WeierstrassCurve.Projective.PointClass F},
  W.NonsingularLift P → W.NonsingularLift (W.negMap P)

def WeierstrassCurve.Projective.add E3 #

{R : Type r} → [CommRing R] → WeierstrassCurve.Projective R → (Fin 3 → R) → (Fin 3 → R) → Fin 3 → R

The addition of two projective point representatives on a Weierstrass curve.

theorem WeierstrassCurve.Projective.add_of_equiv E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P Q : Fin 3 → R},
  P ≈ Q → W'.add P Q = W'.dblXYZ P

theorem WeierstrassCurve.Projective.add_smul_of_equiv E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P Q : Fin 3 → R},
  P ≈ Q → ∀ {u v : R}, IsUnit u → IsUnit v → W'.add (u • P) (v • Q) = u ^ 4 • W'.add P Q

theorem WeierstrassCurve.Projective.add_self E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P : Fin 3 → R), W'.add P P = W'.dblXYZ P

theorem WeierstrassCurve.Projective.add_of_eq E0 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P Q : Fin 3 → R},
  P = Q → W'.add P Q = W'.dblXYZ P

theorem WeierstrassCurve.Projective.add_of_not_equiv E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P Q : Fin 3 → R},
  ¬P ≈ Q → W'.add P Q = W'.addXYZ P Q

theorem WeierstrassCurve.Projective.add_smul_of_not_equiv E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P Q : Fin 3 → R},
  ¬P ≈ Q → ∀ {u v : R}, IsUnit u → IsUnit v → W'.add (u • P) (v • Q) = (u * v) ^ 2 • W'.add P Q

theorem WeierstrassCurve.Projective.add_smul_equiv E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P Q : Fin 3 → R) {u v : R},
  IsUnit u → IsUnit v → W'.add (u • P) (v • Q) ≈ W'.add P Q

theorem WeierstrassCurve.Projective.add_equiv E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P P' Q Q' : Fin 3 → R},
  P ≈ P' → Q ≈ Q' → W'.add P Q ≈ W'.add P' Q'

theorem WeierstrassCurve.Projective.add_of_Z_eq_zero E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
  W.Nonsingular P → W.Nonsingular Q → P 2 = 0 → Q 2 = 0 → W.add P Q = P 1 ^ 4 • ![0, 1, 0]

theorem WeierstrassCurve.Projective.add_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 → Q 2 ≠ 0 → W'.add P Q = (P 1 ^ 2 * Q 2) • Q

theorem WeierstrassCurve.Projective.add_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 → P 2 ≠ 0 → Q 2 = 0 → W'.add P Q = -(Q 1 ^ 2 * P 2) • P

theorem WeierstrassCurve.Projective.add_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.add P Q = W.dblU P • ![0, 1, 0]

theorem WeierstrassCurve.Projective.add_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 → W.add P Q = WeierstrassCurve.Projective.addU P Q • ![0, 1, 0]

theorem WeierstrassCurve.Projective.add_of_Y_ne' 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.add P Q =
                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]

theorem WeierstrassCurve.Projective.add_of_X_ne 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.add 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.nonsingular_add E3 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
  W.Nonsingular P → W.Nonsingular Q → W.Nonsingular (W.add P Q)

def WeierstrassCurve.Projective.addMap E3 #

{R : Type r} →
  [inst : CommRing R] →
    WeierstrassCurve.Projective R →
      WeierstrassCurve.Projective.PointClass R →
        WeierstrassCurve.Projective.PointClass R → WeierstrassCurve.Projective.PointClass R

The addition of two projective point classes on a Weierstrass curve W.

If P and Q are two projective point representatives on W, then W.addMap ⟦P⟧ ⟦Q⟧ is definitionally equivalent to W.add P Q.

theorem WeierstrassCurve.Projective.addMap_eq E0 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (P Q : Fin 3 → R),
  W'.addMap ⟦P⟧ ⟦Q⟧ = ⟦W'.add P Q⟧

theorem WeierstrassCurve.Projective.addMap_of_Z_eq_zero_left E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F}
  {Q : WeierstrassCurve.Projective.PointClass F}, W.Nonsingular P → W.NonsingularLift Q → P 2 = 0 → W.addMap ⟦P⟧ Q = Q

theorem WeierstrassCurve.Projective.addMap_of_Z_eq_zero_right E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : WeierstrassCurve.Projective.PointClass F}
  {Q : Fin 3 → F}, W.NonsingularLift P → W.Nonsingular Q → Q 2 = 0 → W.addMap P ⟦Q⟧ = P

theorem WeierstrassCurve.Projective.addMap_of_Y_eq E0 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
  W.Nonsingular 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.addMap ⟦P⟧ ⟦Q⟧ = ⟦![0, 1, 0]⟧

theorem WeierstrassCurve.Projective.addMap_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.addMap ⟦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.nonsingularLift_addMap E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : WeierstrassCurve.Projective.PointClass F},
  W.NonsingularLift P → W.NonsingularLift Q → W.NonsingularLift (W.addMap P Q)

structure WeierstrassCurve.Projective.Point E3 #

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

A nonsingular projective point on a Weierstrass curve W.

theorem WeierstrassCurve.Projective.Point.ext_iff E0 #

∀ {R : Type r} {inst : CommRing R} {W' : WeierstrassCurve.Projective R} {x y : W'.Point}, x = y ↔ x.point = y.point

theorem WeierstrassCurve.Projective.Point.ext E1 #

∀ {R : Type r} {inst : CommRing R} {W' : WeierstrassCurve.Projective R} {x y : W'.Point}, x.point = y.point → x = y

ctor WeierstrassCurve.Projective.Point.mk E0 #

{R : Type r} →
  [inst : CommRing R] →
    {W' : WeierstrassCurve.Projective R} →
      {point : WeierstrassCurve.Projective.PointClass R} → W'.NonsingularLift point → W'.Point

abbrev WeierstrassCurve.Projective.Point.point E1 #

{R : Type r} →
  [inst : CommRing R] → {W' : WeierstrassCurve.Projective R} → W'.Point → WeierstrassCurve.Projective.PointClass R

The projective point class underlying a nonsingular projective point on W.

theorem WeierstrassCurve.Projective.Point.nonsingular E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} (self : W'.Point), W'.NonsingularLift self.point

The nonsingular condition underlying a nonsingular projective point on W.

theorem WeierstrassCurve.Projective.Point.mk_point E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} {P : WeierstrassCurve.Projective.PointClass R}
  (h : W'.NonsingularLift P), { point := P, nonsingular := h }.point = P

instance WeierstrassCurve.Projective.Point.instZeroOfNontrivial E0 #

{R : Type r} → [inst : CommRing R] → {W' : WeierstrassCurve.Projective R} → [Nontrivial R] → Zero W'.Point

theorem WeierstrassCurve.Projective.Point.zero_def E0 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [inst_1 : Nontrivial R],
  0 = { point := ⟦![0, 1, 0]⟧, nonsingular := ⋯ }

theorem WeierstrassCurve.Projective.Point.zero_point E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [inst_1 : Nontrivial R],
  WeierstrassCurve.Projective.Point.point 0 = ⟦![0, 1, 0]⟧

theorem WeierstrassCurve.Projective.Point.mk_ne_zero E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [inst_1 : Nontrivial R] {X Y : R}
  (h : W'.NonsingularLift ⟦![X, Y, 1]⟧), { point := ⟦![X, Y, 1]⟧, nonsingular := h } ≠ 0

def WeierstrassCurve.Projective.Point.fromAffine E1 #

{R : Type r} →
  [inst : CommRing R] → {W' : WeierstrassCurve.Projective R} → [Nontrivial R] → W'.toAffine.Point → W'.Point

The natural map from a nonsingular point on a Weierstrass curve in affine coordinates to its corresponding nonsingular projective point.

theorem WeierstrassCurve.Projective.Point.fromAffine_zero E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [inst_1 : Nontrivial R],
  WeierstrassCurve.Projective.Point.fromAffine 0 = 0

theorem WeierstrassCurve.Projective.Point.fromAffine_some E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [inst_1 : Nontrivial R] {X Y : R}
  (h : W'.toAffine.Nonsingular X Y),
  WeierstrassCurve.Projective.Point.fromAffine (WeierstrassCurve.Affine.Point.some X Y h) =
    { point := ⟦![X, Y, 1]⟧, nonsingular := ⋯ }

theorem WeierstrassCurve.Projective.Point.fromAffine_some_ne_zero E1 #

∀ {R : Type r} [inst : CommRing R] {W' : WeierstrassCurve.Projective R} [inst_1 : Nontrivial R] {X Y : R}
  (h : W'.toAffine.Nonsingular X Y),
  WeierstrassCurve.Projective.Point.fromAffine (WeierstrassCurve.Affine.Point.some X Y h) ≠ 0

def WeierstrassCurve.Projective.Point.neg E3 #

{F : Type u} → [inst : Field F] → {W : WeierstrassCurve.Projective F} → W.Point → W.Point

The negation of a nonsingular projective point on a Weierstrass curve W.

Given a nonsingular projective point P on W, use -P instead of neg P.

instance WeierstrassCurve.Projective.Point.instNeg E0 #

{F : Type u} → [inst : Field F] → {W : WeierstrassCurve.Projective F} → Neg W.Point

theorem WeierstrassCurve.Projective.Point.neg_def E0 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} (P : W.Point), -P = P.neg

theorem WeierstrassCurve.Projective.Point.neg_point E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} (P : W.Point), (-P).point = W.negMap P.point

def WeierstrassCurve.Projective.Point.add E3 #

{F : Type u} → [inst : Field F] → {W : WeierstrassCurve.Projective F} → W.Point → W.Point → W.Point

The addition of two nonsingular projective points on a Weierstrass curve W.

Given two nonsingular projective points P and Q on W, use P + Q instead of add P Q.

instance WeierstrassCurve.Projective.Point.instAdd E0 #

{F : Type u} → [inst : Field F] → {W : WeierstrassCurve.Projective F} → Add W.Point

theorem WeierstrassCurve.Projective.Point.add_def E0 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} (P Q : W.Point), P + Q = P.add Q

theorem WeierstrassCurve.Projective.Point.add_point E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} (P Q : W.Point),
  (P + Q).point = W.addMap P.point Q.point

def WeierstrassCurve.Projective.Point.toAffine E1 #

{F : Type u} → [inst : Field F] → (W : WeierstrassCurve.Projective F) → (Fin 3 → F) → W.toAffine.Point

The natural map from a nonsingular projective point representative on a Weierstrass curve to its corresponding nonsingular point in affine coordinates.

theorem WeierstrassCurve.Projective.Point.toAffine_of_singular E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F},
  ¬W.Nonsingular P → WeierstrassCurve.Projective.Point.toAffine W P = 0

theorem WeierstrassCurve.Projective.Point.toAffine_of_Z_eq_zero E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F},
  P 2 = 0 → WeierstrassCurve.Projective.Point.toAffine W P = 0

theorem WeierstrassCurve.Projective.Point.toAffine_zero E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F},
  WeierstrassCurve.Projective.Point.toAffine W ![0, 1, 0] = 0

theorem WeierstrassCurve.Projective.Point.toAffine_of_Z_ne_zero E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F} (hP : W.Nonsingular P)
  (hPz : P 2 ≠ 0),
  WeierstrassCurve.Projective.Point.toAffine W P = WeierstrassCurve.Affine.Point.some (P 0 / P 2) (P 1 / P 2) ⋯

theorem WeierstrassCurve.Projective.Point.toAffine_some E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {X Y : F} (h : W.Nonsingular ![X, Y, 1]),
  WeierstrassCurve.Projective.Point.toAffine W ![X, Y, 1] = WeierstrassCurve.Affine.Point.some X Y ⋯

theorem WeierstrassCurve.Projective.Point.toAffine_smul E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} (P : Fin 3 → F) {u : F},
  IsUnit u → WeierstrassCurve.Projective.Point.toAffine W (u • P) = WeierstrassCurve.Projective.Point.toAffine W P

theorem WeierstrassCurve.Projective.Point.toAffine_of_equiv E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P Q : Fin 3 → F},
  P ≈ Q → WeierstrassCurve.Projective.Point.toAffine W P = WeierstrassCurve.Projective.Point.toAffine W Q

theorem WeierstrassCurve.Projective.Point.toAffine_neg E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F},
  W.Nonsingular P →
    WeierstrassCurve.Projective.Point.toAffine W (W.neg P) = -WeierstrassCurve.Projective.Point.toAffine W P

theorem WeierstrassCurve.Projective.Point.toAffine_add E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} [inst_1 : DecidableEq F] {P Q : Fin 3 → F},
  W.Nonsingular P →
    W.Nonsingular Q →
      WeierstrassCurve.Projective.Point.toAffine W (W.add P Q) =
        WeierstrassCurve.Projective.Point.toAffine W P + WeierstrassCurve.Projective.Point.toAffine W Q

def WeierstrassCurve.Projective.Point.toAffineLift E1 #

{F : Type u} → [inst : Field F] → {W : WeierstrassCurve.Projective F} → W.Point → W.toAffine.Point

The natural map from a nonsingular projective point on a Weierstrass curve W to its corresponding nonsingular point in affine coordinates.

If hP is the nonsingular condition underlying a nonsingular projective point P on W, then toAffineLift ⟨hP⟩ is definitionally equivalent to toAffine W P.

theorem WeierstrassCurve.Projective.Point.toAffineLift_eq E0 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F} (hP : W.NonsingularLift ⟦P⟧),
  { point := ⟦P⟧, nonsingular := hP }.toAffineLift = WeierstrassCurve.Projective.Point.toAffine W P

theorem WeierstrassCurve.Projective.Point.toAffineLift_of_Z_eq_zero E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F} (hP : W.NonsingularLift ⟦P⟧),
  P 2 = 0 → { point := ⟦P⟧, nonsingular := hP }.toAffineLift = 0

theorem WeierstrassCurve.Projective.Point.toAffineLift_zero E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F},
  WeierstrassCurve.Projective.Point.toAffineLift 0 = 0

theorem WeierstrassCurve.Projective.Point.toAffineLift_of_Z_ne_zero E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {P : Fin 3 → F} {hP : W.NonsingularLift ⟦P⟧}
  (hPz : P 2 ≠ 0),
  { point := ⟦P⟧, nonsingular := hP }.toAffineLift = WeierstrassCurve.Affine.Point.some (P 0 / P 2) (P 1 / P 2) ⋯

theorem WeierstrassCurve.Projective.Point.toAffineLift_some E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} {X Y : F} (h : W.NonsingularLift ⟦![X, Y, 1]⟧),
  { point := ⟦![X, Y, 1]⟧, nonsingular := h }.toAffineLift = WeierstrassCurve.Affine.Point.some X Y ⋯

theorem WeierstrassCurve.Projective.Point.toAffineLift_neg E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} (P : W.Point), (-P).toAffineLift = -P.toAffineLift

theorem WeierstrassCurve.Projective.Point.toAffineLift_add E1 #

∀ {F : Type u} [inst : Field F] {W : WeierstrassCurve.Projective F} [inst_1 : DecidableEq F] (P Q : W.Point),
  (P + Q).toAffineLift = P.toAffineLift + Q.toAffineLift

def WeierstrassCurve.Projective.Point.toAffineAddEquiv E3 #

{F : Type u} →
  [inst : Field F] → (W : WeierstrassCurve.Projective F) → [inst_1 : DecidableEq F] → W.Point ≃+ W.toAffine.Point

The addition-preserving equivalence between the type of nonsingular projective points on a Weierstrass curve W and the type of nonsingular points in affine coordinates.

theorem WeierstrassCurve.Projective.Point.toAffineAddEquiv_apply E0 #

∀ {F : Type u} [inst : Field F] (W : WeierstrassCurve.Projective F) [inst_1 : DecidableEq F] (P : W.Point),
  (WeierstrassCurve.Projective.Point.toAffineAddEquiv W) P = P.toAffineLift

theorem WeierstrassCurve.Projective.Point.toAffineAddEquiv_symm_apply E0 #

∀ {F : Type u} [inst : Field F] (W : WeierstrassCurve.Projective F) [inst_1 : DecidableEq F] (a : W.toAffine.Point),
  (WeierstrassCurve.Projective.Point.toAffineAddEquiv W).symm a = WeierstrassCurve.Projective.Point.fromAffine a

instance WeierstrassCurve.Projective.Point.instAddCommGroup E3 #

{F : Type u} → [inst : Field F] → {W : WeierstrassCurve.Projective F} → AddCommGroup W.Point

theorem WeierstrassCurve.Projective.map_neg 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).neg (⇑f ∘ P) = ⇑f ∘ W'.neg P

theorem WeierstrassCurve.Projective.map_add E0 #

∀ {F : Type u} {K : Type v} [inst : Field F] [inst_1 : Field K] {W : WeierstrassCurve.Projective F} (f : F →+* K)
  {P Q : Fin 3 → F}, W.Nonsingular P → W.Nonsingular Q → (W.map f).add (⇑f ∘ P) (⇑f ∘ Q) = ⇑f ∘ W.add P Q

theorem WeierstrassCurve.Projective.baseChange_neg 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).neg (⇑f ∘ P) = ⇑f ∘ (W'.baseChange A).neg P

theorem WeierstrassCurve.Projective.baseChange_add 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 Q : Fin 3 → F},
  (W'.baseChange F).Nonsingular P →
    (W'.baseChange F).Nonsingular Q → (W'.baseChange K).add (⇑f ∘ P) (⇑f ∘ Q) = ⇑f ∘ (W'.baseChange F).add P Q

abbrev WeierstrassCurve.Affine.Point.toProjective E1 #

{R : Type r} →
  [inst : CommRing R] →
    [Nontrivial R] → {W : WeierstrassCurve.Affine R} → W.Point → (WeierstrassCurve.toProjective W).Point

An abbreviation for WeierstrassCurve.Projective.Point.fromAffine for dot notation.