Get the width field from a pinst-dot.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun pinst-dot->width$inline (x) (declare (xargs :guard (pinst-p x))) (declare (xargs :guard (equal (pinst-kind x) :dot))) (let ((acl2::__function__ 'pinst-dot->width)) (declare (ignorable acl2::__function__)) (mbe :logic (b* ((x (and (equal (pinst-kind x) :dot) x))) (acl2::pos-fix (cdr x))) :exec (cdr x))))
Theorem:
(defthm posp-of-pinst-dot->width (b* ((width (pinst-dot->width$inline x))) (posp width)) :rule-classes :rewrite)
Theorem:
(defthm pinst-dot->width$inline-of-pinst-fix-x (equal (pinst-dot->width$inline (pinst-fix x)) (pinst-dot->width$inline x)))
Theorem:
(defthm pinst-dot->width$inline-pinst-equiv-congruence-on-x (implies (pinst-equiv x x-equiv) (equal (pinst-dot->width$inline x) (pinst-dot->width$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm pinst-dot->width-when-wrong-kind (implies (not (equal (pinst-kind x) :dot)) (equal (pinst-dot->width x) (acl2::pos-fix nil))))