• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
      • Parallelism
      • History
      • Programming
        • Defun
        • Declare
        • System-utilities
        • Stobj
        • State
        • Mutual-recursion
        • Memoize
        • Mbe
        • Io
        • Defpkg
        • Apply$
        • Loop$
        • Programming-with-state
        • Arrays
        • Characters
        • Time$
        • Defmacro
        • Loop$-primer
        • Fast-alists
        • Defconst
        • Evaluation
        • Guard
        • Equality-variants
        • Compilation
        • Hons
        • ACL2-built-ins
        • Developers-guide
        • System-attachments
        • Advanced-features
        • Set-check-invariant-risk
        • Numbers
        • Efficiency
        • Irrelevant-formals
        • Introduction-to-programming-in-ACL2-for-those-who-know-lisp
        • Redefining-programs
        • Lists
        • Invariant-risk
        • Errors
        • Defabbrev
        • Conses
        • Alists
        • Set-register-invariant-risk
        • Strings
        • Program-wrapper
        • Get-internal-time
        • Basics
        • Packages
          • Defpkg
          • *ACL2-exports*
          • Package-reincarnation-import-restrictions
          • *common-lisp-symbols-from-main-lisp-package*
          • Pkg-imports
          • Hidden-death-package
          • Symbol-package-name
          • Intern
          • Working-with-packages
          • Intern-in-package-of-symbol
          • ACL2-user
          • Packages-for-generated-symbols
          • In-package
          • Pkg-witness
            • *ACL2-system-exports*
            • Intern$
            • Sharp-bang-reader
            • Managing-ACL2-packages
            • Hidden-defpkg
          • Oracle-eval
          • Defmacro-untouchable
          • <<
          • Primitive
          • Revert-world
          • Unmemoize
          • Set-duplicate-keys-action
          • Symbols
          • Def-list-constructor
          • Easy-simplify-term
          • Defiteration
          • Fake-oracle-eval
          • Defopen
          • Sleep
        • Operational-semantics
        • Real
        • Start-here
        • Debugging
        • Miscellaneous
        • Output-controls
        • Macros
        • Interfacing-tools
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Packages
    • ACL2-built-ins

    Pkg-witness

    Return a specific symbol in the indicated package

    For any string pkg that names a package currently known to ACL2, (pkg-witness pkg) is a symbol in that package whose symbol-name is the value of constant *pkg-witness-name*. Logically, this is the case even if the package is not currently known to ACL2. However, if pkg-witness is called on a string that is not the name of a package known to ACL2, a hard Lisp error will result.

    (Pkg-witness pkg) has a guard of (and (stringp pkg) (not (equal pkg ""))). If pkg is not a string, then (pkg-witness pkg) is equal to (pkg-witness "ACL2")