Recognizer for alias structures.
(alias-p x) → *
Function:
(defun alias-p (x) (declare (xargs :guard t)) (let ((acl2::__function__ 'alias-p)) (declare (ignorable acl2::__function__)) (and (mbe :logic (and (alistp x) (equal (strip-cars x) '(name val))) :exec (fty::alist-with-carsp x '(name val))) (b* ((name (cdr (std::da-nth 0 x))) (val (cdr (std::da-nth 1 x)))) (and (sv::svar-p name) (svex-p val))))))
Theorem:
(defthm consp-when-alias-p (implies (alias-p x) (consp x)) :rule-classes :compound-recognizer)