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