• 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-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
                • Double-value
                • Boolean-value
                • Floating-point-value
                  • Floating-point-value-fix
                  • Floating-point-value-equiv
                  • Floating-point-value-float
                    • Floating-point-value-float->get
                      • Make-floating-point-value-float
                      • Change-floating-point-value-float
                    • Floating-point-value-double
                    • Floating-point-valuep
                    • Floating-point-value-kind
                  • 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
          • 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-value-float

    Floating-point-value-float->get

    Get the get field from a floating-point-value-float.

    Signature
    (floating-point-value-float->get acl2::x) → get
    Arguments
    acl2::x — Guard (floating-point-valuep acl2::x).
    Returns
    get — Type (float-valuep get).

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

    Definitions and Theorems

    Function: floating-point-value-float->get$inline

    (defun floating-point-value-float->get$inline (acl2::x)
     (declare (xargs :guard (floating-point-valuep acl2::x)))
     (declare (xargs :guard (equal (floating-point-value-kind acl2::x)
                                   :float)))
     (let ((__function__ 'floating-point-value-float->get))
      (declare (ignorable __function__))
      (mbe :logic
           (b* ((acl2::x (and (equal (floating-point-value-kind acl2::x)
                                     :float)
                              acl2::x)))
             (float-value-fix acl2::x))
           :exec acl2::x)))

    Theorem: float-valuep-of-floating-point-value-float->get

    (defthm float-valuep-of-floating-point-value-float->get
      (b* ((get (floating-point-value-float->get$inline acl2::x)))
        (float-valuep get))
      :rule-classes :rewrite)

    Theorem: floating-point-value-float->get$inline-of-floating-point-value-fix-x

    (defthm
     floating-point-value-float->get$inline-of-floating-point-value-fix-x
     (equal (floating-point-value-float->get$inline
                 (floating-point-value-fix acl2::x))
            (floating-point-value-float->get$inline acl2::x)))

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

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

    Theorem: floating-point-value-float->get-when-wrong-kind

    (defthm floating-point-value-float->get-when-wrong-kind
      (implies (not (equal (floating-point-value-kind acl2::x)
                           :float))
               (equal (floating-point-value-float->get acl2::x)
                      (float-value-fix nil))))