• 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-gen-solution-theorem-from-rewriting-theorem
              • Solve-gen-solution-manual
              • Solve-gen-solution-ACL2-rewriter
              • Solve-gen-old-if-new
              • Solve-gen-solution-from-rewritten-term
              • Solve-gen-everything
              • Solve-gen-solution
                • Solve-gen-solution-axe-rewriter
                • Solve-gen-ACL2-rewriter-theorem
                • Solve-gen-axe-rewriter-theorem
                • Solve-gen-f
                • Solve-gen-new
                • Solve-gen-old-if-new-thm-aux
              • 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
        • Pfcs
        • Wp-gen
        • Dimacs-reader
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Riscv
        • Bitcoin
        • 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
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Solve-event-generation

    Solve-gen-solution

    Attempt to generate the events that provide the solution.

    Signature
    (solve-gen-solution old 
                        ?f x1...xn matrix method method-rules f 
                        f-existsp solution-enable solution-guard 
                        solution-guard-hints solution-body 
                        solution-hints verify-guards 
                        print names-to-avoid ctx state) 
     
      → 
    (mv erp result state)
    Arguments
    old — Guard (symbolp old).
    ?f — Guard (symbolp ?f).
    x1...xn — Guard (symbol-listp x1...xn).
    matrix — Guard (pseudo-termp matrix).
    method — Guard (keywordp method).
    method-rules — Guard (symbol-listp method-rules).
    f — Guard (symbolp f).
    f-existsp — Guard (booleanp f-existsp).
    solution-enable — Guard (booleanp solution-enable).
    solution-guard — An untranslated term.
    solution-guard-hints — Guard (true-listp solution-guard-hints).
    solution-body — An untranslated term.
    solution-hints — Guard (true-listp solution-hints).
    verify-guards — Guard (booleanp verify-guards).
    print — Guard (evmac-input-print-p print).
    names-to-avoid — Guard (symbol-listp names-to-avoid).
    Returns
    result — (tuple (local-events pseudo-form-listp) (exported-events pseudo-form-listp) (solution-theorem symbolp) (old-instance symbolp) (updated-names-to-avoid symbol-listp) result).

    These are events that depend on the solving method. In contrast, the events for new and old-if-new are the same for every method.

    Definitions and Theorems

    Function: solve-gen-solution

    (defun solve-gen-solution
           (old ?f x1...xn matrix method method-rules f
                f-existsp solution-enable solution-guard
                solution-guard-hints solution-body
                solution-hints verify-guards
                print names-to-avoid ctx state)
      (declare (xargs :stobjs (state)))
      (declare (xargs :guard (and (symbolp old)
                                  (symbolp ?f)
                                  (symbol-listp x1...xn)
                                  (pseudo-termp matrix)
                                  (keywordp method)
                                  (symbol-listp method-rules)
                                  (symbolp f)
                                  (booleanp f-existsp)
                                  (booleanp solution-enable)
                                  (true-listp solution-guard-hints)
                                  (true-listp solution-hints)
                                  (booleanp verify-guards)
                                  (evmac-input-print-p print)
                                  (symbol-listp names-to-avoid))))
      (let ((__function__ 'solve-gen-solution))
        (declare (ignorable __function__))
        (case method
          (:acl2-rewriter (solve-gen-solution-acl2-rewriter
                               old ?f x1...xn matrix method-rules
                               f solution-enable solution-guard
                               solution-guard-hints verify-guards
                               print names-to-avoid ctx state))
          (:axe-rewriter (solve-gen-solution-axe-rewriter
                              old ?f x1...xn matrix method-rules
                              f solution-enable solution-guard
                              solution-guard-hints verify-guards
                              print names-to-avoid ctx state))
          (:manual (solve-gen-solution-manual
                        old ?f x1...xn matrix f
                        f-existsp solution-enable solution-guard
                        solution-guard-hints solution-body
                        solution-hints verify-guards
                        print names-to-avoid state))
          (t (value (raise "Internal error: unknown method ~x0."
                           method))))))