• 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
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
          • Atj
          • Aij
          • Language
            • Syntax
            • Semantics
              • Primitive-function-macros
              • Primitive-values
              • Floating-point-placeholders
              • Pointers
                • Pointerp
                • Pointer
                • New-pointer
                • Pointer-list
                  • Pointer-list-fix
                  • Pointer-list-equiv
                    • Pointer-listp
                • Floating-point-value-set-parameters
                • Values
                • Primitive-operations
                • Primitive-conversions
                • Reference-values
          • 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
    • Pointer-list

    Pointer-list-equiv

    Basic equivalence relation for pointer-list structures.

    Definitions and Theorems

    Function: pointer-list-equiv$inline

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

    Theorem: pointer-list-equiv-is-an-equivalence

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

    Theorem: pointer-list-equiv-implies-equal-pointer-list-fix-1

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

    Theorem: pointer-list-fix-under-pointer-list-equiv

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

    Theorem: equal-of-pointer-list-fix-1-forward-to-pointer-list-equiv

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

    Theorem: equal-of-pointer-list-fix-2-forward-to-pointer-list-equiv

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

    Theorem: pointer-list-equiv-of-pointer-list-fix-1-forward

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

    Theorem: pointer-list-equiv-of-pointer-list-fix-2-forward

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