• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
        • Primitive-functions
        • Translated-terms
        • Values
          • Value
          • Symbol-value
            • Symbol-value-fix
            • Symbol-value-equiv
            • Symbol-valuep
              • Make-symbol-value
              • Symbol-value->package
              • Symbol-value->name
              • Change-symbol-value
            • Lower-symbol
            • Lift-symbol-list
            • Symbol-value-option
            • Value-option
            • Lift-value
            • Lift-symbol
            • Value-rational->get
            • Value-integer->get
            • Value-case-rational
            • Value-case-integer
            • Value-symbol-list
            • Lower-value
            • Value-list-of
            • Value-list
            • Symbol-value-list
            • Symbol-value-set
            • Value-t
            • Value-nil
          • Evaluation
          • Program-equivalence
          • Functions
          • Packages
          • Programs
          • Interpreter
          • Evaluation-states
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Symbol-value

    Symbol-valuep

    Recognizer for symbol-value structures.

    Signature
    (symbol-valuep x) → *

    Definitions and Theorems

    Function: symbol-valuep

    (defun symbol-valuep (x)
      (declare (xargs :guard t))
      (let ((__function__ 'symbol-valuep))
        (declare (ignorable __function__))
        (and (mbe :logic (and (alistp x)
                              (equal (strip-cars x) '(package name)))
                  :exec (fty::alist-with-carsp x '(package name)))
             (b* ((package (cdr (std::da-nth 0 x)))
                  (name (cdr (std::da-nth 1 x))))
               (and (stringp package)
                    (stringp name))))))

    Theorem: consp-when-symbol-valuep

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