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