Get the certificate field from a message.
(message->certificate x) → certificate
This is an ordinary field accessor created by fty::defprod.
Function:
(defun message->certificate$inline (x) (declare (xargs :guard (messagep x))) (declare (xargs :guard t)) (let ((__function__ 'message->certificate)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (certificate-fix (cdr (std::da-nth 0 x)))) :exec (cdr (std::da-nth 0 x)))))
Theorem:
(defthm certificatep-of-message->certificate (b* ((certificate (message->certificate$inline x))) (certificatep certificate)) :rule-classes :rewrite)
Theorem:
(defthm message->certificate$inline-of-message-fix-x (equal (message->certificate$inline (message-fix x)) (message->certificate$inline x)))
Theorem:
(defthm message->certificate$inline-message-equiv-congruence-on-x (implies (message-equiv x x-equiv) (equal (message->certificate$inline x) (message->certificate$inline x-equiv))) :rule-classes :congruence)