• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • 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
              • Ulong-integer
              • Uint-integer
              • Uchar-integer
              • Slong-integer
              • Sint-integer
                • Sint-integerp
                • Sint-integer-fix
              • 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
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
        • Number-theory
        • Lists-light
        • Axe
        • Builtins
        • Solidity
        • Helpers
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Axe
      • Execloader
    • Math
    • Testing-utilities
  • Integer-ranges

Sint-integer

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

Definitions and Theorems

Function: sint-integer-equiv$inline

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

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

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

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

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

Theorem: sint-integer-fix-under-sint-integer-equiv

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

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

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

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

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

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

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

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

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

Subtopics

Sint-integerp
Recognizer for sint-integer.
Sint-integer-fix
Fixer for sint-integer.