Every place of degree one of an elliptic function field comes from a rational point
ProvedWeierstrassCurve.Affine.exists_point_of_place_degree_oneLet be a field and let be the Weierstrass curve over
with nonzero discriminant , i.e. an elliptic curve. Let be its affine coordinate ring and let be a field of fractions of , viewed as an extension of through . The structure maps and are assumed compatible, and is assumed finite and separable over (these are hypotheses of the statement). The structure map is the composite ; no assumption is made on the constant field of .
The set of -rational points consists of the point at infinity together with the affine points satisfying the Weierstrass equation at which the curve is nonsingular. To one attaches a place of : for it is the place whose valuation ring is the localization of at the maximal ideal , and for it is the place of lying over the infinite place of , i.e. over the valuation ring (with ).
Let be a place of (a valuation ring with and infinite cyclic value group) of degree one, i.e. . Then there is a rational point with
Together with the fact that each has degree one, this shows that maps onto the set of places of degree one of ; in particular, over a finite field , the number of places of degree one is at most .
Formalization Note W : WeierstrassCurve.Affine k is Mathlib's Weierstrass curve, W.IsElliptic means that its discriminant is a unit, and W.Point is Mathlib's type of points: zero (the point ) or an affine point with a proof of W.Nonsingular x₀ y₀. The function field is an abstract field K with [Algebra W.CoordinateRing K] [IsFractionRing W.CoordinateRing K] and IsScalarTower k[X] W.CoordinateRing K. The places placeOfPoint W K P and infinityPlace K are intrinsic places obtained from coordinate places: an affine point gives the height-one prime of the integral closure of in corresponding to , and infinityPlace comes from a chosen height-one prime of the integral closure in of the valuation ring at infinity of . The place v : Place k K is an intrinsic place (valuation subring with value group order-isomorphic to ) and v.degree is Module.finrank k of its residue field. The instances FunctionField k K and Algebra.IsSeparable k⟮X⟯ K are hypotheses; IsFullConstantField k K is not assumed. Only existence of is asserted (uniqueness is not part of the statement).
import Mathlib
import Definitions.Def_RiemannRoch_WeierstrassGenus
/-
Contains code from riemann-roch-function-fields
(https://github.com/vaca22/riemann-roch-function-fields, commit dbca5bee),
Copyright (c) 2026 Guanghao Li, released under the Apache License 2.0
(https://www.apache.org/licenses/LICENSE-2.0).
Modified: ported to Lean v4.33.1 / Mathlib 0df444a (module headers converted, some proofs
adapted to this Mathlib, a few names qualified, `picTorsor` omitted; statements unchanged), then
split into prove2.me definitions and theorems, with comments removed.
-/
open FunctionField
open FunctionField.Chart
open scoped Polynomial RatFunc nonZeroDivisors
open WeierstrassCurve.Affine
variable {k : Type*} [Field k] (W : WeierstrassCurve.Affine k) [W.IsElliptic]
variable (K : Type*) [Field K] [Algebra W.CoordinateRing K] [IsFractionRing W.CoordinateRing K]
variable [Algebra k[X] K] [IsScalarTower k[X] W.CoordinateRing K]
[Algebra k⟮X⟯ K] [IsScalarTower k[X] k⟮X⟯ K]
[_root_.FunctionField k K] [Algebra.IsSeparable k⟮X⟯ K]
[Algebra k K] [IsScalarTower k k[X] K] [IsFullConstantField k K]
omit [IsFullConstantField k K]
include Wtheorem WeierstrassCurve.Affine.exists_point_of_place_degree_one (v : Place k K) (hv : v.degree = 1) :
∃ P : W.Point, v = placeOfPoint W K P := by sorry