Recognizer for package structures.
(packagep x) → *
Function:
(defun packagep (x) (declare (xargs :guard t)) (let ((__function__ 'packagep)) (declare (ignorable __function__)) (and (true-listp x) (eql (len x) 2) (b* ((name (std::da-nth 0 x)) (imports (std::da-nth 1 x))) (and (stringp name) (symbol-value-listp imports))))))
Theorem:
(defthm consp-when-packagep (implies (packagep x) (consp x)) :rule-classes :compound-recognizer)