Recognizer for programdecl structures.
(programdeclp x) → *
Function:
(defun programdeclp (x) (declare (xargs :guard t)) (let ((__function__ 'programdeclp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :programdecl) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(id items))) :exec (fty::alist-with-carsp (cdr x) '(id items))) (b* ((id (cdr (std::da-nth 0 (cdr x)))) (items (cdr (std::da-nth 1 (cdr x))))) (and (programidp id) (topdecl-listp items))))))
Theorem:
(defthm consp-when-programdeclp (implies (programdeclp x) (consp x)) :rule-classes :compound-recognizer)