• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
        • Isodata
        • Simplify-defun
        • 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
      • ACL2
        • Theories
        • Rule-classes
        • Proof-builder
        • Recursion-and-induction
        • Hons-and-memoization
        • Events
        • Parallelism
        • History
        • Programming
        • Operational-semantics
        • Real
        • Start-here
        • Miscellaneous
        • Output-controls
        • Bdd
        • Macros
          • Make-event
          • Defmacro
          • Untranslate-patterns
          • Tc
          • Trans*
          • Macro-aliases-table
          • Macro-args
          • Defabbrev
          • User-defined-functions-table
          • Trans
          • Untranslate-for-execution
          • Macro-libraries
            • B*
            • Defunc
            • Fty
            • Apt
              • Isodata
              • Simplify-defun
              • 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
            • Add-macro-fn
            • Check-vars-not-free
            • Safe-mode
            • 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
          • Installation
          • Mailing-lists
        • Interfacing-tools
        • Hardware-verification
        • Software-verification
        • Math
        • Testing-utilities
      • Solve-event-generation

      Solve-gen-f

      Generate the f function.

      Signature
      (solve-gen-f f x1...xn f-body 
                   solution-guard solution-guard-hints 
                   solution-enable verify-guards wrld) 
       
        → 
      (mv local-event exported-event)
      Arguments
      f — Guard (symbolp f).
      x1...xn — Guard (symbol-listp x1...xn).
      f-body — Guard (pseudo-termp f-body).
      solution-guard — An untranslated term.
      solution-guard-hints — Guard (true-listp solution-guard-hints).
      solution-enable — Guard (booleanp solution-enable).
      verify-guards — Guard (booleanp verify-guards).
      wrld — Guard (plist-worldp wrld).
      Returns
      local-event — A pseudo-event-formp.
      exported-event — A pseudo-event-formp.

      Definitions and Theorems

      Function: solve-gen-f

      (defun solve-gen-f (f x1...xn f-body
                            solution-guard solution-guard-hints
                            solution-enable verify-guards wrld)
        (declare (xargs :guard (and (symbolp f)
                                    (symbol-listp x1...xn)
                                    (pseudo-termp f-body)
                                    (true-listp solution-guard-hints)
                                    (booleanp solution-enable)
                                    (booleanp verify-guards)
                                    (plist-worldp wrld))))
        (let ((__function__ 'solve-gen-f))
          (declare (ignorable __function__))
          (evmac-generate-defun f
                                :formals x1...xn
                                :body (untranslate f-body nil wrld)
                                :enable solution-enable
                                :guard solution-guard
                                :guard-hints solution-guard-hints
                                :verify-guards verify-guards)))