Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 2(ii), p. 11 — the cost of a symmetric channel is l1+l2+B(αl1+αl2)/((αl1−1)(αl2−1))l_1+l_2+B(\alpha^{l_1}+\alpha^{l_2})/((\alpha^{l_1}-1)(\alpha^{l_2}-1))l1​+l2​+B(αl1​+αl2​)/((αl1​−1)(αl2​−1))

Proved
LNChannels.RateBounds.symmetric_cost

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

lightning-networkp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1payment-channels

Let λ,r>0\lambda,r>0λ,r>0, B∈RB\in\mathbb RB∈R and real sizes l1,l2>0l_1,l_2>0l1​,l2​>0. Put λ1=λ2=λ\lambda_1=\lambda_2=\lambdaλ1​=λ2​=λ in (4) and let α=α+\alpha=\alpha_+α=α+​. Then

  1. α=r+2λ+r(4λ+r)2λ\alpha=\dfrac{r+2\lambda+\sqrt{r(4\lambda+r)}}{2\lambda}α=2λr+2λ+r(4λ+r)​​ and α>1\alpha>1α>1;
  2. the bidirectional cost (3) of the symmetric channel is
cl1,l2(λ,λ)=l1+l2+B(αl1+αl2)(αl1−1)(αl2−1);c^{l_1,l_2}(\lambda,\lambda)=l_1+l_2+\frac{B(\alpha^{l_1}+\alpha^{l_2})}{(\alpha^{l_1}-1)(\alpha^{l_2}-1)};cl1​,l2​(λ,λ)=l1​+l2​+(αl1​−1)(αl2​−1)B(αl1​+αl2​)​;
  1. λr=α(α−1)2\dfrac{\lambda}{r}=\dfrac{\alpha}{(\alpha-1)^2}rλ​=(α−1)2α​, so that the on-chain cost 2Cλ/r2C\lambda/r2Cλ/r of the two streams equals 2Cα/(α−1)22C\alpha/(\alpha-1)^22Cα/(α−1)2.

These identities reduce Theorem 2(ii) to the sign of a function of l1,l2l_1,l_2l1​,l2​ and α\alphaα alone.

Formalization Note The cost is the closed form biCost of (3) at λ1=λ2=λ\lambda_1=\lambda_2=\lambdaλ1​=λ2​=λ with real sizes and real powers.

Preamble
import Mathlib
import Definitions.Def_LNChannels_RateBounds_ClosedForms
Formal statement
namespace LNChannels.RateBounds

/-- Proof of Theorem 2(ii), p. 11: for `λ₁ = λ₂ = λ` the cost (3) is
`l₁ + l₂ + B(α^{l₁} + α^{l₂})/((α^{l₁} − 1)(α^{l₂} − 1))` with
`α = α₊ = (r + 2λ + √(r(4λ + r)))/(2λ) > 1`, and `λ/r = α/(α − 1)²`. -/
theorem symmetric_cost (lam r B l₁ l₂ : ℝ) (hlam : 0 < lam) (hr : 0 < r) (hl₁ : 0 < l₁)
    (hl₂ : 0 < l₂) :
    let α := LNChannels.Exact.alphaPlus lam lam r
    α = (r + 2 * lam + √(r * (4 * lam + r))) / (2 * lam) ∧
      1 < α ∧
      biCost lam lam r B l₁ l₂ =
        l₁ + l₂ + B * (α ^ l₁ + α ^ l₂) / ((α ^ l₁ - 1) * (α ^ l₂ - 1)) ∧
      lam / r = α / (α - 1) ^ 2 := by sorry

end LNChannels.RateBounds
Source
Guasoni, Huberman & Shikhelman, Lightning Network Economics: Channels, Management Science (Articles in Advance, Nov. 6, 2023), DOI 10.1287/mnsc.2022.01664, p. 11 (PDF p. 12), proof of Theorem 2(ii), first two displays
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