A weight- meromorphic modular form satisfies , while . The factors cancel in , giving a -invariant meromorphic n-differential on the complex upper half-plane.
Away from elliptic points and cusps, descend this differential through local inverse branches of the quotient map. At an elliptic point of effective stabilizer order , choose a coordinate in which the stabilizer acts by , and use downstairs. If the lifted coefficient has order , invariance forces to be divisible by . The descended differential has integer order
Indeed pulls back to . At a modular cusp of width , the coordinate gives . Therefore
Both formulas provide meromorphic extensions over the omitted points, producing the unique differential with the prescribed pullback on the compactified modular curve.
For the character-valued question, write and let be the chosen nonzero meromorphic form. The quotient of two forms with the same weight and Dirichlet character is a meromorphic function on . At an interior point with effective elliptic order (one at ordinary points), let be the vanishing order of the lifted . At a cusp let be its order in the width coordinate; this can be fractional because of the character multiplier. Multiplying by a meromorphic function changes these orders by and , respectively. Interior holomorphy requires a nonnegative order, while cusp vanishing requires a strictly positive order. The exact divisor is consequently
Only finitely many coefficients are nonzero. The order inequalities are equivalent to . Division by proves the reverse inclusion, so the Riemann-Roch space gives
This extends the cusp-form divisor presentation to elliptic points and character multipliers.
Choose a nonzero meromorphic one-differential on , and let be its weight-two pullback. For , the interior order is and the cusp order is . The elliptic orders are one, two or three, so adding six to changes each interior floor by , and each cusp ceiling by . The valence formula for the modular group for says , where . Thus
The degrees tend to infinity. For sufficiently large , the Riemann-Roch theorem therefore gives
The periodic formula obtained this way is an eventual formula. For small , the exact answer includes the Riemann-Roch correction ; it should not silently be discarded without the large-degree hypothesis.
The effective group is torsion free and every modular cusp is regular in the preceding sense, so orders of a meromorphic weight- form are integers. At interior points use a local automorphy trivialization; at a modular cusp use the Fourier order of the appropriate slash transform in its cusp width coordinate. Let be the sum of all modular cusp points, each once, and set
A meromorphic function belongs to the Riemann-Roch space exactly when . In the interior this requires to have no pole; at a modular cusp it requires order at least one. Conversely, the quotient of any weight- cusp form by is a meromorphic weight-zero function satisfying precisely those inequalities. This proves the cusp-form divisor presentation
To compute the degree without imposing a valence formula as an extra assumption, use the meromorphic tensor differential . Its automorphy factors cancel. Its order at an interior point is ; at a modular cusp it is , since is a nonzero constant times . A meromorphic section of the th tensor power of the canonical bundle has total divisor degree . The regular-cusp valence formula on a torsion-free modular curve is therefore
For , . The Riemann-Roch theorem says , and a divisor of negative degree has no nonzero sections. Thus and
Using and gives
The canonical-degree and Riemann-Roch facts used here are general results for compact Riemann surfaces, as permitted.