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

    Packagep

    Recognizer for package structures.

    Signature
    (packagep x) → *

    Definitions and Theorems

    Function: packagep

    (defun packagep (x)
      (declare (xargs :guard t))
      (let ((__function__ 'packagep))
        (declare (ignorable __function__))
        (and (true-listp x)
             (eql (len x) 2)
             (b* ((name (std::da-nth 0 x))
                  (imports (std::da-nth 1 x)))
               (and (stringp name)
                    (symbol-value-listp imports))))))

    Theorem: consp-when-packagep

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