Complete description of the inputs the strict signature parser accepts
ProvedBsv.StrictSignature.strictSig_eq_some_iffbitcoinformal-verificationparsingserialization
Let strictSig and encSig be the parser and encoder of the imported definition. For all byte strings ,
Hence the accepted inputs are exactly the encodings of pairs of 32-byte values, each pair having exactly one.
Formalization Note The statement is about the Lean model of the computation, not about a particular program.
Preamble
import Definitions.Def_bsv_strict_signature
Formal statement
namespace Bsv.StrictSignature
theorem strictSig_eq_some_iff (b r s : List Byte) :
strictSig b = some (r, s) ↔ r.length = 32 ∧ s.length = 32 ∧ b = encSig r s := by sorry
end Bsv.StrictSignatureSource
Gregory J. Ward, Bryan W. Daugherty, Shawn M. Ryan. New theorem, not part of the BSV Lean proofs repository. It concerns the parser model defined there: https://github.com/codenlighten/bsv-lean-proofs