• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
        • Syntax-for-tools
        • Atc
        • Language
          • Abstract-syntax
          • Integer-ranges
            • Def-integer-range
            • Integer-type-rangep
            • Ushort-integer
            • Ullong-integer
            • Sshort-integer
            • Sllong-integer
              • Sllong-integerp
              • Sllong-integer-fix
            • Ulong-integer
            • Uint-integer
            • Uchar-integer
            • Slong-integer
            • Sint-integer
            • Schar-integer
            • Ushort-max
            • Slong-max
            • Integer-type-max
            • Sllong-max
            • Integer-type-min
            • 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
            • 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
          • Integer-formats
          • Types
          • Portable-ascii-identifiers
          • Values
          • Integer-operations
          • Computation-states
          • Object-designators
          • Operations
          • Errors
          • Tag-environments
          • Function-environments
          • Character-sets
          • Flexible-array-member-removal
          • Arithmetic-operations
          • Pointer-operations
          • Bytes
          • Keywords
          • Real-operations
          • Array-operations
          • Scalar-operations
          • Structure-operations
        • Representation
        • Transformation-tools
        • Insertion-sort
        • Pack
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Bigmems
      • Builtins
      • Execloader
      • Aleo
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Integer-ranges

Sllong-integer

Fixtype of ACL2 integers in the range of type signed long long.

Definitions and Theorems

Function: sllong-integer-equiv$inline

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Subtopics

Sllong-integerp
Recognizer for sllong-integer.
Sllong-integer-fix
Fixer for sllong-integer.