• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
        • Deftreeops
        • Defdefparse
          • Defdefparse-implementation
            • Defdefparse-event-generation
            • Defdefparse-fn
            • Defdefparse-input-processing
              • Defdefparse-process-inputs
              • Defdefparse-process-name
              • Defdefparse-process-package
                • Defdefparse-process-grammar
                • Defdefparse-process-prefix
                • *defdefparse-allowed-options*
              • Defdefparse-table
              • Defdefparse-macro-definition
          • Defgrammar
          • Tree-utilities
          • Notation
          • Grammar-parser
          • Meta-circular-validation
          • Parsing-primitives-defresult
          • Parsing-primitives-seq
          • Operations
          • Examples
          • Differences-with-paper
          • Constructor-utilities
          • Grammar-printer
          • Parsing-tools
        • Vwsim
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Defdefparse-input-processing

    Defdefparse-process-package

    Process the :package input.

    Signature
    (defdefparse-process-package package ctx state) 
      → 
    (mv erp pkg-wit state)
    Arguments
    ctx — Guard (ctxp ctx).
    Returns
    pkg-wit — Type (common-lisp::symbolp pkg-wit).

    If successful, return the witness of the package.

    Definitions and Theorems

    Function: defdefparse-process-package

    (defun defdefparse-process-package (package ctx state)
     (declare (xargs :stobjs (state)))
     (declare (xargs :guard (ctxp ctx)))
     (let ((__function__ 'defdefparse-process-package))
      (declare (ignorable __function__))
      (b*
       (((er &)
         (ensure-value-is-string$ package "The :PACKAGE input" t nil))
        (known-packages (known-packages+ state))
        ((unless (member-equal package known-packages))
         (er-soft+
          ctx t nil
          "The :PACKAGE input ~x0 must be ~
                       among the known packages ~&1."
          package known-packages))
        ((when (equal package ""))
         (value (raise "Internal error: empty package name."))))
       (value (pkg-witness package)))))

    Theorem: symbolp-of-defdefparse-process-package.pkg-wit

    (defthm symbolp-of-defdefparse-process-package.pkg-wit
      (b* (((mv acl2::?erp ?pkg-wit acl2::?state)
            (defdefparse-process-package package ctx state)))
        (common-lisp::symbolp pkg-wit))
      :rule-classes :rewrite)