Every place at infinity of a Weierstrass function field has ramification index over
ProvedWeierstrassCurve.Affine.Chart.infinity_ramificationIdx_eq_twoLet 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 for every nonzero prime ideal of the ramification index of over equals two:
Since has degree over , this says that the infinite place of is totally ramified in ; geometrically, has a double pole at the point at infinity of the Weierstrass cubic. Combined with the fundamental equality , it yields that there is only one place above infinity and that it has inertia degree one, hence degree one.
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. The ramification index is Mathlib's Ideal.ramificationIdx', defined as .
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_ramificationIdx_eq_two
(v : IsDedekindDomain.HeightOneSpectrum S∞) :
(IsLocalRing.maximalIdeal A∞).ramificationIdx' v.asIdeal = 2 := by sorry