The intrinsic genus of a function field equals its genus computed on the -chart
ProvedFunctionField.genus_eq_genusChartLet be a field and let be an algebraic function field in one variable, presented through a separating variable: is a finite separable extension of the rational function field , the structure maps being compatible. Assume that is the full constant field of : every element of that is algebraic over already lies in .
A place of is a valuation ring with whose value group is infinite cyclic; is its normalized valuation and its degree. A divisor is a finite formal sum with , of degree . Its Riemann–Roch space is
a -vector space of dimension . The genus of is the largest value of the defect over all divisors .
The same quantities can be computed in the two-chart presentation of over : the coordinate places are the nonzero primes of the integral closure of in and the nonzero primes of the integral closure in of the valuation ring at infinity ; a coordinate divisor is a finite formal sum of coordinate places, its degree weights each place by the -dimension of its residue field, and is computed with the adic valuations of these primes. The chart genus is the maximum of over all coordinate divisors . Then
This identifies the coordinate-free genus with the genus computed by the chart-based proofs of the library, so that the Riemann–Roch theorem and its corollaries can be stated for intrinsic divisors.
Formalization Note The tower is given by the instances Algebra k[X] K, Algebra k⟮X⟯ K, Algebra k K, IsScalarTower k k[X] K and IsScalarTower k[X] k⟮X⟯ K, together with FunctionField k K ( is finite-dimensional over ) and Algebra.IsSeparable k⟮X⟯ K. The full constant field hypothesis is IsFullConstantField k K. Places (FunctionField.Place k K) are valuation subrings containing the image of whose value group admits an order isomorphism with (only its existence is recorded); the normalized valuation is written multiplicatively, , so that reads for every place. Degrees of places and are Module.finrank over , and divisors are finitely supported functions from places to . The genus FunctionField.genus k K is defined as the natural-number truncation of the supremum in of the defects . The chart genus FunctionField.Chart.genus k K is the natural number chosen as the maximal defect of coordinate divisors DivisorA k K (its existence is a separate result of the library). The statement therefore also says that the supremum defining the intrinsic genus equals this maximum.
import Mathlib import Definitions.Def_RiemannRoch_WeilDifferentials /- 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 scoped nonZeroDivisors Polynomial RatFunc WithZero open FunctionField open Chart variable (k K : Type*) [Field k] [Field K] [Algebra k K] variable [Algebra k[X] K] [Algebra k⟮X⟯ K] [IsScalarTower k k[X] K] [IsScalarTower k[X] k⟮X⟯ K] [_root_.FunctionField k K] [Algebra.IsSeparable k⟮X⟯ K] [IsFullConstantField k K]
theorem FunctionField.genus_eq_genusChart : genus k K = Chart.genus k K := by sorry