Theorem 1 (i), (1), p. 6 — the cost of a unidirectional channel
ProvedLNChannels.Exact.theorem_1_i_costlightning-networkp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1payment-channels
Let only node 2 pay, at rate , let , , and let be the natural size of the unidirectional channel. The unidirectional cost system ( for , with ) has a solution, and every solution has
This is the cost of settling a one-directional stream through a channel, the benchmark against which both on-chain settlement and bidirectional channels are compared.
Formalization Note The cost is defined by its equations (IsUniCostFn), not by (1). The size is a natural number and the power is a natural power.
Preamble
import Mathlib import Definitions.Def_LNChannels_Exact_IsUniCostFn set_option autoImplicit false
Formal statement
namespace LNChannels.Exact
/-- Theorem 1 (i), (1), p. 6 (proof in §5.2, pp. 10–11): the cost `c^{0,l₂}(0, λ₂) = J(0)` of a
unidirectional channel of size `l₂`. The cost system of §5.2 has a solution, and every solution
has `J(0) = l₂ + B(((r + λ₂)/λ₂)^{l₂} − 1)⁻¹`. -/
theorem theorem_1_i_cost (lam₂ r B : ℝ) (l₂ : ℕ)
(hlam₂ : 0 < lam₂) (hr : 0 < r) (hl₂ : 1 ≤ l₂) :
(∃ J : ℤ → ℝ, IsUniCostFn lam₂ r B l₂ J) ∧
∀ J : ℤ → ℝ, IsUniCostFn lam₂ r B l₂ J →
J 0 = (l₂ : ℝ) + B * (((r + lam₂) / lam₂) ^ l₂ - 1)⁻¹ := by sorry
end LNChannels.Exact
Source
Guasoni, Huberman & Shikhelman, Lightning Network Economics: Channels, Management Science (Articles in Advance, Nov. 6, 2023), p. 6 (PDF p. 7), Theorem 1 (i), equation (1); proof in §5.2, pp. 10–11
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.