• 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

    Combine-hints

    Combining user-hints into smt-hint.

    Signature
    (combine-hints user-hint hint) → combined-hint
    Arguments
    user-hint — Guard (smtlink-hint-syntax-p user-hint).
    hint — Guard (smtlink-hint-p hint).
    Returns
    combined-hint — Type (smtlink-hint-p combined-hint).

    Definitions and Theorems

    Function: combine-hints

    (defun combine-hints (user-hint hint)
     (declare (xargs :guard (and (smtlink-hint-syntax-p user-hint)
                                 (smtlink-hint-p hint))))
     (let ((acl2::__function__ 'combine-hints))
      (declare (ignorable acl2::__function__))
      (b*
       ((hint (smtlink-hint-fix hint))
        (user-hint (smtlink-hint-syntax-fix user-hint))
        ((unless (consp user-hint)) hint)
        ((cons option (cons second rest))
         user-hint)
        ((smtlink-hint h) hint)
        (fast-funcs (make-alist-fn-lst h.functions))
        (new-hint
         (case option
          (:functions
           (with-fast-alist
                fast-funcs
                (merge-functions
                     second
                     (change-smtlink-hint hint
                                          :fast-functions fast-funcs))))
          (:hypotheses (merge-hypothesis second hint))
          (:main-hint (merge-main-hint second hint))
          (:abstract (set-abstract-types second hint))
          (:fty (set-fty-types second hint))
          (:int-to-rat (set-int-to-rat second hint))
          (:smt-fname (set-fname second hint))
          (:smt-dir (set-smt-dir second hint))
          (:rm-file (set-rm-file second hint))
          (:custom-p (set-custom-p second hint))
          (:smt-solver-params (set-smt-solver-params second hint))
          (t (set-wrld-len second hint)))))
       (combine-hints rest new-hint))))

    Theorem: smtlink-hint-p-of-combine-hints

    (defthm smtlink-hint-p-of-combine-hints
      (b* ((combined-hint (combine-hints user-hint hint)))
        (smtlink-hint-p combined-hint))
      :rule-classes :rewrite)