• 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
        • Pfcs
        • Wp-gen
        • Dimacs-reader
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Riscv
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • 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
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Process-smtlink-hints

    Process-hint

    Signature
    (process-hint cl user-hint) → subgoal-lst
    Arguments
    cl — Guard (pseudo-term-listp cl).
    Returns
    subgoal-lst — Type (pseudo-term-list-listp subgoal-lst).

    Definitions and Theorems

    Function: process-hint

    (defun process-hint (cl user-hint)
     (declare (xargs :guard (pseudo-term-listp cl)))
     (let ((acl2::__function__ 'process-hint))
      (declare (ignorable acl2::__function__))
      (b*
       ((cl (pseudo-term-list-fix cl))
        ((unless (smtlink-hint-syntax-p user-hint))
         (prog2$
          (cw
           "User provided Smtlink hint can't be applied because of ~
        syntax error in the hints: ~q0Therefore proceed without Smtlink...~%"
           user-hint)
          (list cl)))
        (combined-hint (combine-hints user-hint (smt-hint)))
        (next-cp (cdr (assoc-equal 'process-hint
                                   *smt-architecture*)))
        ((if (null next-cp)) (list cl))
        (cp-hint
         (cons
          ':clause-processor
          (cons
               (cons next-cp
                     (cons 'clause
                           (cons (cons 'quote (cons combined-hint 'nil))
                                 'nil)))
               'nil)))
        (subgoal-lst (cons (cons 'hint-please
                                 (cons (cons 'quote (cons cp-hint 'nil))
                                       'nil))
                           cl)))
       (list subgoal-lst))))

    Theorem: pseudo-term-list-listp-of-process-hint

    (defthm pseudo-term-list-listp-of-process-hint
      (b* ((subgoal-lst (process-hint cl user-hint)))
        (pseudo-term-list-listp subgoal-lst))
      :rule-classes :rewrite)