• 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-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
        • 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
    • 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))))