The winding function of a closed polygon is locally constant
ProvedAhlforsComplexAnalysis.Polygon.windInt_locallyConstantA polygon is a finite list of vertices in , traversed along the segments ; it is closed if . For the integral along is the sum of the segment integrals,
Integrals are interval integrals in the sense of Lean, which are for non-integrable integrands; every statement below holds under this convention, and for continuous the integral is the usual line integral.
For a closed polygon and a point not on , put
which is times the winding number of about . Then is locally constant on the complement of : every has a neighbourhood with
This is the first step in showing that the winding function vanishes on the unbounded part of the complement of a closed polygon, which the general Cauchy theorem needs.
Formalization Note. The quantity is kept complex valued (windInt); integrality of the winding number is neither used nor proved. a ∉ polyTrace l says is not on the polygon; at points of the polygon the value of windInt is not meaningful and no statement here uses it.
import Mathlib import Definitions.Def_AhlforsComplexAnalysis_Polygon open Set Complex Topology Filter
namespace AhlforsComplexAnalysis.Polygon
theorem windInt_locallyConstant {l : List ℂ} (hl : IsClosedPoly l) {a : ℂ}
(ha : a ∉ polyTrace l) : ∀ᶠ b in 𝓝 a, windInt l b = windInt l a := by sorry
end AhlforsComplexAnalysis.Polygon