• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
                • 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
                  • Float-valuep
                  • Float-value-fix
                  • Float-value-equiv
                  • Make-float-value
                  • Float-value->float
                    • Change-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
    • Float-value

    Float-value->float

    Get the float field from a float-value.

    Signature
    (float-value->float x) → float
    Arguments
    x — Guard (float-valuep x).
    Returns
    float — Type (float-value-abs-p float).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: float-value->float$inline

    (defun float-value->float$inline (x)
      (declare (xargs :guard (float-valuep x)))
      (declare (xargs :guard t))
      (let ((__function__ 'float-value->float))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (float-value-abs-fix (std::da-nth 0 (cdr x))))
             :exec (std::da-nth 0 (cdr x)))))

    Theorem: float-value-abs-p-of-float-value->float

    (defthm float-value-abs-p-of-float-value->float
      (b* ((float (float-value->float$inline x)))
        (float-value-abs-p float))
      :rule-classes :rewrite)

    Theorem: float-value->float$inline-of-float-value-fix-x

    (defthm float-value->float$inline-of-float-value-fix-x
      (equal (float-value->float$inline (float-value-fix x))
             (float-value->float$inline x)))

    Theorem: float-value->float$inline-float-value-equiv-congruence-on-x

    (defthm float-value->float$inline-float-value-equiv-congruence-on-x
      (implies (float-value-equiv x x-equiv)
               (equal (float-value->float$inline x)
                      (float-value->float$inline x-equiv)))
      :rule-classes :congruence)