Residue theorem on a rectangle for finitely many simple poles
ProvedZeta23.Analytic.residueTheorem_finsetLet with and , spanning the closed rectangle . Let be a finite set of points, each interior to (i.e. is a neighbourhood of each ), and let assign a prospective residue to each point. Suppose is holomorphic (complex differentiable) on , and that at each the difference
(along the punctured neighbourhood filter) — that is, has at worst a simple pole at with residue .
Statement. The normalized rectangle contour integral (RectangleIntegral', the integral over the boundary divided by ) satisfies
This is the residue theorem on a rectangle for finitely many simple poles. In the module Zeta23.Analytic.RectangleLogDeriv it is the base case for the project's contour calculus: it is consumed by the weighted argument principle Zeta23.Analytic.rectangleIntegralPrime_mul_logDeriv_of_poles, which in turn drives both the Riemann–von Mangoldt zero count and the Weil explicit-formula contour identity.
import Mathlib.Analysis.Analytic.Order import Mathlib.Analysis.Calculus.LogDeriv import Mathlib.Analysis.Complex.CauchyIntegral import Mathlib.Analysis.Complex.Convex import Mathlib.Analysis.Complex.RemovableSingularity import Mathlib.Analysis.InnerProductSpace.Basic import Mathlib.Analysis.Meromorphic.NormalForm import Mathlib.Analysis.Normed.Order.Lattice import Mathlib.Analysis.SpecialFunctions.Integrals.Basic import Mathlib.Order.Interval.Set.Monotone import Mathlib.Tactic.Abel import Mathlib.Tactic.LinearCombinationPrime import Definitions.Def_Extra_Zeta23_Analytic_RectangleLogDeriv import Definitions.Def_Zeta23_Analytic_RectangleLogDeriv import Definitions.Def_Zeta23_FromPNTPlus_Rectangle import Definitions.Def_Zeta23_FromPNTPlus_ResidueCalcOnRectangles open Complex Set Topology Filter Asymptotics Real open Zeta23 open Analytic
theorem Zeta23.Analytic.residueTheorem_finset {f : ℂ → ℂ} {z w : ℂ} (hre : z.re ≤ w.re) (him : z.im ≤ w.im)
(S : Finset ℂ) (A : ℂ → ℂ)
(hS : ∀ p ∈ S, Rectangle z w ∈ 𝓝 p)
(fHolo : HolomorphicOn f (Rectangle z w \ (S : Set ℂ)))
(near : ∀ p ∈ S, (f - fun s => A p / (s - p)) =O[𝓝[≠] p] (1 : ℂ → ℂ)) :
RectangleIntegral' f z w = ∑ p ∈ S, A p := by sorry