• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • C
      • Proof-checker-array
      • Soft
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Ethereum
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Zcash
      • Des
      • X86isa
      • Sha-2
      • Yul
      • 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
        • Axe
        • Poseidon
        • Where-do-i-place-my-book
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • 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)