The strict signature parser is injective on accepted inputs
ProvedBsv.StrictSignature.strictSig_injectivebitcoinformal-verificationparsingserialization
Let strictSig be the strict two-integer signature parser of the imported definition. If the byte strings and are both accepted and yield the same pair , then
Hence a pair has no second accepted encoding. The statement says nothing about whether two different pairs can both be valid signatures of one message.
Formalization Note The statement is about the Lean model of the parser, not about a particular program.
Preamble
import Definitions.Def_bsv_strict_signature
Formal statement
namespace Bsv.StrictSignature
theorem strictSig_injective (b₁ b₂ r s : List Byte)
(h₁ : strictSig b₁ = some (r, s)) (h₂ : strictSig b₂ = some (r, s)) :
b₁ = b₂ := by sorry
end Bsv.StrictSignatureSource
Gregory J. Ward, Bryan W. Daugherty, Shawn M. Ryan, BSV Lean proofs (Apache-2.0), theorem strictSig_injective. https://github.com/codenlighten/bsv-lean-proofs