• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
          • Soft-future-work
          • Soft-macros
            • Defun-inst
            • Defequal
              • Defequal-implementation
                • Defequal-fn
                • Defequal-event-generation
                • Defequal-input-processing
                  • Defequal-process-inputs
                  • Defequal-process-left-and-right
                  • Defequal-process-vars
                  • Defequal-process-right-to-left-name
                  • Defequal-process-left-to-right-name
                  • Defequal-process-vars-aux
                  • Defequal-process-name
                  • Defequal-table
                  • Defequal-macro-definition
              • Defsoft
              • Defthm-inst
              • Defun2
              • Defunvar
              • Defun-sk2
              • Defchoose2
              • Defthm-2nd-order
              • Define-sk2
              • Defund-sk2
              • Define2
              • Defund2
            • Updates-to-workshop-material
            • Soft-implementation
            • Soft-notions
          • C
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Defequal-input-processing

    Defequal-process-name

    Process the name input.

    Signature
    (defequal-process-name name names-to-avoid ctx state) 
      → 
    (mv erp updated-names-to-avoid state)
    Arguments
    names-to-avoid — Guard (symbol-listp names-to-avoid).
    Returns
    updated-names-to-avoid — Always symbol-listp.

    Definitions and Theorems

    Function: defequal-process-name

    (defun defequal-process-name (name names-to-avoid ctx state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (symbol-listp names-to-avoid)))
      (let ((__function__ 'defequal-process-name))
        (declare (ignorable __function__))
        (b* (((er &)
              (ensure-value-is-symbol$ name "The NAME input" t nil))
             ((er names-to-avoid)
              (ensure-symbol-is-fresh-event-name$
                   name (msg "The NAME input ~x0" name)
                   'function
                   names-to-avoid t nil)))
          (value names-to-avoid))))