• 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
        • Bv
        • Imp-language
        • Event-macros
        • Java
          • Atj
          • Aij
          • Language
            • Syntax
            • Semantics
              • Primitive-function-macros
              • Primitive-values
                • Floating-pointx-value
                • Doublex-value-fns
                  • Doublex-valuep
                    • Doublex-value->doublex
                    • Doublex-value-fix
                    • Doublex-value
                  • Primitivex-value
                  • Floatx-value-fns
                  • Primitive-value
                  • Numericx-value
                  • Numeric-value
                  • Integral-value
                  • Int-value
                  • Char-value
                  • Byte-value
                  • Short-value
                  • Long-value
                  • Float-value
                  • Double-value
                  • Boolean-value
                  • Floating-point-value
                  • Disjoint-primitive-values
                  • Short-value-list
                  • Long-value-list
                  • Int-value-list
                  • Float-value-list
                  • Double-value-list
                  • Char-value-list
                  • Byte-value-list
                  • Boolean-value-list
                • Floating-point-placeholders
                • Pointers
                • Floating-point-value-set-parameters
                • Values
                • Primitive-operations
                • Primitive-conversions
                • Reference-values
          • 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
    • Doublex-value-fns

    Doublex-valuep

    Recognizer of Java double values in the double-extended-exponent value set.

    Signature
    (doublex-valuep x) → yes/no
    Returns
    yes/no — Type (booleanp yes/no).

    Definitions and Theorems

    Function: doublex-valuep

    (defun doublex-valuep (x)
      (declare (xargs :guard t))
      (let ((__function__ 'doublex-valuep))
        (declare (ignorable __function__))
        (and (tuplep 2 x)
             (eq (first x) :doublex)
             (doublex-value-abs-p (second x)))))

    Theorem: booleanp-of-doublex-valuep

    (defthm booleanp-of-doublex-valuep
      (b* ((yes/no (doublex-valuep x)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: no-doublex-value-when-unsupported

    (defthm no-doublex-value-when-unsupported
      (implies (not (doublex-param))
               (not (doublex-valuep x))))