• 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

    Make-ex-args

    Basic constructor macro for ex-args structures.

    Syntax
    (make-ex-args [:term-lst <term-lst>] 
                  [:fn-lst <fn-lst>] 
                  [:fn-lvls <fn-lvls>] 
                  [:wrld-fn-len <wrld-fn-len>] 
                  [:expand-lst <expand-lst>]) 
    

    This is the usual way to construct ex-args structures. It simply conses together a structure with the specified fields.

    This macro generates a new ex-args structure from scratch. See also change-ex-args, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-ex-args

    (defmacro make-ex-args (&rest args)
      (std::make-aggregate 'ex-args
                           args
                           '((:term-lst)
                             (:fn-lst)
                             (:fn-lvls)
                             (:wrld-fn-len . 0)
                             (:expand-lst))
                           'make-ex-args
                           nil))

    Function: ex-args

    (defun ex-args (term-lst fn-lst fn-lvls wrld-fn-len expand-lst)
      (declare (xargs :guard (and (pseudo-term-listp term-lst)
                                  (func-alistp fn-lst)
                                  (sym-nat-alistp fn-lvls)
                                  (natp wrld-fn-len)
                                  (pseudo-term-alistp expand-lst))))
      (declare (xargs :guard t))
      (let ((acl2::__function__ 'ex-args))
        (declare (ignorable acl2::__function__))
        (b* ((term-lst (mbe :logic (pseudo-term-list-fix term-lst)
                            :exec term-lst))
             (fn-lst (mbe :logic (func-alist-fix fn-lst)
                          :exec fn-lst))
             (fn-lvls (mbe :logic (sym-nat-alist-fix fn-lvls)
                           :exec fn-lvls))
             (wrld-fn-len (mbe :logic (nfix wrld-fn-len)
                               :exec wrld-fn-len))
             (expand-lst (mbe :logic (pseudo-term-alist-fix expand-lst)
                              :exec expand-lst)))
          (list (cons 'term-lst term-lst)
                (cons 'fn-lst fn-lst)
                (cons 'fn-lvls fn-lvls)
                (cons 'wrld-fn-len wrld-fn-len)
                (cons 'expand-lst expand-lst)))))