residue-theorem: the ℙ¹ base case, assembled #
Unit: residue-theorem (docs/design/residue-theorem.md §6). This file closes Gap 1 of the
previous partial delivery (see RationalOnP1.lean's module docstring): the headline
RS.P1.sum_resAt_eq_zero : ∑ᶠ y, Θ.resAt y = 0for everyΘ : MForm (OnePoint ℂ).
The junk-value blocker documented in RationalOnP1.lean ("the remainder R_mid, built by bare
pointwise subtraction of MeromorphicAt-junk-valued functions, has order ≥ 0 at the former
poles but need not be continuous there") is repaired via mathlib's meromorphic normal form
machinery rather than a weakened contour radius:
RS.P1.exists_differentiable_of_ord_nonneg— a planar function meromorphic on all ofℂwith everywhere-nonnegative order admits an ENTIRE representative agreeing with it at every point where it is honestly analytic (toMeromorphicNFOn, which only changes values on the non-normal-form set).
The proof of the headline follows the design: subtract the finite principal-part tail at the
(finitely many, via the divisor) finite poles, repair the remainder to an entire Rf, kill the
remainder's residue at ∞ by the Liouville-free contour fact
(resAt_neg_sq_inv_mul_comp_inv_eq_zero), and compute the tail's companion residue at ∞ as
-∑ (finite residues) by the monomial computation (resAt_neg_sq_inv_mul_sub_inv_zpow). The
key honesty input making the ∞-chart congruences legitimate for a RAW representative is
coeffAt_infty_eq (the two-chart compat identity, valid POINTWISE on ℂ \ {0}), which also
forces R to be honestly analytic near ∞.
The normal-form repair #
Repair lemma: a function meromorphic on all of ℂ with everywhere-nonnegative order
admits an entire representative that agrees with it wherever it is honestly analytic (and in
particular on a punctured neighborhood of every point).