• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
          • Defbyte
          • Defresult
          • Fold
          • Specific-types
          • Defsubtype
          • Defset
          • Defflatsum
          • Deflist-of-len
          • Pos-list
          • Defomap
          • Defbytelist
          • Defbyte-standard-instances
          • Deffixtype-alias
          • Defbytelist-standard-instances
          • Defunit
          • Byte-list
            • Byte-listp
            • Byte-list-fix
            • Byte-list20
            • Byte-list32
            • Byte-list64
              • Byte-list64p
              • Byte-list64-fix
              • Byte-list-equiv
            • Database
            • Byte
            • String-option
            • Pos-option
            • Nibble
            • Nat-option
            • Ubyte32-option
            • Byte-list20
            • Byte-list32
            • Byte-list64
              • Byte-list64p
              • Byte-list64-fix
              • Pseudo-event-form
              • Natoption/natoptionlist
              • Nati
              • Character-list
              • Nat/natlist
              • Maybe-string
              • Nibble-list
              • Natoption/natoptionlist-result
              • Nat/natlist-result
              • Nat-option-list-result
              • Set
              • String-result
              • String-list-result
              • Nat-result
              • Nat-option-result
              • Nat-list-result
              • Maybe-string-result
              • Integer-result
              • Character-result
              • Character-list-result
              • Boolean-result
              • Map
              • Dependencies
              • Bag
              • Pos-set
              • Hex-digit-char-list
              • Dec-digit-char-list
              • Pseudo-event-form-list
              • Nat-option-list
              • Character-any-map
              • Any-nat-map
              • Symbol-set
              • String-set
              • Nat-set
              • Character-set
              • Oct-digit-char-list
              • Bin-digit-char-list
              • Bit-list
            • Isar
            • Kestrel-utilities
            • Set
            • C
            • Soft
            • Bv
            • Imp-language
            • Ethereum
            • Event-macros
            • Java
            • Riscv
            • Bitcoin
            • Zcash
            • Yul
            • ACL2-programming-language
            • Prime-fields
            • Json
            • Syntheto
            • File-io-light
            • Cryptography
            • Number-theory
            • Axe
            • Lists-light
            • Builtins
            • Solidity
            • Helpers
            • Htclient
            • Typed-lists-light
            • Arithmetic-light
          • X86isa
          • Axe
          • Execloader
        • Math
        • Testing-utilities
      • Byte-list64

      Byte-list64-fix

      Fixer for byte-list64.

      Signature
      (byte-list64-fix x) → *
      Arguments
      x — Guard (byte-list64p x).

      Definitions and Theorems

      Function: byte-list64-fix

      (defun byte-list64-fix (x)
        (declare (xargs :guard (byte-list64p x)))
        (mbe :logic
             (if (byte-list64p x)
                 x
               (byte-list-fix (take 64 x)))
             :exec x))

      Theorem: byte-list64p-of-byte-list64-fix

      (defthm byte-list64p-of-byte-list64-fix
        (byte-list64p (byte-list64-fix x)))

      Theorem: byte-list64-fix-when-byte-list64p

      (defthm byte-list64-fix-when-byte-list64p
        (implies (byte-list64p x)
                 (equal (byte-list64-fix x) x)))