Recognizer for var/const-dinfo structures.
(var/const-dinfop x) → *
Function:
(defun var/const-dinfop (x) (declare (xargs :guard t)) (let ((__function__ 'var/const-dinfop)) (declare (ignorable __function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(value constp))) :exec (fty::alist-with-carsp x '(value constp))) (b* ((value (cdr (std::da-nth 0 x))) (constp (cdr (std::da-nth 1 x)))) (and (valuep value) (booleanp constp))))))
Theorem:
(defthm consp-when-var/const-dinfop (implies (var/const-dinfop x) (consp x)) :rule-classes :compound-recognizer)