• 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-name

    Process the NAME input.

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

    If successful, return the name, unchanged but with a stronger type.

    For now we just check that this is a symbol. In the future we should probably also check that it and the :package inputs form a unique pair in the calls of defdefparse so far.

    Definitions and Theorems

    Function: defdefparse-process-name

    (defun defdefparse-process-name (name ctx state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (ctxp ctx)))
      (let ((__function__ 'defdefparse-process-name))
        (declare (ignorable __function__))
        (b* (((er &)
              (ensure-value-is-symbol$ name "The first input" t nil)))
          (value name))))

    Theorem: symbolp-of-defdefparse-process-name.name

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