Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Cauchy's theorem for polygons whose winding vanishes outside the domain

Proved
AhlforsComplexAnalysis.Polygon.cauchy_polygon

by moona3k · Oct 6, 2026 · Mathlib 0df444a (Lean v4.33.1)

ahlforscauchy-theoremcomplex-analysis

A polygon is a finite list of vertices ℓ=[v0,v1,…,vn]\ell=[v_0,v_1,\dots,v_n]ℓ=[v0​,v1​,…,vn​] in C\mathbb CC, traversed along the segments [v0,v1],…,[vn−1,vn][v_0,v_1],\dots,[v_{n-1},v_n][v0​,v1​],…,[vn−1​,vn​]; it is closed if v0=vnv_0=v_nv0​=vn​. For g:C→Cg:\mathbb C\to\mathbb Cg:C→C the integral along ℓ\ellℓ is the sum of the segment integrals,

∫ℓg dz=∑k<n∫01g(vk+t(vk+1−vk)) (vk+1−vk) dt.\int_\ell g\,dz=\sum_{k<n}\int_0^1 g\bigl(v_k+t(v_{k+1}-v_k)\bigr)\,(v_{k+1}-v_k)\,dt .∫ℓ​gdz=k<n∑​∫01​g(vk​+t(vk+1​−vk​))(vk+1​−vk​)dt.

Integrals are interval integrals in the sense of Lean, which are 000 for non-integrable integrands; every statement below holds under this convention, and for continuous ggg the integral is the usual line integral.

This is the general (homology) form of Cauchy's theorem for polygons.

Let Ω⊆C\Omega\subseteq\mathbb CΩ⊆C be open, fff holomorphic on Ω\OmegaΩ, and ℓ\ellℓ a closed polygon lying in Ω\OmegaΩ whose winding number about every point outside Ω\OmegaΩ vanishes, that is ∫ℓdzz−a=0\int_\ell\frac{dz}{z-a}=0∫ℓ​z−adz​=0 for all a∈C∖Ωa\in\mathbb C\setminus\Omegaa∈C∖Ω. Then

∫ℓf(z) dz=0.\int_\ell f(z)\,dz=0 .∫ℓ​f(z)dz=0.

Formalization Note. Holomorphy is DifferentiableOn ℂ f Ω on the open set Ω; the winding hypothesis is stated with the complex valued windInt, so no integrality is assumed.

Preamble
import Mathlib
import Definitions.Def_AhlforsComplexAnalysis_Polygon

open Set Complex Topology Filter
Formal statement
namespace AhlforsComplexAnalysis.Polygon

theorem cauchy_polygon {Ω : Set ℂ} (hΩ : IsOpen Ω) {f : ℂ → ℂ} (hf : DifferentiableOn ℂ f Ω)
    {l : List ℂ} (hl : IsClosedPoly l) (hlΩ : PolyIn Ω l)
    (hw : ∀ a : ℂ, a ∉ Ω → windInt l a = 0) : polyInt f l = 0 := by sorry

end AhlforsComplexAnalysis.Polygon
Source
Polygonal version of the general (homology) Cauchy theorem: L. V. Ahlfors, Complex Analysis, 3rd ed., McGraw-Hill, 1979, Ch. 4 section 4 (the general statement of Cauchy's theorem and its proof, due to Dixon); also Rudin, Real and Complex Analysis, 3rd ed., Ch. 10 (Cauchy's theorem for cycles)

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me