• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • Std/util
      • Defdata
      • Defrstobj
      • Seq
      • Match-tree
      • Defrstobj
      • With-supporters
      • Def-partial-measure
      • Template-subst
      • 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
        • Defthm-domain
        • Event-macros
        • Def-universal-equiv
        • Def-saved-obligs
        • With-supporters-after
        • Definec
        • Sig
        • Outer-local
        • Data-structures
      • ACL2
        • Theories
        • Rule-classes
        • Proof-builder
        • Recursion-and-induction
        • Hons-and-memoization
        • Events
        • Parallelism
        • History
        • Programming
        • Operational-semantics
        • Real
        • Start-here
        • Miscellaneous
        • Output-controls
        • Bdd
        • Macros
          • Make-event
          • Defmacro
          • Untranslate-patterns
          • Tc
          • Trans*
          • Macro-aliases-table
          • Macro-args
          • Defabbrev
          • User-defined-functions-table
          • Trans
          • Untranslate-for-execution
          • Macro-libraries
            • B*
            • Defunc
            • Fty
            • Apt
            • Std/util
            • Defdata
            • Defrstobj
            • Seq
            • Match-tree
            • Defrstobj
            • With-supporters
            • Def-partial-measure
            • Template-subst
            • 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
              • Defthm-domain
              • Event-macros
              • Def-universal-equiv
              • Def-saved-obligs
              • With-supporters-after
              • Definec
              • Sig
              • Outer-local
              • Data-structures
            • Add-macro-fn
            • Check-vars-not-free
            • Safe-mode
            • Trans1
            • Defmacro-untouchable
            • Set-duplicate-keys-action
            • Add-macro-alias
            • Magic-macroexpand
            • Defmacroq
            • Trans!
            • Remove-macro-fn
            • Remove-macro-alias
            • Add-binop
            • Untrans-table
            • Trans*-
            • Remove-binop
            • Tcp
            • Tca
          • Installation
          • Mailing-lists
        • Interfacing-tools
        • Hardware-verification
        • Software-verification
        • 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))))