The array-and-counter duplicate flag matches the tree property
ProvedBsv.Merkle.mutatedLit_eq_mutatedTreebitcoindata-structuresformal-verificationmerkle-tree
Let be an arbitrary binary operation on a type with decidable equality and a default element, and let mutatedLit be the flag of the array-and-counter computation. For every list of leaves ,
Formalization Note The statement is about the Lean model of the computation, not about a particular program.
Preamble
import Definitions.Def_bsv_merkle_literal
Formal statement
namespace Bsv.Merkle
theorem mutatedLit_eq_mutatedTree {α : Type} (H : α → α → α) [DecidableEq α] [Inhabited α] (l : List α) :
mutatedLit H l = mutatedTree H l := by sorry
end Bsv.MerkleSource
Gregory J. Ward, Bryan W. Daugherty, Shawn M. Ryan, BSV Lean proofs (Apache-2.0), theorem mutatedLit_eq_mutatedTree. https://github.com/codenlighten/bsv-lean-proofs