• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • C
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
          • Atj
          • Aij
          • Language
            • Syntax
            • Semantics
              • Primitive-function-macros
              • Primitive-values
              • Floating-point-placeholders
                • Floating-point-value-placeholders
                  • Double-value-abs
                  • Float-value-abs
                  • Doublex-value-abs
                  • Floatx-value-abs
                • Floating-point-operation-placeholders
                • Floating-point-conversion-placeholders
                • Floating-point-macro-placeholders
              • Pointers
              • Floating-point-value-set-parameters
              • Values
              • Primitive-operations
              • Primitive-conversions
              • Reference-values
        • Riscv
        • Bitcoin
        • Zcash
        • Yul
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
        • Number-theory
        • Axe
        • Lists-light
        • Builtins
        • Solidity
        • Helpers
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Axe
      • Execloader
    • Math
    • Testing-utilities
  • Floating-point-placeholders

Floating-point-value-placeholders

Abstract placeholders for the Java floating-point values [JLS14:4.2.3].

We introduce constrained recognizers for the float and double value sets, as well as for the float-extended-exponent and double-extended-exponent value sets [JLS14:4.2.3]. The recognizers for the float and double value sets are constrained to be non-empty, via a companion nullary witness function for each, which we also use to define a fixer and a fixtype. The recognizers of the extended-exponent value sets are constrained to be non-empty if and only if the respective value sets are supported, as described by the parameters of our model; their non-emptiness constraints is also expressed via companion nullary witness functions. Since the non-emptiness is conditional (to the parameter's value), we define conditional fixers, but cannot define fixtypes. The nullary witness function for each value sets is regarded as returning the positive 0 for that value set, which is the default value for floating-point variables [JLS14:4.12.5]; this is just reflected in the name of the witness function, not in any constraint property of it.

Subtopics

Double-value-abs
Abstract fixtype for the double value set [JLS14:4.2.3].
Float-value-abs
Abstract fixtype for the float value set [JLS14:4.2.3].
Doublex-value-abs
Abstract recognizer and fixer for the double-extended-exponent value set [JLS14:4.2.3].
Floatx-value-abs
Abstract recognizer and fixer for the float-extended-exponent value set [JLS14:4.2.3].