Recognizer for vl-modelement.
(vl-modelement-p x) → *
Function:
(defun vl-modelement-p (x) (declare (xargs :guard t)) (let ((__function__ 'vl-modelement-p)) (declare (ignorable __function__)) (common-lisp::case (tag x) ((:vl-portdecl) (vl-portdecl-p x)) ((:vl-assign) (vl-assign-p x)) ((:vl-alias) (vl-alias-p x)) ((:vl-vardecl) (vl-vardecl-p x)) ((:vl-paramdecl) (vl-paramdecl-p x)) ((:vl-fundecl) (vl-fundecl-p x)) ((:vl-taskdecl) (vl-taskdecl-p x)) ((:vl-modinst) (vl-modinst-p x)) ((:vl-gateinst) (vl-gateinst-p x)) ((:vl-always) (vl-always-p x)) ((:vl-initial) (vl-initial-p x)) ((:vl-typedef) (vl-typedef-p x)) ((:vl-import) (vl-import-p x)) ((:vl-fwdtypedef) (vl-fwdtypedef-p x)) ((:vl-modport) (vl-modport-p x)) (otherwise (vl-genvar-p x)))))
Theorem:
(defthm consp-when-vl-modelement-p (implies (vl-modelement-p x) (consp x)) :rule-classes :compound-recognizer)
Theorem:
(defthm vl-modelement-p-when-vl-portdecl-p (implies (vl-portdecl-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-assign-p (implies (vl-assign-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-alias-p (implies (vl-alias-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-vardecl-p (implies (vl-vardecl-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-paramdecl-p (implies (vl-paramdecl-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-fundecl-p (implies (vl-fundecl-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-taskdecl-p (implies (vl-taskdecl-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-modinst-p (implies (vl-modinst-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-gateinst-p (implies (vl-gateinst-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-always-p (implies (vl-always-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-initial-p (implies (vl-initial-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-typedef-p (implies (vl-typedef-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-import-p (implies (vl-import-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-fwdtypedef-p (implies (vl-fwdtypedef-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-modport-p (implies (vl-modport-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-vl-genvar-p (implies (vl-genvar-p x) (vl-modelement-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-portdecl-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-portdecl)) (vl-modelement-p x)) (vl-portdecl-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-assign-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-assign)) (vl-modelement-p x)) (vl-assign-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-alias-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-alias)) (vl-modelement-p x)) (vl-alias-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-vardecl-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-vardecl)) (vl-modelement-p x)) (vl-vardecl-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-paramdecl-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-paramdecl)) (vl-modelement-p x)) (vl-paramdecl-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-fundecl-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-fundecl)) (vl-modelement-p x)) (vl-fundecl-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-taskdecl-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-taskdecl)) (vl-modelement-p x)) (vl-taskdecl-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modinst-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-modinst)) (vl-modelement-p x)) (vl-modinst-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-gateinst-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-gateinst)) (vl-modelement-p x)) (vl-gateinst-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-always-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-always)) (vl-modelement-p x)) (vl-always-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-initial-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-initial)) (vl-modelement-p x)) (vl-initial-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-typedef-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-typedef)) (vl-modelement-p x)) (vl-typedef-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-import-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-import)) (vl-modelement-p x)) (vl-import-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-fwdtypedef-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-fwdtypedef)) (vl-modelement-p x)) (vl-fwdtypedef-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modport-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-modport)) (vl-modelement-p x)) (vl-modport-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-genvar-p-by-tag-when-vl-modelement-p (implies (and (or (equal (tag x) :vl-genvar)) (vl-modelement-p x)) (vl-genvar-p x)) :rule-classes ((:rewrite :backchain-limit-lst 1)))
Theorem:
(defthm vl-modelement-p-when-invalid-tag (implies (and (not (equal (tag x) :vl-portdecl)) (not (equal (tag x) :vl-assign)) (not (equal (tag x) :vl-alias)) (not (equal (tag x) :vl-vardecl)) (not (equal (tag x) :vl-paramdecl)) (not (equal (tag x) :vl-fundecl)) (not (equal (tag x) :vl-taskdecl)) (not (equal (tag x) :vl-modinst)) (not (equal (tag x) :vl-gateinst)) (not (equal (tag x) :vl-always)) (not (equal (tag x) :vl-initial)) (not (equal (tag x) :vl-typedef)) (not (equal (tag x) :vl-import)) (not (equal (tag x) :vl-fwdtypedef)) (not (equal (tag x) :vl-modport)) (not (equal (tag x) :vl-genvar))) (not (vl-modelement-p x))) :rule-classes ((:rewrite :backchain-limit-lst 0)))
Theorem:
(defthm tag-when-vl-modelement-p-forward (implies (vl-modelement-p x) (or (equal (tag x) :vl-portdecl) (equal (tag x) :vl-assign) (equal (tag x) :vl-alias) (equal (tag x) :vl-vardecl) (equal (tag x) :vl-paramdecl) (equal (tag x) :vl-fundecl) (equal (tag x) :vl-taskdecl) (equal (tag x) :vl-modinst) (equal (tag x) :vl-gateinst) (equal (tag x) :vl-always) (equal (tag x) :vl-initial) (equal (tag x) :vl-typedef) (equal (tag x) :vl-import) (equal (tag x) :vl-fwdtypedef) (equal (tag x) :vl-modport) (equal (tag x) :vl-genvar))) :rule-classes ((:forward-chaining)))