• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
        • Atj
        • Aij
        • Language
          • Syntax
          • Semantics
            • Primitive-function-macros
            • Primitive-values
            • Floating-point-placeholders
            • Pointers
            • Floating-point-value-set-parameters
              • Floatx-paramp
              • Doublex-paramp
                • Floatx-param
                • Doublex-param
              • Values
              • Primitive-operations
              • Primitive-conversions
              • Reference-values
        • Riscv
        • Taspi
        • Bitcoin
        • Zcash
        • Des
        • X86isa
        • Sha-2
        • Yul
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Floating-point-value-set-parameters

    Doublex-paramp

    Recognize the possible parameters that describe a Java implementation's support of the double-extended-exponent value set [JLS14:4.2.3].

    Signature
    (doublex-paramp k) → yes/no
    Returns
    yes/no — Type (booleanp yes/no).

    A Java implementation may support a double-extended-exponent value set or not. If it does, an implementation-dependent constant K [JLS14:4.2.3] determines the exact values supported.

    Our Java formalization is parameterized over the specifics of this support, via the value of the nullary function doublex-param, which is constrained to be either nil (indicating no support) or a positive integer that is at least 15 (the value of K).

    Definitions and Theorems

    Function: doublex-paramp

    (defun doublex-paramp (k)
      (declare (xargs :guard t))
      (let ((__function__ 'doublex-paramp))
        (declare (ignorable __function__))
        (or (null k) (and (natp k) (>= k 15)))))

    Theorem: booleanp-of-doublex-paramp

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