Recognizer for denv structures.
(denvp x) → *
Function:
(defun denvp (x) (declare (xargs :guard t)) (let ((__function__ 'denvp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :denv) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(call-stack functions structs screen curve))) :exec (fty::alist-with-carsp (cdr x) '(call-stack functions structs screen curve))) (b* ((call-stack (cdr (std::da-nth 0 (cdr x)))) (functions (cdr (std::da-nth 1 (cdr x)))) (structs (cdr (std::da-nth 2 (cdr x)))) (screen (cdr (std::da-nth 3 (cdr x)))) (curve (cdr (std::da-nth 4 (cdr x))))) (and (call-dinfo-listp call-stack) (function-denvp functions) (struct-denvp structs) (screenp screen) (curvep curve))))))
Theorem:
(defthm consp-when-denvp (implies (denvp x) (consp x)) :rule-classes :compound-recognizer)