• 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
            • Atj-implementation
              • Atj-types
              • Atj-java-primitive-array-model
                • Atj-def-java-primitive-array-model
                • Short-array
                • Long-array
                • Int-array
                • Char-array
                • Byte-array
                • Boolean-array
                • Float-array
                • Double-array
                  • Double-array-fix
                  • Double-array-equiv
                  • Make-double-array
                  • Double-array->components
                    • Change-double-array
                    • Double-arrayp
                  • Byte-array-to-sbyte8-list
                  • Short-array-to-sbyte16-list
                  • Long-array-to-sbyte64-list
                  • Int-array-to-sbyte32-list
                  • Char-array-to-ubyte16-list
                  • Boolean-array-to-boolean-list
                  • Double-array-write
                  • Boolean-array-write
                  • Short-array-write
                  • Short-array-from-sbyte16-list
                  • Long-array-write
                  • Int-array-write
                  • Float-array-write
                  • Char-array-write
                  • Char-array-from-ubyte16-list
                  • Byte-array-write
                  • Byte-array-from-sbyte8-list
                  • Boolean-array-from-boolean-list
                  • Long-array-from-sbyte64-list
                  • Int-array-from-sbyte32-list
                  • Short-array-new-init
                  • Double-array-index-in-range-p
                  • Byte-array-new-init
                  • Boolean-array-new-init
                  • Boolean-array-index-in-range-p
                  • Short-array-new-len
                  • Short-array-index-in-range-p
                  • Long-array-new-len
                  • Long-array-new-init
                  • Long-array-index-in-range-p
                  • Int-array-new-init
                  • Int-array-index-in-range-p
                  • Float-array-new-len
                  • Float-array-index-in-range-p
                  • Double-array-new-len
                  • Char-array-new-len
                  • Char-array-new-init
                  • Char-array-index-in-range-p
                  • Byte-array-new-len
                  • Byte-array-index-in-range-p
                  • Boolean-array-new-len
                  • Short-array-read
                  • Long-array-read
                  • Int-array-new-len
                  • Float-array-read
                  • Float-array-new-init
                  • Double-array-read
                  • Double-array-new-init
                  • Char-array-read
                  • Byte-array-read
                  • Boolean-array-read
                  • Int-array-read
                  • Short-array-length
                  • Float-array-length
                  • Double-array-length
                  • Boolean-array-length
                  • Long-array-length
                  • Int-array-length
                  • Char-array-length
                  • Byte-array-length
                • Atj-java-abstract-syntax
                • Atj-input-processing
                • Atj-java-pretty-printer
                • Atj-code-generation
                • Atj-java-primitives
                • Atj-java-primitive-arrays
                • Atj-type-macros
                • Atj-java-syntax-operations
                • Atj-fn
                • Atj-library-extensions
                • Atj-java-input-types
                • Atj-test-structures
                • Aij-notions
                • Atj-macro-definition
              • Atj-tutorial
            • Aij
            • Language
          • 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
    • Double-array

    Double-array->components

    Get the components field from a double-array.

    Signature
    (double-array->components x) → components
    Arguments
    x — Guard (double-arrayp x).
    Returns
    components — Type (double-value-listp components).

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

    Definitions and Theorems

    Function: double-array->components$inline

    (defun double-array->components$inline (x)
     (declare (xargs :guard (double-arrayp x)))
     (declare (xargs :guard t))
     (let ((__function__ 'double-array->components))
      (declare (ignorable __function__))
      (mbe
        :logic
        (b*
          ((x (and t x))
           (components (double-value-list-fix (std::da-nth 0 (cdr x)))))
          (if (< (len components) (expt 2 31))
              components
            nil))
        :exec (std::da-nth 0 (cdr x)))))

    Theorem: double-value-listp-of-double-array->components

    (defthm double-value-listp-of-double-array->components
      (b* ((components (double-array->components$inline x)))
        (double-value-listp components))
      :rule-classes :rewrite)

    Theorem: double-array->components$inline-of-double-array-fix-x

    (defthm double-array->components$inline-of-double-array-fix-x
      (equal (double-array->components$inline (double-array-fix x))
             (double-array->components$inline x)))

    Theorem: double-array->components$inline-double-array-equiv-congruence-on-x

    (defthm
     double-array->components$inline-double-array-equiv-congruence-on-x
     (implies (double-array-equiv x x-equiv)
              (equal (double-array->components$inline x)
                     (double-array->components$inline x-equiv)))
     :rule-classes :congruence)