• 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-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-implementation

    Solve-macro-definition

    Definition of the solve macro.

    Submit the event form generated by solve-fn.

    Macro: solve

    (defmacro solve (&whole call
                            old &key (method ':no-default method?)
                            (method-rules 'nil)
                            (solution-name ':auto)
                            (solution-enable 'nil solution-enable?)
                            (solution-guard 't solution-guard?)
                            (solution-guard-hints 'nil
                                                  solution-guard-hints?)
                            (solution-body ':no-default
                                           solution-body?)
                            (solution-hints 'nil solution-hints?)
                            (new-name ':auto)
                            (new-enable ':auto)
                            (old-if-new-name ':irrelevant
                                             old-if-new-name?)
                            (old-if-new-enable ':irrelevant
                                               old-if-new-enable?)
                            (verify-guards ':auto)
                            (print ':result)
                            (show-only 'nil))
     (cons
      'make-event-terse
      (cons
       (cons
        'solve-fn
        (cons
         (cons 'quote (cons old 'nil))
         (cons
          (cons 'quote (cons method 'nil))
          (cons
           (cons 'quote (cons method? 'nil))
           (cons
            (cons 'quote (cons method-rules 'nil))
            (cons
             (cons 'quote (cons solution-name 'nil))
             (cons
              (cons 'quote
                    (cons solution-enable 'nil))
              (cons
               (cons 'quote
                     (cons solution-enable? 'nil))
               (cons
                (cons 'quote (cons solution-guard 'nil))
                (cons
                 (cons 'quote
                       (cons solution-guard? 'nil))
                 (cons
                  (cons 'quote
                        (cons solution-guard-hints 'nil))
                  (cons
                   (cons 'quote
                         (cons solution-guard-hints? 'nil))
                   (cons
                    (cons 'quote (cons solution-body 'nil))
                    (cons
                     (cons 'quote (cons solution-body? 'nil))
                     (cons
                      (cons 'quote (cons solution-hints 'nil))
                      (cons
                       (cons 'quote
                             (cons solution-hints? 'nil))
                       (cons
                        (cons 'quote (cons new-name 'nil))
                        (cons
                         (cons 'quote (cons new-enable 'nil))
                         (cons
                          (cons 'quote
                                (cons old-if-new-name 'nil))
                          (cons
                           (cons 'quote
                                 (cons old-if-new-name? 'nil))
                           (cons
                            (cons 'quote
                                  (cons old-if-new-enable 'nil))
                            (cons
                             (cons 'quote
                                   (cons old-if-new-enable? 'nil))
                             (cons
                              (cons 'quote (cons verify-guards 'nil))
                              (cons
                               (cons 'quote (cons print 'nil))
                               (cons
                                (cons 'quote (cons show-only 'nil))
                                (cons
                                 (cons 'quote (cons call 'nil))
                                 (cons
                                  (cons
                                   'cons
                                   (cons
                                     ''solve
                                     (cons (cons 'quote (cons old 'nil))
                                           'nil)))
                                  '(state))))))))))))))))))))))))))))
       (cons ':suppress-errors
             (cons (not print) 'nil)))))