Recognizer for vl-lucidval structures.
(vl-lucidval-p x) → *
Function:
(defun vl-lucidval-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-lucidval-p)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(used set errors))) :exec (fty::alist-with-carsp x '(used set errors))) (b* ((used (cdr (std::da-nth 0 x))) (set (cdr (std::da-nth 1 x))) (errors (cdr (std::da-nth 2 x)))) (and (vl-lucidocclist-p used) (vl-lucidocclist-p set) (true-listp errors))))))
Theorem:
(defthm consp-when-vl-lucidval-p (implies (vl-lucidval-p x) (consp x)) :rule-classes :compound-recognizer)