A Weierstrass function field has at most one place above the infinite place of
ProvedWeierstrassCurve.Affine.Chart.infinity_heightOne_uniqueLet 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). No assumption is made on the constant field of .
Let be the valuation ring at infinity of (with ), a discrete valuation ring with maximal ideal , and let be the integral closure of in , a Dedekind domain. Its nonzero prime ideals all lie over and correspond to the places of above the infinite place of . Then any two nonzero prime ideals of coincide: for all ,
In other words, the infinite place of has at most one extension to ; since such a prime always exists (it is the place at infinity chosen in RiemannRoch_WeierstrassInfinity), the place of above infinity is unique, corresponding to the single point at infinity of the Weierstrass cubic. This uniqueness is used to show that every place of degree one comes from a rational point and to count places in the genus computation. Existence is not part of this statement.
Formalization Note W : WeierstrassCurve.Affine k is an arbitrary Weierstrass curve: the statement is made with omit [W.IsElliptic], and include W makes the curve an explicit argument. 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 Algebra k⟮X⟯ K, IsScalarTower k[X] k⟮X⟯ K, FunctionField k K and Algebra.IsSeparable k⟮X⟯ K; IsFullConstantField k K is not assumed. In the preamble, A∞ is inftyValuationSubring k, the valuation subring of Mathlib's RatFunc.inftyValuation k, and S∞ is infiniteIntegers k K = integralClosure A∞ K; the nonzero primes are the elements of IsDedekindDomain.HeightOneSpectrum S∞. The local instances of the preamble (the algebra through and some scalar-tower and faithfulness facts) are definitions provided by Def_RiemannRoch_WeierstrassInfinity, not additional hypotheses.
import Mathlib
import Definitions.Def_RiemannRoch_WeierstrassInfinity
/-
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 Polynomial
open scoped Polynomial RatFunc
open WeierstrassCurve.Affine.Chart
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]
attribute [local instance] WeierstrassCurve.Affine.Chart.instAlgebraConstants
attribute [local instance] WeierstrassCurve.Affine.Chart.instConstantsTower
attribute [local instance] WeierstrassCurve.Affine.Chart.instCoordinateConstantsTower
local notation "A∞" => inftyValuationSubring k
local notation "S∞" => infiniteIntegers k K
attribute [local instance] WeierstrassCurve.Affine.Chart.instFaithfulInfinity
attribute [local instance] WeierstrassCurve.Affine.Chart.instInfinityConstantsTower
include W
omit [WeierstrassCurve.IsElliptic W]theorem WeierstrassCurve.Affine.Chart.infinity_heightOne_unique
(v w : IsDedekindDomain.HeightOneSpectrum S∞) : v = w := by sorry