Recognizer for vl-portdecl-or-blockitem.
(vl-portdecl-or-blockitem-p x) → *
Function:
(defun vl-portdecl-or-blockitem-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-portdecl-or-blockitem-p)) (declare (ignorable __function__)) (common-lisp::case (tag x) ((:vl-portdecl) (vl-portdecl-p x)) (otherwise (vl-blockitem-p x)))))
Theorem:
(defthm consp-when-vl-portdecl-or-blockitem-p (implies (vl-portdecl-or-blockitem-p x) (consp x)) :rule-classes :compound-recognizer)
Theorem:
(defthm vl-portdecl-or-blockitem-p-when-vl-portdecl-p (implies (vl-portdecl-p x) (vl-portdecl-or-blockitem-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-portdecl-or-blockitem-p-when-vl-blockitem-p (implies (vl-blockitem-p x) (vl-portdecl-or-blockitem-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-portdecl-p-by-tag-when-vl-portdecl-or-blockitem-p (implies (and (or (equal (tag x) :vl-portdecl)) (vl-portdecl-or-blockitem-p x)) (vl-portdecl-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-blockitem-p-by-tag-when-vl-portdecl-or-blockitem-p (implies (and (or (equal (tag x) :vl-vardecl) (equal (tag x) :vl-paramdecl) (equal (tag x) :vl-import) (equal (tag x) :vl-typedef) (equal (tag x) :vl-letdecl)) (vl-portdecl-or-blockitem-p x)) (vl-blockitem-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-portdecl-or-blockitem-p-when-invalid-tag (implies (and (not (equal (tag x) :vl-portdecl)) (not (equal (tag x) :vl-vardecl)) (not (equal (tag x) :vl-paramdecl)) (not (equal (tag x) :vl-import)) (not (equal (tag x) :vl-typedef)) (not (equal (tag x) :vl-letdecl))) (not (vl-portdecl-or-blockitem-p x))) :rule-classes ((:rewrite :backchain-limit-lst 0)))
Theorem:
(defthm tag-when-vl-portdecl-or-blockitem-p-forward (implies (vl-portdecl-or-blockitem-p x) (or (equal (tag x) :vl-portdecl) (equal (tag x) :vl-vardecl) (equal (tag x) :vl-paramdecl) (equal (tag x) :vl-import) (equal (tag x) :vl-typedef) (equal (tag x) :vl-letdecl))) :rule-classes ((:forward-chaining)))