• 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-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
            • 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-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
          • 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-event-generation

      Solve-gen-new

      Generate the new function.

      Signature
      (solve-gen-new new new-enable x1...xn ?f f verify-guards print) 
        → 
      event
      Arguments
      new — Guard (symbolp new).
      new-enable — Guard (booleanp new-enable).
      x1...xn — Guard (symbol-listp x1...xn).
      ?f — Guard (symbolp ?f).
      f — Guard (symbolp f).
      verify-guards — Guard (booleanp verify-guards).
      print — Guard (evmac-input-print-p print).
      Returns
      event — Type (pseudo-event-formp event).

      Definitions and Theorems

      Function: solve-gen-new

      (defun solve-gen-new (new new-enable
                                x1...xn ?f f verify-guards print)
       (declare (xargs :guard (and (symbolp new)
                                   (booleanp new-enable)
                                   (symbol-listp x1...xn)
                                   (symbolp ?f)
                                   (symbolp f)
                                   (booleanp verify-guards)
                                   (evmac-input-print-p print))))
       (let ((__function__ 'solve-gen-new))
        (declare (ignorable __function__))
        (cons
         'soft::defequal
         (cons
          new
          (cons
           ':left
           (cons
            ?f
            (cons
             ':right
             (cons
              f
              (cons
               ':vars
               (cons
                x1...xn
                (cons
                  ':enable
                  (cons new-enable
                        (cons ':verify-guards
                              (cons verify-guards
                                    (cons ':print
                                          (cons (and (eq print :all) :all)
                                                'nil))))))))))))))))

      Theorem: pseudo-event-formp-of-solve-gen-new

      (defthm pseudo-event-formp-of-solve-gen-new
        (b* ((event (solve-gen-new new new-enable
                                   x1...xn ?f f verify-guards print)))
          (pseudo-event-formp event))
        :rule-classes :rewrite)