• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Error-checking
        • Apt
        • Abnf
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Prime-field-constraint-systems
        • Soft
        • Bv
        • Imp-language
        • Event-macros
        • Bitcoin
          • Bip32
          • Bech32
          • Bip39
          • Bip44
          • Base58
          • Bip43
          • Bytes
            • Byte-sequences
          • Base58check
          • Cryptography
          • Bip-350
          • Bip-173
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • Java
        • C
        • Syntheto
        • Number-theory
        • Cryptography
        • Lists-light
        • File-io-light
        • Json
        • Built-ins
        • Solidity
        • Axe
        • Std-extensions
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Execloader
      • Axe
    • Testing-utilities
    • Math
  • Bitcoin

Bytes

Bytes.

In Bitcoin, as in most modern contexts, the unqualified term `byte' denotes an unsigned 8-bit byte.

We use the library type byte to model bytes in our Bitcoin model.

Definitions and Theorems

Theorem: natp-of-byte-fix

(defthm natp-of-byte-fix (natp (byte-fix x))
        :rule-classes :type-prescription)

Theorem: byte-fix-upper-bound

(defthm byte-fix-upper-bound
        (< (byte-fix x) 256)
        :rule-classes :linear)

Subtopics

Byte-sequences
Byte sequences.