• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
          • Bip32
          • Bech32
          • Bip39
          • Bip44
          • Base58
          • Bip43
          • Bytes
            • Byte-sequences
          • Base58check
          • Cryptography
          • Bip-350
          • Bip-173
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
        • Number-theory
        • Lists-light
        • Axe
        • Builtins
        • Solidity
        • Helpers
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Axe
      • Execloader
    • Math
    • Testing-utilities
  • 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.