A function field of one variable over a field is a field extension that is a finite extension of the rational function field . It is the algebraic counterpart of a smooth projective curve over : elements of are the rational functions on the curve, and the curve's closed points appear algebraically as places, the valuation rings of that contain .
Two communities depend on this dictionary. Arithmetic geometers read Diophantine statements about curves as statements about places of ; this is the language in which the Mordell conjecture is stated in the LeanEval benchmark. Coding theorists build algebraic-geometry codes by evaluating functions at places, and the construction is well posed only because a single function has finitely many poles. That finiteness is Corollary 1.3.4 of Stichtenoth, Algebraic Function Fields and Codes (Springer GTM 254).
This mission formalizes that corollary in the exact form fixed by the LeanEval benchmark problem faltings (pinned declaration, lines 62–66), whose first hole it is. The same statement is mirrored, with a complete proof, in the AxiomMath/Mordell library (Mordell/LeanEval/Faltings.lean, lines 122–128); that proof runs on Lean v4.35.0 and rests on the library's own function-field development and the Stacks Project, neither of which is available here. The mathematics is settled; what is asked for is a machine-checked proof in this platform's pinned Mathlib environment, from the benchmark's own definitions.
The corollary is also the load-bearing prerequisite for the second LeanEval hole, Faltings' theorem itself: the diagonal embedding into the adele ring is defined by this finiteness, so the genus in that statement cannot even be written down until this theorem is proved.
Let and be fields with a -algebra structure on . Write for the rational function field, RatFunc K in Lean. The extension is an algebraic function field of one variable when carries a -algebra structure compatible with and is finite-dimensional over ; the Lean class BundledFunctionField K F bundles exactly these three requirements.
A place of is a -subalgebra which is a valuation subring — for every , either or — and which is proper, . In Lean this is the structure Place K F, carrying a K-subalgebra, a valuation-subring structure on the same carrier, and the inequality ne_top. The condition is automatic and is not imposed. Membership means ; each place is a local ring with fraction field .
For , a pole of is a place with .
For every algebraic function field of one variable and every ,
Nothing is assumed about : it need not be perfect, finite, or the full constant field of , and may be algebraic over (in which case the set is empty). The declaration is LeanEval.AlgebraicGeometry.Faltings.finite_setOf_place_notMem, with the benchmark's binders preserved: K explicit, F implicit, [Field K] [Field F] [Algebra K F] [BundledFunctionField K F], and (x : F).
The statement is what makes evaluation of a function at almost all places meaningful. It gives the divisor of a nonzero function a finite support, hence a well-defined degree, and it is the first step towards Riemann–Roch, the adele ring, and the genus. In the LeanEval development it is used immediately: Adele.principal, the diagonal , takes this theorem as its proof obligation, and genus is defined from that diagonal.
Formalizing it here produces a Mathlib-only route to the places of a function field: the definition layer published with this mission is reusable by any later mission about function fields, adeles, or curves, and a proof would supply the prerequisite that the companion Faltings mission needs before its own definition layer can be published. The result is proved in the AxiomMath/Mordell library, but not in this environment and not from these definitions; no machine-checked proof of this exact declaration exists on the platform.
The naive argument — " has finitely many zeros and poles because it is a rational function" — presupposes a projective model of that this statement does not provide: only the field extension is given. The standard route splits on whether is algebraic over . Algebraic elements lie in every place, which itself needs an argument about integral elements over a field inside a valuation ring. Otherwise is transcendental, is a polynomial ring, and one must pass to its integral closure in , show is a Dedekind domain, show that the maximal ideals of containing are finite in number, and show that every place at which has a pole is the localization of at one of them. The last step — a valuation ring of dominating a Dedekind prime is determined by that prime — is where a first attempt typically stalls, and it is not a formality: it needs the valuation-subring structure, not merely locality.
The definition layer is the benchmark's own, not a substitute: ValuationSubalgebra, BundledFunctionField, Place, and the SetLike, SMulMemClass, SubringClass, HasMemOrInvMem, Algebra, IsScalarTower, IsFractionRing and ValuationRing instances on a place. Finiteness is Set.Finite, not a Finset or a cardinal bound; no bound on the number of poles is asserted, and none may be added to the goal. The statement is about all places of , including those whose residue field is larger than .
A trivializing formalization is excluded: strengthening BundledFunctionField (for instance by demanding that be algebraically closed in , or that ) changes the theorem and is not accepted; nor is the goal satisfied by proving finiteness only for transcendental .
Contributions welcome: the Dedekind-domain infrastructure of -orders in a function field, the correspondence between places and maximal ideals, and any reusable valuation-theoretic lemmas, published as separate platform theorems.
faltings, statement revision 1, declaration and manifest. Authoritative for the target.Mordell/LeanEval/Faltings.lean and Mordell/FunctionField/Place/Poles.lean. A kernel-checked proof on a different toolchain and library stack.namespace LeanEval.AlgebraicGeometry.Faltings
theorem finite_setOf_place_notMem (K : Type*) {F : Type*} [Field K] [Field F] [Algebra K F]
[BundledFunctionField K F] (x : F) :
{v : Place K F | x ∉ v}.Finite := by sorry
end LeanEval.AlgebraicGeometry.FaltingsAn element of an algebraic function field of one variable has only finitely many poles (Stichtenoth, Corollary 1.3.4).
Let be a field and a field carrying a -algebra structure. Assume is an algebraic function field of one variable over with a chosen structure map: is an algebra over the rational function field , the tower is a scalar tower, and is finite-dimensional over . A place of is a proper -subalgebra that is a valuation subring, so that for every either or . Write for the type of places.
For every , the set of places at which has a pole is finite:
No hypothesis is placed on beyond being a field: it need not be perfect, nor finite, nor the full constant field of . The element is arbitrary; if is algebraic over the set is empty, and the assertion is that in all cases only finitely many places fail to contain . No bound on the number of poles is asserted.
This is the statement that makes the divisor of a nonzero function a finite object, and it is the proof obligation behind the diagonal embedding of a function field into its adele ring: the constant family is an adele precisely because lies in for all but finitely many . The genus used in Faltings' theorem is defined from that diagonal, so this corollary is a prerequisite for even stating the companion goal.
Formalization Note. This is the first hole of the LeanEval problem faltings, with the benchmark's binders preserved: K is explicit, F implicit, the instance arguments are [Field K] [Field F] [Algebra K F] [BundledFunctionField K F], and x : F is explicit. Finiteness is Set.Finite on a set of places, and membership x ∉ v is membership in the carrier of the place via its SetLike instance. The place type and BundledFunctionField come from the mission's definition layer; only the benchmark marker attribute and its import are omitted.
No open leaves. Every sub-goal is proved or awaiting decomposition.