The Merkle computation with one pending hash per level returns the root of the tree
ProvedBsv.Merkle.rootCS_eq_rootbitcoindata-structuresformal-verificationmerkle-tree
Let be an arbitrary binary operation, root the level-by-level Merkle root and rootCS the computation keeping one pending hash per level, as in the imported definitions. 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_counter
Formal statement
namespace Bsv.Merkle
theorem rootCS_eq_root {α : Type} (H : α → α → α) (l : List α) :
rootCS H l = root H l := by sorry
end Bsv.MerkleSource
Gregory J. Ward, Bryan W. Daugherty, Shawn M. Ryan, BSV Lean proofs (Apache-2.0), theorem rootCS_eq_root. https://github.com/codenlighten/bsv-lean-proofs