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