Provednlightninglightningpr-14formal-invariant
Subtracting a positive covered CLTV delta strictly decreases expiry
For all , if and , then
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
- expiry, delta range over natural numbers: the statement must hold for every choice. (
(expiry delta : Nat)) - <Less than
- 0 is strictly smaller than delta. (
0 < delta) - ≤At most
- delta is less than or equal to expiry. (
delta ≤ expiry) - -Subtraction
- expiry minus delta. On ℕ, Lean's subtraction stops at 0: 2 − 5 = 0. (
expiry - delta)
theorem nlightning-cltv-route-decrease (expiry delta : Nat) (positive : 0 < delta) (covered : delta ≤ expiry) :
expiry - delta < expirySingle-hop arithmetic core of strictly decreasing route expiries.
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.