Get the left field from a vl-propthen.
(vl-propthen->left x) → left
This is an ordinary field accessor created by defprod.
Function:
(defun vl-propthen->left$inline (x) (declare (xargs :guard (vl-propexpr-p x))) (declare (xargs :guard (equal (vl-propexpr-kind x) :vl-propthen))) (let ((__function__ 'vl-propthen->left)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (vl-propexpr-kind x) :vl-propthen) x))) (vl-propexpr-fix (std::da-nth 1 (cdr x)))) :exec (std::da-nth 1 (cdr x)))))
Theorem:
(defthm vl-propexpr-p-of-vl-propthen->left (b* ((left (vl-propthen->left$inline x))) (vl-propexpr-p left)) :rule-classes :rewrite)
Theorem:
(defthm vl-propthen->left$inline-of-vl-propexpr-fix-x (equal (vl-propthen->left$inline (vl-propexpr-fix x)) (vl-propthen->left$inline x)))
Theorem:
(defthm vl-propthen->left$inline-vl-propexpr-equiv-congruence-on-x (implies (vl-propexpr-equiv x x-equiv) (equal (vl-propthen->left$inline x) (vl-propthen->left$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm vl-propthen->left-when-wrong-kind (implies (not (equal (vl-propexpr-kind x) :vl-propthen)) (equal (vl-propthen->left x) (vl-propexpr-fix nil))))