• 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
        • Bip32
        • Bech32
        • Bip39
        • Bip44
        • Base58
        • Bip43
        • Bytes
          • Byte-sequences
        • Base58check
        • Cryptography
        • Bip-350
        • Bip-173
      • Riscv
      • Des
      • Ethereum
      • 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
  • 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.