Basic constructor macro for simpadd0-gin structures.
(make-simpadd0-gin [:thm-index <thm-index>] [:names-to-avoid <names-to-avoid>])
This is the usual way to construct simpadd0-gin structures. It simply conses together a structure with the specified fields.
This macro generates a new simpadd0-gin structure from scratch. See also change-simpadd0-gin, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-simpadd0-gin (&rest args) (std::make-aggregate 'simpadd0-gin args '((:thm-index) (:names-to-avoid)) 'make-simpadd0-gin nil))
Function:
(defun simpadd0-gin (thm-index names-to-avoid) (declare (xargs :guard (and (posp thm-index) (symbol-listp names-to-avoid)))) (declare (xargs :guard t)) (let ((__function__ 'simpadd0-gin)) (declare (ignorable __function__)) (b* ((thm-index (mbe :logic (acl2::pos-fix thm-index) :exec thm-index)) (names-to-avoid (mbe :logic (acl2::symbol-list-fix names-to-avoid) :exec names-to-avoid))) (list (cons 'thm-index thm-index) (cons 'names-to-avoid names-to-avoid)))))