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