The strict signature parser accepts the encoder's output for all 32-byte values
ProvedBsv.StrictSignature.strictSig_encSigbitcoinformal-verificationparsingserialization
Let strictSig be the strict two-integer signature parser and encSig the encoder of the imported definition. For all byte strings and of length ,
So every output of the encoder on 32-byte values is accepted and decodes to the values that were encoded.
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_encSig (r s : List Byte) (hr : r.length = 32) (hs : s.length = 32) :
strictSig (encSig r s) = some (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