Coerce a valud to iconst-info.
(coerce-iconst-info x) → info
This must be used when the value is expected to have that type. We raise a hard error if that is not the case.
Function:
(defun coerce-iconst-info (x) (declare (xargs :guard t)) (let ((__function__ 'coerce-iconst-info)) (declare (ignorable __function__)) (if (iconst-infop x) x (prog2$ (raise "Internal error: ~x0 does not satisfy ICONST-INFOP." x) (irr-iconst-info)))))
Theorem:
(defthm iconst-infop-of-coerce-iconst-info (b* ((info (coerce-iconst-info x))) (iconst-infop info)) :rule-classes :rewrite)