• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Error-checking
        • Apt
        • Abnf
        • Fty-extensions
          • Defbyte
          • Defresult
          • Defsubtype
          • Pos-list
          • Defflatsum
          • Deflist-of-len
          • Defbytelist
          • Specific-types
          • Defset
          • Defbyte-standard-instances
          • Deffixtype-alias
          • Defomap
          • Defbytelist-standard-instances
          • Defunit
          • Byte-list
          • Byte
          • Nibble
          • Pos-option
          • Nat-option
          • Byte-list20
          • String-option
          • Byte-list32
          • Byte-list64
            • Byte-list64p
            • Byte-list64-fix
          • Pseudo-event-form
          • Character-list
          • Natoption/natoptionlist
          • Nati
          • Maybe-string
          • Nat/natlist
          • Nibble-list
          • Natoption/natoptionlist-result
          • Set
          • Nat/natlist-result
          • Nat-option-list-result
          • 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
          • Bag
          • Pseudo-event-form-list
          • Nat-option-list
          • Symbol-set
          • Nat-set
          • Bit-list
        • Isar
        • Kestrel-utilities
        • Prime-field-constraint-systems
        • Soft
        • Bv
        • Imp-language
        • Event-macros
        • Bitcoin
        • 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
  • Fty-extensions
  • Specific-types
  • Byte-list

Byte-list64

A fixtype of true lists of (unsigned 8-bit) bytes of length 64.

Definitions and Theorems

Function: byte-list64-equiv$inline

(defun byte-list64-equiv$inline (x y)
       (declare (xargs :guard (and (byte-list64p x)
                                   (byte-list64p y))))
       (equal (byte-list64-fix x)
              (byte-list64-fix y)))

Theorem: byte-list64-equiv-is-an-equivalence

(defthm byte-list64-equiv-is-an-equivalence
        (and (booleanp (byte-list64-equiv x y))
             (byte-list64-equiv x x)
             (implies (byte-list64-equiv x y)
                      (byte-list64-equiv y x))
             (implies (and (byte-list64-equiv x y)
                           (byte-list64-equiv y z))
                      (byte-list64-equiv x z)))
        :rule-classes (:equivalence))

Theorem: byte-list64-equiv-implies-equal-byte-list64-fix-1

(defthm byte-list64-equiv-implies-equal-byte-list64-fix-1
        (implies (byte-list64-equiv x x-equiv)
                 (equal (byte-list64-fix x)
                        (byte-list64-fix x-equiv)))
        :rule-classes (:congruence))

Theorem: byte-list64-fix-under-byte-list64-equiv

(defthm byte-list64-fix-under-byte-list64-equiv
        (byte-list64-equiv (byte-list64-fix x)
                           x)
        :rule-classes (:rewrite :rewrite-quoted-constant))

Theorem: equal-of-byte-list64-fix-1-forward-to-byte-list64-equiv

(defthm equal-of-byte-list64-fix-1-forward-to-byte-list64-equiv
        (implies (equal (byte-list64-fix x) y)
                 (byte-list64-equiv x y))
        :rule-classes :forward-chaining)

Theorem: equal-of-byte-list64-fix-2-forward-to-byte-list64-equiv

(defthm equal-of-byte-list64-fix-2-forward-to-byte-list64-equiv
        (implies (equal x (byte-list64-fix y))
                 (byte-list64-equiv x y))
        :rule-classes :forward-chaining)

Theorem: byte-list64-equiv-of-byte-list64-fix-1-forward

(defthm byte-list64-equiv-of-byte-list64-fix-1-forward
        (implies (byte-list64-equiv (byte-list64-fix x)
                                    y)
                 (byte-list64-equiv x y))
        :rule-classes :forward-chaining)

Theorem: byte-list64-equiv-of-byte-list64-fix-2-forward

(defthm byte-list64-equiv-of-byte-list64-fix-2-forward
        (implies (byte-list64-equiv x (byte-list64-fix y))
                 (byte-list64-equiv x y))
        :rule-classes :forward-chaining)

Subtopics

Byte-list64p
Recognizer for byte-list64.
Byte-list64-fix
Fixer for byte-list64.