Places of points of an elliptic curve as places of its function field, and degree-one places
DefinitionRiemannRoch_WeierstrassGenusLet be a field and an elliptic Weierstrass curve over , with nonzero discriminant, let be a fraction field of its coordinate ring with compatible embeddings , , such that is finite separable and is the full constant field of . Let be the chart places, the place at infinity and the point–place map (file RiemannRoch_WeierstrassInfinity), and let be the bijection from chart places to intrinsic places of (valuation subrings containing with value group ).
This file introduces:
- the chart divisor ;
- the intrinsic place at infinity and, for every point , the intrinsic place of , , so that ;
- the bijection
induced by the chart–intrinsic bijection.
It also contains the structural lemma in .
These are the objects in which the theorems on Weierstrass function fields are stated: the places have degree one, every degree-one place is some , and the genus of is one. In the chain of definition files it imports RiemannRoch_WeierstrassInfinity and is imported by WeilConjectures_RiemannRochFLT.
Formalization Note The curve is W : WeierstrassCurve.Affine k with [W.IsElliptic]; the field carries [Algebra W.CoordinateRing K] [IsFractionRing W.CoordinateRing K], Algebra k[X] K, IsScalarTower k[X] W.CoordinateRing K, Algebra k⟮X⟯ K, IsScalarTower k[X] k⟮X⟯ K, FunctionField k K, Algebra.IsSeparable k⟮X⟯ K, Algebra k K, IsScalarTower k k[X] K and IsFullConstantField k K. The divisor is Chart.infinityDivisor, the intrinsic places are WeierstrassCurve.Affine.infinityPlace K and placeOfPoint W K P : Place k K (images under chartToPlace), and the bijection is degreeOnePlaceEquivChart, where Place.degree and placeDegree agree through placeDegree_eq. The source modules GenusCounting, GenusOne and DegreeOneDictionary contribute only these few declarations; their theorems are published separately or omitted.
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.
-/
set_option linter.style.haveILetI false
section
section
open FunctionField
open FunctionField.Chart
open scoped Polynomial RatFunc WithZero
namespace WeierstrassCurve.Affine.Chart
noncomputable section
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 [WeierstrassCurve.IsElliptic W] [_root_.FunctionField k K] [Algebra.IsSeparable k⟮X⟯ K]
[Algebra k K] [IsScalarTower k k[X] K] [IsFullConstantField k K] in
lemma yCoord_ne_zero : W.yCoord K ≠ 0 := by
intro h
exact W.yCoord_notMem_range K ⟨0, by simpa using h.symm⟩
noncomputable def infinityDivisor : DivisorA k K :=
Finsupp.single (infinityPlace K) 1
end
end WeierstrassCurve.Affine.Chart
end
end
section
section
open FunctionField
open FunctionField.Chart
open scoped Polynomial RatFunc nonZeroDivisors
namespace WeierstrassCurve.Affine
noncomputable section
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]
noncomputable def infinityPlace : Place k K :=
chartToPlace k K (Chart.infinityPlace K)
noncomputable def placeOfPoint (P : W.Point) : Place k K :=
chartToPlace k K (Chart.placeOfPoint W K P)
noncomputable def degreeOnePlaceEquivChart :
{v : Place k K // v.degree = 1} ≃ {w : PlaceA k K // placeDegree k K w = 1} where
toFun v := ⟨(chartToPlace k K).symm v.1, by
rw [placeDegree_eq]
simpa using v.2⟩
invFun w := ⟨chartToPlace k K w.1, by
rw [← placeDegree_eq]
exact w.2⟩
left_inv v := Subtype.ext ((chartToPlace k K).apply_symm_apply v.1)
right_inv w := Subtype.ext ((chartToPlace k K).symm_apply_apply w.1)
end
end WeierstrassCurve.Affine
end
end