Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proposition 2 (i)–(ii), p. 9 — the ratio tends to l₁ as q ↓ 0 and to l₁l₂ as q → 1

Proved
LNChannels.Walk.proposition_2_limits

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

lightning-networklimitsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let l1,l2≥1l_1,l_2\ge1l1​,l2​≥1 be integers, and let

R(q)=(q+1)((l2(ql1−1)−l1)ql2+l1)(q−1)(ql1+l2−1)R(q)=\frac{(q+1)\Bigl(\bigl(l_2(q^{l_1}-1)-l_1\bigr)q^{l_2}+l_1\Bigr)}{(q-1)(q^{l_1+l_2}-1)}R(q)=(q−1)(ql1​+l2​−1)(q+1)((l2​(ql1​−1)−l1​)ql2​+l1​)​

be the long-run number of channel transactions per on-chain transaction of Proposition 2, as a function of q=λ2/λ1q=\lambda_2/\lambda_1q=λ2​/λ1​. Then:

  1. (unidirectional channel) R(q)→l1R(q)\to l_1R(q)→l1​ as q↓0q\downarrow0q↓0;
  2. (symmetric bidirectional channel) R(q)→l1l2R(q)\to l_1l_2R(q)→l1​l2​ as q→1q\to1q→1, q≠1q\neq1q=1.

A unidirectional channel thus reduces on-chain traffic in proportion to its size, and a symmetric bidirectional channel in proportion to the product of the two sizes.

Formalization Note The paper writes "(q ↓ 0)" and "(q → 1)", and both statements are limits of the closed form. The limit at q→1q\to1q→1 is taken along q≠1q\neq1q=1, where the formula is defined. The walks at q=0q=0q=0 or q=1q=1q=1 are not involved.

Preamble
import Mathlib
Formal statement
namespace LNChannels.Walk

open Filter Topology

/-- Proposition 2 (i)–(ii), p. 9: the closed form
`R(q) = (q + 1)((l₂(q^{l₁} − 1) − l₁) q^{l₂} + l₁)/((q − 1)(q^{l₁+l₂} − 1))` tends to `l₁` as
`q ↓ 0` (unidirectional channel) and to `l₁ l₂` as `q → 1` (symmetric channel). -/
theorem proposition_2_limits (l₁ l₂ : ℕ) (hl₁ : 1 ≤ l₁) (hl₂ : 1 ≤ l₂) :
    Tendsto (fun q : ℝ => (q + 1) * (((l₂ : ℝ) * (q ^ l₁ - 1) - l₁) * q ^ l₂ + l₁) /
        ((q - 1) * (q ^ (l₁ + l₂) - 1))) (𝓝[>] 0) (𝓝 (l₁ : ℝ)) ∧
    Tendsto (fun q : ℝ => (q + 1) * (((l₂ : ℝ) * (q ^ l₁ - 1) - l₁) * q ^ l₂ + l₁) /
        ((q - 1) * (q ^ (l₁ + l₂) - 1))) (𝓝[≠] 1) (𝓝 ((l₁ : ℝ) * l₂)) := by sorry

end LNChannels.Walk
Source
Guasoni, Huberman & Shikhelman, Lightning Network Economics: Channels, Management Science (Articles in Advance, Nov. 6, 2023), p. 9 (PDF 10), Proposition 2 (i)–(ii)
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 15, 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