• 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
                  • Numeric-value-fix
                  • Numeric-value-equiv
                  • Numeric-valuep
                  • Numeric-value-short
                  • Numeric-value-long
                  • Numeric-value-int
                  • Numeric-value-float
                  • Numeric-value-double
                    • Numeric-value-double->get
                      • Make-numeric-value-double
                      • Change-numeric-value-double
                    • Numeric-value-char
                    • Numeric-value-byte
                    • Numeric-value-kind
                  • 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
          • 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
    • Numeric-value-double

    Numeric-value-double->get

    Get the get field from a numeric-value-double.

    Signature
    (numeric-value-double->get acl2::x) → get
    Arguments
    acl2::x — Guard (numeric-valuep acl2::x).
    Returns
    get — Type (double-valuep get).

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

    Definitions and Theorems

    Function: numeric-value-double->get$inline

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

    Theorem: double-valuep-of-numeric-value-double->get

    (defthm double-valuep-of-numeric-value-double->get
      (b* ((get (numeric-value-double->get$inline acl2::x)))
        (double-valuep get))
      :rule-classes :rewrite)

    Theorem: numeric-value-double->get$inline-of-numeric-value-fix-x

    (defthm numeric-value-double->get$inline-of-numeric-value-fix-x
     (equal
          (numeric-value-double->get$inline (numeric-value-fix acl2::x))
          (numeric-value-double->get$inline acl2::x)))

    Theorem: numeric-value-double->get$inline-numeric-value-equiv-congruence-on-x

    (defthm
     numeric-value-double->get$inline-numeric-value-equiv-congruence-on-x
     (implies (numeric-value-equiv acl2::x x-equiv)
              (equal (numeric-value-double->get$inline acl2::x)
                     (numeric-value-double->get$inline x-equiv)))
     :rule-classes :congruence)

    Theorem: numeric-value-double->get-when-wrong-kind

    (defthm numeric-value-double->get-when-wrong-kind
      (implies (not (equal (numeric-value-kind acl2::x)
                           :double))
               (equal (numeric-value-double->get acl2::x)
                      (double-value-fix nil))))