Recognizer for program structures.
(programp x) → *
Function:
(defun programp (x) (declare (xargs :guard t)) (let ((__function__ 'programp)) (declare (ignorable __function__)) (and (true-listp x) (eql (len x) 2) (b* ((packages (std::da-nth 0 x)) (functions (std::da-nth 1 x))) (and (package-listp packages) (function-setp functions))))))
Theorem:
(defthm consp-when-programp (implies (programp x) (consp x)) :rule-classes :compound-recognizer)