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

    Primitive-value-long->get

    Get the get field from a primitive-value-long.

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

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

    Definitions and Theorems

    Function: primitive-value-long->get$inline

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

    Theorem: long-valuep-of-primitive-value-long->get

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

    Theorem: primitive-value-long->get$inline-of-primitive-value-fix-x

    (defthm primitive-value-long->get$inline-of-primitive-value-fix-x
     (equal
        (primitive-value-long->get$inline (primitive-value-fix acl2::x))
        (primitive-value-long->get$inline acl2::x)))

    Theorem: primitive-value-long->get$inline-primitive-value-equiv-congruence-on-x

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

    Theorem: primitive-value-long->get-when-wrong-kind

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