• 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

    Make-package

    Basic constructor macro for package structures.

    Syntax
    (make-package [:name <name>] 
                  [:imports <imports>]) 
    

    This is the usual way to construct package structures. It simply conses together a structure with the specified fields.

    This macro generates a new package structure from scratch. See also change-package, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-package

    (defmacro make-package (&rest args)
      (std::make-aggregate 'package
                           args '((:name) (:imports))
                           'make-package
                           nil))

    Function: package

    (defun package (name imports)
      (declare (xargs :guard (and (stringp name)
                                  (symbol-value-listp imports))))
      (declare (xargs :guard t))
      (let ((__function__ 'package))
        (declare (ignorable __function__))
        (b* ((name (mbe :logic (str-fix name) :exec name))
             (imports (mbe :logic (symbol-value-list-fix imports)
                           :exec imports)))
          (list name imports))))