• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Hons-and-memoization
      • Events
      • History
      • Parallelism
      • Programming
        • Defun
        • Declare
        • System-utilities
        • Stobj
        • State
        • Memoize
        • Mbe
        • Io
        • Defpkg
        • Apply$
        • Mutual-recursion
        • Loop$
        • Programming-with-state
        • Arrays
        • Characters
        • Time$
        • Loop$-primer
        • Fast-alists
        • Defmacro
        • Defconst
        • Evaluation
        • Guard
        • Equality-variants
        • Compilation
        • Hons
        • ACL2-built-ins
        • Developers-guide
        • System-attachments
        • Advanced-features
        • Set-check-invariant-risk
        • Numbers
        • Irrelevant-formals
        • Efficiency
        • 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
        • Defmacro-untouchable
        • Primitive
        • <<
        • Revert-world
        • Set-duplicate-keys-action
        • Unmemoize
        • Symbols
          • Symbol-listp
          • Symbolp
            • Intern
            • Intern-in-package-of-symbol
            • Symbol-fix
            • Intern$
              • Intern-list
            • Symbol-equiv
          • Symbol-name
          • Symbol-package-name
          • Keywordp
          • Add-to-set
          • Symbol<
          • Packn
          • Packn-pos
          • Symbol-name-lst
        • Def-list-constructor
        • Easy-simplify-term
        • Defiteration
        • Defopen
        • Sleep
      • Start-here
      • Real
      • Debugging
      • Miscellaneous
      • Output-controls
      • Macros
      • Interfacing-tools
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Testing-utilities
    • Math
  • Symbolp
  • Packages
  • ACL2-built-ins

Intern$

Create a new symbol in a given package

Intern$ is a macro that behaves the same as the macro intern, except for weakening the restriction to a fixed set of package names so that any package name other than "" is legal. See intern. Note that if you evaluate a call (intern$ x y) for which there is no package with name y that is known to ACL2, you will get an error.

(Intern$ x y) expands to:

(intern-in-package-of-symbol x (pkg-witness y))

See intern-in-package-of-symbol and see pkg-witness.

Subtopics

Intern-list
Generate a list of symbols in some package.