Recognizer for address structures.
(addressp x) → *
Function:
(defun addressp (x) (declare (xargs :guard t)) (let ((__function__ 'addressp)) (declare (ignorable __function__)) (and (consp x) (eq (car x) :address) (mbe :logic (and (alistp (cdr x)) (equal (strip-cars (cdr x)) '(number))) :exec (fty::alist-with-carsp (cdr x) '(number))) (b* ((number (cdr (std::da-nth 0 (cdr x))))) (natp number)))))
Theorem:
(defthm consp-when-addressp (implies (addressp x) (consp x)) :rule-classes :compound-recognizer)