Vanishing integrals over closed polygons give a primitive
ProvedAhlforsComplexAnalysis.Polygon.exists_primitive_of_polyInt_zeroA 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.
Let be open and connected and let be continuous on . Suppose that for every closed polygon lying in . Then has a primitive on : there is with
This is the converse of the fundamental theorem of calculus along polygons, and the step that turns Cauchy's theorem into the existence of logarithms and roots.
Formalization Note. IsClosedPoly l means that l is nonempty and its first and last vertices agree; PolyIn Ω l means every segment of l lies in Ω.
import Mathlib import Definitions.Def_AhlforsComplexAnalysis_Polygon open Set Complex Topology Filter
namespace AhlforsComplexAnalysis.Polygon
theorem exists_primitive_of_polyInt_zero {Ω : Set ℂ} (hΩo : IsOpen Ω) (hΩc : IsConnected Ω)
{g : ℂ → ℂ} (hg : ContinuousOn g Ω)
(h0 : ∀ l : List ℂ, IsClosedPoly l → PolyIn Ω l → polyInt g l = 0) :
∃ G : ℂ → ℂ, ∀ z ∈ Ω, HasDerivAt G (g z) z := by sorry
end AhlforsComplexAnalysis.Polygon