Concrete regression for the elliptic-curve development #
This file is an end-to-end smoke test: it instantiates the generic elliptic-curve theorems on a concrete Weierstrass curve over a concrete algebraically closed field, so that instance synthesis for the whole hypothesis pack is exercised for real.
- The base field is
k := AlgebraicClosure ℚ(characteristic zero,IsAlgClosed). - The curve is
y² = x³ - x, i.e.curve : WeierstrassCurve.Affine k := ⟨0, 0, 0, -1, 0⟩, whose discriminant isΔ = 64 ≠ 0, so it is elliptic. - The fraction field
Kofcurve.CoordinateRingis kept abstract (exactly as the general theorems are stated); a concreteFractionRingwould reintroduce aSemiringinstance diamond.
We assemble the full k[X] / k⟮X⟯ algebra tower via the constructors in
RiemannRoch.EllipticCurve.Instances, and then check that the public targets
genus_eq_one, picTorsor, and picTorsor_compat_groupLaw elaborate on this concrete input.
All declarations live in the RiemannRochTest.EllipticCurve namespace so that the generic names
k, curve, … do not leak into the root environment.
The concrete algebraically closed base field: the algebraic closure of ℚ.
Instances For
The concrete Weierstrass curve y² = x³ - x over k = AlgebraicClosure ℚ.
Equations
- RiemannRochTest.EllipticCurve.curve = { a₁ := 0, a₂ := 0, a₃ := 0, a₄ := -1, a₆ := 0 }
Instances For
The discriminant of curve is 64.
curve is an elliptic curve: its discriminant 64 is a unit over a field of characteristic
zero.
The affine point (0, 0) is a nonsingular point of curve
(here a₆ = 0 and a₄ = -1 ≠ 0).
The instance tower on the abstract fraction field K #
Each local instance is a constructor from RiemannRoch.EllipticCurve.Instances, introduced in
strict dependency order so that the next one can synthesise the ones already in scope.
Item 1: the k[X]-algebra structure on K (X ↦ x).
Equations
Instances For
Item 1: compatibility of the k[X]-algebra with the coordinate-ring inclusion.
Item 2: the k⟮X⟯-algebra structure on K.
Equations
Instances For
Item 2: the k[X] → k⟮X⟯ → K scalar tower.
Item 3: K is a function field over k.
Item 4: K is separable over k⟮X⟯.
Constant field: the k-algebra structure on K through k[X].
Equations
Instances For
Constant field: the k → k[X] → K scalar tower.
Item 5: over an algebraically closed base, the constant field is full.