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