• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • 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
            • Sshort-integer-list
            • Slong-integer-list
            • Sllong-integer-list
              • Sllong-integer-list-fix
              • Sllong-integer-list-equiv
                • Sllong-integer-listp
              • 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
        • Proof-checker-array
        • Soft
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Ethereum
        • Leftist-trees
        • Java
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Sllong-integer-list

    Sllong-integer-list-equiv

    Basic equivalence relation for sllong-integer-list structures.

    Definitions and Theorems

    Function: sllong-integer-list-equiv$inline

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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