Theorem 1 (i), (2), p. 6 — the minimal cost of a unidirectional channel
ProvedLNChannels.Exact.theorem_1_i_minlightning-networkoptimizationp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1payment-channels
Let , , and set . Over real channel sizes , the unidirectional cost of (1) has the minimum value
and the minimum is attained at
This gives the optimal size and cost of a unidirectional channel in closed form.
Formalization Note The minimization is over real sizes (the paper differentiates in ), with the real power Real.rpow. The paper writes with defined from ; here . is required: for the infimum is not attained.
Preamble
import Mathlib import Definitions.Def_LNChannels_Exact_uniCost set_option autoImplicit false
Formal statement
namespace LNChannels.Exact
/-- Theorem 1 (i), (2), p. 6: with `k = B log(1 + r/λ₂)`, the minimum over real sizes `m > 0` of
the unidirectional cost (1) is `(B/(2k))(−k + √(k(k+4)) + 2 log(½(k + √(k(k+4)) + 2)))`, attained at
`l₂ = (B/k) log(½(k + √(k(k+4)) + 2))`. -/
theorem theorem_1_i_min (lam₂ r B : ℝ) (hB : 0 < B) (hlam₂ : 0 < lam₂) (hr : 0 < r) :
let k := B * Real.log (1 + r / lam₂)
let copt := B / (2 * k) * (-k + Real.sqrt (k * (k + 4))
+ 2 * Real.log ((1 / 2) * (k + Real.sqrt (k * (k + 4)) + 2)))
let lstar := B / k * Real.log ((1 / 2) * (k + Real.sqrt (k * (k + 4)) + 2))
IsLeast (uniCost lam₂ r B '' Set.Ioi 0) copt ∧ 0 < lstar ∧
uniCost lam₂ r B lstar = copt := 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 (2); proof §5.2, pp. 10–11
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.