• 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
              • Ex-args
                • Ex-args-fix
                • Make-ex-args
                • Ex-args-equiv
                • Ex-args->expand-lst
                • Change-ex-args
                • Ex-args->wrld-fn-len
                • Ex-args->term-lst
                • Ex-args->fn-lvls
                • Ex-args->fn-lst
                • Ex-args-p
                • Expand
                • Expand-measure
                • Ex-outs
              • 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
    • Ex-args

    Ex-args-p

    Recognizer for ex-args structures.

    Signature
    (ex-args-p x) → *

    Definitions and Theorems

    Function: ex-args-p

    (defun ex-args-p (x)
     (declare (xargs :guard t))
     (let ((acl2::__function__ 'ex-args-p))
      (declare (ignorable acl2::__function__))
      (and
       (mbe
         :logic
         (and (alistp x)
              (equal (strip-cars x)
                     '(term-lst fn-lst fn-lvls wrld-fn-len expand-lst)))
         :exec (fty::alist-with-carsp
                    x
                    '(term-lst fn-lst fn-lvls wrld-fn-len expand-lst)))
       (b* ((term-lst (cdr (std::da-nth 0 x)))
            (fn-lst (cdr (std::da-nth 1 x)))
            (fn-lvls (cdr (std::da-nth 2 x)))
            (wrld-fn-len (cdr (std::da-nth 3 x)))
            (expand-lst (cdr (std::da-nth 4 x))))
         (and (pseudo-term-listp term-lst)
              (func-alistp fn-lst)
              (sym-nat-alistp fn-lvls)
              (natp wrld-fn-len)
              (pseudo-term-alistp expand-lst))))))

    Theorem: consp-when-ex-args-p

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