The place at infinity of a Weierstrass function field has degree one
ProvedWeierstrassCurve.Affine.infinityPlace_deg_oneLet be a field and let be the Weierstrass curve over
(no nonsingularity assumption: the discriminant may vanish). 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 .
Let be the valuation ring at infinity of (with ), and let be the place of given by a (chosen) nonzero prime of the integral closure of in , i.e. a place of lying over the infinite place of . Then
Geometrically, corresponds to the point at infinity of the Weierstrass cubic, which is -rational; this is the case of the correspondence between rational points and places of degree one.
Formalization Note W : WeierstrassCurve.Affine k is an arbitrary Weierstrass curve (W.IsElliptic is omitted). The curve enters only through the hypotheses on K: [Algebra W.CoordinateRing K] [IsFractionRing W.CoordinateRing K], IsScalarTower k[X] W.CoordinateRing K, together with FunctionField k K and Algebra.IsSeparable k⟮X⟯ K; IsFullConstantField k K is not assumed. infinityPlace K is the intrinsic place (valuation subring with value group order-isomorphic to ) obtained from the coordinate place Chart.infinityPlace K, defined by a chosen height-one prime of the integral closure of the valuation ring at infinity; the degree is Module.finrank k of its residue field.
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]
include W
omit [WeierstrassCurve.IsElliptic W]
omit [IsFullConstantField k K]theorem WeierstrassCurve.Affine.infinityPlace_deg_one : (infinityPlace (k := k) K).degree = 1 := by sorry