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