Lemma B.1 — U is hermetizable if d(i) > g₊⁻¹(2c(S(i))/c(s(i))) for all i ∈ U
ProvedLNTopology.RandomHerm.lemma_B_1Let be a channel cost with (MO), (SY), (CI), (SA), and let satisfy (SA+) for . Let be a Lightning Network on the finite node set , and let be a nonempty set of nodes such that every has at least one channel to another node of . Write , , for the degree and the smallest and largest channel sizes of in the subnetwork induced on . If
then is hermetizable: hermetizing strictly reduces the cost of the network.
In the paper's notation the condition reads . The lemma converts a local, node-by-node comparison of channel sizes into a global cost reduction, and it is the deterministic step behind both Theorem 3.8 and Theorem 3.9.
Formalization Note Degrees and channel sizes are those of the subnetwork induced on , which is what the paper's proof uses (it sums over only). The condition is stated as , because is strictly increasing but not assumed onto, so need not be defined; the paper uses this equivalence in its proof. Nonemptiness of and the existence of a channel inside at each are presupposed by the paper's condition (it mentions ); they are explicit hypotheses here. (SA) and (SA+) are in their corrected forms (see the file ChannelCost).
import Mathlib import Definitions.Def_LNTopology_Local_Model import Definitions.Def_LNTopology_Hermetic_Model import Definitions.Def_LNTopology_RandomHerm_ChannelCost import Definitions.Def_LNTopology_RandomHerm_Hermetization open MeasureTheory
namespace LNTopology.RandomHerm
/-- Lemma B.1 (p. 11): if every node `i` of a nonempty set `U` has a channel inside `U` and
`g₊(d_U(i)) > 2 c(S_U(i)) / c(s_U(i))` (the paper's `d(i) > g₊⁻¹(2c(S(i))/c(s(i)))`), with
degrees and channel sizes taken in the subnetwork induced on `U`, then `U` is hermetizable. -/
theorem lemma_B_1 {V : Type*} [Fintype V] [DecidableEq V] (c g : ℝ → ℝ) (Λ : V → V → ℝ)
(U : Finset V) (hc : LNTopology.Local.IsChannelCost c) (hg : LNTopology.Hermetic.SAPlus c g) (hΛ : LNTopology.Local.IsLN Λ) (hU : U.Nonempty)
(hdeg : ∀ i ∈ U, 1 ≤ degOn Λ U i)
(hcond : ∀ i ∈ U, 2 * c (maxChanOn Λ U i) / c (minChanOn Λ U i) < g (degOn Λ U i)) :
IsHermetizable c Λ U := by sorry
end LNTopology.RandomHerm
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.