residue-theorem (namespaces RS/RS.P1) — HEADLINE CLOSED #
Unit: residue-theorem (docs/design/residue-theorem.md). Blueprint target: ∑_p Res_p(θ) = 0
for a meromorphic 1-form θ : MForm X on a compact connected Riemann surface X, any genus.
Built along the §6 trace-to-ℙ¹ route (PRIMARY per the orchestrator addendum; the PoU/Stokes
Area-Gluing atom of §3–5 was NOT built, as instructed).
Deliverables (zero sorries) #
- THE residue theorem, UNCONDITIONAL —
RS.residue_sum_eq_zero (θ : MForm X) : ∑ᶠ x, θ.resAt x = 0(Unconditional.lean). Canonical-forms D9'sExistence.leanhas now landed (its own gate,Finiteness/Chi.lean, closed), so the conditional version this unit shipped first —
(theorem residue_sum_eq_zero_of_exists_nonconstant [T2Space X] [CompactSpace X] [ConnectedSpace X] (hex : ∃ f : ℳ X, ∀ c : ℂ, f ≠ algebraMap ℂ (ℳ X) c) (θ : MForm X) : ∑ᶠ x, θ.resAt x = 0Reduction.lean,hexEXACTLY canonical-forms D9'sexists_nonconstant_meroshape) — is discharged byRS.exists_nonconstant_meroin one line:residue_sum_eq_zero_of_exists_nonconstant exists_nonconstant_mero θ. - serre-duality-tails' consumption shape, unconditional —
RS.MForm.sum_resAt_eq_zero (f : ℳ X) (θ : MForm X) : ∑ᶠ x, (f • θ).resAt x = 0(Unconditional.lean), the well-definedness input ofRS.TailDuality.pairT_alpha; thread this name now instead of the conditionalMForm.sum_resAt_eq_zero_of_exists_nonconstant. Also the unconditionalFinset-flexibleRS.residueTheorem. - The
ℙ¹base case —RS.P1.sum_resAt_eq_zero (Θ : MForm (OnePoint ℂ)) : ∑ᶠ y, Θ.resAt y = 0, UNCONDITIONAL (P1Assembly.lean;ℙ¹supplies its own coordinate function, no existence hypothesis needed).
How the two previously-documented gaps were closed #
ℙ¹assembly (Gap 1): the junk-value blocker ("R_midhas order≥ 0at former poles but need not be continuous there") is repaired via mathlib's meromorphic normal form:RS.P1.exists_differentiable_of_ord_nonnegproduces an ENTIRE representative of the principal-part remainder agreeing with it at every honest-analyticity point (in particular near∞, where honesty is forced by the two-chartcompatidentityRS.P1.coeffAt_infty_eq+ meromorphy of the∞coefficient). The Liouville-free contour fact and the monomial companion-pole computations ofRationalOnP1.leanthen close the telescope. No weakened-radius variant was needed.- General-
Xreduction (Gap 2): noMForm.ofPullbackobject is needed. Thed f-vs-resAtXconvention mismatch at poles is exactly the target-chart transitiondz = -(w²)⁻¹ dw, handled by pushing TWO coefficient functions alongF := toP1 φ.holoRepr—h.holoReprover finite values andHinf := -(φ.holoRepr)²·h.holoReprover∞— matched to(h • MForm.d φ).resAtfibre-point-by-fibre-point (RS.resAtX_toP1_eq_of_ord_nonneg/RS.resAtX_toP1_eq_of_ord_neg), with the two traces glued into a singleMFormData (OnePoint ℂ)byP1.formOfCoeFnviatrace_const_mul_pullback. Thehcalcalibration hypothesis of form-trace-tower'sresAtP1_trace_eq_sumis discharged byRS.exists_fiberStack_translated(Calibrated.lean, the existence proofs ofexists_adaptedChartsAt/exists_fiberStackre-run with the construction-inherent "target chart is a recenteredchartAt" conclusion exposed).θ = h • d φcomes from D8 one-dimensionality, seeded byRS.MForm.d_ne_zero(the differential of a nonconstant function is nonzero — the identity-theorem dichotomy).
File map #
RationalOnP1.lean— the ℙ¹ atoms (previous delivery, unchanged):formOfCoeFn, the Liouville-freeresAt_neg_sq_inv_mul_comp_inv_eq_zero, the monomial companion poles.MFormCompat.lean—MForm.resAt_eq_zero_of_ord_nonneg,MForm.finite_setOf_ord_neg,MForm.finite_support_resAt(Compat, upstream candidates for canonical-forms).Calibrated.lean— calibrated adapted charts / fiber stacks.P1Assembly.lean— the ℙ¹ base case.Reduction.lean— the bridges, THE conditional theorem, the conditional tails corollary. (MForm.d_ne_zerono longer lives here — moved toJacobian/CanonicalForms/Existence.lean, imported back from there; see that file's note.)Unconditional.lean—RS.residue_sum_eq_zero/RS.MForm.sum_resAt_eq_zero/RS.residueTheorem, each a one-line corollary discharginghexwith canonical-forms'RS.exists_nonconstant_mero.
Notes for downstream consumers #
- serre-duality-tails (the only DAG-wired consumer): consume the UNCONDITIONAL
RS.MForm.sum_resAt_eq_zero (f) (θ) : ∑ᶠ x, (f • θ).resAt x = 0(Unconditional.lean) — nohexto thread any more, canonical-forms D9 has landed. Shape confirmed againstdocs/requests/residue-theorem.md(the(f • θ)-finsum form). - canonical-forms:
MFormCompat.lean's three lemmas are upstream candidates (requested at design time indocs/design/residue-theorem.md§11).