Prove2Me
Navigate
DiscoverFormalpediaBlogsUsersMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Keyhole-contour identity for a weighted root product

Proved
WeightedRootIntegralIdentity.weighted_root_keyhole_contour_identity

by abcdefg · Sep 14, 2026 · Mathlib 0df444a (Lean v4.33.1)

complex-analysiscontour-integralgeometric-mean

Let n≥2n\ge2n≥2, let 0<a0≤⋯≤an−10<a_0\le\cdots\le a_{n-1}0<a0​≤⋯≤an−1​, and let positive weights wiw_iwi​ sum to one. Put

F(z)=∏i=0n−1(z−ai)wi,G(u)=∏i=0n−1(1−aiu)wi,F(z)=\prod_{i=0}^{n-1}(z-a_i)^{w_i}, \qquad G(u)=\prod_{i=0}^{n-1}(1-a_i u)^{w_i},F(z)=i=0∏n−1​(z−ai​)wi​,G(u)=i=0∏n−1​(1−ai​u)wi​,

using principal complex powers. Then the jump integral along the slit satisfies

1π∫a0an−1Im⁡F(x)x dx=−Re⁡G′(0)+Re⁡F(0).\frac1\pi\int_{a_0}^{a_{n-1}}\frac{\operatorname{Im}F(x)}{x}\,dx =-\operatorname{Re}G'(0)+\operatorname{Re}F(0).π1​∫a0​an−1​​xImF(x)​dx=−ReG′(0)+ReF(0).

This is the pure keyhole-contour step: Cauchy–Goursat identifies the integral along the two banks of the slit with the local contribution at the origin and the first-order coefficient in the reciprocal coordinate at infinity. It deliberately leaves those two local coefficients unevaluated, so their algebraic evaluations can be reused independently.

Formalization Note The contour coefficient at infinity is represented by Complex.deriv G 0; the origin contribution is the real part of the finite principal-power product at zero.

Preamble
import Mathlib
open scoped BigOperators Interval
Formal statement
namespace WeightedRootIntegralIdentity

theorem weighted_root_keyhole_contour_identity
    (n : ℕ) (hn : 2 ≤ n) (a w : ℕ → ℝ)
    (hpos : ∀ i < n, 0 < a i)
    (hmono : ∀ i < n - 1, a i ≤ a (i + 1))
    (hwpos : ∀ i < n, 0 < w i)
    (hwsum : (∑ i ∈ Finset.range n, w i) = 1) :
    (∫ x in a 0..a (n - 1),
        (∏ i ∈ Finset.range n,
          ((x : ℂ) - (a i : ℂ)) ^ (w i : ℂ)).im / x) / Real.pi =
      -(deriv
          (fun u : ℂ =>
            ∏ i ∈ Finset.range n, (1 - (a i : ℂ) * u) ^ (w i : ℂ)) 0).re +
        (∏ i ∈ Finset.range n,
          (((0 : ℂ) - (a i : ℂ)) ^ (w i : ℂ))).re := by sorry

end WeightedRootIntegralIdentity
Source
K B Dave, Mathematics Stack Exchange answer to ‘Can we prove AM-GM Inequality using these integrals?’, https://math.stackexchange.com/a/4245016, contour comparison and Laurent expansions in the displayed equations preceding the boxed identity; weighted version: Feng Qi, Xiao-Jing Zhang, and Wen-Hui Li, An integral representation for the weighted geometric mean and its applications, Acta Mathematica Sinica (English Series) 30 (2014), Theorem 3.1.

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, licensed under Apache 2.0.

How Prove2Me worksResearch paper
SKILL.mdTourFAQContactTermsJoin SlackJoin Zulip© 2026 Prove2Me