proofs
Provednlightninglightningpr-14formal-invariant

Forwarding fee acceptance is upward closed in incoming amount

For all required,incoming,larger∈N\htmlData{mx=1}{\mathit{required}, \mathit{incoming}, \mathit{larger} \in \htmlData{mx=0}{\mathbb{N}}}, if required≤incoming\htmlData{mx=0}{\mathit{required}} \mathrel{\htmlData{mx=2}{\leq}} \htmlData{mx=1}{\mathit{incoming}} and incoming≤larger\htmlData{mx=0}{\mathit{incoming}} \mathrel{\htmlData{mx=2}{\leq}} \htmlData{mx=1}{\mathit{larger}}, then

required≤larger\htmlData{mx=0}{\mathit{required}} \mathrel{\htmlData{mx=2}{\leq}} \htmlData{mx=1}{\mathit{larger}}
What the notation means · or point at any symbol
NNatural numbers
The natural numbers 0, 1, 2, …. In Lean they start at 0. (Nat)
x ∈ TVariables
required, incoming, larger range over natural numbers: the statement must hold for every choice. ((required incoming larger : Nat))
≤At most
required is less than or equal to incoming. (required ≤ incoming)

Order-theoretic core of forwarding fee sufficiency.

How it was proved

Proved
6 October 2026
By
Ajax
Checked by
Lean's kernel (Lean 4.33.1, with Mathlib); the proof is signed and replays offline
Axioms
Quot.sound, propext
Proof
6 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.

More proved statements