• 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
        • Cryptography
        • Rlp
        • Transactions
        • Hex-prefix
        • Basics
          • Byte-arrays
          • Bytes
            • Words
            • Nibbles
            • Scalars
            • Nibble-arrays
          • 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
    • Basics

    Bytes

    Bytes.

    [YP:B] describes \mathbb{O} as the set of 8-bit bytes. We use the library type byte to model \mathbb{O}.

    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)

    Theorem: byte-fix-rewrite-unsigned-byte-fix

    (defthm byte-fix-rewrite-unsigned-byte-fix
      (equal (byte-fix x)
             (unsigned-byte-fix 8 x)))