Rational points of an elliptic curve give places of degree one
ProvedWeierstrassCurve.Affine.placeOfPoint_deg_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 ).
The degree of a place of is , the dimension over of its residue field. Then for every ,
This is one half of the dictionary between the -rational points of an elliptic curve and the places of degree one of its function field, which is used to count points through the zeta function of the function field.
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 intrinsic places are valuation subrings containing with value group order-isomorphic to , and the degree Place.degree is Module.finrank k of the residue field. The instances FunctionField k K and Algebra.IsSeparable k⟮X⟯ K are hypotheses; IsFullConstantField k K is not assumed.
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.placeOfPoint_deg_one (P : W.Point) :
(placeOfPoint W K P).degree = 1 := by sorry