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.
Let . For a nonzero meromorphic modular form of weight , the valence formula for the modular group is
Here is positive for a zero and negative for a pole, and the factors and account for the stabilizers of the two elliptic points. Equivalently, the weighted number of zeros minus poles in is .