Function:
(defun keyword-fix (x) (declare (xargs :guard (keywordp x))) (let ((acl2::__function__ 'keyword-fix)) (declare (ignorable acl2::__function__)) (mbe :logic (if (keywordp x) x :default) :exec x)))
Theorem:
(defthm keywordp-of-keyword-fix (b* ((x-fix (keyword-fix x))) (keywordp x-fix)) :rule-classes :rewrite)
Theorem:
(defthm keyword-fix-when-keywordp (implies (keywordp x) (equal (keyword-fix x) x)))