• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
        • Z3-installation
        • Smt-hint
        • Tutorial
        • Status
        • Developer
          • Verified
            • Uninterpreted-fn-cp
            • Smt-hint-interface
            • Function-expansion
            • Smt-config
            • Fty-support
            • Smt-computed-hints
            • Add-hypo-cp
            • Smt-hint-please
            • Type-extract-cp
            • Smt-extract
            • Smtlink-process-user-hint
              • Process-smtlink-hints
                • Combine-hints
                • Merge-functions
                • Make-merge-function-option-lst
                • Remove-duplicate-from-decl-list
                • Process-hint
                • Merge-hypothesis
                • Make-merge-more-returns
                • Make-merge-returns-helper
                • Make-merge-returns
                • Make-merge-formals-helper
                • Make-merge-formals
                • Set-smt-solver-params
                • Set-int-to-rat
                • Merge-main-hint
                • Make-merge-guard
                • Make-merge-function
                  • Set-wrld-len
                  • Set-smt-dir
                  • Set-rm-file
                  • Set-fty-types
                  • Set-fname
                  • Set-custom-p
                  • Set-abstract-types
                  • Make-merge-hypothesis
                • Function-syntax
                • Smtlink-hint-syntax
                • Argument-lst-syntax
                • Hypothesis-lst-syntax
                • Translate-cmp-smtlink
                • Process-hint-clause-processor
                • Smt-solver-params
                • Hints-syntax
                • True-set-equiv-relation
              • Smt-basics
              • Smt-type-hyp
              • Smt-magic-fix
            • Trusted
        • 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
    • Process-smtlink-hints

    Make-merge-function

    Function for generating func-p of a single function hint.

    Signature
    (make-merge-function func smt-func) → func
    Arguments
    func — Guard (function-syntax-p func).
    smt-func — Guard (func-p smt-func).
    Returns
    func — Type (func-p func).

    Definitions and Theorems

    Function: make-merge-function

    (defun make-merge-function (func smt-func)
      (declare (xargs :guard (and (function-syntax-p func)
                                  (func-p smt-func))))
      (let ((acl2::__function__ 'make-merge-function))
        (declare (ignorable acl2::__function__))
        (b* ((func (function-syntax-fix func))
             ((cons fun-name fun-opt-lst) func)
             (name fun-name))
          (make-merge-function-option-lst
               fun-opt-lst
               (change-func smt-func :name name)))))

    Theorem: func-p-of-make-merge-function

    (defthm func-p-of-make-merge-function
      (b* ((func (make-merge-function func smt-func)))
        (func-p func))
      :rule-classes :rewrite)