• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
      • Std/util
        • Defprojection
        • Deflist
        • Defaggregate
        • Define
        • Defmapping
        • Defenum
        • Add-io-pairs
        • Defalist
        • Defmapappend
        • Returns-specifiers
        • Defarbrec
        • Define-sk
        • Defines
        • Error-value-tuples
        • Defmax-nat
          • Defmax-nat-implementation
            • Defmax-nat-fn
            • Defmax-nat-macro-definition
            • Defmax-nat-input-processing
              • Defmax-nat-process-inputs
              • Defmax-nat-event-generation
          • 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
          • Trans
          • User-defined-functions-table
          • Untranslate-for-execution
          • Macro-libraries
            • B*
            • Defunc
            • Fty
            • Apt
            • Std/util
              • Defprojection
              • Deflist
              • Defaggregate
              • Define
              • Defmapping
              • Defenum
              • Add-io-pairs
              • Defalist
              • Defmapappend
              • Returns-specifiers
              • Defarbrec
              • Define-sk
              • Defines
              • Error-value-tuples
              • Defmax-nat
                • Defmax-nat-implementation
                  • Defmax-nat-fn
                  • Defmax-nat-macro-definition
                  • Defmax-nat-input-processing
                    • Defmax-nat-process-inputs
                    • Defmax-nat-event-generation
                • 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
      • Defmax-nat-input-processing

      Defmax-nat-process-inputs

      Process all the inputs.

      Signature
      (defmax-nat-process-inputs f y x1...xn 
                                 body guard verify-guards ctx state) 
       
        → 
      (mv erp nothing state)
      Returns
      nothing — Type (null nothing).

      We just check that the inputs have the right types. We do not check the body and guard inputs, since those are untranslated term, for which we do not quite have a ``type'' readily available.

      Definitions and Theorems

      Function: defmax-nat-process-inputs

      (defun defmax-nat-process-inputs
             (f y x1...xn
                body guard verify-guards ctx state)
       (declare (xargs :stobjs (state)))
       (declare (ignore body guard))
       (declare (xargs :guard t))
       (let ((__function__ 'defmax-nat-process-inputs))
        (declare (ignorable __function__))
        (b*
         (((er &)
           (ensure-value-is-symbol$ f "The first input" t nil))
          ((er &)
           (ensure-value-is-symbol$ y "The second input" t nil))
          ((er &)
           (ensure-value-is-symbol-list$ x1...xn "The third input" t nil))
          ((er &)
           (ensure-value-is-boolean$ verify-guards
                                     "The :VERIFY-GUARDS input" t nil)))
         (value nil))))

      Theorem: null-of-defmax-nat-process-inputs.nothing

      (defthm null-of-defmax-nat-process-inputs.nothing
       (b*
        (((mv ?erp ?nothing ?state)
          (defmax-nat-process-inputs f y x1...xn
                                     body guard verify-guards ctx state)))
        (null nothing))
       :rule-classes :rewrite)