Recognizer for vl-lucidctx structures.
(vl-lucidctx-p x) → *
Function:
(defun vl-lucidctx-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-lucidctx-p)) (declare (ignorable __function__)) (and (std::prod-consp x) (std::prod-consp (std::prod-car x)) (std::prod-consp (std::prod-cdr x)) (b* ((modname (std::prod-car (std::prod-car x))) (elem (std::prod-cdr (std::prod-car x))) (ss (std::prod-car (std::prod-cdr x))) (portname (std::prod-cdr (std::prod-cdr x)))) (and (stringp modname) (vl-ctxelement-p elem) (vl-scopestack-p ss) (maybe-stringp portname))))))
Theorem:
(defthm consp-when-vl-lucidctx-p (implies (vl-lucidctx-p x) (consp x)) :rule-classes :compound-recognizer)