• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
      • Parallelism
      • History
      • Programming
      • Operational-semantics
      • Real
      • Start-here
      • Debugging
      • Miscellaneous
      • Output-controls
      • Macros
        • Make-event
        • Defmacro
        • Untranslate-patterns
        • Tc
        • Trans*
        • Macro-aliases-table
        • Macro-args
        • Defabbrev
        • User-defined-functions-table
        • Trans
        • Untranslate-for-execution
        • Add-macro-fn
        • Check-vars-not-free
        • Safe-mode
        • Macro-libraries
          • B*
          • Defunc
          • Fty
          • Apt
            • Simplify-defun
            • Isodata
            • Tailrec
            • Schemalg
            • Restrict
            • Expdata
            • Casesplit
            • Simplify-term
            • Simplify-defun-sk
            • Parteval
            • Solve
              • Solve-implementation
                • Solve-event-generation
                • Solve-fn
                • Solve-input-processing
                  • Solve-process-inputs
                  • Solve-process-solution-name
                  • Solve-process-old
                  • Solve-process-solution-guard-hints
                  • Solve-process-solution-body
                  • Solve-process-solution-hints
                  • Solve-process-solution-guard
                  • Solve-process-solution-enable
                  • Solve-process-method
                    • Solve-process-method-rules
                    • *solve-call-axe-rewriter*
                    • *solve-call-ACL2-rewriter*
                  • Solve-macro-definition
                  • Solve-call-ACL2-rewriter
              • Wrap-output
              • Propagate-iso
              • Simplify
              • Finite-difference
              • Drop-irrelevant-params
              • Copy-function
              • Lift-iso
              • Rename-params
              • Utilities
              • Simplify-term-programmatic
              • Simplify-defun-sk-programmatic
              • Simplify-defun-programmatic
              • Simplify-defun+
              • Common-options
              • Common-concepts
            • Std/util
            • 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
          • 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
        • Mailing-lists
        • Interfacing-tools
      • Macro-libraries
        • B*
        • Defunc
        • Fty
        • Apt
          • Simplify-defun
          • Isodata
          • Tailrec
          • Schemalg
          • Restrict
          • Expdata
          • Casesplit
          • Simplify-term
          • Simplify-defun-sk
          • Parteval
          • Solve
            • Solve-implementation
              • Solve-event-generation
              • Solve-fn
              • Solve-input-processing
                • Solve-process-inputs
                • Solve-process-solution-name
                • Solve-process-old
                • Solve-process-solution-guard-hints
                • Solve-process-solution-body
                • Solve-process-solution-hints
                • Solve-process-solution-guard
                • Solve-process-solution-enable
                • Solve-process-method
                  • Solve-process-method-rules
                  • *solve-call-axe-rewriter*
                  • *solve-call-ACL2-rewriter*
                • Solve-macro-definition
                • Solve-call-ACL2-rewriter
            • Wrap-output
            • Propagate-iso
            • Simplify
            • Finite-difference
            • Drop-irrelevant-params
            • Copy-function
            • Lift-iso
            • Rename-params
            • Utilities
            • Simplify-term-programmatic
            • Simplify-defun-sk-programmatic
            • Simplify-defun-programmatic
            • Simplify-defun+
            • Common-options
            • Common-concepts
          • Std/util
          • 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
        • Interfacing-tools
        • Hardware-verification
        • Software-verification
        • Math
        • Testing-utilities
      • Solve-input-processing

      Solve-process-method

      Process the :method input.

      Signature
      (solve-process-method method method? ctx state) 
        → 
      (mv erp nothing state)
      Arguments
      method? — Guard (booleanp method?).
      Returns
      nothing — Type (null nothing).

      Definitions and Theorems

      Function: solve-process-method

      (defun solve-process-method (method method? ctx state)
       (declare (xargs :stobjs (state)))
       (declare (xargs :guard (booleanp method?)))
       (let ((__function__ 'solve-process-method))
        (declare (ignorable __function__))
        (cond
         ((eq method :acl2-rewriter)
          (if (function-symbolp *solve-call-acl2-rewriter* (w state))
              (value nil)
           (er-soft+
            ctx t nil
            "In order to use the ACL2 rewriter as the solving method ~
                   it is necessary to include community book ~
                   kestrel/apt/solve-method-acl2-rewriter.lisp.")))
         ((eq method :axe-rewriter)
          (if (function-symbolp *solve-call-axe-rewriter* (w state))
              (value nil)
           (er-soft+
            ctx t nil
            "In order to use the Axe rewriter as the solving method ~
                   it is necessary to include community book ~
                   kestrel/apt/solve-method-axe-rewriter.lisp.")))
         ((eq method :manual) (value nil))
         (method?
          (er-soft+
           ctx t nil
           "The :METHOD input must be ~
                          :ACL2-REWRITER, :AXE-REWRITER, or :MANUAL, ~
                          but it is ~x0 instead. ~
                          More methods will be supported in the future."
           method))
         (t (er-soft+ ctx t nil
                      "The :METHOD input must be supplied.")))))

      Theorem: null-of-solve-process-method.nothing

      (defthm null-of-solve-process-method.nothing
        (b* (((mv ?erp ?nothing acl2::?state)
              (solve-process-method method method? ctx state)))
          (null nothing))
        :rule-classes :rewrite)