The Cauchy–Goursat theorem for rectangles
ProvedFamousTheorems.cauchy_goursat_rectangleThe Cauchy–Goursat theorem for rectangles. Let be complex differentiable on a closed rectangle with opposite corners and , taking values in a complex normed space. Then the integral of over the boundary of vanishes:
Goursat showed this without assuming continuity of . It is the first step of Cauchy's integral theorem and formula, from which the rest of complex function theory follows: analyticity of holomorphic functions, Liouville's theorem and the residue theorem.
Formalization note. Mathlib's Complex.integral_boundary_rect_eq_zero_of_differentiableOn. The platform's older Cauchy_Goursat_Theorem entry is a deprecated placeholder stating only True; this is the actual theorem. The boundary integral is written out as the sum of four oriented interval integrals along the edges (the vertical ones multiplied by ), and the rectangle is Complex.reProdIm (Set.uIcc z.re w.re) (Set.uIcc z.im w.im).
import Mathlib
namespace FamousTheorems
theorem cauchy_goursat_rectangle {E : Type*} [NormedAddCommGroup E] [NormedSpace ℂ E] (f : ℂ → E) (z w : ℂ)
(H : DifferentiableOn ℂ f (Complex.reProdIm (Set.uIcc z.re w.re) (Set.uIcc z.im w.im))) :
(∫ x : ℝ in z.re..w.re, f (x + z.im * Complex.I)) - (∫ x : ℝ in z.re..w.re, f (x + w.im * Complex.I)) +
Complex.I • (∫ y : ℝ in z.im..w.im, f (w.re + y * Complex.I)) -
Complex.I • (∫ y : ℝ in z.im..w.im, f (z.re + y * Complex.I)) = 0 := by sorry
end FamousTheorems