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