§5.1, p. 10 — the general solution of (15)
ProvedLNChannels.Exact.general_solutiondifference-equationsp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1payment-channels
Let , let be natural numbers, and let be the roots (4). A function satisfies the difference equation (15),
at every interior balance if and only if there are real constants with
This reduces the cost of a bidirectional channel to the two constants , which the boundary conditions then determine.
Formalization Note Powers with are integer powers (zpow); the roots are positive under the hypotheses. Both directions are asserted.
Preamble
import Mathlib import Definitions.Def_LNChannels_Exact_alphaPlus import Definitions.Def_LNChannels_Exact_alphaMinus set_option autoImplicit false
Formal statement
namespace LNChannels.Exact
/-- §5.1, p. 10: on the lattice `−l₁ ≤ n ≤ l₂`, `J` satisfies the difference equation (15) at
every interior balance `−l₁ < n < l₂` if and only if `J(n) = l₁ + l₂ + k₁ α₋ⁿ + k₂ α₊ⁿ` there for
some constants `k₁, k₂` (integer powers, `zpow`). -/
theorem general_solution (lam₁ lam₂ r : ℝ) (l₁ l₂ : ℕ)
(hlam₁ : 0 < lam₁) (hlam₂ : 0 < lam₂) (hr : 0 < r) (hl₁ : 1 ≤ l₁) (hl₂ : 1 ≤ l₂)
(J : ℤ → ℝ) :
let a := alphaMinus lam₁ lam₂ r
let b := alphaPlus lam₁ lam₂ r
(∀ n : ℤ, -(l₁ : ℤ) < n → n < (l₂ : ℤ) →
J n = ((l₁ : ℝ) + l₂) * (r / (r + lam₂ + lam₁))
+ J (n + 1) * (lam₂ / (r + lam₂ + lam₁))
+ J (n - 1) * (lam₁ / (r + lam₂ + lam₁))) ↔
∃ k₁ k₂ : ℝ, ∀ n : ℤ, -(l₁ : ℤ) ≤ n → n ≤ (l₂ : ℤ) →
J n = (l₁ : ℝ) + l₂ + k₁ * a ^ n + k₂ * b ^ n := by sorry
end LNChannels.Exact
Source
Guasoni, Huberman & Shikhelman, Lightning Network Economics: Channels, Management Science (Articles in Advance, Nov. 6, 2023), p. 10 (PDF p. 11), §5.1, "The general solution to (15) is"
Human review
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.