• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • 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
        • Zfc
        • Acre
        • Milawa
        • Smtlink
        • Abnf
        • Vwsim
        • Isar
        • Wp-gen
        • Dimacs-reader
        • Pfcs
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • 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)