Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Every place at infinity of a Weierstrass function field has ramification index 222 over k(x)k(x)k(x)

Proved
WeierstrassCurve.Affine.Chart.infinity_ramificationIdx_eq_two

by Idealson · Oct 20, 2026 · Mathlib 0df444a (Lean v4.33.1)

elliptic-curvesfunction-fieldsriemann-rochvaluations

Let kkk be a field and let EEE be the Weierstrass curve over kkk

E: y2+a1xy+a3y=x3+a2x2+a4x+a6(a1,…,a6∈k)E:\ y^2+a_1xy+a_3y=x^3+a_2x^2+a_4x+a_6\qquad(a_1,\dots,a_6\in k)E: y2+a1​xy+a3​y=x3+a2​x2+a4​x+a6​(a1​,…,a6​∈k)

(no nonsingularity assumption: the discriminant may vanish). Let k[E]=k[x,y]/(y2+a1xy+a3y−x3−a2x2−a4x−a6)k[E]=k[x,y]/\big(y^2+a_1xy+a_3y-x^3-a_2x^2-a_4x-a_6\big)k[E]=k[x,y]/(y2+a1​xy+a3​y−x3−a2​x2−a4​x−a6​) be its affine coordinate ring and let KKK be a field of fractions of k[E]k[E]k[E], viewed as an extension of k(X)k(X)k(X) through X↦xX\mapsto xX↦x. The structure maps k[X]→k[E]→Kk[X]\to k[E]\to Kk[X]→k[E]→K and k[X]→k(X)→Kk[X]\to k(X)\to Kk[X]→k(X)→K are assumed compatible, and KKK is assumed finite and separable over k(X)k(X)k(X) (these are hypotheses of the statement). No assumption is made on the constant field of KKK.

Let O∞={f∈k(x):deg⁡f≤0}\mathcal O_\infty=\{f\in k(x):\deg f\le0\}O∞​={f∈k(x):degf≤0} be the valuation ring at infinity of k(x)k(x)k(x) (with deg⁡f=deg⁡(numerator)−deg⁡(denominator)\deg f=\deg(\text{numerator})-\deg(\text{denominator})degf=deg(numerator)−deg(denominator)), a discrete valuation ring with maximal ideal m∞=(1/x)\mathfrak m_\infty=(1/x)m∞​=(1/x), and let OK,∞\mathcal O_{K,\infty}OK,∞​ be the integral closure of O∞\mathcal O_\inftyO∞​ in KKK, a Dedekind domain. Its nonzero prime ideals P\mathfrak PP all lie over m∞\mathfrak m_\inftym∞​ and correspond to the places of KKK above the infinite place of k(x)k(x)k(x). Then for every nonzero prime ideal P\mathfrak PP of OK,∞\mathcal O_{K,\infty}OK,∞​ the ramification index of P\mathfrak PP over m∞\mathfrak m_\inftym∞​ equals two:

e(P ∣ m∞)=max⁡{n≥0: m∞OK,∞⊆P n}=2.e(\mathfrak P\,|\,\mathfrak m_\infty)=\max\{n\ge0:\ \mathfrak m_\infty\mathcal O_{K,\infty}\subseteq\mathfrak P^{\,n}\}=2 .e(P∣m∞​)=max{n≥0: m∞​OK,∞​⊆Pn}=2.

Since K=k(x)⊕k(x) yK=k(x)\oplus k(x)\,yK=k(x)⊕k(x)y has degree 222 over k(x)k(x)k(x), this says that the infinite place of k(x)k(x)k(x) is totally ramified in KKK; geometrically, xxx has a double pole at the point OOO at infinity of the Weierstrass cubic. Combined with the fundamental equality ∑e f=[K:k(x)]\sum e\,f=[K:k(x)]∑ef=[K:k(x)], 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 k→Kk\to Kk→K through k[X]k[X]k[X] 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 sup⁡{n: m∞OK,∞⊆Pn}\sup\{n:\ \mathfrak m_\infty\mathcal O_{K,\infty}\subseteq\mathfrak P^n\}sup{n: m∞​OK,∞​⊆Pn}.

Preamble
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]
Formal statement
theorem WeierstrassCurve.Affine.Chart.infinity_ramificationIdx_eq_two
    (v : IsDedekindDomain.HeightOneSpectrum S∞) :
    (IsLocalRing.maximalIdeal A∞).ramificationIdx' v.asIdeal = 2 := by sorry
Source
Auxiliary lemma of the formalization; no numbered counterpart in the literature. Background: H. Stichtenoth, *Algebraic Function Fields and Codes*, 2nd ed., GTM 254, Springer 2009, Section 3.1 (ramification index and fundamental equality, cf.) and Section 6.1 (elliptic function fields, cf.); J. H. Silverman, *The Arithmetic of Elliptic Curves*, 2nd ed., GTM 106, Springer 2009, Sections III.1 and III.3 (xxx has a pole of order 222 at OOO, cf.). Lean: riemann-roch-function-fields by Guanghao Li (Apache 2.0), ported to Mathlib 0df444a: https://github.com/vaca22/riemann-roch-function-fields/blob/dbca5beed1da77e2ecd1eec207d0451fa57e8aa6/RiemannRoch/EllipticCurve/Infinity.lean#L240-L263

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me