Macro (name) for introducing a theorem with a given enablement.
Function:
(defun theorem-intro-macro (enable) (declare (xargs :guard (booleanp enable))) (let ((__function__ 'theorem-intro-macro)) (declare (ignorable __function__)) (if enable 'defthm 'defthmd)))
Theorem:
(defthm return-type-of-theorem-intro-macro (b* ((macro (theorem-intro-macro enable))) (member-eq macro '(defthm defthmd))) :rule-classes :rewrite)