• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • Std/util
        • Defprojection
        • Deflist
        • Defaggregate
        • Define
        • Defmapping
          • Defsurj
          • Defiso
          • Defmapping-implementation
            • Defmapping-event-generation
            • Defmapping-check-redundancy
            • Defmapping-table
            • Defmapping-fn
            • Defmapping-input-processing
              • Defmapping-process-thm-names
              • Defmapping-process-inputs
                • Defmapping-process-function
                • Defmapping-process-functions
                • Defmapping-process-thm-enable
                • Defmapping-thm-keywords
                • Defmapping-process-name
              • Defmapping-macro-definition
            • Definj
          • Defenum
          • Add-io-pairs
          • Defalist
          • Defmapappend
          • Returns-specifiers
          • Defarbrec
          • Defines
          • Define-sk
          • Error-value-tuples
          • Defmax-nat
          • Defmin-int
          • Deftutorial
          • Extended-formals
          • Defrule
          • Defval
          • Defsurj
          • Defiso
          • Defconstrained-recognizer
          • Deffixer
          • Defmvtypes
          • Defconsts
          • Defthm-unsigned-byte-p
          • Support
          • Defthm-signed-byte-p
          • Defthm-natp
          • Defund-sk
          • Defmacro+
          • Defsum
          • Defthm-commutative
          • Definj
          • Defirrelevant
          • Defredundant
        • Defdata
        • Defrstobj
        • Seq
        • Match-tree
        • Defrstobj
        • With-supporters
        • Def-partial-measure
        • Template-subst
        • Soft
        • 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
              • Defprojection
              • Deflist
              • Defaggregate
              • Define
              • Defmapping
                • Defsurj
                • Defiso
                • Defmapping-implementation
                  • Defmapping-event-generation
                  • Defmapping-check-redundancy
                  • Defmapping-table
                  • Defmapping-fn
                  • Defmapping-input-processing
                    • Defmapping-process-thm-names
                    • Defmapping-process-inputs
                      • Defmapping-process-function
                      • Defmapping-process-functions
                      • Defmapping-process-thm-enable
                      • Defmapping-thm-keywords
                      • Defmapping-process-name
                    • Defmapping-macro-definition
                  • Definj
                • Defenum
                • Add-io-pairs
                • Defalist
                • Defmapappend
                • Returns-specifiers
                • Defarbrec
                • Defines
                • Define-sk
                • Error-value-tuples
                • Defmax-nat
                • Defmin-int
                • Deftutorial
                • Extended-formals
                • Defrule
                • Defval
                • Defsurj
                • Defiso
                • Defconstrained-recognizer
                • Deffixer
                • Defmvtypes
                • Defconsts
                • Defthm-unsigned-byte-p
                • Support
                • Defthm-signed-byte-p
                • Defthm-natp
                • Defund-sk
                • Defmacro+
                • Defsum
                • Defthm-commutative
                • Definj
                • Defirrelevant
                • Defredundant
              • Defdata
              • Defrstobj
              • Seq
              • Match-tree
              • Defrstobj
              • With-supporters
              • Def-partial-measure
              • Template-subst
              • Soft
              • 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
      • Defmapping-input-processing

      Defmapping-process-inputs

      Process all the inputs.

      Signature
      (defmapping-process-inputs name 
                                 doma domb alpha beta beta-of-alpha-thm 
                                 alpha-of-beta-thm guard-thms 
                                 unconditional thm-names thm-enable 
                                 hints print show-only ctx state) 
       
        → 
      (mv erp result state)
      Returns
      result — A tuple (doma$ domb$ alpha$ beta$ thm-names$ thm-enable$ hints$) satisfying (typed-tuplep pseudo-termfnp pseudo-termfnp pseudo-termfnp pseudo-termfnp symbol-symbol-alistp keyword-listp symbol-truelist-alistp result).

      Definitions and Theorems

      Function: defmapping-process-inputs

      (defun defmapping-process-inputs
             (name doma domb alpha beta beta-of-alpha-thm
                   alpha-of-beta-thm guard-thms
                   unconditional thm-names thm-enable
                   hints print show-only ctx state)
       (declare (xargs :stobjs (state)))
       (declare (xargs :guard t))
       (let ((__function__ 'defmapping-process-inputs))
        (declare (ignorable __function__))
        (b*
         (((er &)
           (defmapping-process-name name ctx state))
          ((er &)
           (ensure-value-is-boolean$ guard-thms
                                     "The :GUARD-THMS input" t nil))
          ((er (list doma$ domb$ alpha$ beta$))
           (defmapping-process-functions
                doma
                domb alpha beta guard-thms ctx state))
          ((er &)
           (ensure-value-is-boolean$
                beta-of-alpha-thm
                "The :BETA-OF-ALPHA-THM input" t nil))
          ((er &)
           (ensure-value-is-boolean$
                alpha-of-beta-thm
                "The :ALPHA-OF-BETA-THM input" t nil))
          ((er &)
           (ensure-value-is-boolean$ unconditional
                                     "The :UNCONDITIONAL input" t nil))
          ((when (and unconditional (not beta-of-alpha-thm)
                      (not alpha-of-beta-thm)))
           (er-soft+
            ctx t nil
            "The :UNCONDITIONAL input cannot be T when ~
                         both :BETA-OF-ALPHA-THM and :ALPHA-OF-BETA-THM are NIL."))
          ((er thm-names$)
           (defmapping-process-thm-names
                thm-names name beta-of-alpha-thm
                alpha-of-beta-thm guard-thms ctx state))
          ((er thm-enable$)
           (defmapping-process-thm-enable
                thm-enable beta-of-alpha-thm
                alpha-of-beta-thm guard-thms ctx state))
          ((er hints$)
           (evmac-process-input-hints hints ctx state))
          ((er &)
           (evmac-process-input-print print ctx state))
          ((er &)
           (evmac-process-input-show-only show-only ctx state)))
         (value (list doma$ domb$ alpha$
                      beta$ thm-names$ thm-enable$ hints$)))))