• 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
              • Schar-integer
              • Ushort-max
              • Slong-max
                • Ushort-max-vs-slong-max
                • Uint-max-vs-slong-max
                • Uchar-max-vs-slong-max
                • Slong-max-<=-sllong-max
                • Slong-max-vs-sllong-max
                • Sint-max-<=-slong-max
                • Sint-max-vs-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

Slong-max

Maximum ACL2 integer value of type signed long.

Signature
(slong-max) → slong-max
Returns
slong-max — Type (integerp slong-max).

Definitions and Theorems

Function: slong-max

(defun slong-max nil
  (declare (xargs :guard t))
  (let ((__function__ 'slong-max))
    (declare (ignorable __function__))
    (1- (expt 2 (1- (long-bits))))))

Theorem: integerp-of-slong-max

(defthm integerp-of-slong-max
  (b* ((slong-max (slong-max)))
    (integerp slong-max))
  :rule-classes :type-prescription)

Theorem: slong-max-bound

(defthm slong-max-bound
  (>= (slong-max) 2147483647)
  :rule-classes :linear)

Subtopics

Ushort-max-vs-slong-max
Relation between unsigned char and signed int maxima.
Uint-max-vs-slong-max
Relation between unsigned int and signed long maxima.
Uchar-max-vs-slong-max
Relation between unsigned char and signed int maxima.
Slong-max-<=-sllong-max
General relation between signed long and signed long long maxima.
Slong-max-vs-sllong-max
Relation between signed long and signed long long maxima.
Sint-max-<=-slong-max
General relation between signed int and signed long maxima.
Sint-max-vs-slong-max
Relation between signed int and signed long maxima.