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