Recognizer for interface-type structures.
(interface-typep x) → *
Function:
(defun interface-typep (x) (declare (xargs :guard t)) (let ((__function__ 'interface-typep)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :interface-type) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(name comps))) :exec (fty::alist-with-carsp (cdr x) '(name comps))) (b* ((name (cdr (std::da-nth 0 (cdr x)))) (comps (cdr (std::da-nth 1 (cdr x))))) (and (identifierp name) (ident+ptype-listp comps))))))
Theorem:
(defthm consp-when-interface-typep (implies (interface-typep x) (consp x)) :rule-classes :compound-recognizer)