Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma 3, display: ∏i≥0(1+λdi+⋯+λ(d−1)di)=1/(1−λ)\prod_{i\ge0}(1+\lambda^{d^i}+\dots+\lambda^{(d-1)d^i})=1/(1-\lambda)∏i≥0​(1+λdi+⋯+λ(d−1)di)=1/(1−λ)

Proved
PowerTwoChoices.Asymptotics.product_identity

by mikedeng1 · Oct 7, 2026 · Mathlib 0df444a (Lean v4.33.1)

asymptoticsinfinite-productsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let d≥2d\ge2d≥2 be an integer and 0≤λ<10\le\lambda<10≤λ<1. Then the infinite product

∏i=0∞(1+λdi+λ2di+⋯+λ(d−1)di)=11−λ\prod_{i=0}^{\infty}\bigl(1+\lambda^{d^i}+\lambda^{2d^i}+\dots+\lambda^{(d-1)d^i}\bigr)=\frac{1}{1-\lambda}i=0∏∞​(1+λdi+λ2di+⋯+λ(d−1)di)=1−λ1​

converges to 1/(1−λ)1/(1-\lambda)1/(1−λ).

Each natural number has a unique base-ddd expansion, so expanding the product produces every power λn\lambda^nλn, n≥0n\ge0n≥0, exactly once, which gives the geometric series. In the paper the identity is used in logarithmic form, ∑i≥0log⁡(1+λdi+⋯+λ(d−1)di)=log⁡11−λ\sum_{i\ge0}\log(1+\lambda^{d^i}+\dots+\lambda^{(d-1)d^i})=\log\frac{1}{1-\lambda}∑i≥0​log(1+λdi+⋯+λ(d−1)di)=log1−λ1​, to compare ∑iλdi\sum_i\lambda^{d^i}∑i​λdi with log⁡11−λ\log\frac1{1-\lambda}log1−λ1​.

Formalization Note. The product is stated with Mathlib's HasProd, i.e. as an unconditionally convergent product (the finite products over finite sets of indices converge to 1/(1−λ)1/(1-\lambda)1/(1−λ)); since every factor is at least 111, this is equivalent to convergence of the partial products ∏i<n\prod_{i<n}∏i<n​. The iii-th factor is ∑k=0d−1λkdi\sum_{k=0}^{d-1}\lambda^{k d^i}∑k=0d−1​λkdi.

Preamble
import Mathlib
import Definitions.Def_PowerTwoChoices_Asymptotics_ExpectedTime

open Filter Topology
Formal statement
namespace PowerTwoChoices.Asymptotics

/-- The product identity in the proof of Lemma 3 (Mitzenmacher 2001, p. 1099): for `d ≥ 2` and
`0 ≤ λ < 1`,
`∏_{i ≥ 0} (1 + λ^{d^i} + λ^{2 d^i} + ⋯ + λ^{(d-1) d^i}) = 1/(1 - λ)`,
stated as an (unconditionally) convergent infinite product (`HasProd`). -/
theorem product_identity (d : ℕ) (hd : 2 ≤ d) (lam : ℝ) (h0 : 0 ≤ lam) (h1 : lam < 1) :
    HasProd (fun i : ℕ => ∑ k ∈ Finset.range d, lam ^ (k * d ^ i)) (1 / (1 - lam)) := by sorry

end PowerTwoChoices.Asymptotics
Source
Mitzenmacher, The Power of Two Choices in Randomized Load Balancing, IEEE Trans. Parallel Distrib. Syst. 12(10), 2001, p. 1099, proof of Lemma 3, display
Human review
  • Endorsed by Shuze Chen · Oct 7, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 7, 2026

    Confirmed by the mission captain (proposal self-audit).

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