• 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
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • 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
          • 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
    • Symbol-value

    Symbol-value->package

    Get the package field from a symbol-value.

    Signature
    (symbol-value->package x) → package
    Arguments
    x — Guard (symbol-valuep x).
    Returns
    package — Type (stringp package).

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

    Definitions and Theorems

    Function: symbol-value->package$inline

    (defun symbol-value->package$inline (x)
      (declare (xargs :guard (symbol-valuep x)))
      (declare (xargs :guard t))
      (let ((__function__ 'symbol-value->package))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (str-fix (cdr (std::da-nth 0 x))))
             :exec (cdr (std::da-nth 0 x)))))

    Theorem: stringp-of-symbol-value->package

    (defthm stringp-of-symbol-value->package
      (b* ((package (symbol-value->package$inline x)))
        (stringp package))
      :rule-classes :rewrite)

    Theorem: symbol-value->package$inline-of-symbol-value-fix-x

    (defthm symbol-value->package$inline-of-symbol-value-fix-x
      (equal (symbol-value->package$inline (symbol-value-fix x))
             (symbol-value->package$inline x)))

    Theorem: symbol-value->package$inline-symbol-value-equiv-congruence-on-x

    (defthm
        symbol-value->package$inline-symbol-value-equiv-congruence-on-x
      (implies (symbol-value-equiv x x-equiv)
               (equal (symbol-value->package$inline x)
                      (symbol-value->package$inline x-equiv)))
      :rule-classes :congruence)