proofs
Provednlightninglightningpr-14deep-formalization

Receiving STFU before sending ours creates a reply obligation

For all pending∈Bool⁡\htmlData{mx=1}{\mathit{pending} \in \htmlData{mx=0}{\operatorname{Bool}}}:

(!(false⁡))(&& (pending ∣∣ true)) = true)\htmlData{mx=2}{(\htmlData{mx=1}{\mathtt{!}(\htmlData{mx=0}{\operatorname{false}})})(\mathtt{\&\&\ (pending\ ||\ true))\ =\ true})}
What the notation means · or point at any symbol
Bool
Bool: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (Bool)
f(x)Function application
! applied to false. Lean writes f x; papers write f(x). (!false)
false
false: a definition from the library, not special notation. Its name is its meaning; open it in Lean to see how it is defined. (false)

Repository-grounded Lean formalization for NLightning PR #14. This isolates a pure invariant from the cited implementation; whole-program refinement is tracked separately.

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
propext
Proof
6 lines of Lean
Sign in to see the proofThe proof, its signed report and its history.

More proved statements