• 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
        • Isar
        • Kestrel-utilities
        • Set
        • C
          • Syntax-for-tools
          • Atc
          • Transformation-tools
          • Language
            • Abstract-syntax
            • Integer-ranges
              • Def-integer-range
              • Integer-type-rangep
              • Ushort-integer
              • Ullong-integer
              • Sshort-integer
              • Sllong-integer
              • Ulong-integer
              • Uint-integer
              • Uchar-integer
              • Slong-integer
              • Sint-integer
              • Schar-integer
              • Ushort-max
              • Slong-max
              • Sllong-max
              • Integer-type-min
              • Integer-type-max
              • Uint-max
              • Sint-max
              • Ulong-max
              • Uchar-max
              • Def-integer-range-loop
              • Sshort-min
              • Sshort-max
              • Slong-min
              • Sint-min
              • Ullong-max
              • Sllong-min
              • Schar-min
              • Schar-max
              • Ushort-integer-list
              • Ulong-integer-list
              • Ullong-integer-list
              • Uint-integer-list
              • Uchar-integer-list
                • Uchar-integer-list-fix
                • Uchar-integer-list-equiv
                  • Uchar-integer-listp
                • Sshort-integer-list
                • Slong-integer-list
                • Sllong-integer-list
                • Sint-integer-list
                • Schar-integer-list
                • Uchar-integerp-alt-def
                • Ushort-integerp-alt-def
                • Ulong-integerp-alt-def
                • Ullong-integerp-alt-def
                • Uint-integerp-alt-def
                • Sshort-integerp-alt-def
                • Slong-integerp-alt-def
                • Sllong-integerp-alt-def
                • Sint-integerp-alt-def
                • Schar-integerp-alt-def
              • Implementation-environments
              • Dynamic-semantics
              • Static-semantics
              • Grammar
              • Types
              • Integer-formats-definitions
              • Computation-states
              • Portable-ascii-identifiers
              • Values
              • Integer-operations
              • Object-designators
              • Operations
              • Errors
              • Tag-environments
              • Function-environments
              • Character-sets
              • Flexible-array-member-removal
              • Arithmetic-operations
              • Pointer-operations
              • Real-operations
              • Array-operations
              • Scalar-operations
              • Structure-operations
            • Representation
            • Insertion-sort
            • Pack
          • 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
    • Uchar-integer-list

    Uchar-integer-list-equiv

    Basic equivalence relation for uchar-integer-list structures.

    Definitions and Theorems

    Function: uchar-integer-list-equiv$inline

    (defun uchar-integer-list-equiv$inline (acl2::x acl2::y)
      (declare (xargs :guard (and (uchar-integer-listp acl2::x)
                                  (uchar-integer-listp acl2::y))))
      (equal (uchar-integer-list-fix acl2::x)
             (uchar-integer-list-fix acl2::y)))

    Theorem: uchar-integer-list-equiv-is-an-equivalence

    (defthm uchar-integer-list-equiv-is-an-equivalence
      (and (booleanp (uchar-integer-list-equiv x y))
           (uchar-integer-list-equiv x x)
           (implies (uchar-integer-list-equiv x y)
                    (uchar-integer-list-equiv y x))
           (implies (and (uchar-integer-list-equiv x y)
                         (uchar-integer-list-equiv y z))
                    (uchar-integer-list-equiv x z)))
      :rule-classes (:equivalence))

    Theorem: uchar-integer-list-equiv-implies-equal-uchar-integer-list-fix-1

    (defthm
        uchar-integer-list-equiv-implies-equal-uchar-integer-list-fix-1
      (implies (uchar-integer-list-equiv acl2::x x-equiv)
               (equal (uchar-integer-list-fix acl2::x)
                      (uchar-integer-list-fix x-equiv)))
      :rule-classes (:congruence))

    Theorem: uchar-integer-list-fix-under-uchar-integer-list-equiv

    (defthm uchar-integer-list-fix-under-uchar-integer-list-equiv
      (uchar-integer-list-equiv (uchar-integer-list-fix acl2::x)
                                acl2::x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: equal-of-uchar-integer-list-fix-1-forward-to-uchar-integer-list-equiv

    (defthm
     equal-of-uchar-integer-list-fix-1-forward-to-uchar-integer-list-equiv
     (implies (equal (uchar-integer-list-fix acl2::x)
                     acl2::y)
              (uchar-integer-list-equiv acl2::x acl2::y))
     :rule-classes :forward-chaining)

    Theorem: equal-of-uchar-integer-list-fix-2-forward-to-uchar-integer-list-equiv

    (defthm
     equal-of-uchar-integer-list-fix-2-forward-to-uchar-integer-list-equiv
     (implies (equal acl2::x
                     (uchar-integer-list-fix acl2::y))
              (uchar-integer-list-equiv acl2::x acl2::y))
     :rule-classes :forward-chaining)

    Theorem: uchar-integer-list-equiv-of-uchar-integer-list-fix-1-forward

    (defthm uchar-integer-list-equiv-of-uchar-integer-list-fix-1-forward
     (implies (uchar-integer-list-equiv (uchar-integer-list-fix acl2::x)
                                        acl2::y)
              (uchar-integer-list-equiv acl2::x acl2::y))
     :rule-classes :forward-chaining)

    Theorem: uchar-integer-list-equiv-of-uchar-integer-list-fix-2-forward

    (defthm uchar-integer-list-equiv-of-uchar-integer-list-fix-2-forward
      (implies
           (uchar-integer-list-equiv acl2::x
                                     (uchar-integer-list-fix acl2::y))
           (uchar-integer-list-equiv acl2::x acl2::y))
      :rule-classes :forward-chaining)