Get the get field from a expression-path.
(expression-path->get x) → get
This is an ordinary field accessor created by fty::defprod.
Function:
(defun expression-path->get$inline (x) (declare (xargs :guard (expressionp x))) (declare (xargs :guard (equal (expression-kind x) :path))) (let ((__function__ 'expression-path->get)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (expression-kind x) :path) x))) (path-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm pathp-of-expression-path->get (b* ((get (expression-path->get$inline x))) (pathp get)) :rule-classes :rewrite)
Theorem:
(defthm expression-path->get$inline-of-expression-fix-x (equal (expression-path->get$inline (expression-fix x)) (expression-path->get$inline x)))
Theorem:
(defthm expression-path->get$inline-expression-equiv-congruence-on-x (implies (expression-equiv x x-equiv) (equal (expression-path->get$inline x) (expression-path->get$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm expression-path->get-when-wrong-kind (implies (not (equal (expression-kind x) :path)) (equal (expression-path->get x) (path-fix nil))))