• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
        • Mmp-trees
        • Semaphore
        • Database
          • Databasep
          • Database-fix
          • Database-equiv
        • Cryptography
        • Rlp
        • Transactions
        • Hex-prefix
        • Basics
        • Addresses
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Bigmems
      • Builtins
      • Execloader
      • Aleo
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Ethereum

Database

Database.

As explained in [YP:D.1] and [YP:4.1], MMP trees rely on a database that associates byte arrays to hashes, where hashes are byte arrays of length 32 resulting from Keccak-256. This is called `trie database' in [YP:D.1], and just `DB' in [Wiki:MMP]. [YP:4.1] uses the term `state database', but it does so in the context of the world state; indeed, the database also contains data that is not part of the world state, such as transactions and transaction receipts. In the documentation of our Ethereum model, we use the term `database'.

We introduce a fixtype for finite maps from byte arrays of length 32 to byte arrays, based on the fixtype of omaps.

Subtopics

Databasep
Recognizer for database.
Database-fix
(database-fix x) is a usual ACL2::fty omap fixing function.
Database-equiv
Basic equivalence relation for database structures.