{
  "id": "riemann-roch-theorem",
  "title": "Riemann–Roch Theorem",
  "lang": "en",
  "source_lang": "en",
  "summary": "The Riemann–Roch theorem relates dimensions of spaces of functions or sections to the geometry and topology of curves and higher-dimensional varieties.",
  "category": "mathematics",
  "subcategory": "geometry",
  "type": "concept",
  "aliases": [
    "Riemann–Roch formula",
    "Riemann–Roch theorem for curves"
  ],
  "generated_at": "2026-11-05",
  "model": "pro/gpt-6.1-sol",
  "url": "https://aiwiki.page/en/riemann-roch-theorem/",
  "translations": {
    "zh-Hans": {
      "url": "https://aiwiki.page/zh/riemann-roch-theorem/",
      "json": "https://aiwiki.page/zh/riemann-roch-theorem.json"
    }
  },
  "sections": [
    {
      "heading": "",
      "text": "The Riemann–Roch theorem is a fundamental result describing how the geometry of a curve controls the number of meromorphic functions with prescribed zeros and poles. For a compact Riemann surface, or a smooth projective algebraic curve, it expresses the difference between two finite dimensions in terms of the degree of a divisor and the genus of the curve. Its classical formula is\n\n\\[\\ell(D)-\\ell(K-D)=\\deg D+1-g,\\]\n\nwhere \\(D\\) specifies the allowed zeros and poles, \\(K\\) is a canonical divisor, and \\(g\\) is the genus.\n\nThe theorem connects complex analysis, algebraic geometry, and topology. It turns questions about the existence of functions into calculations with numerical invariants, while retaining a correction term that records genuinely geometric information. Its generalizations replace functions by sections of vector bundles and curves by higher-dimensional varieties, ultimately connecting algebraic geometry with characteristic classes, intersection theory, and the index theory of differential operators."
    },
    {
      "heading": "Divisors, meromorphic functions, and line bundles",
      "text": "On a compact connected Riemann surface \\(X\\), a meromorphic function is locally a quotient of holomorphic functions. At a point \\(p\\), a nonzero meromorphic function has an integer order \\(\\operatorname{ord}_p(f)\\): positive for a zero, negative for a pole, and zero if the function is holomorphic and nonvanishing. Its divisor is\n\n\\[(f)=\\sum_{p\\in X}\\operatorname{ord}_p(f)\\,p.\\]\n\nOnly finitely many coefficients are nonzero. The total order of the zeros equals the total order of the poles, so \\(\\deg(f)=0\\).\n\nA divisor is a finite formal sum\n\n\\[D=\\sum_p n_p p,\\qquad n_p\\in\\mathbb Z.\\]\n\nIts degree is \\(\\deg D=\\sum_p n_p\\), and it is effective if every coefficient is nonnegative. The space associated with \\(D\\) is\n\n\\[L(D)=\\{0\\}\\cup \\{f\\text{ meromorphic on }X:(f)+D\\geq0\\}.\\]\n\nThis is a finite-dimensional complex vector space, with dimension denoted by \\(\\ell(D)\\). A positive coefficient \\(n_p\\) permits a pole of order at most \\(n_p\\); a negative coefficient requires a zero of order at least \\(-n_p\\). Thus one divisor can impose both allowances and vanishing conditions.\n\nTwo divisors \\(D\\) and \\(D'\\) are linearly equivalent if their difference is the divisor of a nonzero meromorphic function. If \\(D'=D+(h)\\), multiplication by \\(h^{-1}\\) identifies \\(L(D)\\) with \\(L(D')\\). Consequently, the dimension depends on the linear-equivalence class, not on the particular representative. Divisor classes form the Picard group, which organizes the possible twisting data on a curve.\n\nThe same construction can be expressed using a line bundle, a bundle whose fibers are one-dimensional vector spaces. The divisor \\(D\\) determines a line bundle \\(\\mathcal O_X(D)\\), and\n\n\\[L(D)=H^0(X,\\mathcal O_X(D)).\\]\n\nHere \\(H^0\\) denotes global holomorphic sections. Every line bundle on a smooth projective curve arises from a divisor. This correspondence is central to the theorem’s generalizations: rather than studying functions subject to individually specified poles, one studies sections of a geometric object that incorporates those conditions.\n\nOver a field that is not algebraically closed, divisors are sums of closed points, and their degrees are weighted by residue-field extensions:\n\n\\[\\deg D=\\sum_p n_p[k(p):k].\\]\n\nThe vector spaces are then taken over the ground field. This adjustment allows the same theorem to apply to curves over fields such as the rational numbers or finite fields."
    },
    {
      "heading": "The classical formula and its correction term",
      "text": "Let \\(X\\) be a compact connected Riemann surface of genus \\(g\\). Its canonical bundle \\(K_X\\) is the line bundle of holomorphic differentials. A nonzero meromorphic differential \\(\\omega\\) has a divisor \\((\\omega)\\), called a canonical divisor and usually denoted by \\(K\\). Different choices of \\(\\omega\\) produce linearly equivalent divisors because their ratio is a meromorphic function.\n\nThe classical Riemann–Roch theorem states that, for every divisor \\(D\\),\n\n\\[\\boxed{\\ell(D)-\\ell(K-D)=\\deg D+1-g.}\\]\n\nThe space \\(L(K-D)\\) can be identified with the meromorphic differentials \\(\\eta\\) satisfying\n\n\\[(\\eta)\\geq D.\\]\n\nFor an effective \\(D\\), these are holomorphic differentials that vanish to at least the orders specified by \\(D\\). The number\n\n\\[i(D)=\\ell(K-D)\\]\n\nis traditionally called the index of speciality. A divisor is special when this number is positive.\n\nThe formula separates a predictable numerical term from a geometric correction:\n\n\\[\\ell(D)=\\deg D+1-g+i(D).\\]\n\nIn particular,\n\n\\[\\ell(D)\\geq\\deg D+1-g.\\]\n\nThe inequality alone is often called Riemann’s inequality. It guarantees nonzero sections when the degree is sufficiently large, but it does not generally determine their precise number. In the intermediate range, the position of the divisor on the curve matters, not merely its degree.\n\nApplying the theorem to \\(D=0\\), and using the fact that every holomorphic function on a compact connected Riemann surface is constant, gives\n\n\\[\\ell(K)=g.\\]\n\nThus the genus equals the dimension of the space of holomorphic differentials. Applying it again to \\(D=K\\) yields\n\n\\[\\deg K=2g-2.\\]\n\nThese identities connect the topological number of handles with the analytic behavior of differential forms.\n\nA divisor of negative degree has no nonzero sections: otherwise \\((f)+D\\) would be effective despite having negative degree. It follows that whenever\n\n\\[\\deg D>2g-2,\\]\n\nthe correction term vanishes and\n\n\\[\\ell(D)=\\deg D+1-g.\\]\n\nThe strict inequality is important. At degree \\(2g-2\\), a canonical divisor still has correction term \\(1\\).\n\nFor a smooth projective geometrically connected curve over a field \\(k\\), the same formula holds with dimensions over \\(k\\) and\n\n\\[g=\\dim_k H^1(X,\\mathcal O_X).\\]\n\nIn this setting, genus is defined algebraically, so no underlying complex surface is required."
    },
    {
      "heading": "Explicit calculations in low genus",
      "text": "On the projective line \\(\\mathbb P^1\\), the genus is zero and a canonical divisor has degree \\(-2\\). Every divisor of degree \\(d\\) is linearly equivalent to \\(d\\infty\\). If \\(d\\geq0\\), its sections are represented in an affine coordinate \\(z\\) by the polynomials\n\n\\[1,z,z^2,\\ldots,z^d.\\]\n\nConsequently,\n\n\\[\\ell(D)= \\begin{cases} d+1,&d\\geq0,\\\\ 0,&d<0. \\end{cases}\\]\n\nFor \\(D=d\\infty\\), the pole condition at infinity becomes an ordinary bound on polynomial degree. This is the simplest model of the theorem’s interpretation as a count of independent functions under constraints.\n\nFor a genus-one curve, the canonical bundle is trivial. A nonzero holomorphic differential has no zeros because its divisor is effective of degree zero. Therefore, if \\(L\\) is a line bundle of positive degree \\(d\\),\n\n\\[h^0(X,L)=d.\\]\n\nAt degree zero, however, the answer depends on the bundle: the trivial bundle has a one-dimensional space of sections, whereas every nontrivial degree-zero line bundle has none. A nonzero section of a degree-zero bundle would have an effective zero divisor of degree zero and would therefore trivialize the bundle.\n\nA smooth genus-one curve with a chosen rational point \\(O\\) is an elliptic curve. Riemann–Roch gives\n\n\\[\\ell(O)=1,\\qquad \\ell(2O)=2,\\qquad \\ell(3O)=3.\\]\n\nOne can therefore choose a function \\(x\\) with a pole of exact order \\(2\\) at \\(O\\), and a function \\(y\\) with a pole of exact order \\(3\\). The seven functions\n\n\\[1,\\ x,\\ y,\\ x^2,\\ xy,\\ x^3,\\ y^2\\]\n\nbelong to the six-dimensional space \\(L(6O)\\), so they satisfy a relation. With suitable choices, this produces a generalized Weierstrass equation\n\n\\[y^2+a_1xy+a_3y =x^3+a_2x^2+a_4x+a_6.\\]\n\nIn characteristics other than \\(2\\) and \\(3\\), further coordinate changes give the familiar short form \\(y^2=x^3+Ax+B\\).\n\nFor genus two, every divisor of degree at least three satisfies\n\n\\[\\ell(D)=\\deg D-1.\\]\n\nDegree two already shows the importance of speciality. A canonical divisor has\n\n\\[\\ell(K)=2,\\]\n\nwhile a degree-two divisor not linearly equivalent to \\(K\\) has only one independent section. Indeed, \\(K-D\\) then has degree zero but is not linearly equivalent to zero, so its section space vanishes. Equal degrees can therefore yield different dimensions even on the same curve.\n\nThese examples distinguish two roles of the theorem: in high degree it gives an exact numerical count, while in lower degree it translates a dimension problem into a question about another divisor class."
    },
    {
      "heading": "Cohomology, duality, and a modern proof",
      "text": "The cohomological formulation makes the symmetry of Riemann–Roch more transparent. For a line bundle \\(L\\) on a smooth projective curve, define\n\n\\[h^i(L)=\\dim H^i(X,L),\\qquad \\chi(L)=h^0(L)-h^1(L).\\]\n\nThe groups \\(H^i(X,L)\\) are instances of sheaf cohomology. On a curve, coherent cohomology vanishes in degrees above one. The invariant \\(\\chi(L)\\) is the sheaf-theoretic Euler characteristic, rather than the topological Euler characteristic of the underlying surface.\n\nIn this language the theorem becomes\n\n\\[\\chi(L)=\\deg L+1-g.\\]\n\nThe link with the classical correction term is Serre duality, which provides a natural identification\n\n\\[H^1(X,L)^\\vee \\cong H^0(X,K_X\\otimes L^{-1}).\\]\n\nThe superscript \\(\\vee\\) denotes the dual vector space. Taking dimensions recovers\n\n\\[h^0(L)-h^0(K_X\\otimes L^{-1}) =\\deg L+1-g.\\]\n\nThus the classical “missing conditions” are measured by a first cohomology group, and duality identifies that obstruction space with a space of differentials.\n\nThe Euler-characteristic formula has a short proof once the basic machinery of sheaf cohomology is established. Over an algebraically closed field, a point \\(p\\) gives an exact sequence\n\n\\[0\\longrightarrow L(-p)\\longrightarrow L \\longrightarrow L|_p\\longrightarrow0.\\]\n\nThe last term is supported at \\(p\\) and has a one-dimensional space of global sections, with no higher cohomology. Additivity of Euler characteristic therefore gives\n\n\\[\\chi(L)-\\chi(L(-p))=1.\\]\n\nRepeating this step through a divisor representing \\(L\\), including negative coefficients by reversing the relation, shows that\n\n\\[\\chi(L)=\\chi(\\mathcal O_X)+\\deg L.\\]\n\nSince \\(h^0(\\mathcal O_X)=1\\) and \\(h^1(\\mathcal O_X)=g\\), the result follows. At a nonrational closed point, the increment is its residue-field degree.\n\nThe same reasoning extends to a vector bundle \\(E\\) of rank \\(r\\):\n\n\\[\\chi(E)=\\deg E+r(1-g),\\]\n\nwhere \\(\\deg E\\) means the degree of its determinant line bundle. Duality becomes\n\n\\[H^1(X,E)^\\vee \\cong H^0(X,E^\\vee\\otimes K_X).\\]\n\nUnlike the line-bundle case, the degree alone does not provide an equally simple universal threshold for vanishing of \\(H^1(X,E)\\); the internal structure of the bundle matters.\n\nThe apparent brevity of the cohomological proof depends on substantial foundations. Finite-dimensionality, exact sequences, the divisor–line-bundle correspondence, and duality contain the analytic and geometric work that earlier formulations handled directly."
    },
    {
      "heading": "Linear series, embeddings, and special divisors",
      "text": "An effective divisor linearly equivalent to \\(D\\) is the zero divisor of a nonzero section of \\(\\mathcal O_X(D)\\). Sections differing by a nonzero scalar give the same divisor. Consequently, the complete linear system \\(|D|\\) is a projective space of dimension\n\n\\[\\dim |D|=\\ell(D)-1\\]\n\nwhen \\(\\ell(D)>0\\). A linear series of degree \\(d\\) and projective dimension \\(r\\) is traditionally denoted by \\(g^r_d\\). Riemann–Roch supplies the basic dimension calculation for these families.\n\nA line bundle is base-point-free if its sections do not all vanish at any point. For a point \\(p\\), this means\n\n\\[h^0(L)-h^0(L(-p))=1.\\]\n\nIf \\(\\deg L\\geq2g\\), both bundles are in the range where the correction term vanishes, so this equality holds. Hence every line bundle of degree at least \\(2g\\) is base-point-free. Its sections define a morphism from the curve into projective space.\n\nIf \\(\\deg L\\geq2g+1\\), the same argument applied to subschemes of length two shows that sections separate distinct points and tangent directions. Thus \\(L\\) is very ample and gives a projective embedding. These bounds are sufficient uniformly for all smooth projective curves, although particular curves and bundles can admit embeddings at smaller degrees. The theorem thereby converts a numerical degree bound into a concrete geometric realization.\n\nThe canonical linear system has degree \\(2g-2\\) and dimension \\(g-1\\). For \\(g\\geq2\\), it is base-point-free. On a nonhyperelliptic curve it defines an embedding into \\(\\mathbb P^{g-1}\\). On a hyperelliptic curve it instead factors through the degree-two map to \\(\\mathbb P^1\\), followed by the degree-\\((g-1)\\) rational normal embedding. The behavior of canonical sections therefore detects a major distinction among curves.\n\nSpecial divisors satisfy constraints stronger than Riemann–Roch alone. Clifford’s theorem states that if\n\n\\[h^0(D)>0,\\qquad h^0(K-D)>0,\\]\n\nthen\n\n\\[h^0(D)\\leq\\frac{\\deg D}{2}+1.\\]\n\nThis limits how many sections can occur when both a divisor and its complementary canonical divisor are effective.\n\nFor a fixed point \\(p\\), the sequence \\(\\ell(np)\\) records which pole orders can occur for functions having no poles elsewhere. A positive integer \\(n\\) is a gap when \\(\\ell(np)=\\ell((n-1)p)\\). There are exactly \\(g\\) gaps, all at most \\(2g-1\\). Over the complex numbers, the gap sequence at a general point is \\(1,\\ldots,g\\); exceptional points are Weierstrass points. This connects the theorem with local behavior of functions at individual points."
    },
    {
      "heading": "From nineteenth-century analysis to modern geometry",
      "text": "Bernhard Riemann developed the analytic foundations of the theorem in his 1857 work on Abelian functions. His setting was the theory of multivalued algebraic functions interpreted on branched surfaces. A central problem was to determine how many independent meromorphic functions could exist when their poles were restricted. The genus entered as a global limitation on what might otherwise appear to be a collection of local interpolation conditions.\n\nRiemann obtained the lower bound\n\n\\[\\ell(D)\\geq\\deg D+1-g.\\]\n\nGustav Roch’s 1865 contribution identified the correction term through differentials, giving the equality now associated with both names. This was a decisive refinement: it did not merely guarantee functions but explained why the expected dimension could increase. The paired appearance of functions and differentials anticipated the later duality between zeroth and first cohomology.\n\nDuring the late nineteenth and early twentieth centuries, algebraic approaches to curves recast these questions in terms of divisors, linear systems, and correspondences. The theorem became a central tool for studying projective models of curves and the special families of divisors they carry. In this language, geometric properties such as admitting a low-degree map to the projective line could be read from unexpectedly large spaces of sections.\n\nThe extension beyond complex curves required separating algebraic content from arguments that depended on analytic integration or a topological surface. The development of algebraic geometry over general fields, including positive characteristic, provided such a setting. The genus could be defined through regular differentials or cohomology, and divisor degree could incorporate nonrational closed points. This made Riemann–Roch applicable to arithmetic curves as well as complex ones.\n\nIn the 1950s, Jean-Pierre Serre’s work on coherent sheaves and duality supplied a conceptual framework for the curve theorem. Friedrich Hirzebruch obtained a higher-dimensional formula for nonsingular complex projective varieties, replacing divisor degree by characteristic classes. Alexander Grothendieck then formulated a relative theorem for morphisms, linking direct images in algebraic geometry with operations on algebraic cycles.\n\nA further connection emerged with Michael Atiyah and Isadore Singer’s index theorem, announced in 1963. In the complex setting, the relevant index can be represented by the Dolbeault operator, making the Riemann–Roch formula an instance of a much broader relation between differential operators and topology. These developments did not replace the classical curve formula; they identified structures that explain its form and permit its extension to different geometric categories."
    },
    {
      "heading": "Higher-dimensional Riemann–Roch and characteristic classes",
      "text": "On a smooth projective variety \\(X\\) of dimension \\(n\\), the appropriate quantity is the alternating sum\n\n\\[\\chi(X,E)=\\sum_{i=0}^{n}(-1)^i\\dim H^i(X,E)\\]\n\nfor a vector bundle \\(E\\). Higher cohomology groups generally contribute, so the curve formula cannot be generalized merely by counting global sections. The Hirzebruch–Riemann–Roch theorem states\n\n\\[\\boxed{ \\chi(X,E)=\\int_X\\operatorname{ch}(E)\\operatorname{td}(T_X). }\\]\n\nHere \\(\\operatorname{ch}(E)\\) is the Chern character, \\(\\operatorname{td}(T_X)\\) is the Todd class of the tangent bundle, and integration means taking the degree of the top-dimensional component.\n\nThese expressions are built from Chern classes, which encode characteristic information about complex vector bundles. The Chern character begins\n\n\\[\\operatorname{ch}(E) =r+c_1(E)+\\frac{c_1(E)^2-2c_2(E)}{2}+\\cdots.\\]\n\nThe Todd class begins\n\n\\[\\operatorname{td}(T_X) =1+\\frac12c_1(T_X) +\\frac1{12}\\bigl(c_1(T_X)^2+c_2(T_X)\\bigr)+\\cdots.\\]\n\nOnly terms whose total degree reaches the dimension of \\(X\\) contribute to the integral.\n\nFor a line bundle \\(L\\),\n\n\\[\\operatorname{ch}(L)=e^{c_1(L)}.\\]\n\nOn a curve, the degree-two component of the product is\n\n\\[c_1(L)+\\frac12c_1(T_X).\\]\n\nIts integral is\n\n\\[\\deg L+\\frac12(2-2g)=\\deg L+1-g,\\]\n\nrecovering the classical Euler-characteristic formula. The higher-dimensional theorem therefore retains the same basic structure: a contribution from the bundle, modified by the geometry of the ambient space.\n\nFor a smooth projective surface and a divisor \\(D\\), the formula becomes\n\n\\[\\chi(\\mathcal O_X(D)) =\\chi(\\mathcal O_X)+\\frac12D\\cdot(D-K_X),\\]\n\nwhere the dot denotes the intersection pairing of divisor classes. Applying the theorem to the structure sheaf gives Noether’s formula\n\n\\[\\chi(\\mathcal O_X) =\\frac{K_X^2+c_2(X)}{12}.\\]\n\nFor a compact complex surface, the degree of \\(c_2(X)\\) is its topological Euler characteristic. Thus holomorphic cohomology, divisor intersections, and topology occur in one numerical identity.\n\nThe formula also determines the growth of sections of high tensor powers of an ample line bundle. If \\(L\\) is ample, Serre vanishing eliminates higher cohomology for sufficiently large \\(m\\), giving\n\n\\[h^0(X,L^m) =\\frac{c_1(L)^n}{n!}m^n -\\frac{K_X\\cdot c_1(L)^{n-1}}{2(n-1)!}m^{n-1} +\\text{lower-degree terms}.\\]\n\nThese are leading coefficients of the Hilbert polynomial. Outside a vanishing range, however, the theorem still computes an alternating sum rather than the individual section dimension."
    },
    {
      "heading": "Grothendieck–Riemann–Roch and analytic index theory",
      "text": "The Grothendieck–Riemann–Roch theorem is a relative statement: instead of mapping a variety to a point and obtaining a number, it describes the behavior of bundles or coherent sheaves under a proper morphism. For a proper morphism\n\n\\[f:X\\longrightarrow Y\\]\n\nbetween smooth quasi-projective varieties, its standard form is\n\n\\[\\operatorname{ch}(f_!\\alpha)\\operatorname{td}(T_Y) = f_*\\bigl(\\operatorname{ch}(\\alpha)\\operatorname{td}(T_X)\\bigr).\\]\n\nThe equality holds in the Chow ring of \\(Y\\) with rational coefficients.\n\nThe expression \\(f_!\\alpha\\) is not usually an individual vector bundle. It is an alternating class\n\n\\[f_![E]=\\sum_i(-1)^i[R^if_*E]\\]\n\nin K-theory, interpreted through the Grothendieck group of coherent sheaves. Relations in this group reflect short exact sequences. The operation \\(f_*\\) on the right pushes algebraic cycles forward. Todd classes supply the correction needed to make the Chern character compatible with these two kinds of direct image.\n\nWhen \\(Y\\) is a point, the formula reduces to Hirzebruch–Riemann–Roch. When \\(Y\\) is itself a parameter space, it relates the geometry of a family to characteristic classes of its cohomological direct images. If \\(f\\) is smooth, the tangent-bundle relation permits a relative formulation,\n\n\\[\\operatorname{ch}(f_!E) =f_*\\bigl(\\operatorname{ch}(E)\\operatorname{td}(T_{X/Y})\\bigr).\\]\n\nThe theorem’s functorial form explains why its correction factor must interact correctly with composition of maps.\n\nA parallel analytic interpretation comes from Dolbeault cohomology. For a holomorphic vector bundle \\(E\\) on a compact complex manifold, the operator\n\n\\[\\bar\\partial_E+\\bar\\partial_E^{\\,*}\\]\n\nmaps \\(E\\)-valued forms of even antiholomorphic degree to those of odd degree. Its analytic index is\n\n\\[\\sum_q(-1)^q h^{0,q}(X,E)=\\chi(X,E).\\]\n\nThis is the difference between the dimensions of its kernel and cokernel, not a count of all eigenvalues.\n\nThe Atiyah–Singer index theorem computes that index from topological characteristic data. For the Dolbeault operator, the resulting expression is precisely\n\n\\[\\int_X\\operatorname{ch}(E)\\operatorname{td}(T_X).\\]\n\nOn a curve, the cokernel corresponds to \\(H^1(X,E)\\), linking the analytic obstruction directly with the correction term in classical Riemann–Roch.\n\nThe algebraic and analytic theories have overlapping but distinct scopes. Algebraic formulations work over fields of positive characteristic and admit versions involving singular schemes. Analytic index theory applies to broad classes of elliptic operators on smooth manifolds without requiring an algebraic structure."
    },
    {
      "heading": "Arithmetic curves, interpolation, and error-correcting codes",
      "text": "Riemann–Roch is particularly effective over a finite field because spaces of sections become finite-dimensional spaces that can be computed and evaluated. Let \\(X\\) be a smooth projective geometrically connected curve of genus \\(g\\) over \\(\\mathbb F_q\\). Choose distinct rational points \\(P_1,\\ldots,P_n\\), set\n\n\\[D=P_1+\\cdots+P_n,\\]\n\nand take a divisor \\(G\\) whose support avoids these points. Evaluation defines a linear map\n\n\\[\\operatorname{ev}:L(G)\\longrightarrow\\mathbb F_q^n, \\qquad f\\longmapsto(f(P_1),\\ldots,f(P_n)).\\]\n\nIts image is an algebraic-geometric code, usually denoted \\(C_L(D,G)\\).\n\nThe kernel consists exactly of \\(L(G-D)\\), so the code dimension is\n\n\\[k=\\ell(G)-\\ell(G-D).\\]\n\nIf\n\n\\[2g-2<\\deg G<n,\\]\n\nthen the second space vanishes and Riemann–Roch gives\n\n\\[k=\\deg G+1-g.\\]\n\nThus the code’s dimension can be read from the divisor degree and the genus rather than found solely by reducing an evaluation matrix.\n\nThe minimum distance has a complementary geometric bound:\n\n\\[d\\geq n-\\deg G.\\]\n\nFor a nonzero \\(f\\in L(G)\\), its pole divisor has degree at most \\(\\deg G\\). Since its zero divisor has the same degree as its pole divisor, at most \\(\\deg G\\) evaluation positions can be zero. The remaining coordinates must be nonzero. Together, the dimension and distance estimates show how divisor degree controls two competing parameters of a code.\n\nOn the projective line, evaluating polynomials of bounded degree produces Reed–Solomon codes. Higher-genus curves broaden the construction by providing different collections of rational points and different function spaces. Their usefulness depends in part on how many rational points a curve can have relative to its genus; Riemann–Roch supplies the function-space calculation once the curve and evaluation points have been selected.\n\nDifferentials yield a second construction. Consider meromorphic differentials satisfying\n\n\\[(\\omega)\\geq G-D.\\]\n\nAt the evaluation points they have at most simple poles, and their residues form vectors\n\n\\[\\bigl(\\operatorname{res}_{P_1}\\omega,\\ldots, \\operatorname{res}_{P_n}\\omega\\bigr).\\]\n\nThe resulting differential code is dual to \\(C_L(D,G)\\). Orthogonality follows from the global residue theorem applied to \\(f\\omega\\): all possible poles occur at the chosen evaluation points, and the sum of their residues is zero.\n\nThe same spaces support interpolation on curves. Imposing values or higher-order jets corresponds to comparing \\(L(G)\\) with \\(L(G-D)\\) for an appropriate effective divisor \\(D\\). In a nonspecial degree range, Riemann–Roch determines the number of independent constraints exactly. This supplies the algebraic basis for constructing functions with prescribed local behavior over finite fields and for computational procedures involving divisor classes and the Jacobian variety of a curve."
    }
  ],
  "links": [
    "riemann-surface",
    "complex-analysis",
    "algebraic-geometry",
    "topology",
    "meromorphic-function",
    "vector-space",
    "genus",
    "polynomial",
    "elliptic-curve",
    "euler-characteristic",
    "dual-space",
    "bernhard-riemann",
    "finite-field",
    "linear-map"
  ],
  "sources": [],
  "license": "https://creativecommons.org/licenses/by/4.0/"
}