• 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
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
          • Primitive-functions
          • Translated-terms
          • Values
          • Evaluation
          • Program-equivalence
          • Functions
          • Packages
            • Lift-package-list
            • Import-lookup
            • Package-option
            • Package-lookup
            • Package
              • Package-fix
              • Package-equiv
              • Make-package
              • Package->imports
                • Change-package
                • Package->name
                • Packagep
              • Lift-package
              • Package-list
            • 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
    • Package

    Package->imports

    Get the imports field from a package.

    Signature
    (package->imports x) → imports
    Arguments
    x — Guard (packagep x).
    Returns
    imports — Type (symbol-value-listp imports).

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

    Definitions and Theorems

    Function: package->imports$inline

    (defun package->imports$inline (x)
      (declare (xargs :guard (packagep x)))
      (declare (xargs :guard t))
      (let ((__function__ 'package->imports))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (symbol-value-list-fix (std::da-nth 1 x)))
             :exec (std::da-nth 1 x))))

    Theorem: symbol-value-listp-of-package->imports

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

    Theorem: package->imports$inline-of-package-fix-x

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

    Theorem: package->imports$inline-package-equiv-congruence-on-x

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