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