• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
          • Simplify-defun
          • Isodata
          • Tailrec
          • Schemalg
          • Restrict
          • Expdata
          • Casesplit
          • Simplify-term
          • Simplify-defun-sk
          • Parteval
          • Solve
            • Solve-implementation
              • Solve-event-generation
              • Solve-fn
              • Solve-input-processing
                • Solve-process-inputs
                • Solve-process-solution-name
                • Solve-process-old
                • Solve-process-solution-guard-hints
                • Solve-process-solution-body
                • Solve-process-solution-hints
                  • Solve-process-solution-guard
                  • Solve-process-solution-enable
                  • Solve-process-method
                  • Solve-process-method-rules
                  • *solve-call-axe-rewriter*
                  • *solve-call-ACL2-rewriter*
                • 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
          • Error-checking
          • Fty-extensions
          • Isar
          • Kestrel-utilities
          • Set
          • Soft
          • C
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Solve-input-processing

    Solve-process-solution-hints

    Process the :solution-hints input.

    Signature
    (solve-process-solution-hints solution-hints 
                                  solution-hints? method ctx state) 
     
      → 
    (mv erp nothing state)
    Arguments
    solution-hints? — Guard (booleanp solution-hints?).
    method — Guard (keywordp method).
    Returns
    nothing — Type (null nothing).

    For now we just check that this is a true list, which may be enough to catch simple mistakes. We may extend this input processor with more validity checks.

    Definitions and Theorems

    Function: solve-process-solution-hints

    (defun solve-process-solution-hints
           (solution-hints solution-hints? method ctx state)
     (declare (xargs :stobjs (state)))
     (declare (xargs :guard (and (booleanp solution-hints?)
                                 (keywordp method))))
     (let ((__function__ 'solve-process-solution-hints))
      (declare (ignorable __function__))
      (if (eq method :manual)
          (ensure-value-is-true-list$ solution-hints
                                      "The :SOLUTION-HINTS input" t nil)
       (if solution-hints?
        (er-soft+
         ctx t nil
         "Since the :METHOD input is not :MANUAL, ~
                       the :SOLUTION-HINTS input must be absent, ~
                       but instead ~x0 has been supplied."
         solution-hints)
        (value nil)))))

    Theorem: null-of-solve-process-solution-hints.nothing

    (defthm null-of-solve-process-solution-hints.nothing
      (b* (((mv ?erp ?nothing acl2::?state)
            (solve-process-solution-hints
                 solution-hints
                 solution-hints? method ctx state)))
        (null nothing))
      :rule-classes :rewrite)