Convert an c$::expr to an ident-option.
(expr-to-ident expr) → ident?
Function:
(defun expr-to-ident (expr) (declare (xargs :guard (exprp expr))) (let ((__function__ 'expr-to-ident)) (declare (ignorable __function__)) (expr-case expr :ident expr.ident :otherwise nil)))
Theorem:
(defthm ident-optionp-of-expr-to-ident (b* ((ident? (expr-to-ident expr))) (ident-optionp ident?)) :rule-classes :rewrite)