Recognizer for config structures.
(configp x) → *
Function:
(defun configp (x) (declare (xargs :guard t)) (let ((__function__ 'configp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :config) (true-listp (cdr x)) (eql (len (cdr x)) 2) (b* ((comms (std::da-nth 0 (cdr x))) (env (std::da-nth 1 (cdr x)))) (and (comm-listp comms) (envp env))))))
Theorem:
(defthm consp-when-configp (implies (configp x) (consp x)) :rule-classes :compound-recognizer)