• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
        • Z3-installation
        • Smt-hint
        • Tutorial
        • Status
        • Developer
          • Verified
            • Uninterpreted-fn-cp
              • Fhg-single-args
              • Fhg-args
                • Fhg-args-fix
                • Make-fhg-args
                • Fhg-args-equiv
                • Fhg-args->fn-more-returns-hint-acc
                • Fhg-args->fn-returns-hint-acc
                • Fhg-args->lambda-acc
                • Change-fhg-args
                • Fhg-args->term-lst
                • Fhg-args->fn-lst
                • Fhg-args-p
                • Lambda-binding
                • Generate-fn-hint-lst
              • 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
              • 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
    • Fhg-args

    Fhg-args-p

    Recognizer for fhg-args structures.

    Signature
    (fhg-args-p x) → *

    Definitions and Theorems

    Function: fhg-args-p

    (defun fhg-args-p (x)
     (declare (xargs :guard t))
     (let ((acl2::__function__ 'fhg-args-p))
      (declare (ignorable acl2::__function__))
      (and
       (mbe
           :logic
           (and (alistp x)
                (equal (strip-cars x)
                       '(term-lst fn-lst fn-returns-hint-acc
                                  fn-more-returns-hint-acc lambda-acc)))
           :exec (fty::alist-with-carsp
                      x
                      '(term-lst fn-lst fn-returns-hint-acc
                                 fn-more-returns-hint-acc lambda-acc)))
       (b* ((term-lst (cdr (std::da-nth 0 x)))
            (fn-lst (cdr (std::da-nth 1 x)))
            (fn-returns-hint-acc (cdr (std::da-nth 2 x)))
            (fn-more-returns-hint-acc (cdr (std::da-nth 3 x)))
            (lambda-acc (cdr (std::da-nth 4 x))))
         (and (pseudo-term-listp term-lst)
              (func-alistp fn-lst)
              (hint-pair-listp fn-returns-hint-acc)
              (hint-pair-listp fn-more-returns-hint-acc)
              (lambda-binding-listp lambda-acc))))))

    Theorem: consp-when-fhg-args-p

    (defthm consp-when-fhg-args-p
      (implies (fhg-args-p x) (consp x))
      :rule-classes :compound-recognizer)