• 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
            • Disambiguator
            • Abstract-syntax
            • Parser
            • Validator
            • Printer
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Defpred
            • Output-files
            • Abstract-syntax-operations
            • Validation-information
            • Implementation-environments
              • Ienv
              • Ushort-rangep
              • Ullong-rangep
              • Sshort-rangep
              • Sllong-rangep
              • Ulong-rangep
              • Uint-rangep
              • Slong-rangep
              • Sint-rangep
              • Ushort-max
              • Ulong-max
              • Ullong-max
              • Uint-max
              • Uchar-rangep
              • Sshort-min
              • Sllong-min
                • Schar-rangep
                • Char-min
                • Char-max
                • Sshort-max
                • Slong-min
                • Slong-max
                • Sllong-max
                • Sint-min
                • Sint-max
                • Uchar-max
                • Schar-min
                • Schar-max
                • Ienv-default
              • Concrete-syntax
              • Unambiguity
              • Ascii-identifiers
              • Preprocessing
              • Abstraction-mapping
            • Atc
            • Language
            • 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
    • Implementation-environments

    Sllong-min

    Minimum mathematical integer value of type signed long long.

    Signature
    (sllong-min ienv) → val
    Arguments
    ienv — Guard (ienvp ienv).
    Returns
    val — Type (integerp val).

    This depends on the implementation environment.

    Definitions and Theorems

    Function: sllong-min

    (defun sllong-min (ienv)
      (declare (xargs :guard (ienvp ienv)))
      (let ((__function__ 'sllong-min))
        (declare (ignorable __function__))
        (- (expt 2
                 (1- (* 8 (ienv->llong-bytes ienv)))))))

    Theorem: integerp-of-sllong-min

    (defthm integerp-of-sllong-min
      (b* ((val (sllong-min ienv)))
        (integerp val))
      :rule-classes (:rewrite :type-prescription))

    Theorem: sllong-min-of-ienv-fix-ienv

    (defthm sllong-min-of-ienv-fix-ienv
      (equal (sllong-min (ienv-fix ienv))
             (sllong-min ienv)))

    Theorem: sllong-min-ienv-equiv-congruence-on-ienv

    (defthm sllong-min-ienv-equiv-congruence-on-ienv
      (implies (ienv-equiv ienv ienv-equiv)
               (equal (sllong-min ienv)
                      (sllong-min ienv-equiv)))
      :rule-classes :congruence)