• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
        • Bv
        • Imp-language
        • 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-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
          • 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
    • Primitive-value

    Primitive-valuep

    Recognizer for primitive-value structures.

    Signature
    (primitive-valuep acl2::x) → *

    Definitions and Theorems

    Function: primitive-valuep

    (defun primitive-valuep (acl2::x)
      (declare (xargs :guard t))
      (let ((__function__ 'primitive-valuep))
        (declare (ignorable __function__))
        (cond ((boolean-valuep acl2::x)
               (b* ((get acl2::x))
                 (boolean-valuep get)))
              ((char-valuep acl2::x)
               (b* ((get acl2::x)) (char-valuep get)))
              ((byte-valuep acl2::x)
               (b* ((get acl2::x)) (byte-valuep get)))
              ((short-valuep acl2::x)
               (b* ((get acl2::x)) (short-valuep get)))
              ((int-valuep acl2::x)
               (b* ((get acl2::x)) (int-valuep get)))
              ((long-valuep acl2::x)
               (b* ((get acl2::x)) (long-valuep get)))
              ((float-valuep acl2::x)
               (b* ((get acl2::x)) (float-valuep get)))
              (t (b* ((get acl2::x))
                   (double-valuep get))))))

    Theorem: consp-when-primitive-valuep

    (defthm consp-when-primitive-valuep
      (implies (primitive-valuep acl2::x)
               (consp acl2::x))
      :rule-classes :compound-recognizer)